@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 +0,0 @@
1
- {"version":3,"file":"transformer.cjs","sources":["../../../src/validation/build-time/transformer.ts"],"sourcesContent":["/**\n * TypeScript Transformer for Build-Time Validation\n * \n * Analyzes TypeScript AST to validate TachUI component usage\n * at compile time and provide detailed error messages.\n */\n\n/**\n * NOTE: This module should only be imported in development/build environments.\n * TypeScript is a devDependency and should never be bundled in production.\n */\n\n// Dynamic TypeScript import - only loaded during build-time\nfunction getTypeScript() {\n if (process.env.NODE_ENV === 'production') {\n throw new Error('TypeScript transformer should not be used in production')\n }\n \n // Check if we're in a browser environment\n if (typeof window !== 'undefined') {\n throw new Error('TypeScript transformer cannot run in browser environment')\n }\n \n try {\n return require('typescript')\n } catch (_error) {\n throw new Error('TypeScript is required for build-time validation. Install with: npm install -D typescript')\n }\n}\n\nimport type {\n BuildTimeValidationRule,\n ValidationContext,\n ValidationResult,\n BuildTimeValidationError,\n ComponentValidationPattern,\n ModifierValidationPattern\n} from './types'\nimport { componentPatterns, modifierPatterns } from './rules'\n\n/**\n * Main TypeScript transformer factory\n */\nexport function createTachUITransformer(\n program: any, // ts.Program when TypeScript is available\n options: { strict?: boolean } = {}\n): any { // ts.TransformerFactory<ts.SourceFile> when TypeScript is available\n const ts = getTypeScript()\n \n return (context: any) => {\n return (sourceFile: any): any => {\n const checker = program.getTypeChecker()\n const validationContext: ValidationContext = {\n sourceFile,\n program,\n checker,\n fileName: sourceFile.fileName,\n options: {\n enabled: true,\n strictMode: options.strict || false,\n errorLevel: 'error',\n excludeFiles: [],\n includeFiles: [],\n customRules: [],\n configFile: ''\n }\n }\n\n const diagnostics: any[] = []\n \n function visit(node: any): any {\n // Check for TachUI component calls\n if (ts.isCallExpression(node)) {\n validateComponentCall(node, validationContext, diagnostics)\n }\n \n // Check for TachUI modifier chains\n if (ts.isPropertyAccessExpression(node)) {\n validateModifierAccess(node, validationContext, diagnostics)\n }\n\n return ts.visitEachChild(node, visit, context)\n }\n\n const result = ts.visitNode(sourceFile, visit) as any\n\n // Report diagnostics\n if (diagnostics.length > 0) {\n reportDiagnostics(diagnostics, sourceFile.fileName)\n }\n\n return result\n }\n }\n}\n\n/**\n * Validate TachUI component call expressions\n */\nfunction validateComponentCall(\n node: any,\n context: ValidationContext,\n diagnostics: any[]\n): void {\n const { checker, sourceFile } = context\n\n // Get the function being called\n const signature = checker.getResolvedSignature(node)\n if (!signature || !signature.declaration) return\n\n const symbolName = getSymbolName(node.expression, checker)\n if (!symbolName) return\n\n // Check if this is a TachUI component\n const componentPattern = componentPatterns[symbolName]\n if (!componentPattern) return\n\n const errors = validateComponent(node, componentPattern, context)\n \n for (const error of errors) {\n diagnostics.push(createDiagnostic(error, sourceFile))\n }\n}\n\n/**\n * Validate TachUI modifier property access\n */\nfunction validateModifierAccess(\n node: any,\n context: ValidationContext,\n diagnostics: any[]\n): void {\n const { checker, sourceFile } = context\n\n const modifierName = node.name.text\n const modifierPattern = modifierPatterns[modifierName]\n \n if (!modifierPattern) return\n\n // Get the component type this modifier is being applied to\n const componentType = getComponentTypeFromExpression(node.expression, checker)\n if (!componentType) return\n\n const errors = validateModifier(node, modifierPattern, componentType, context)\n \n for (const error of errors) {\n diagnostics.push(createDiagnostic(error, sourceFile))\n }\n}\n\n/**\n * Validate a component against its pattern\n */\nfunction validateComponent(\n node: any,\n pattern: ComponentValidationPattern,\n context: ValidationContext\n): BuildTimeValidationError[] {\n const ts = getTypeScript()\n const errors: BuildTimeValidationError[] = []\n const { sourceFile } = context\n\n // Check argument count\n const args = node.arguments\n const requiredCount = pattern.requiredProps.length\n \n if (args.length < requiredCount) {\n const pos = getPosition(node, sourceFile)\n errors.push({\n message: `${pattern.componentName} requires ${requiredCount} arguments, got ${args.length}`,\n code: 'TACH_MISSING_ARGS',\n severity: 'error',\n line: pos.line,\n column: pos.column,\n length: node.getText().length,\n category: 'component',\n component: pattern.componentName,\n suggestion: `Add missing required properties: ${pattern.requiredProps.slice(args.length).join(', ')}`,\n documentationLink: `https://docs.tachui.dev/components/${pattern.componentName.toLowerCase()}`\n })\n }\n\n // Validate argument types (basic validation)\n for (let i = 0; i < args.length && i < pattern.requiredProps.length; i++) {\n const arg = args[i]\n const propName = pattern.requiredProps[i]\n \n // Check for null/undefined\n if (ts.isLiteralExpression(arg) && arg.text === 'null') {\n const pos = getPosition(arg, sourceFile)\n errors.push({\n message: `${propName} cannot be null`,\n code: 'TACH_NULL_PROP',\n severity: 'error',\n line: pos.line,\n column: pos.column,\n length: arg.getText().length,\n category: 'component',\n component: pattern.componentName,\n suggestion: `Provide a valid value for ${propName}`\n })\n }\n }\n\n return errors\n}\n\n/**\n * Validate a modifier against its pattern\n */\nfunction validateModifier(\n node: any,\n pattern: ModifierValidationPattern,\n componentType: string,\n context: ValidationContext\n): BuildTimeValidationError[] {\n const errors: BuildTimeValidationError[] = []\n const { sourceFile } = context\n\n // Check if modifier is valid for this component type\n if (!pattern.validComponents.includes(componentType) && !pattern.validComponents.includes('*')) {\n const pos = getPosition(node, sourceFile)\n errors.push({\n message: `${pattern.modifierName} modifier is not valid for ${componentType} components`,\n code: 'TACH_INVALID_MODIFIER',\n severity: 'error',\n line: pos.line,\n column: pos.column,\n length: node.name.getText().length,\n category: 'modifier',\n component: componentType,\n suggestion: `Use ${pattern.modifierName} with: ${pattern.validComponents.join(', ')}`,\n documentationLink: `https://docs.tachui.dev/modifiers/${pattern.modifierName}`\n })\n }\n\n return errors\n}\n\n/**\n * Get symbol name from expression\n */\nfunction getSymbolName(expression: any, checker: any): string | null {\n const ts = getTypeScript()\n \n if (ts.isIdentifier(expression)) {\n return expression.text\n }\n \n if (ts.isPropertyAccessExpression(expression)) {\n return expression.name.text\n }\n\n const symbol = checker.getSymbolAtLocation(expression)\n return symbol?.name || null\n}\n\n/**\n * Get component type from modifier expression\n */\nfunction getComponentTypeFromExpression(expression: any, checker: any): string | null {\n // This is a simplified implementation\n // In practice, we'd need to trace back through the modifier chain\n // to find the original component constructor\n \n const type = checker.getTypeAtLocation(expression)\n const typeString = checker.typeToString(type)\n \n // Look for TachUI component types\n const componentMatch = typeString.match(/(\\w+)Instance/)\n return componentMatch ? componentMatch[1] : null\n}\n\n/**\n * Get line and column position from node\n */\nfunction getPosition(node: any, sourceFile: any): { line: number; column: number } {\n const pos = sourceFile.getLineAndCharacterOfPosition(node.getStart())\n return {\n line: pos.line + 1, // 1-based line numbers\n column: pos.character + 1 // 1-based column numbers\n }\n}\n\n/**\n * Create TypeScript diagnostic from validation error\n */\nfunction createDiagnostic(error: BuildTimeValidationError, sourceFile: any): any {\n const ts = getTypeScript()\n const start = sourceFile.getPositionOfLineAndCharacter(error.line - 1, error.column - 1)\n \n return {\n file: sourceFile,\n start,\n length: error.length,\n messageText: error.message,\n category: ts.DiagnosticCategory.Error,\n code: error.code as any,\n source: 'tachui'\n }\n}\n\n/**\n * Report diagnostics to console in development\n */\nfunction reportDiagnostics(diagnostics: any[], fileName: string): void {\n if (process.env.NODE_ENV === 'production') return\n \n const ts = getTypeScript()\n\n console.group(`🔍 TachUI Validation Issues in ${fileName}`)\n \n for (const diagnostic of diagnostics) {\n const message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\\n')\n const position = diagnostic.file && diagnostic.start !== undefined\n ? diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start)\n : { line: 0, character: 0 }\n \n console.error(`❌ Line ${position.line + 1}, Column ${position.character + 1}: ${message}`)\n }\n \n console.groupEnd()\n}\n\n/**\n * Create custom validation rule\n */\nexport function createValidationRule(\n name: string,\n validate: (node: any, checker: any, context: ValidationContext) => ValidationResult\n): BuildTimeValidationRule {\n return {\n name,\n severity: 'error',\n description: `Custom validation rule: ${name}`,\n validate,\n generateMessage: (error) => error.message,\n suggestFix: () => []\n }\n}\n\n/**\n * Validation rule runner\n */\nexport function runValidationRules(\n rules: BuildTimeValidationRule[],\n node: any,\n context: ValidationContext\n): ValidationResult {\n const allErrors: BuildTimeValidationError[] = []\n const allWarnings: BuildTimeValidationError[] = []\n \n for (const rule of rules) {\n const result = rule.validate(node, context.checker, context)\n \n if (result.errors) {\n allErrors.push(...result.errors)\n }\n \n if (result.warnings) {\n // Convert ValidationWarning to BuildTimeValidationError for consistency\n const warningErrors = result.warnings.map(w => ({ ...w, severity: 'warning' as const }))\n allWarnings.push(...warningErrors)\n }\n }\n \n return {\n valid: allErrors.length === 0,\n errors: allErrors,\n warnings: allWarnings as any[] // Type assertion for compatibility\n }\n}"],"names":["getTypeScript","createTachUITransformer","program","options","ts","context","sourceFile","checker","validationContext","diagnostics","visit","node","validateComponentCall","validateModifierAccess","result","reportDiagnostics","signature","symbolName","getSymbolName","componentPattern","componentPatterns","errors","validateComponent","error","createDiagnostic","modifierName","modifierPattern","modifierPatterns","componentType","getComponentTypeFromExpression","validateModifier","pattern","args","requiredCount","pos","getPosition","i","arg","propName","expression","type","componentMatch","start","fileName","diagnostic","message","position","createValidationRule","name","validate","runValidationRules","rules","allErrors","allWarnings","rule","warningErrors","w"],"mappings":"+GAaA,SAASA,GAAgB,CACvB,GAAI,QAAQ,IAAI,WAAa,aAC3B,MAAM,IAAI,MAAM,yDAAyD,EAI3E,GAAI,OAAO,OAAW,IACpB,MAAM,IAAI,MAAM,0DAA0D,EAG5E,GAAI,CACF,MAAO,SAAQ,YAAY,CAC7B,MAAiB,CACf,MAAM,IAAI,MAAM,2FAA2F,CAC7G,CACF,CAeO,SAASC,EACdC,EACAC,EAAgC,GAC3B,CACL,MAAMC,EAAKJ,EAAA,EAEX,OAAQK,GACEC,GAAyB,CAC/B,MAAMC,EAAUL,EAAQ,eAAA,EAClBM,EAAuC,CAC3C,WAAAF,EAEA,QAAAC,EACA,SAAUD,EAAW,SACrB,QAAS,CAEP,WAAYH,EAAQ,QAAU,EAMhC,CAAA,EAGIM,EAAqB,CAAA,EAE3B,SAASC,EAAMC,EAAgB,CAE7B,OAAIP,EAAG,iBAAiBO,CAAI,GAC1BC,EAAsBD,EAAMH,EAAmBC,CAAW,EAIxDL,EAAG,2BAA2BO,CAAI,GACpCE,EAAuBF,EAAMH,EAAmBC,CAAW,EAGtDL,EAAG,eAAeO,EAAMD,EAAOL,CAAO,CAC/C,CAEA,MAAMS,EAASV,EAAG,UAAUE,EAAYI,CAAK,EAG7C,OAAID,EAAY,OAAS,GACvBM,EAAkBN,EAAaH,EAAW,QAAQ,EAG7CQ,CACT,CAEJ,CAKA,SAASF,EACPD,EACAN,EACAI,EACM,CACN,KAAM,CAAE,QAAAF,EAAS,WAAAD,CAAA,EAAeD,EAG1BW,EAAYT,EAAQ,qBAAqBI,CAAI,EACnD,GAAI,CAACK,GAAa,CAACA,EAAU,YAAa,OAE1C,MAAMC,EAAaC,EAAcP,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QACV,YAAa,2BAA2BA,CAAI,GAC5C,SAAAC,EACA,gBAAkB1B,GAAUA,EAAM,QAClC,WAAY,IAAM,CAAA,CAAC,CAEvB,CAKO,SAAS2B,EACdC,EACAxC,EACAN,EACkB,CAClB,MAAM+C,EAAwC,CAAA,EACxCC,EAA0C,CAAA,EAEhD,UAAWC,KAAQH,EAAO,CACxB,MAAMrC,EAASwC,EAAK,SAAS3C,EAAMN,EAAQ,QAASA,CAAO,EAM3D,GAJIS,EAAO,QACTsC,EAAU,KAAK,GAAGtC,EAAO,MAAM,EAG7BA,EAAO,SAAU,CAEnB,MAAMyC,EAAgBzC,EAAO,SAAS,IAAI0C,IAAM,CAAE,GAAGA,EAAG,SAAU,SAAA,EAAqB,EACvFH,EAAY,KAAK,GAAGE,CAAa,CACnC,CACF,CAEA,MAAO,CACL,MAAOH,EAAU,SAAW,EAC5B,OAAQA,EACR,SAAUC,CAAA,CAEd"}
@@ -1,177 +0,0 @@
1
- import { componentPatterns as d, modifierPatterns as h } from "./rules.js";
2
- function m() {
3
- if (process.env.NODE_ENV === "production")
4
- throw new Error("TypeScript transformer should not be used in production");
5
- if (typeof window < "u")
6
- throw new Error("TypeScript transformer cannot run in browser environment");
7
- try {
8
- return require("typescript");
9
- } catch {
10
- throw new Error("TypeScript is required for build-time validation. Install with: npm install -D typescript");
11
- }
12
- }
13
- function $(e, t = {}) {
14
- const n = m();
15
- return (o) => (r) => {
16
- const c = e.getTypeChecker(), i = {
17
- sourceFile: r,
18
- checker: c,
19
- fileName: r.fileName,
20
- options: {
21
- strictMode: t.strict || !1
22
- }
23
- }, a = [];
24
- function s(u) {
25
- return n.isCallExpression(u) && v(u, i, a), n.isPropertyAccessExpression(u) && y(u, i, a), n.visitEachChild(u, s, o);
26
- }
27
- const l = n.visitNode(r, s);
28
- return a.length > 0 && E(a, r.fileName), l;
29
- };
30
- }
31
- function v(e, t, n) {
32
- const { checker: o, sourceFile: r } = t, c = o.getResolvedSignature(e);
33
- if (!c || !c.declaration) return;
34
- const i = T(e.expression, o);
35
- if (!i) return;
36
- const a = d[i];
37
- if (!a) return;
38
- const s = C(e, a, t);
39
- for (const l of s)
40
- n.push(p(l, r));
41
- }
42
- function y(e, t, n) {
43
- const { checker: o, sourceFile: r } = t, c = e.name.text, i = h[c];
44
- if (!i) return;
45
- const a = w(e.expression, o);
46
- if (!a) return;
47
- const s = N(e, i, a, t);
48
- for (const l of s)
49
- n.push(p(l, r));
50
- }
51
- function C(e, t, n) {
52
- const o = m(), r = [], { sourceFile: c } = n, i = e.arguments, a = t.requiredProps.length;
53
- if (i.length < a) {
54
- const s = g(e, c);
55
- r.push({
56
- message: `${t.componentName} requires ${a} arguments, got ${i.length}`,
57
- code: "TACH_MISSING_ARGS",
58
- severity: "error",
59
- line: s.line,
60
- column: s.column,
61
- length: e.getText().length,
62
- category: "component",
63
- component: t.componentName,
64
- suggestion: `Add missing required properties: ${t.requiredProps.slice(i.length).join(", ")}`,
65
- documentationLink: `https://docs.tachui.dev/components/${t.componentName.toLowerCase()}`
66
- });
67
- }
68
- for (let s = 0; s < i.length && s < t.requiredProps.length; s++) {
69
- const l = i[s], u = t.requiredProps[s];
70
- if (o.isLiteralExpression(l) && l.text === "null") {
71
- const f = g(l, c);
72
- r.push({
73
- message: `${u} cannot be null`,
74
- code: "TACH_NULL_PROP",
75
- severity: "error",
76
- line: f.line,
77
- column: f.column,
78
- length: l.getText().length,
79
- category: "component",
80
- component: t.componentName,
81
- suggestion: `Provide a valid value for ${u}`
82
- });
83
- }
84
- }
85
- return r;
86
- }
87
- function N(e, t, n, o) {
88
- const r = [], { sourceFile: c } = o;
89
- if (!t.validComponents.includes(n) && !t.validComponents.includes("*")) {
90
- const i = g(e, c);
91
- r.push({
92
- message: `${t.modifierName} modifier is not valid for ${n} components`,
93
- code: "TACH_INVALID_MODIFIER",
94
- severity: "error",
95
- line: i.line,
96
- column: i.column,
97
- length: e.name.getText().length,
98
- category: "modifier",
99
- component: n,
100
- suggestion: `Use ${t.modifierName} with: ${t.validComponents.join(", ")}`,
101
- documentationLink: `https://docs.tachui.dev/modifiers/${t.modifierName}`
102
- });
103
- }
104
- return r;
105
- }
106
- function T(e, t) {
107
- const n = m();
108
- return n.isIdentifier(e) ? e.text : n.isPropertyAccessExpression(e) ? e.name.text : t.getSymbolAtLocation(e)?.name || null;
109
- }
110
- function w(e, t) {
111
- const n = t.getTypeAtLocation(e), r = t.typeToString(n).match(/(\w+)Instance/);
112
- return r ? r[1] : null;
113
- }
114
- function g(e, t) {
115
- const n = t.getLineAndCharacterOfPosition(e.getStart());
116
- return {
117
- line: n.line + 1,
118
- // 1-based line numbers
119
- column: n.character + 1
120
- // 1-based column numbers
121
- };
122
- }
123
- function p(e, t) {
124
- const n = m(), o = t.getPositionOfLineAndCharacter(e.line - 1, e.column - 1);
125
- return {
126
- file: t,
127
- start: o,
128
- length: e.length,
129
- messageText: e.message,
130
- category: n.DiagnosticCategory.Error,
131
- code: e.code,
132
- source: "tachui"
133
- };
134
- }
135
- function E(e, t) {
136
- if (process.env.NODE_ENV === "production") return;
137
- const n = m();
138
- console.group(`🔍 TachUI Validation Issues in ${t}`);
139
- for (const o of e) {
140
- const r = n.flattenDiagnosticMessageText(o.messageText, `
141
- `), c = o.file && o.start !== void 0 ? o.file.getLineAndCharacterOfPosition(o.start) : { line: 0, character: 0 };
142
- console.error(`❌ Line ${c.line + 1}, Column ${c.character + 1}: ${r}`);
143
- }
144
- console.groupEnd();
145
- }
146
- function A(e, t) {
147
- return {
148
- name: e,
149
- severity: "error",
150
- description: `Custom validation rule: ${e}`,
151
- validate: t,
152
- generateMessage: (n) => n.message,
153
- suggestFix: () => []
154
- };
155
- }
156
- function S(e, t, n) {
157
- const o = [], r = [];
158
- for (const c of e) {
159
- const i = c.validate(t, n.checker, n);
160
- if (i.errors && o.push(...i.errors), i.warnings) {
161
- const a = i.warnings.map((s) => ({ ...s, severity: "warning" }));
162
- r.push(...a);
163
- }
164
- }
165
- return {
166
- valid: o.length === 0,
167
- errors: o,
168
- warnings: r
169
- // Type assertion for compatibility
170
- };
171
- }
172
- export {
173
- $ as createTachUITransformer,
174
- A as createValidationRule,
175
- S as runValidationRules
176
- };
177
- //# sourceMappingURL=transformer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transformer.js","sources":["../../../src/validation/build-time/transformer.ts"],"sourcesContent":["/**\n * TypeScript Transformer for Build-Time Validation\n * \n * Analyzes TypeScript AST to validate TachUI component usage\n * at compile time and provide detailed error messages.\n */\n\n/**\n * NOTE: This module should only be imported in development/build environments.\n * TypeScript is a devDependency and should never be bundled in production.\n */\n\n// Dynamic TypeScript import - only loaded during build-time\nfunction getTypeScript() {\n if (process.env.NODE_ENV === 'production') {\n throw new Error('TypeScript transformer should not be used in production')\n }\n \n // Check if we're in a browser environment\n if (typeof window !== 'undefined') {\n throw new Error('TypeScript transformer cannot run in browser environment')\n }\n \n try {\n return require('typescript')\n } catch (_error) {\n throw new Error('TypeScript is required for build-time validation. Install with: npm install -D typescript')\n }\n}\n\nimport type {\n BuildTimeValidationRule,\n ValidationContext,\n ValidationResult,\n BuildTimeValidationError,\n ComponentValidationPattern,\n ModifierValidationPattern\n} from './types'\nimport { componentPatterns, modifierPatterns } from './rules'\n\n/**\n * Main TypeScript transformer factory\n */\nexport function createTachUITransformer(\n program: any, // ts.Program when TypeScript is available\n options: { strict?: boolean } = {}\n): any { // ts.TransformerFactory<ts.SourceFile> when TypeScript is available\n const ts = getTypeScript()\n \n return (context: any) => {\n return (sourceFile: any): any => {\n const checker = program.getTypeChecker()\n const validationContext: ValidationContext = {\n sourceFile,\n program,\n checker,\n fileName: sourceFile.fileName,\n options: {\n enabled: true,\n strictMode: options.strict || false,\n errorLevel: 'error',\n excludeFiles: [],\n includeFiles: [],\n customRules: [],\n configFile: ''\n }\n }\n\n const diagnostics: any[] = []\n \n function visit(node: any): any {\n // Check for TachUI component calls\n if (ts.isCallExpression(node)) {\n validateComponentCall(node, validationContext, diagnostics)\n }\n \n // Check for TachUI modifier chains\n if (ts.isPropertyAccessExpression(node)) {\n validateModifierAccess(node, validationContext, diagnostics)\n }\n\n return ts.visitEachChild(node, visit, context)\n }\n\n const result = ts.visitNode(sourceFile, visit) as any\n\n // Report diagnostics\n if (diagnostics.length > 0) {\n reportDiagnostics(diagnostics, sourceFile.fileName)\n }\n\n return result\n }\n }\n}\n\n/**\n * Validate TachUI component call expressions\n */\nfunction validateComponentCall(\n node: any,\n context: ValidationContext,\n diagnostics: any[]\n): void {\n const { checker, sourceFile } = context\n\n // Get the function being called\n const signature = checker.getResolvedSignature(node)\n if (!signature || !signature.declaration) return\n\n const symbolName = getSymbolName(node.expression, checker)\n if (!symbolName) return\n\n // Check if this is a TachUI component\n const componentPattern = componentPatterns[symbolName]\n if (!componentPattern) return\n\n const errors = validateComponent(node, componentPattern, context)\n \n for (const error of errors) {\n diagnostics.push(createDiagnostic(error, sourceFile))\n }\n}\n\n/**\n * Validate TachUI modifier property access\n */\nfunction validateModifierAccess(\n node: any,\n context: ValidationContext,\n diagnostics: any[]\n): void {\n const { checker, sourceFile } = context\n\n const modifierName = node.name.text\n const modifierPattern = modifierPatterns[modifierName]\n \n if (!modifierPattern) return\n\n // Get the component type this modifier is being applied to\n const componentType = getComponentTypeFromExpression(node.expression, checker)\n if (!componentType) return\n\n const errors = validateModifier(node, modifierPattern, componentType, context)\n \n for (const error of errors) {\n diagnostics.push(createDiagnostic(error, sourceFile))\n }\n}\n\n/**\n * Validate a component against its pattern\n */\nfunction validateComponent(\n node: any,\n pattern: ComponentValidationPattern,\n context: ValidationContext\n): BuildTimeValidationError[] {\n const ts = getTypeScript()\n const errors: BuildTimeValidationError[] = []\n const { sourceFile } = context\n\n // Check argument count\n const args = node.arguments\n const requiredCount = pattern.requiredProps.length\n \n if (args.length < requiredCount) {\n const pos = getPosition(node, sourceFile)\n errors.push({\n message: `${pattern.componentName} requires ${requiredCount} arguments, got ${args.length}`,\n code: 'TACH_MISSING_ARGS',\n severity: 'error',\n line: pos.line,\n column: pos.column,\n length: node.getText().length,\n category: 'component',\n component: pattern.componentName,\n suggestion: `Add missing required properties: ${pattern.requiredProps.slice(args.length).join(', ')}`,\n documentationLink: `https://docs.tachui.dev/components/${pattern.componentName.toLowerCase()}`\n })\n }\n\n // Validate argument types (basic validation)\n for (let i = 0; i < args.length && i < pattern.requiredProps.length; i++) {\n const arg = args[i]\n const propName = pattern.requiredProps[i]\n \n // Check for null/undefined\n if (ts.isLiteralExpression(arg) && arg.text === 'null') {\n const pos = getPosition(arg, sourceFile)\n errors.push({\n message: `${propName} cannot be null`,\n code: 'TACH_NULL_PROP',\n severity: 'error',\n line: pos.line,\n column: pos.column,\n length: arg.getText().length,\n category: 'component',\n component: pattern.componentName,\n suggestion: `Provide a valid value for ${propName}`\n })\n }\n }\n\n return errors\n}\n\n/**\n * Validate a modifier against its pattern\n */\nfunction validateModifier(\n node: any,\n pattern: ModifierValidationPattern,\n componentType: string,\n context: ValidationContext\n): BuildTimeValidationError[] {\n const errors: BuildTimeValidationError[] = []\n const { sourceFile } = context\n\n // Check if modifier is valid for this component type\n if (!pattern.validComponents.includes(componentType) && !pattern.validComponents.includes('*')) {\n const pos = getPosition(node, sourceFile)\n errors.push({\n message: `${pattern.modifierName} modifier is not valid for ${componentType} components`,\n code: 'TACH_INVALID_MODIFIER',\n severity: 'error',\n line: pos.line,\n column: pos.column,\n length: node.name.getText().length,\n category: 'modifier',\n component: componentType,\n suggestion: `Use ${pattern.modifierName} with: ${pattern.validComponents.join(', ')}`,\n documentationLink: `https://docs.tachui.dev/modifiers/${pattern.modifierName}`\n })\n }\n\n return errors\n}\n\n/**\n * Get symbol name from expression\n */\nfunction getSymbolName(expression: any, checker: any): string | null {\n const ts = getTypeScript()\n \n if (ts.isIdentifier(expression)) {\n return expression.text\n }\n \n if (ts.isPropertyAccessExpression(expression)) {\n return expression.name.text\n }\n\n const symbol = checker.getSymbolAtLocation(expression)\n return symbol?.name || null\n}\n\n/**\n * Get component type from modifier expression\n */\nfunction getComponentTypeFromExpression(expression: any, checker: any): string | null {\n // This is a simplified implementation\n // In practice, we'd need to trace back through the modifier chain\n // to find the original component constructor\n \n const type = checker.getTypeAtLocation(expression)\n const typeString = checker.typeToString(type)\n \n // Look for TachUI component types\n const componentMatch = typeString.match(/(\\w+)Instance/)\n return componentMatch ? componentMatch[1] : null\n}\n\n/**\n * Get line and column position from node\n */\nfunction getPosition(node: any, sourceFile: any): { line: number; column: number } {\n const pos = sourceFile.getLineAndCharacterOfPosition(node.getStart())\n return {\n line: pos.line + 1, // 1-based line numbers\n column: pos.character + 1 // 1-based column numbers\n }\n}\n\n/**\n * Create TypeScript diagnostic from validation error\n */\nfunction createDiagnostic(error: BuildTimeValidationError, sourceFile: any): any {\n const ts = getTypeScript()\n const start = sourceFile.getPositionOfLineAndCharacter(error.line - 1, error.column - 1)\n \n return {\n file: sourceFile,\n start,\n length: error.length,\n messageText: error.message,\n category: ts.DiagnosticCategory.Error,\n code: error.code as any,\n source: 'tachui'\n }\n}\n\n/**\n * Report diagnostics to console in development\n */\nfunction reportDiagnostics(diagnostics: any[], fileName: string): void {\n if (process.env.NODE_ENV === 'production') return\n \n const ts = getTypeScript()\n\n console.group(`🔍 TachUI Validation Issues in ${fileName}`)\n \n for (const diagnostic of diagnostics) {\n const message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\\n')\n const position = diagnostic.file && diagnostic.start !== undefined\n ? diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start)\n : { line: 0, character: 0 }\n \n console.error(`❌ Line ${position.line + 1}, Column ${position.character + 1}: ${message}`)\n }\n \n console.groupEnd()\n}\n\n/**\n * Create custom validation rule\n */\nexport function createValidationRule(\n name: string,\n validate: (node: any, checker: any, context: ValidationContext) => ValidationResult\n): BuildTimeValidationRule {\n return {\n name,\n severity: 'error',\n description: `Custom validation rule: ${name}`,\n validate,\n generateMessage: (error) => error.message,\n suggestFix: () => []\n }\n}\n\n/**\n * Validation rule runner\n */\nexport function runValidationRules(\n rules: BuildTimeValidationRule[],\n node: any,\n context: ValidationContext\n): ValidationResult {\n const allErrors: BuildTimeValidationError[] = []\n const allWarnings: BuildTimeValidationError[] = []\n \n for (const rule of rules) {\n const result = rule.validate(node, context.checker, context)\n \n if (result.errors) {\n allErrors.push(...result.errors)\n }\n \n if (result.warnings) {\n // Convert ValidationWarning to BuildTimeValidationError for consistency\n const warningErrors = result.warnings.map(w => ({ ...w, severity: 'warning' as const }))\n allWarnings.push(...warningErrors)\n }\n }\n \n return {\n valid: allErrors.length === 0,\n errors: allErrors,\n warnings: allWarnings as any[] // Type assertion for compatibility\n }\n}"],"names":["getTypeScript","createTachUITransformer","program","options","ts","context","sourceFile","checker","validationContext","diagnostics","visit","node","validateComponentCall","validateModifierAccess","result","reportDiagnostics","signature","symbolName","getSymbolName","componentPattern","componentPatterns","errors","validateComponent","error","createDiagnostic","modifierName","modifierPattern","modifierPatterns","componentType","getComponentTypeFromExpression","validateModifier","pattern","args","requiredCount","pos","getPosition","i","arg","propName","expression","type","componentMatch","start","fileName","diagnostic","message","position","createValidationRule","name","validate","runValidationRules","rules","allErrors","allWarnings","rule","warningErrors","w"],"mappings":";AAaA,SAASA,IAAgB;AACvB,MAAI,QAAQ,IAAI,aAAa;AAC3B,UAAM,IAAI,MAAM,yDAAyD;AAI3E,MAAI,OAAO,SAAW;AACpB,UAAM,IAAI,MAAM,0DAA0D;AAG5E,MAAI;AACF,WAAO,QAAQ,YAAY;AAAA,EAC7B,QAAiB;AACf,UAAM,IAAI,MAAM,2FAA2F;AAAA,EAC7G;AACF;AAeO,SAASC,EACdC,GACAC,IAAgC,IAC3B;AACL,QAAMC,IAAKJ,EAAA;AAEX,SAAO,CAACK,MACC,CAACC,MAAyB;AAC/B,UAAMC,IAAUL,EAAQ,eAAA,GAClBM,IAAuC;AAAA,MAC3C,YAAAF;AAAA,MAEA,SAAAC;AAAA,MACA,UAAUD,EAAW;AAAA,MACrB,SAAS;AAAA,QAEP,YAAYH,EAAQ,UAAU;AAAA,MAMhC;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M3D,QAJIS,EAAO,UACTsC,EAAU,KAAK,GAAGtC,EAAO,MAAM,GAG7BA,EAAO,UAAU;AAEnB,YAAMyC,IAAgBzC,EAAO,SAAS,IAAI,CAAA0C,OAAM,EAAE,GAAGA,GAAG,UAAU,UAAA,EAAqB;AACvF,MAAAH,EAAY,KAAK,GAAGE,CAAa;AAAA,IACnC;AAAA,EACF;AAEA,SAAO;AAAA,IACL,OAAOH,EAAU,WAAW;AAAA,IAC5B,QAAQA;AAAA,IACR,UAAUC;AAAA;AAAA,EAAA;AAEd;"}
@@ -1,9 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../reactive/cleanup.cjs");require("../reactive/unified-scheduler.cjs");const h=require("../reactive/signal.cjs");require("../reactive/scheduler.cjs");require("../reactive/theme.cjs");class o extends Error{constructor(t,n){super(t),this.context=n,this.name="TachUIValidationError"}getFormattedMessage(){const{component:t,suggestion:n,example:s,documentation:c,package:a}=this.context;let u=`❌ ${a?`[@tachui/${a}]`:"[Core]"} ${t} Component Error: ${this.message}
2
- `;return n&&(u+=`
3
- 💡 Suggestion: ${n}
4
- `),s&&(u+=`
5
- ❌ Wrong: ${s.wrong}`,u+=`
6
- ✅ Correct: ${s.correct}
7
- `),c&&(u+=`
8
- 📚 Documentation: ${c}`),u}}let r={enabled:process.env.NODE_ENV!=="production",strictMode:!1,errorLevel:"error",excludeFiles:[],packages:{core:!0,forms:!0,navigation:!0,symbols:!0,plugins:!0}};function d(e){r={...r,...e}}function i(){return r.enabled&&process.env.NODE_ENV!=="production"}const w={validateText(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("Text component requires a content parameter",{component:"Text",suggestion:'Add a content parameter: Text("Hello World")',documentation:"https://docs.tachui.dev/components/text",example:{wrong:"Text()",correct:'Text("Hello World")'}});const[t]=e;if(t==null)throw new o("Text content cannot be undefined or null",{component:"Text",suggestion:"Provide a valid string, function, or Signal",example:{wrong:"Text(null)",correct:'Text("Hello World")'}});const n=typeof t;if(!(n==="string"||n==="function"||h.isSignal(t)))throw new o(`Text content must be a string, function, or Signal. Received: ${n}`,{component:"Text",suggestion:"Use a string literal, function, or reactive signal",example:{wrong:"Text(123)",correct:'Text("Hello World")'}})},validateButton(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("Button component requires a title parameter",{component:"Button",suggestion:'Add a title parameter: Button("Click me", () => {})',documentation:"https://docs.tachui.dev/components/button",example:{wrong:"Button()",correct:'Button("Click me", () => {})'}});const[t,n]=e;if(t==null)throw new o("Button title cannot be undefined or null",{component:"Button",suggestion:"Provide a valid string, function, or Signal",example:{wrong:"Button(null)",correct:'Button("Click me")'}});const s=typeof t;if(!(s==="string"||s==="function"||h.isSignal(t)))throw new o(`Button title must be a string, function, or Signal. Received: ${s}`,{component:"Button",suggestion:"Use a string literal, function, or reactive signal",example:{wrong:"Button(123)",correct:'Button("Click me")'}});n===void 0&&e.length===1&&r.errorLevel!=="error"&&console.warn("⚠️ Button without action may not be interactive. Consider adding an action parameter.")},validateImage(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("Image component requires a source parameter",{component:"Image",suggestion:'Add a source parameter: Image({ source: "image.jpg" })',documentation:"https://docs.tachui.dev/components/image",example:{wrong:"Image()",correct:'Image({ source: "image.jpg" })'}});const[t]=e;if(!t||typeof t!="object")throw new o("Image requires a props object",{component:"Image",suggestion:"Pass a props object with source property",example:{wrong:'Image("image.jpg")',correct:'Image({ source: "image.jpg" })'}});if(!t.source)throw new o("Image source property is required",{component:"Image",suggestion:"Provide a valid image source URL or path",example:{wrong:'Image({ alt: "description" })',correct:'Image({ source: "image.jpg", alt: "description" })'}})},validateToggle(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("Toggle component requires an isOn parameter",{component:"Toggle",suggestion:"Add an isOn parameter: Toggle({ isOn: signal })",documentation:"https://docs.tachui.dev/components/toggle",example:{wrong:"Toggle()",correct:"Toggle({ isOn: isEnabled })"}});const[t]=e;if(!t||typeof t!="object")throw new o("Toggle requires a props object",{component:"Toggle",suggestion:"Pass a props object with isOn property",example:{wrong:"Toggle(true)",correct:"Toggle({ isOn: true })"}});if(t.isOn===void 0)throw new o("Toggle isOn property is required",{component:"Toggle",suggestion:"Provide a boolean value or Signal for isOn",example:{wrong:"Toggle({ onToggle: handler })",correct:"Toggle({ isOn: true, onToggle: handler })"}})},validateSlider(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("Slider component requires a value parameter",{component:"Slider",suggestion:"Add a value parameter: Slider({ value: signal })",documentation:"https://docs.tachui.dev/components/slider",example:{wrong:"Slider()",correct:"Slider({ value: sliderValue })"}});const[t]=e;if(!t||typeof t!="object")throw new o("Slider requires a props object",{component:"Slider",suggestion:"Pass a props object with value property",example:{wrong:"Slider(50)",correct:"Slider({ value: 50 })"}});if(t.value===void 0)throw new o("Slider value property is required",{component:"Slider",suggestion:"Provide a numeric value or Signal for value",example:{wrong:"Slider({ min: 0, max: 100 })",correct:"Slider({ value: 50, min: 0, max: 100 })"}})},validatePicker(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("Picker component requires options parameter",{component:"Picker",suggestion:'Add options parameter: Picker({ options: ["Option 1", "Option 2"] })',documentation:"https://docs.tachui.dev/components/picker",example:{wrong:"Picker()",correct:'Picker({ options: ["Red", "Green", "Blue"] })'}});const[t]=e;if(!t||typeof t!="object")throw new o("Picker requires a props object",{component:"Picker",suggestion:"Pass a props object with options array",example:{wrong:'Picker(["Option 1", "Option 2"])',correct:'Picker({ options: ["Option 1", "Option 2"] })'}});const n=t;if(!Array.isArray(n.options))throw new o("Picker options must be an array",{component:"Picker",suggestion:"Provide an array of options",example:{wrong:'Picker({ options: "Option 1" })',correct:'Picker({ options: ["Option 1", "Option 2"] })'}})},validateStack(e,t){if(!i()||!r.packages.core)return;if(t.length===0)throw new o(`${e} component requires a props object with children array`,{component:e,suggestion:`Add children: ${e}({ children: [Text("Hello")] })`,documentation:"https://docs.tachui.dev/components/layout",example:{wrong:`${e}()`,correct:`${e}({ children: [Text("Hello")] })`}});const[n]=t;if(!n||typeof n!="object")throw new o(`${e} requires a props object`,{component:e,suggestion:"Pass a props object with children array",example:{wrong:`${e}("invalid")`,correct:`${e}({ children: [Text("Hello")] })`}});const s=n;if(!Array.isArray(s.children))throw new o(`${e} children must be an array`,{component:e,suggestion:"Provide an array of components",example:{wrong:`${e}({ children: Text("Hello") })`,correct:`${e}({ children: [Text("Hello")] })`}})},validateList(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("List component requires a props object with data array",{component:"List",suggestion:"Add data: List({ data: items, renderItem: (item) => Text(item) })",documentation:"https://docs.tachui.dev/components/list",example:{wrong:"List()",correct:"List({ data: items, renderItem: (item) => Text(item) })"}});const[t]=e;if(!t||typeof t!="object")throw new o("List requires a props object",{component:"List",suggestion:"Pass a props object with data and renderItem",example:{wrong:"List(items)",correct:"List({ data: items, renderItem: (item) => Text(item) })"}});const n=t;if(!Array.isArray(n.data)&&!h.isSignal(n.data))throw new o("List data must be an array or Signal",{component:"List",suggestion:"Provide an array of items or reactive Signal",example:{wrong:'List({ data: "invalid", renderItem: fn })',correct:"List({ data: [1, 2, 3], renderItem: fn })"}});if(typeof n.renderItem!="function")throw new o("List renderItem must be a function",{component:"List",suggestion:"Provide a function that renders each item",example:{wrong:'List({ data: items, renderItem: "invalid" })',correct:"List({ data: items, renderItem: (item) => Text(item) })"}})},validateScrollView(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("ScrollView component requires a props object with children",{component:"ScrollView",suggestion:"Add children: ScrollView({ children: [content] })",documentation:"https://docs.tachui.dev/components/scrollview",example:{wrong:"ScrollView()",correct:"ScrollView({ children: [VStack({ children: items })] })"}});const[t]=e;if(!t||typeof t!="object")throw new o("ScrollView requires a props object",{component:"ScrollView",suggestion:"Pass a props object with children",example:{wrong:"ScrollView(content)",correct:"ScrollView({ children: [content] })"}})},validateAlert(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("Alert component requires a props object with title",{component:"Alert",suggestion:'Add title: Alert({ title: "Warning", message: "Are you sure?" })',documentation:"https://docs.tachui.dev/components/alert",example:{wrong:"Alert()",correct:'Alert({ title: "Warning", message: "Continue?" })'}});const[t]=e;if(!t||typeof t!="object")throw new o("Alert requires a props object",{component:"Alert",suggestion:"Pass a props object with title and message",example:{wrong:'Alert("Warning")',correct:'Alert({ title: "Warning", message: "Continue?" })'}});if(!t.title)throw new o("Alert title property is required",{component:"Alert",suggestion:"Provide a title for the alert",example:{wrong:'Alert({ message: "Continue?" })',correct:'Alert({ title: "Warning", message: "Continue?" })'}})},validateMenu(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("Menu component requires a props object with items",{component:"Menu",suggestion:'Add items: Menu({ items: [{ title: "Item 1", action: () => {} }] })',documentation:"https://docs.tachui.dev/components/menu",example:{wrong:"Menu()",correct:'Menu({ items: [{ title: "Edit", action: editAction }] })'}});const[t]=e;if(!t||typeof t!="object")throw new o("Menu requires a props object",{component:"Menu",suggestion:"Pass a props object with items array",example:{wrong:"Menu(items)",correct:"Menu({ items: menuItems })"}});const n=t;if(!Array.isArray(n.items))throw new o("Menu items must be an array",{component:"Menu",suggestion:"Provide an array of menu items",example:{wrong:'Menu({ items: "invalid" })',correct:'Menu({ items: [{ title: "Edit", action: editAction }] })'}})},validateDatePicker(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("DatePicker component requires a props object with value",{component:"DatePicker",suggestion:"Add value: DatePicker({ value: dateSignal })",documentation:"https://docs.tachui.dev/components/datepicker",example:{wrong:"DatePicker()",correct:'DatePicker({ value: dateSignal, displayStyle: "compact" })'}});const[t]=e;if(!t||typeof t!="object")throw new o("DatePicker requires a props object",{component:"DatePicker",suggestion:"Pass a props object with value property",example:{wrong:"DatePicker(new Date())",correct:"DatePicker({ value: dateSignal })"}});if(t.value===void 0)throw new o("DatePicker value property is required",{component:"DatePicker",suggestion:"Provide a Date value or Signal for value",example:{wrong:'DatePicker({ displayStyle: "compact" })',correct:'DatePicker({ value: dateSignal, displayStyle: "compact" })'}})},validateActionSheet(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("ActionSheet component requires a props object with buttons",{component:"ActionSheet",suggestion:'Add buttons: ActionSheet({ buttons: [{ title: "Action", action: () => {} }] })',documentation:"https://docs.tachui.dev/components/actionsheet",example:{wrong:"ActionSheet()",correct:'ActionSheet({ buttons: [{ title: "Delete", role: "destructive", action: deleteAction }] })'}});const[t]=e;if(!t||typeof t!="object")throw new o("ActionSheet requires a props object",{component:"ActionSheet",suggestion:"Pass a props object with buttons array",example:{wrong:"ActionSheet(buttons)",correct:"ActionSheet({ buttons: buttonsArray })"}});const n=t;if(!Array.isArray(n.buttons))throw new o("ActionSheet buttons must be an array",{component:"ActionSheet",suggestion:"Provide an array of button objects",example:{wrong:'ActionSheet({ buttons: { title: "Action" } })',correct:'ActionSheet({ buttons: [{ title: "Action", action: actionHandler }] })'}})},validateDivider(e){if(!(!i()||!r.packages.core)&&e.length>0){const[t]=e;if(t!==null&&typeof t!="object")throw new o("Divider props must be an object if provided",{component:"Divider",suggestion:"Pass an object or no arguments",example:{wrong:'Divider("invalid")',correct:"Divider() or Divider({ thickness: 2 })"}})}},validateSpacer(e){if(!(!i()||!r.packages.core)&&e.length>0){const[t]=e;if(t!=null&&typeof t!="object")throw new o("Spacer props must be an object if provided",{component:"Spacer",suggestion:"Pass an object with minLength property or no arguments",example:{wrong:"Spacer(20)",correct:"Spacer() or Spacer({ minLength: 20 })"}})}},validateSection(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("Section component requires a props object with children",{component:"Section",suggestion:"Add children: Section({ children: [content] })",documentation:"https://docs.tachui.dev/components/section",example:{wrong:"Section()",correct:'Section({ children: [Text("Section content")] })'}});const[t]=e;if(!t||typeof t!="object")throw new o("Section requires a props object",{component:"Section",suggestion:"Pass a props object with children",example:{wrong:"Section(content)",correct:"Section({ children: [content] })"}})},validateShow(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("Show component requires a props object with when condition",{component:"Show",suggestion:"Add when condition: Show({ when: condition, children: [content] })",documentation:"https://docs.tachui.dev/components/show",example:{wrong:"Show()",correct:'Show({ when: isVisible, children: [Text("Visible")] })'}});const[t]=e;if(!t||typeof t!="object")throw new o("Show requires a props object",{component:"Show",suggestion:"Pass a props object with when condition",example:{wrong:"Show(condition)",correct:"Show({ when: condition, children: [content] })"}});if(t.when===void 0)throw new o("Show when property is required",{component:"Show",suggestion:"Provide a boolean condition for when",example:{wrong:"Show({ children: [content] })",correct:"Show({ when: isVisible, children: [content] })"}})},validateLink(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("Link component requires a props object with href",{component:"Link",suggestion:'Add href: Link({ href: "/path", children: [Text("Click here")] })',documentation:"https://docs.tachui.dev/components/link",example:{wrong:"Link()",correct:'Link({ href: "/about", children: [Text("About")] })'}});const[t]=e;if(!t||typeof t!="object")throw new o("Link requires a props object",{component:"Link",suggestion:"Pass a props object with href property",example:{wrong:'Link("/path")',correct:'Link({ href: "/path", children: [Text("Link")] })'}});if(!t.href)throw new o("Link href property is required",{component:"Link",suggestion:"Provide a valid URL or path for href",example:{wrong:'Link({ children: [Text("Link")] })',correct:'Link({ href: "/about", children: [Text("About")] })'}})},validateStepper(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("Stepper component requires a props object with value",{component:"Stepper",suggestion:"Add value: Stepper({ value: numberSignal })",documentation:"https://docs.tachui.dev/components/stepper",example:{wrong:"Stepper()",correct:"Stepper({ value: numberSignal, step: 1 })"}});const[t]=e;if(!t||typeof t!="object")throw new o("Stepper requires a props object",{component:"Stepper",suggestion:"Pass a props object with value property",example:{wrong:"Stepper(5)",correct:"Stepper({ value: 5, step: 1 })"}});if(t.value===void 0)throw new o("Stepper value property is required",{component:"Stepper",suggestion:"Provide a numeric value or Signal for value",example:{wrong:"Stepper({ step: 1 })",correct:"Stepper({ value: numberSignal, step: 1 })"}})},validateBasicInput(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("BasicInput component requires a props object with value",{component:"BasicInput",suggestion:"Add value: BasicInput({ value: textSignal })",documentation:"https://docs.tachui.dev/components/basicinput",example:{wrong:"BasicInput()",correct:'BasicInput({ value: textSignal, placeholder: "Enter text" })'}});const[t]=e;if(!t||typeof t!="object")throw new o("BasicInput requires a props object",{component:"BasicInput",suggestion:"Pass a props object with value property",example:{wrong:'BasicInput("text")',correct:"BasicInput({ value: textSignal })"}});if(t.value===void 0)throw new o("BasicInput value property is required",{component:"BasicInput",suggestion:"Provide a value for the input field",example:{wrong:'BasicInput({ placeholder: "Enter text" })',correct:'BasicInput({ value: textSignal, placeholder: "Enter text" })'}})},validateBasicForm(e){if(!i()||!r.packages.core)return;if(e.length===0)throw new o("BasicForm component requires children array",{component:"BasicForm",suggestion:"Add children: BasicForm([formFields])",documentation:"https://docs.tachui.dev/components/basicform",example:{wrong:"BasicForm()",correct:'BasicForm([BasicInput({}), Button("Submit")])'}});const[t,n]=e;if(!Array.isArray(t))throw new o("BasicForm requires children array as first parameter",{component:"BasicForm",suggestion:"Pass an array of form components as first parameter",example:{wrong:"BasicForm(BasicInput({}))",correct:"BasicForm([BasicInput({})])"}});if(n&&typeof n!="object")throw new o("BasicForm props must be an object",{component:"BasicForm",suggestion:"Pass props as second parameter object",example:{wrong:'BasicForm([], "invalid")',correct:"BasicForm([], { onSubmit: handleSubmit })"}})},validatePropsObject(e,t,n){if(t.length===0)throw new o(`${e} component requires a props object`,{component:e,suggestion:`Add props: ${e}({ /* props */ })`,documentation:n,example:{wrong:`${e}()`,correct:`${e}({ /* appropriate props */ })`}});const[s]=t;if(s!=null&&typeof s!="object")throw new o(`${e} requires a props object`,{component:e,suggestion:"Pass a props object",example:{wrong:`${e}("invalid")`,correct:`${e}({ /* props */ })`}})}},b={validatePluginComponent(e,t,n){if(!i()||!r.packages.plugins)return;const{getComponentValidator:s}=require("./plugin-registration"),c=s(e,t);if(c)try{c.validate(n)}catch(a){throw a instanceof o&&(a.context.package||(a.context.package=e)),a}else if(r.strictMode)throw new o(`No validator registered for ${t}`,{component:t,package:e,suggestion:"Ensure the plugin has registered its validator",documentation:"https://docs.tachui.dev/plugins/validation"})}},f={validateModifier(e,t,n,s=[]){if(!i()||e!=="core"&&!r.packages[e])return;const a={textShadow:{suggestion:"Use shadow() instead",example:'.shadow({ x: 2, y: 2, radius: 4, color: "rgba(0,0,0,0.25)" })'},id:{suggestion:'Use setAttribute("id", value) instead',example:'.setAttribute("id", "my-element")'},className:{suggestion:'Use css() or setAttribute("class", value) instead',example:'.css({ className: "my-class" })'},style:{suggestion:"Use css() for custom styles instead",example:'.css({ backgroundColor: "red" })'}}[n];if(a){const l=new o(`Modifier ${n} does not exist`,{component:t,package:e,suggestion:a.suggestion,example:a.example?{wrong:`.${n}()`,correct:a.example}:void 0});if(r.errorLevel==="error")throw l;console.warn(l.getFormattedMessage());return}if(new Set(["clipped","resizable"]).has(n)&&s.length>0){const l=new o(`${n}() takes no parameters`,{component:t,package:e,suggestion:`Use ${n}() without arguments`,example:{wrong:`.${n}(someValue)`,correct:`.${n}()`}});if(r.errorLevel==="error")throw l;console.warn(l.getFormattedMessage())}const u=new Set(["font","fontSize","fontWeight","textAlign","lineHeight","letterSpacing"]),g=new Set(["disabled","onTap","cursor"]);if(u.has(n)&&!["Text","Button"].includes(t)){const l=`${n} modifier is only valid for Text/Button components`;if(r.errorLevel==="error")throw new o(l,{component:t,package:e,suggestion:`Use ${n} modifier on Text or Button components only`});r.errorLevel==="warn"&&console.warn(`⚠️ [${e}] ${l}`)}if(g.has(n)&&!["Button","Toggle","Slider"].includes(t)){const l=`${n} modifier is only valid for interactive components`;r.errorLevel==="warn"&&console.warn(`⚠️ [${e}] ${l}`)}const{getComponentValidator:v}=require("./plugin-registration"),m=v(e,t);m&&m.validateModifier&&m.validateModifier(n,s)}},S={enable(e=!0){d({enabled:e})},enableStrictMode(){d({strictMode:!0}),console.info("🚨 TachUI Strict validation mode enabled")},setErrorLevel(e){d({errorLevel:e})},configurePackages(e){d({packages:{...r.packages,...e}})},test(){if(!i()){console.info("ℹ️ Validation is disabled in production mode");return}console.group("🔍 TachUI Comprehensive Validation System Test");try{console.info("✅ Core component validation: enabled"),console.info("✅ Plugin component validation: enabled"),console.info("✅ Modifier validation: enabled");const{getValidationStats:e}=require("./plugin-registration"),t=e();console.info(`✅ Registered plugin validators: ${t.totalValidators}`),console.info("✅ Comprehensive validation system is working correctly")}catch(e){console.error("❌ Validation test failed:",e)}console.groupEnd()},getStats(){const{getValidationStats:e}=require("./plugin-registration"),t=e();return{enabled:i(),config:r,coreComponents:Object.keys(w).filter(n=>n.startsWith("validate")).length,pluginValidators:t.totalValidators,packages:{core:r.packages.core,forms:r.packages.forms,navigation:r.packages.navigation,symbols:r.packages.symbols,plugins:r.packages.plugins},pluginStats:t.packages}}};function x(e,t,n,s="core"){return function(...a){t(a);const p=e.apply(this,a);return"modifier"in p&&typeof p.modifier=="object"?j(p,n,s):p}}function j(e,t,n){return i()?new Proxy(e,{get(s,c){const a=s[c];return c==="modifier"?k(a,t,n):a}}):e}function k(e,t,n){return e&&new Proxy(e,{get(s,c){const a=String(c),p=s[c];return a==="build"||a==="addModifier"||a==="responsive"?p:typeof p=="function"?function(...g){return f.validateModifier(n,t,a,g),p.apply(s,g)}:p}})}exports.CoreComponentValidation=w;exports.ModifierValidation=f;exports.PluginComponentValidation=b;exports.TachUIValidationError=o;exports.ValidationUtils=S;exports.configureValidation=d;exports.createValidatedComponent=x;exports.isValidationEnabled=i;
9
- //# sourceMappingURL=comprehensive.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"comprehensive.cjs","sources":["../../src/validation/comprehensive.ts"],"sourcesContent":["/**\n * Comprehensive Validation System\n *\n * Complete validation coverage for all TachUI components across\n * Core, Forms, Navigation, and Symbols packages with plugin support.\n */\n\nimport type { ComponentInstance } from '../runtime/types'\nimport { isSignal } from '../reactive'\n\n/**\n * Enhanced validation error class\n */\nexport class TachUIValidationError extends Error {\n constructor(\n message: string,\n public context: {\n component: string\n property?: string\n suggestion?: string\n documentation?: string\n example?: {\n wrong: string\n correct: string\n }\n package?: string\n }\n ) {\n super(message)\n this.name = 'TachUIValidationError'\n }\n\n getFormattedMessage(): string {\n const { component, suggestion, example, documentation, package: pkg } = this.context\n const packageName = pkg ? `[@tachui/${pkg}]` : '[Core]'\n\n let formatted = `❌ ${packageName} ${component} Component Error: ${this.message}\\n`\n\n if (suggestion) {\n formatted += `\\n💡 Suggestion: ${suggestion}\\n`\n }\n\n if (example) {\n formatted += `\\n❌ Wrong: ${example.wrong}`\n formatted += `\\n✅ Correct: ${example.correct}\\n`\n }\n\n if (documentation) {\n formatted += `\\n📚 Documentation: ${documentation}`\n }\n\n return formatted\n }\n}\n\n/**\n * Validation configuration\n */\nexport interface ValidationConfig {\n enabled: boolean\n strictMode: boolean\n errorLevel: 'error' | 'warn' | 'info'\n excludeFiles: string[]\n packages: {\n core: boolean\n forms: boolean\n navigation: boolean\n symbols: boolean\n plugins: boolean\n }\n}\n\n/**\n * Global validation configuration\n */\nlet validationConfig: ValidationConfig = {\n enabled: process.env.NODE_ENV !== 'production',\n strictMode: false,\n errorLevel: 'error',\n excludeFiles: [],\n packages: {\n core: true,\n forms: true,\n navigation: true,\n symbols: true,\n plugins: true\n }\n}\n\n/**\n * Component validator interface\n */\nexport interface ComponentValidator {\n packageName: string\n componentName: string\n validate: (args: unknown[]) => void\n validateModifier?: (modifierName: string, args: unknown[]) => void\n}\n\n/**\n * Configure validation settings\n */\nexport function configureValidation(config: Partial<ValidationConfig>): void {\n validationConfig = { ...validationConfig, ...config }\n}\n\n/**\n * Check if validation is enabled\n */\nexport function isValidationEnabled(): boolean {\n return validationConfig.enabled && process.env.NODE_ENV !== 'production'\n}\n\n/**\n * Core Components Validation\n */\nexport const CoreComponentValidation = {\n \n // Text Component\n validateText(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('Text component requires a content parameter', {\n component: 'Text',\n suggestion: 'Add a content parameter: Text(\"Hello World\")',\n documentation: 'https://docs.tachui.dev/components/text',\n example: {\n wrong: 'Text()',\n correct: 'Text(\"Hello World\")'\n }\n })\n }\n\n const [content] = args\n if (content === undefined || content === null) {\n throw new TachUIValidationError('Text content cannot be undefined or null', {\n component: 'Text',\n suggestion: 'Provide a valid string, function, or Signal',\n example: {\n wrong: 'Text(null)',\n correct: 'Text(\"Hello World\")'\n }\n })\n }\n\n const contentType = typeof content\n const isValidContent = contentType === 'string' || \n contentType === 'function' || \n isSignal(content)\n\n if (!isValidContent) {\n throw new TachUIValidationError(`Text content must be a string, function, or Signal. Received: ${contentType}`, {\n component: 'Text',\n suggestion: 'Use a string literal, function, or reactive signal',\n example: {\n wrong: 'Text(123)',\n correct: 'Text(\"Hello World\")'\n }\n })\n }\n },\n\n // Button Component\n validateButton(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('Button component requires a title parameter', {\n component: 'Button',\n suggestion: 'Add a title parameter: Button(\"Click me\", () => {})',\n documentation: 'https://docs.tachui.dev/components/button',\n example: {\n wrong: 'Button()',\n correct: 'Button(\"Click me\", () => {})'\n }\n })\n }\n\n const [title, action] = args\n if (title === undefined || title === null) {\n throw new TachUIValidationError('Button title cannot be undefined or null', {\n component: 'Button',\n suggestion: 'Provide a valid string, function, or Signal',\n example: {\n wrong: 'Button(null)',\n correct: 'Button(\"Click me\")'\n }\n })\n }\n\n const titleType = typeof title\n const isValidTitle = titleType === 'string' || \n titleType === 'function' || \n isSignal(title)\n\n if (!isValidTitle) {\n throw new TachUIValidationError(`Button title must be a string, function, or Signal. Received: ${titleType}`, {\n component: 'Button',\n suggestion: 'Use a string literal, function, or reactive signal',\n example: {\n wrong: 'Button(123)',\n correct: 'Button(\"Click me\")'\n }\n })\n }\n\n if (action === undefined && args.length === 1 && validationConfig.errorLevel !== 'error') {\n console.warn('⚠️ Button without action may not be interactive. Consider adding an action parameter.')\n }\n },\n\n // Image Component\n validateImage(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('Image component requires a source parameter', {\n component: 'Image',\n suggestion: 'Add a source parameter: Image({ source: \"image.jpg\" })',\n documentation: 'https://docs.tachui.dev/components/image',\n example: {\n wrong: 'Image()',\n correct: 'Image({ source: \"image.jpg\" })'\n }\n })\n }\n\n const [props] = args\n if (!props || typeof props !== 'object') {\n throw new TachUIValidationError('Image requires a props object', {\n component: 'Image',\n suggestion: 'Pass a props object with source property',\n example: {\n wrong: 'Image(\"image.jpg\")',\n correct: 'Image({ source: \"image.jpg\" })'\n }\n })\n }\n\n const propsObj = props as any\n if (!propsObj.source) {\n throw new TachUIValidationError('Image source property is required', {\n component: 'Image',\n suggestion: 'Provide a valid image source URL or path',\n example: {\n wrong: 'Image({ alt: \"description\" })',\n correct: 'Image({ source: \"image.jpg\", alt: \"description\" })'\n }\n })\n }\n },\n\n // Toggle Component\n validateToggle(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('Toggle component requires an isOn parameter', {\n component: 'Toggle',\n suggestion: 'Add an isOn parameter: Toggle({ isOn: signal })',\n documentation: 'https://docs.tachui.dev/components/toggle',\n example: {\n wrong: 'Toggle()',\n correct: 'Toggle({ isOn: isEnabled })'\n }\n })\n }\n\n const [props] = args\n if (!props || typeof props !== 'object') {\n throw new TachUIValidationError('Toggle requires a props object', {\n component: 'Toggle',\n suggestion: 'Pass a props object with isOn property',\n example: {\n wrong: 'Toggle(true)',\n correct: 'Toggle({ isOn: true })'\n }\n })\n }\n\n const propsObj = props as any\n if (propsObj.isOn === undefined) {\n throw new TachUIValidationError('Toggle isOn property is required', {\n component: 'Toggle',\n suggestion: 'Provide a boolean value or Signal for isOn',\n example: {\n wrong: 'Toggle({ onToggle: handler })',\n correct: 'Toggle({ isOn: true, onToggle: handler })'\n }\n })\n }\n },\n\n // Slider Component\n validateSlider(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('Slider component requires a value parameter', {\n component: 'Slider',\n suggestion: 'Add a value parameter: Slider({ value: signal })',\n documentation: 'https://docs.tachui.dev/components/slider',\n example: {\n wrong: 'Slider()',\n correct: 'Slider({ value: sliderValue })'\n }\n })\n }\n\n const [props] = args\n if (!props || typeof props !== 'object') {\n throw new TachUIValidationError('Slider requires a props object', {\n component: 'Slider',\n suggestion: 'Pass a props object with value property',\n example: {\n wrong: 'Slider(50)',\n correct: 'Slider({ value: 50 })'\n }\n })\n }\n\n const propsObj = props as any\n if (propsObj.value === undefined) {\n throw new TachUIValidationError('Slider value property is required', {\n component: 'Slider',\n suggestion: 'Provide a numeric value or Signal for value',\n example: {\n wrong: 'Slider({ min: 0, max: 100 })',\n correct: 'Slider({ value: 50, min: 0, max: 100 })'\n }\n })\n }\n },\n\n // Picker Component\n validatePicker(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('Picker component requires options parameter', {\n component: 'Picker',\n suggestion: 'Add options parameter: Picker({ options: [\"Option 1\", \"Option 2\"] })',\n documentation: 'https://docs.tachui.dev/components/picker',\n example: {\n wrong: 'Picker()',\n correct: 'Picker({ options: [\"Red\", \"Green\", \"Blue\"] })'\n }\n })\n }\n\n const [props] = args\n if (!props || typeof props !== 'object') {\n throw new TachUIValidationError('Picker requires a props object', {\n component: 'Picker',\n suggestion: 'Pass a props object with options array',\n example: {\n wrong: 'Picker([\"Option 1\", \"Option 2\"])',\n correct: 'Picker({ options: [\"Option 1\", \"Option 2\"] })'\n }\n })\n }\n\n const propsObj = props as any\n if (!Array.isArray(propsObj.options)) {\n throw new TachUIValidationError('Picker options must be an array', {\n component: 'Picker',\n suggestion: 'Provide an array of options',\n example: {\n wrong: 'Picker({ options: \"Option 1\" })',\n correct: 'Picker({ options: [\"Option 1\", \"Option 2\"] })'\n }\n })\n }\n },\n\n // Layout Components (VStack, HStack, ZStack)\n validateStack(componentType: string, args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError(`${componentType} component requires a props object with children array`, {\n component: componentType,\n suggestion: `Add children: ${componentType}({ children: [Text(\"Hello\")] })`,\n documentation: 'https://docs.tachui.dev/components/layout',\n example: {\n wrong: `${componentType}()`,\n correct: `${componentType}({ children: [Text(\"Hello\")] })`\n }\n })\n }\n\n const [props] = args\n if (!props || typeof props !== 'object') {\n throw new TachUIValidationError(`${componentType} requires a props object`, {\n component: componentType,\n suggestion: 'Pass a props object with children array',\n example: {\n wrong: `${componentType}(\"invalid\")`,\n correct: `${componentType}({ children: [Text(\"Hello\")] })`\n }\n })\n }\n\n const propsObj = props as any\n if (!Array.isArray(propsObj.children)) {\n throw new TachUIValidationError(`${componentType} children must be an array`, {\n component: componentType,\n suggestion: 'Provide an array of components',\n example: {\n wrong: `${componentType}({ children: Text(\"Hello\") })`,\n correct: `${componentType}({ children: [Text(\"Hello\")] })`\n }\n })\n }\n },\n\n // List Component\n validateList(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('List component requires a props object with data array', {\n component: 'List',\n suggestion: 'Add data: List({ data: items, renderItem: (item) => Text(item) })',\n documentation: 'https://docs.tachui.dev/components/list',\n example: {\n wrong: 'List()',\n correct: 'List({ data: items, renderItem: (item) => Text(item) })'\n }\n })\n }\n\n const [props] = args\n if (!props || typeof props !== 'object') {\n throw new TachUIValidationError('List requires a props object', {\n component: 'List',\n suggestion: 'Pass a props object with data and renderItem',\n example: {\n wrong: 'List(items)',\n correct: 'List({ data: items, renderItem: (item) => Text(item) })'\n }\n })\n }\n\n const propsObj = props as any\n if (!Array.isArray(propsObj.data) && !isSignal(propsObj.data)) {\n throw new TachUIValidationError('List data must be an array or Signal', {\n component: 'List',\n suggestion: 'Provide an array of items or reactive Signal',\n example: {\n wrong: 'List({ data: \"invalid\", renderItem: fn })',\n correct: 'List({ data: [1, 2, 3], renderItem: fn })'\n }\n })\n }\n\n if (typeof propsObj.renderItem !== 'function') {\n throw new TachUIValidationError('List renderItem must be a function', {\n component: 'List',\n suggestion: 'Provide a function that renders each item',\n example: {\n wrong: 'List({ data: items, renderItem: \"invalid\" })',\n correct: 'List({ data: items, renderItem: (item) => Text(item) })'\n }\n })\n }\n },\n\n // ScrollView Component\n validateScrollView(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('ScrollView component requires a props object with children', {\n component: 'ScrollView',\n suggestion: 'Add children: ScrollView({ children: [content] })',\n documentation: 'https://docs.tachui.dev/components/scrollview',\n example: {\n wrong: 'ScrollView()',\n correct: 'ScrollView({ children: [VStack({ children: items })] })'\n }\n })\n }\n\n const [props] = args\n if (!props || typeof props !== 'object') {\n throw new TachUIValidationError('ScrollView requires a props object', {\n component: 'ScrollView',\n suggestion: 'Pass a props object with children',\n example: {\n wrong: 'ScrollView(content)',\n correct: 'ScrollView({ children: [content] })'\n }\n })\n }\n },\n\n // Alert Component\n validateAlert(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('Alert component requires a props object with title', {\n component: 'Alert',\n suggestion: 'Add title: Alert({ title: \"Warning\", message: \"Are you sure?\" })',\n documentation: 'https://docs.tachui.dev/components/alert',\n example: {\n wrong: 'Alert()',\n correct: 'Alert({ title: \"Warning\", message: \"Continue?\" })'\n }\n })\n }\n\n const [props] = args\n if (!props || typeof props !== 'object') {\n throw new TachUIValidationError('Alert requires a props object', {\n component: 'Alert',\n suggestion: 'Pass a props object with title and message',\n example: {\n wrong: 'Alert(\"Warning\")',\n correct: 'Alert({ title: \"Warning\", message: \"Continue?\" })'\n }\n })\n }\n\n const propsObj = props as any\n if (!propsObj.title) {\n throw new TachUIValidationError('Alert title property is required', {\n component: 'Alert',\n suggestion: 'Provide a title for the alert',\n example: {\n wrong: 'Alert({ message: \"Continue?\" })',\n correct: 'Alert({ title: \"Warning\", message: \"Continue?\" })'\n }\n })\n }\n },\n\n // Menu Component\n validateMenu(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('Menu component requires a props object with items', {\n component: 'Menu',\n suggestion: 'Add items: Menu({ items: [{ title: \"Item 1\", action: () => {} }] })',\n documentation: 'https://docs.tachui.dev/components/menu',\n example: {\n wrong: 'Menu()',\n correct: 'Menu({ items: [{ title: \"Edit\", action: editAction }] })'\n }\n })\n }\n\n const [props] = args\n if (!props || typeof props !== 'object') {\n throw new TachUIValidationError('Menu requires a props object', {\n component: 'Menu',\n suggestion: 'Pass a props object with items array',\n example: {\n wrong: 'Menu(items)',\n correct: 'Menu({ items: menuItems })'\n }\n })\n }\n\n const propsObj = props as any\n if (!Array.isArray(propsObj.items)) {\n throw new TachUIValidationError('Menu items must be an array', {\n component: 'Menu',\n suggestion: 'Provide an array of menu items',\n example: {\n wrong: 'Menu({ items: \"invalid\" })',\n correct: 'Menu({ items: [{ title: \"Edit\", action: editAction }] })'\n }\n })\n }\n },\n\n // DatePicker Component\n validateDatePicker(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('DatePicker component requires a props object with value', {\n component: 'DatePicker',\n suggestion: 'Add value: DatePicker({ value: dateSignal })',\n documentation: 'https://docs.tachui.dev/components/datepicker',\n example: {\n wrong: 'DatePicker()',\n correct: 'DatePicker({ value: dateSignal, displayStyle: \"compact\" })'\n }\n })\n }\n\n const [props] = args\n if (!props || typeof props !== 'object') {\n throw new TachUIValidationError('DatePicker requires a props object', {\n component: 'DatePicker',\n suggestion: 'Pass a props object with value property',\n example: {\n wrong: 'DatePicker(new Date())',\n correct: 'DatePicker({ value: dateSignal })'\n }\n })\n }\n\n const propsObj = props as any\n if (propsObj.value === undefined) {\n throw new TachUIValidationError('DatePicker value property is required', {\n component: 'DatePicker',\n suggestion: 'Provide a Date value or Signal for value',\n example: {\n wrong: 'DatePicker({ displayStyle: \"compact\" })',\n correct: 'DatePicker({ value: dateSignal, displayStyle: \"compact\" })'\n }\n })\n }\n },\n\n // ActionSheet Component\n validateActionSheet(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('ActionSheet component requires a props object with buttons', {\n component: 'ActionSheet',\n suggestion: 'Add buttons: ActionSheet({ buttons: [{ title: \"Action\", action: () => {} }] })',\n documentation: 'https://docs.tachui.dev/components/actionsheet',\n example: {\n wrong: 'ActionSheet()',\n correct: 'ActionSheet({ buttons: [{ title: \"Delete\", role: \"destructive\", action: deleteAction }] })'\n }\n })\n }\n\n const [props] = args\n if (!props || typeof props !== 'object') {\n throw new TachUIValidationError('ActionSheet requires a props object', {\n component: 'ActionSheet',\n suggestion: 'Pass a props object with buttons array',\n example: {\n wrong: 'ActionSheet(buttons)',\n correct: 'ActionSheet({ buttons: buttonsArray })'\n }\n })\n }\n\n const propsObj = props as any\n if (!Array.isArray(propsObj.buttons)) {\n throw new TachUIValidationError('ActionSheet buttons must be an array', {\n component: 'ActionSheet',\n suggestion: 'Provide an array of button objects',\n example: {\n wrong: 'ActionSheet({ buttons: { title: \"Action\" } })',\n correct: 'ActionSheet({ buttons: [{ title: \"Action\", action: actionHandler }] })'\n }\n })\n }\n },\n\n // Divider Component\n validateDivider(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n // Divider can be called without props\n if (args.length > 0) {\n const [props] = args\n if (props !== null && typeof props !== 'object') {\n throw new TachUIValidationError('Divider props must be an object if provided', {\n component: 'Divider',\n suggestion: 'Pass an object or no arguments',\n example: {\n wrong: 'Divider(\"invalid\")',\n correct: 'Divider() or Divider({ thickness: 2 })'\n }\n })\n }\n }\n },\n\n // Spacer Component\n validateSpacer(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n // Spacer can be called without props - it's designed to be flexible\n if (args.length > 0) {\n const [props] = args\n if (props !== null && props !== undefined && typeof props !== 'object') {\n throw new TachUIValidationError('Spacer props must be an object if provided', {\n component: 'Spacer',\n suggestion: 'Pass an object with minLength property or no arguments',\n example: {\n wrong: 'Spacer(20)',\n correct: 'Spacer() or Spacer({ minLength: 20 })'\n }\n })\n }\n }\n },\n\n // Section Component\n validateSection(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('Section component requires a props object with children', {\n component: 'Section',\n suggestion: 'Add children: Section({ children: [content] })',\n documentation: 'https://docs.tachui.dev/components/section',\n example: {\n wrong: 'Section()',\n correct: 'Section({ children: [Text(\"Section content\")] })'\n }\n })\n }\n\n const [props] = args\n if (!props || typeof props !== 'object') {\n throw new TachUIValidationError('Section requires a props object', {\n component: 'Section',\n suggestion: 'Pass a props object with children',\n example: {\n wrong: 'Section(content)',\n correct: 'Section({ children: [content] })'\n }\n })\n }\n },\n\n // Show Component (Conditional Rendering)\n validateShow(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('Show component requires a props object with when condition', {\n component: 'Show',\n suggestion: 'Add when condition: Show({ when: condition, children: [content] })',\n documentation: 'https://docs.tachui.dev/components/show',\n example: {\n wrong: 'Show()',\n correct: 'Show({ when: isVisible, children: [Text(\"Visible\")] })'\n }\n })\n }\n\n const [props] = args\n if (!props || typeof props !== 'object') {\n throw new TachUIValidationError('Show requires a props object', {\n component: 'Show',\n suggestion: 'Pass a props object with when condition',\n example: {\n wrong: 'Show(condition)',\n correct: 'Show({ when: condition, children: [content] })'\n }\n })\n }\n\n const propsObj = props as any\n if (propsObj.when === undefined) {\n throw new TachUIValidationError('Show when property is required', {\n component: 'Show',\n suggestion: 'Provide a boolean condition for when',\n example: {\n wrong: 'Show({ children: [content] })',\n correct: 'Show({ when: isVisible, children: [content] })'\n }\n })\n }\n },\n\n // Link Component\n validateLink(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('Link component requires a props object with href', {\n component: 'Link',\n suggestion: 'Add href: Link({ href: \"/path\", children: [Text(\"Click here\")] })',\n documentation: 'https://docs.tachui.dev/components/link',\n example: {\n wrong: 'Link()',\n correct: 'Link({ href: \"/about\", children: [Text(\"About\")] })'\n }\n })\n }\n\n const [props] = args\n if (!props || typeof props !== 'object') {\n throw new TachUIValidationError('Link requires a props object', {\n component: 'Link',\n suggestion: 'Pass a props object with href property',\n example: {\n wrong: 'Link(\"/path\")',\n correct: 'Link({ href: \"/path\", children: [Text(\"Link\")] })'\n }\n })\n }\n\n const propsObj = props as any\n if (!propsObj.href) {\n throw new TachUIValidationError('Link href property is required', {\n component: 'Link',\n suggestion: 'Provide a valid URL or path for href',\n example: {\n wrong: 'Link({ children: [Text(\"Link\")] })',\n correct: 'Link({ href: \"/about\", children: [Text(\"About\")] })'\n }\n })\n }\n },\n\n // Stepper Component\n validateStepper(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('Stepper component requires a props object with value', {\n component: 'Stepper',\n suggestion: 'Add value: Stepper({ value: numberSignal })',\n documentation: 'https://docs.tachui.dev/components/stepper',\n example: {\n wrong: 'Stepper()',\n correct: 'Stepper({ value: numberSignal, step: 1 })'\n }\n })\n }\n\n const [props] = args\n if (!props || typeof props !== 'object') {\n throw new TachUIValidationError('Stepper requires a props object', {\n component: 'Stepper',\n suggestion: 'Pass a props object with value property',\n example: {\n wrong: 'Stepper(5)',\n correct: 'Stepper({ value: 5, step: 1 })'\n }\n })\n }\n\n const propsObj = props as any\n if (propsObj.value === undefined) {\n throw new TachUIValidationError('Stepper value property is required', {\n component: 'Stepper',\n suggestion: 'Provide a numeric value or Signal for value',\n example: {\n wrong: 'Stepper({ step: 1 })',\n correct: 'Stepper({ value: numberSignal, step: 1 })'\n }\n })\n }\n },\n\n // BasicInput Component\n validateBasicInput(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('BasicInput component requires a props object with value', {\n component: 'BasicInput',\n suggestion: 'Add value: BasicInput({ value: textSignal })',\n documentation: 'https://docs.tachui.dev/components/basicinput',\n example: {\n wrong: 'BasicInput()',\n correct: 'BasicInput({ value: textSignal, placeholder: \"Enter text\" })'\n }\n })\n }\n\n const [props] = args\n if (!props || typeof props !== 'object') {\n throw new TachUIValidationError('BasicInput requires a props object', {\n component: 'BasicInput',\n suggestion: 'Pass a props object with value property',\n example: {\n wrong: 'BasicInput(\"text\")',\n correct: 'BasicInput({ value: textSignal })'\n }\n })\n }\n\n const propsObj = props as any\n if (propsObj.value === undefined) {\n throw new TachUIValidationError('BasicInput value property is required', {\n component: 'BasicInput',\n suggestion: 'Provide a value for the input field',\n example: {\n wrong: 'BasicInput({ placeholder: \"Enter text\" })',\n correct: 'BasicInput({ value: textSignal, placeholder: \"Enter text\" })'\n }\n })\n }\n },\n\n // BasicForm Component (Core)\n validateBasicForm(args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.core) return\n \n if (args.length === 0) {\n throw new TachUIValidationError('BasicForm component requires children array', {\n component: 'BasicForm',\n suggestion: 'Add children: BasicForm([formFields])',\n documentation: 'https://docs.tachui.dev/components/basicform',\n example: {\n wrong: 'BasicForm()',\n correct: 'BasicForm([BasicInput({}), Button(\"Submit\")])'\n }\n })\n }\n\n const [children, props] = args\n if (!Array.isArray(children)) {\n throw new TachUIValidationError('BasicForm requires children array as first parameter', {\n component: 'BasicForm',\n suggestion: 'Pass an array of form components as first parameter',\n example: {\n wrong: 'BasicForm(BasicInput({}))',\n correct: 'BasicForm([BasicInput({})])'\n }\n })\n }\n\n if (props && typeof props !== 'object') {\n throw new TachUIValidationError('BasicForm props must be an object', {\n component: 'BasicForm',\n suggestion: 'Pass props as second parameter object',\n example: {\n wrong: 'BasicForm([], \"invalid\")',\n correct: 'BasicForm([], { onSubmit: handleSubmit })'\n }\n })\n }\n },\n\n // Helper method for props object validation\n validatePropsObject(componentName: string, args: unknown[], docUrl?: string): void {\n if (args.length === 0) {\n throw new TachUIValidationError(`${componentName} component requires a props object`, {\n component: componentName,\n suggestion: `Add props: ${componentName}({ /* props */ })`,\n documentation: docUrl,\n example: {\n wrong: `${componentName}()`,\n correct: `${componentName}({ /* appropriate props */ })`\n }\n })\n }\n\n const [props] = args\n if (props !== null && props !== undefined && typeof props !== 'object') {\n throw new TachUIValidationError(`${componentName} requires a props object`, {\n component: componentName,\n suggestion: 'Pass a props object',\n example: {\n wrong: `${componentName}(\"invalid\")`,\n correct: `${componentName}({ /* props */ })`\n }\n })\n }\n }\n}\n\n/**\n * Plugin Component Validation\n */\nexport const PluginComponentValidation = {\n /**\n * Validate plugin component\n */\n validatePluginComponent(packageName: string, componentName: string, args: unknown[]): void {\n if (!isValidationEnabled() || !validationConfig.packages.plugins) return\n\n // Import plugin registration dynamically to avoid circular dependency\n const { getComponentValidator } = require('./plugin-registration')\n const validator = getComponentValidator(packageName, componentName)\n \n if (validator) {\n try {\n validator.validate(args)\n } catch (error) {\n if (error instanceof TachUIValidationError) {\n // Add package context if not already present\n if (!error.context.package) {\n error.context.package = packageName\n }\n }\n throw error\n }\n } else if (validationConfig.strictMode) {\n throw new TachUIValidationError(`No validator registered for ${componentName}`, {\n component: componentName,\n package: packageName,\n suggestion: 'Ensure the plugin has registered its validator',\n documentation: 'https://docs.tachui.dev/plugins/validation'\n })\n }\n }\n}\n\n/**\n * Enhanced modifier validation functions\n */\nexport const ModifierValidation = {\n /**\n * Validate modifier usage with package awareness\n */\n validateModifier(packageName: string, componentType: string, modifierName: string, args: unknown[] = []): void {\n if (!isValidationEnabled()) return\n\n // Check package-specific validation\n if (packageName !== 'core' && !validationConfig.packages[packageName as keyof typeof validationConfig.packages]) {\n return\n }\n\n // Check for non-existent modifiers\n const nonExistentModifiers: Record<string, { suggestion: string; example?: string }> = {\n textShadow: {\n suggestion: 'Use shadow() instead',\n example: '.shadow({ x: 2, y: 2, radius: 4, color: \"rgba(0,0,0,0.25)\" })'\n },\n id: {\n suggestion: 'Use setAttribute(\"id\", value) instead',\n example: '.setAttribute(\"id\", \"my-element\")'\n },\n className: {\n suggestion: 'Use css() or setAttribute(\"class\", value) instead',\n example: '.css({ className: \"my-class\" })'\n },\n style: {\n suggestion: 'Use css() for custom styles instead',\n example: '.css({ backgroundColor: \"red\" })'\n }\n }\n\n const nonExistent = nonExistentModifiers[modifierName]\n if (nonExistent) {\n const error = new TachUIValidationError(`Modifier ${modifierName} does not exist`, {\n component: componentType,\n package: packageName,\n suggestion: nonExistent.suggestion,\n example: nonExistent.example ? {\n wrong: `.${modifierName}()`,\n correct: nonExistent.example\n } : undefined\n })\n\n if (validationConfig.errorLevel === 'error') {\n throw error\n } else {\n console.warn(error.getFormattedMessage())\n }\n return\n }\n\n // Check parameter counts\n const noParamModifiers = new Set(['clipped', 'resizable'])\n if (noParamModifiers.has(modifierName) && args.length > 0) {\n const error = new TachUIValidationError(`${modifierName}() takes no parameters`, {\n component: componentType,\n package: packageName,\n suggestion: `Use ${modifierName}() without arguments`,\n example: {\n wrong: `.${modifierName}(someValue)`,\n correct: `.${modifierName}()`\n }\n })\n\n if (validationConfig.errorLevel === 'error') {\n throw error\n } else {\n console.warn(error.getFormattedMessage())\n }\n }\n\n // Component-specific modifier validation\n const textOnlyModifiers = new Set(['font', 'fontSize', 'fontWeight', 'textAlign', 'lineHeight', 'letterSpacing'])\n const interactiveOnlyModifiers = new Set(['disabled', 'onTap', 'cursor'])\n\n if (textOnlyModifiers.has(modifierName) && !['Text', 'Button'].includes(componentType)) {\n const message = `${modifierName} modifier is only valid for Text/Button components`\n\n if (validationConfig.errorLevel === 'error') {\n throw new TachUIValidationError(message, {\n component: componentType,\n package: packageName,\n suggestion: `Use ${modifierName} modifier on Text or Button components only`\n })\n } else if (validationConfig.errorLevel === 'warn') {\n console.warn(`⚠️ [${packageName}] ${message}`)\n }\n }\n\n if (interactiveOnlyModifiers.has(modifierName) && !['Button', 'Toggle', 'Slider'].includes(componentType)) {\n const message = `${modifierName} modifier is only valid for interactive components`\n\n if (validationConfig.errorLevel === 'warn') {\n console.warn(`⚠️ [${packageName}] ${message}`)\n }\n }\n\n // Check with plugin validator\n const { getComponentValidator } = require('./plugin-registration')\n const validator = getComponentValidator(packageName, componentType)\n if (validator && validator.validateModifier) {\n validator.validateModifier(modifierName, args)\n }\n }\n}\n\n/**\n * Validation utilities\n */\nexport const ValidationUtils = {\n /**\n * Enable validation\n */\n enable(enabled: boolean = true): void {\n configureValidation({ enabled })\n },\n\n /**\n * Enable strict mode\n */\n enableStrictMode(): void {\n configureValidation({ strictMode: true })\n console.info('🚨 TachUI Strict validation mode enabled')\n },\n\n /**\n * Set error level\n */\n setErrorLevel(level: 'error' | 'warn' | 'info'): void {\n configureValidation({ errorLevel: level })\n },\n\n /**\n * Configure package validation\n */\n configurePackages(packages: Partial<ValidationConfig['packages']>): void {\n configureValidation({ \n packages: { ...validationConfig.packages, ...packages }\n })\n },\n\n /**\n * Test validation system\n */\n test(): void {\n if (!isValidationEnabled()) {\n console.info('ℹ️ Validation is disabled in production mode')\n return\n }\n\n console.group('🔍 TachUI Comprehensive Validation System Test')\n\n try {\n console.info('✅ Core component validation: enabled')\n console.info('✅ Plugin component validation: enabled')\n console.info('✅ Modifier validation: enabled')\n const { getValidationStats } = require('./plugin-registration')\n const stats = getValidationStats()\n console.info(`✅ Registered plugin validators: ${stats.totalValidators}`)\n console.info('✅ Comprehensive validation system is working correctly')\n } catch (error) {\n console.error('❌ Validation test failed:', error)\n }\n\n console.groupEnd()\n },\n\n /**\n * Get validation stats\n */\n getStats() {\n const { getValidationStats } = require('./plugin-registration')\n const stats = getValidationStats()\n \n return {\n enabled: isValidationEnabled(),\n config: validationConfig,\n coreComponents: Object.keys(CoreComponentValidation).filter(k => k.startsWith('validate')).length,\n pluginValidators: stats.totalValidators,\n packages: {\n core: validationConfig.packages.core,\n forms: validationConfig.packages.forms,\n navigation: validationConfig.packages.navigation,\n symbols: validationConfig.packages.symbols,\n plugins: validationConfig.packages.plugins\n },\n pluginStats: stats.packages\n }\n }\n}\n\n/**\n * Create validated component wrapper with package support\n */\nexport function createValidatedComponent<T extends ComponentInstance>(\n originalConstructor: (...args: any[]) => T,\n validator: (args: unknown[]) => void,\n componentType: string,\n packageName: string = 'core'\n): (...args: any[]) => T {\n\n return function validatedConstructor(this: any, ...args: unknown[]): T {\n // Run validation\n validator(args)\n\n // Create the component\n const instance = originalConstructor.apply(this, args as any)\n\n // Wrap with modifier validation if it has modifiers\n if ('modifier' in instance && typeof instance.modifier === 'object') {\n return wrapWithModifierValidation(instance, componentType, packageName)\n }\n\n return instance\n }\n}\n\n/**\n * Wrap component with modifier validation\n */\nfunction wrapWithModifierValidation<T extends ComponentInstance>(\n instance: T, \n componentType: string, \n packageName: string\n): T {\n if (!isValidationEnabled()) return instance\n\n return new Proxy(instance, {\n get(target, prop) {\n const value = target[prop as keyof T]\n\n if (prop === 'modifier') {\n return wrapModifierChain(value, componentType, packageName)\n }\n\n return value\n }\n })\n}\n\n/**\n * Wrap modifier chain with validation\n */\nfunction wrapModifierChain(modifierChain: any, componentType: string, packageName: string): any {\n if (!modifierChain) return modifierChain\n\n return new Proxy(modifierChain, {\n get(target, prop) {\n const propName = String(prop)\n const originalMethod = target[prop]\n\n // Allow build and other meta methods\n if (propName === 'build' || propName === 'addModifier' || propName === 'responsive') {\n return originalMethod\n }\n\n if (typeof originalMethod === 'function') {\n return function validatedModifier(...args: unknown[]) {\n // Validate before calling\n ModifierValidation.validateModifier(packageName, componentType, propName, args)\n\n // Call original method\n return originalMethod.apply(target, args)\n }\n }\n\n return originalMethod\n }\n })\n}"],"names":["TachUIValidationError","message","context","component","suggestion","example","documentation","pkg","formatted","validationConfig","configureValidation","config","isValidationEnabled","CoreComponentValidation","args","content","contentType","isSignal","title","action","titleType","props","propsObj","componentType","children","componentName","docUrl","PluginComponentValidation","packageName","getComponentValidator","validator","error","ModifierValidation","modifierName","nonExistent","textOnlyModifiers","interactiveOnlyModifiers","ValidationUtils","enabled","level","packages","getValidationStats","stats","k","createValidatedComponent","originalConstructor","instance","wrapWithModifierValidation","target","prop","value","wrapModifierChain","modifierChain","propName","originalMethod"],"mappings":"gRAaO,MAAMA,UAA8B,KAAM,CAC/C,YACEC,EACOC,EAWP,CACA,MAAMD,CAAO,EAZN,KAAA,QAAAC,EAaP,KAAK,KAAO,uBACd,CAEA,qBAA8B,CAC5B,KAAM,CAAE,UAAAC,EAAW,WAAAC,EAAY,QAAAC,EAAS,cAAAC,EAAe,QAASC,GAAQ,KAAK,QAG7E,IAAIC,EAAY,KAFID,EAAM,YAAYA,CAAG,IAAM,QAEf,IAAIJ,CAAS,qBAAqB,KAAK,OAAO;AAAA,EAE9E,OAAIC,IACFI,GAAa;AAAA,iBAAoBJ,CAAU;AAAA,GAGzCC,IACFG,GAAa;AAAA,WAAcH,EAAQ,KAAK,GACxCG,GAAa;AAAA,aAAgBH,EAAQ,OAAO;AAAA,GAG1CC,IACFE,GAAa;AAAA,oBAAuBF,CAAa,IAG5CE,CACT,CACF,CAsBA,IAAIC,EAAqC,CACvC,QAAS,QAAQ,IAAI,WAAa,aAClC,WAAY,GACZ,WAAY,QACZ,aAAc,CAAA,EACd,SAAU,CACR,KAAM,GACN,MAAO,GACP,WAAY,GACZ,QAAS,GACT,QAAS,EAAA,CAEb,EAeO,SAASC,EAAoBC,EAAyC,CAC3EF,EAAmB,CAAE,GAAGA,EAAkB,GAAGE,CAAA,CAC/C,CAKO,SAASC,GAA+B,CAC7C,OAAOH,EAAiB,SAAW,QAAQ,IAAI,WAAa,YAC9D,CAKO,MAAMI,EAA0B,CAGrC,aAAaC,EAAuB,CAClC,GAAI,CAACF,EAAA,GAAyB,CAACH,EAAi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