@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
@@ -0,0 +1,2276 @@
1
+ import { A as E, dN as I, dP as b } from "./concatenated-component-DPcl2TEO.js";
2
+ import { C as f, I as W } from "./Spacer-BbteDQ9I.js";
3
+ import { a as Q, n as X } from "./scheduler-7SvC3a21.js";
4
+ import { c as Y } from "./effect-CytAc9em.js";
5
+ import { j as q } from "./dom-bridge-Cx-s6Ihx.js";
6
+ var tt = Object.defineProperty, et = (t, e, n) => e in t ? tt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, S = (t, e, n) => et(t, typeof e != "symbol" ? e + "" : e, n);
7
+ class P extends E {
8
+ constructor(e, n = [], o = "", r = {}) {
9
+ super(o || e), S(this, "family"), S(this, "fallbacks"), S(this, "options"), S(this, "loaded", !1), S(this, "loadPromise", null), this.family = e, this.fallbacks = n, this.options = {
10
+ loading: "lazy",
11
+ fontDisplay: "swap",
12
+ preconnect: !0,
13
+ ...r
14
+ }, this.options.loading === "eager" && this.load();
15
+ }
16
+ /**
17
+ * Static factory method for SwiftUI-style initialization
18
+ */
19
+ static init(e, n = [], o, r = {}) {
20
+ return new P(e, n, o, r);
21
+ }
22
+ /**
23
+ * Get the full font-family CSS value including fallbacks
24
+ */
25
+ get value() {
26
+ return [this.family, ...this.fallbacks].map((n) => n.includes(" ") ? `"${n}"` : n).join(", ");
27
+ }
28
+ /**
29
+ * Load the font if not already loaded
30
+ */
31
+ async load() {
32
+ if (!(this.loaded || !this.options.fontUrl)) {
33
+ if (this.loadPromise)
34
+ return this.loadPromise;
35
+ this.loadPromise = this.loadFont(), await this.loadPromise, this.loaded = !0;
36
+ }
37
+ }
38
+ /**
39
+ * Internal font loading implementation
40
+ */
41
+ async loadFont() {
42
+ const { fontUrl: e, preconnect: n } = this.options;
43
+ if (e) {
44
+ if (n && typeof document < "u" && document.querySelector)
45
+ try {
46
+ const r = new URL(e).origin;
47
+ if (!document.querySelector(`link[rel="preconnect"][href="${r}"]`)) {
48
+ const i = document.createElement("link");
49
+ i.rel = "preconnect", i.href = r, i.crossOrigin = "anonymous", document.head.appendChild(i);
50
+ }
51
+ } catch {
52
+ }
53
+ if (e.endsWith(".css") || e.includes("fonts.googleapis.com") ? await this.loadFontCSS(e) : await this.loadFontFile(e), "fonts" in document)
54
+ try {
55
+ await document.fonts.ready;
56
+ const r = `16px ${this.family.includes(" ") ? `"${this.family}"` : this.family}`;
57
+ document.fonts.check(r) || console.warn(`⚠️ Font "${this.family}" may not have loaded correctly`);
58
+ } catch {
59
+ }
60
+ }
61
+ }
62
+ /**
63
+ * Load a CSS file containing @font-face rules
64
+ */
65
+ async loadFontCSS(e) {
66
+ return new Promise((n, o) => {
67
+ if (document.querySelector(`link[href="${e}"]`)) {
68
+ n();
69
+ return;
70
+ }
71
+ const i = document.createElement("link");
72
+ i.rel = "stylesheet", i.href = e, i.onload = () => {
73
+ n();
74
+ }, i.onerror = (s) => {
75
+ console.warn(`⚠️ Failed to load font CSS for ${this.family}:`, e), n();
76
+ }, document.head.appendChild(i);
77
+ });
78
+ }
79
+ /**
80
+ * Load a font file directly and create @font-face rule
81
+ */
82
+ async loadFontFile(e) {
83
+ const { fontFormat: n, fontDisplay: o, weightRange: r, widthRange: i } = this.options;
84
+ let s = "";
85
+ n ? s = `format('${n}')` : e.endsWith(".woff2") ? s = "format('woff2')" : e.endsWith(".woff") ? s = "format('woff')" : e.endsWith(".ttf") && (s = "format('truetype')");
86
+ let l = `
87
+ @font-face {
88
+ font-family: "${this.family}";
89
+ src: url("${e}") ${s};
90
+ font-display: ${o || "swap"};
91
+ `;
92
+ r && (l += `font-weight: ${r[0]} ${r[1]};
93
+ `), i && (l += `font-stretch: ${i[0]}% ${i[1]}%;
94
+ `), l += "}";
95
+ const d = document.createElement("style");
96
+ if (d.textContent = l, document.head.appendChild(d), "FontFace" in window)
97
+ try {
98
+ const p = new FontFace(this.family, `url(${e})`, {
99
+ display: o || "swap",
100
+ weight: r ? `${r[0]} ${r[1]}` : void 0,
101
+ stretch: i ? `${i[0]}% ${i[1]}%` : void 0
102
+ });
103
+ await p.load(), document.fonts.add(p);
104
+ } catch {
105
+ }
106
+ }
107
+ /**
108
+ * Create a CSS variable for this font
109
+ */
110
+ toCSSVariable(e) {
111
+ return `${e || `--font-${this.name.toLowerCase().replace(/\s+/g, "-")}`}: ${this.value};`;
112
+ }
113
+ /**
114
+ * Get debug information
115
+ */
116
+ [Symbol.for("nodejs.util.inspect.custom")]() {
117
+ return `FontAsset(${this.family}, loaded: ${this.loaded})`;
118
+ }
119
+ /**
120
+ * Resolve the font value (required by Asset base class)
121
+ */
122
+ resolve() {
123
+ return this.options.loading === "lazy" && !this.loaded && this.options.fontUrl && this.load(), this.value;
124
+ }
125
+ }
126
+ const Mt = {
127
+ ultraCondensed: 50,
128
+ extraCondensed: 62.5,
129
+ condensed: 75,
130
+ semiCondensed: 87.5,
131
+ normal: 100,
132
+ semiExpanded: 112.5,
133
+ expanded: 125,
134
+ extraExpanded: 150,
135
+ ultraExpanded: 200
136
+ }, O = {
137
+ sansSerif: ["system-ui", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", "sans-serif"],
138
+ serif: ["Georgia", "Cambria", "Times New Roman", "Times", "serif"],
139
+ monospace: ["ui-monospace", "SFMono-Regular", "SF Mono", "Consolas", "Liberation Mono", "Menlo", "Courier", "monospace"],
140
+ cursive: ["cursive"],
141
+ fantasy: ["fantasy"]
142
+ };
143
+ function Tt(t = "sansSerif", e) {
144
+ return new P("", [...O[t]], e || `system-${t}`);
145
+ }
146
+ function Et(t, e = [400], n, o = {}) {
147
+ const r = e.join(";"), s = `https://fonts.googleapis.com/css2?family=${t.replace(/\s+/g, "+")}:wght@${r}&display=swap`;
148
+ return new P(
149
+ t,
150
+ [...O.sansSerif],
151
+ n || t.toLowerCase().replace(/\s+/g, "-"),
152
+ {
153
+ ...o,
154
+ fontUrl: s,
155
+ preconnect: !0
156
+ }
157
+ );
158
+ }
159
+ function Vt(t, e, n, o = [...O.sansSerif], r) {
160
+ const i = {};
161
+ return n.slant && (i.slnt = n.slant), n.optical && (i.opsz = n.optical), n.custom && Object.assign(i, n.custom), new P(t, o, r, {
162
+ fontUrl: e,
163
+ weightRange: n.weight,
164
+ widthRange: n.width,
165
+ variableAxes: i,
166
+ fontDisplay: "swap"
167
+ });
168
+ }
169
+ var nt = Object.defineProperty, ot = (t, e, n) => e in t ? nt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, rt = (t, e, n) => ot(t, e + "", n);
170
+ class it {
171
+ constructor() {
172
+ rt(this, "assets", /* @__PURE__ */ new Map());
173
+ }
174
+ add(e, n) {
175
+ this.assets.set(e, n);
176
+ }
177
+ get(e) {
178
+ return this.assets.get(e);
179
+ }
180
+ getAll() {
181
+ return new Map(this.assets);
182
+ }
183
+ // Proxy handler for dot notation access
184
+ asProxy() {
185
+ return new Proxy(
186
+ {},
187
+ {
188
+ get: (e, n) => {
189
+ if (n === "toString" || n === "valueOf")
190
+ return () => "[Assets]";
191
+ const o = this.assets.get(n);
192
+ if (o)
193
+ return o instanceof f ? new Proxy(o, {
194
+ get: (r, i) => i === "light" || i === "dark" ? r[i] : i === "toString" || i === "valueOf" ? () => r.resolve() : r[i]
195
+ }) : o instanceof P ? new Proxy(o, {
196
+ get: (r, i) => i === "family" || i === "fallbacks" || i === "options" ? r[i] : i === "toString" || i === "valueOf" ? () => r.resolve() : r[i]
197
+ }) : o;
198
+ },
199
+ // Add ownKeys handler to support Object.keys() enumeration
200
+ ownKeys: (e) => Array.from(this.assets.keys()),
201
+ // Add has handler to support 'in' operator
202
+ has: (e, n) => this.assets.has(n)
203
+ }
204
+ );
205
+ }
206
+ }
207
+ const w = new it(), at = w.asProxy(), kt = at;
208
+ function h(t, e) {
209
+ if (typeof t == "string" && e instanceof E)
210
+ w.add(t, e);
211
+ else if (t instanceof E && typeof e == "string")
212
+ w.add(e, t);
213
+ else if (t instanceof E && e === void 0)
214
+ w.add(t.name, t);
215
+ else
216
+ throw new Error("registerAsset requires either (name, asset), (asset), or (asset, overrideName)");
217
+ }
218
+ function It(t, e, n = "") {
219
+ return f.init({
220
+ default: t,
221
+ light: t,
222
+ dark: e,
223
+ name: n
224
+ });
225
+ }
226
+ function Bt(t, e, n, o = "", r) {
227
+ return W.init({
228
+ default: t,
229
+ light: e,
230
+ dark: n,
231
+ name: o,
232
+ options: r
233
+ });
234
+ }
235
+ function Dt(t, e = [], n = "", o) {
236
+ return P.init(t, e, n, o);
237
+ }
238
+ function Nt() {
239
+ const t = w.getAll(), e = [];
240
+ for (const [n, o] of t) {
241
+ let r = "custom";
242
+ o instanceof f ? r = "color" : o instanceof W ? r = "image" : o instanceof P && (r = "font"), e.push({
243
+ name: n,
244
+ type: r,
245
+ asset: o
246
+ });
247
+ }
248
+ return e.sort((n, o) => n.name.localeCompare(o.name));
249
+ }
250
+ function Lt() {
251
+ return Array.from(w.getAll().keys()).sort();
252
+ }
253
+ h(f.init({
254
+ default: "#007AFF",
255
+ light: "#007AFF",
256
+ dark: "#0A84FF",
257
+ name: "systemBlue"
258
+ }));
259
+ h(f.init({
260
+ default: "#34C759",
261
+ light: "#34C759",
262
+ dark: "#30D158",
263
+ name: "systemGreen"
264
+ }));
265
+ h(f.init({
266
+ default: "#FF3B30",
267
+ light: "#FF3B30",
268
+ dark: "#FF453A",
269
+ name: "systemRed"
270
+ }));
271
+ h(f.init({
272
+ default: "#FF9500",
273
+ light: "#FF9500",
274
+ dark: "#FF9F0A",
275
+ name: "systemOrange"
276
+ }));
277
+ h(f.init({
278
+ default: "#5856D6",
279
+ light: "#5856D6",
280
+ dark: "#5E5CE6",
281
+ name: "systemPurple"
282
+ }));
283
+ h(f.init({
284
+ default: "#FF2D55",
285
+ light: "#FF2D55",
286
+ dark: "#FF375F",
287
+ name: "systemPink"
288
+ }));
289
+ h(f.init({
290
+ default: "#8E8E93",
291
+ name: "systemGray"
292
+ }));
293
+ h(f.init({
294
+ default: "#000000",
295
+ name: "systemBlack"
296
+ }));
297
+ h(f.init({
298
+ default: "#FFFFFF",
299
+ name: "systemWhite"
300
+ }));
301
+ const m = {
302
+ // iOS-style colors
303
+ ios: {
304
+ blue: ["#007AFF", "#0051D2"],
305
+ green: ["#30D158", "#248A3D"],
306
+ red: ["#FF3B30", "#CC2E26"]
307
+ },
308
+ // Material Design colors
309
+ material: {
310
+ blue: ["#2196F3", "#1976D2"]
311
+ },
312
+ // Modern web gradients
313
+ modern: {
314
+ ocean: ["#667eea", "#764ba2"],
315
+ sunset: ["#ff7e5f", "#feb47b"],
316
+ aurora: ["#4facfe", "#00f2fe"]
317
+ },
318
+ // Neutral gradients
319
+ neutral: {
320
+ lightGray: ["#f8f9fa", "#e9ecef"],
321
+ darkGray: ["#495057", "#212529"]
322
+ }
323
+ }, V = {
324
+ // Direction-based presets
325
+ vertical: (t) => a({
326
+ colors: t,
327
+ startPoint: "top",
328
+ endPoint: "bottom"
329
+ }),
330
+ horizontal: (t) => a({
331
+ colors: t,
332
+ startPoint: "leading",
333
+ endPoint: "trailing"
334
+ }),
335
+ diagonal: (t) => a({
336
+ colors: t,
337
+ startPoint: "topLeading",
338
+ endPoint: "bottomTrailing"
339
+ }),
340
+ diagonalReverse: (t) => a({
341
+ colors: t,
342
+ startPoint: "topTrailing",
343
+ endPoint: "bottomLeading"
344
+ }),
345
+ // Popular gradient patterns
346
+ iosBlue: () => a({
347
+ colors: [...m.ios.blue],
348
+ startPoint: "top",
349
+ endPoint: "bottom"
350
+ }),
351
+ materialBlue: () => a({
352
+ colors: [...m.material.blue],
353
+ startPoint: "top",
354
+ endPoint: "bottom"
355
+ }),
356
+ ocean: () => a({
357
+ colors: [...m.modern.ocean],
358
+ startPoint: "topLeading",
359
+ endPoint: "bottomTrailing"
360
+ }),
361
+ sunset: () => a({
362
+ colors: [...m.modern.sunset],
363
+ startPoint: "leading",
364
+ endPoint: "trailing"
365
+ }),
366
+ aurora: () => a({
367
+ colors: [...m.modern.aurora],
368
+ startPoint: "top",
369
+ endPoint: "bottom"
370
+ }),
371
+ // Multi-color gradients
372
+ rainbow: () => a({
373
+ colors: ["#ff0000", "#ff7f00", "#ffff00", "#00ff00", "#0000ff", "#8f00ff"],
374
+ startPoint: "leading",
375
+ endPoint: "trailing",
376
+ stops: [0, 16.66, 33.33, 50, 66.66, 83.33, 100]
377
+ }),
378
+ prism: () => a({
379
+ colors: ["#ff6b6b", "#4ecdc4", "#45b7d1", "#96ceb4", "#feca57"],
380
+ startPoint: "topLeading",
381
+ endPoint: "bottomTrailing"
382
+ }),
383
+ // Card and surface gradients
384
+ cardLight: () => a({
385
+ colors: [...m.neutral.lightGray],
386
+ startPoint: "top",
387
+ endPoint: "bottom"
388
+ }),
389
+ cardDark: () => a({
390
+ colors: [...m.neutral.darkGray],
391
+ startPoint: "top",
392
+ endPoint: "bottom"
393
+ }),
394
+ glass: () => a({
395
+ colors: ["rgba(255, 255, 255, 0.25)", "rgba(255, 255, 255, 0.05)"],
396
+ startPoint: "top",
397
+ endPoint: "bottom"
398
+ }),
399
+ frosted: () => a({
400
+ colors: ["rgba(255, 255, 255, 0.1)", "rgba(255, 255, 255, 0.3)"],
401
+ startPoint: "topLeading",
402
+ endPoint: "bottomTrailing"
403
+ })
404
+ }, R = {
405
+ primaryButton: () => ({
406
+ default: V.iosBlue(),
407
+ hover: a({
408
+ colors: ["#1A8FFF", "#0062E3"],
409
+ startPoint: "top",
410
+ endPoint: "bottom"
411
+ }),
412
+ active: a({
413
+ colors: ["#0066CC", "#004499"],
414
+ startPoint: "top",
415
+ endPoint: "bottom"
416
+ }),
417
+ disabled: "#CCCCCC",
418
+ animation: {
419
+ duration: 150,
420
+ easing: "ease-out"
421
+ }
422
+ }),
423
+ secondaryButton: () => ({
424
+ default: V.cardLight(),
425
+ hover: a({
426
+ colors: ["#e9ecef", "#dee2e6"],
427
+ startPoint: "top",
428
+ endPoint: "bottom"
429
+ }),
430
+ active: a({
431
+ colors: ["#dee2e6", "#ced4da"],
432
+ startPoint: "top",
433
+ endPoint: "bottom"
434
+ }),
435
+ animation: {
436
+ duration: 100,
437
+ easing: "ease-out"
438
+ }
439
+ }),
440
+ dangerButton: () => ({
441
+ default: a({
442
+ colors: [...m.ios.red],
443
+ startPoint: "top",
444
+ endPoint: "bottom"
445
+ }),
446
+ hover: a({
447
+ colors: ["#FF5A52", "#D13029"],
448
+ startPoint: "top",
449
+ endPoint: "bottom"
450
+ }),
451
+ active: a({
452
+ colors: ["#E6342C", "#B32821"],
453
+ startPoint: "top",
454
+ endPoint: "bottom"
455
+ }),
456
+ disabled: "#CCCCCC",
457
+ animation: {
458
+ duration: 120,
459
+ easing: "ease-out"
460
+ }
461
+ }),
462
+ successButton: () => ({
463
+ default: a({
464
+ colors: [...m.ios.green],
465
+ startPoint: "top",
466
+ endPoint: "bottom"
467
+ }),
468
+ hover: a({
469
+ colors: ["#40D866", "#2C8F45"],
470
+ startPoint: "top",
471
+ endPoint: "bottom"
472
+ }),
473
+ active: a({
474
+ colors: ["#28B946", "#1F7A35"],
475
+ startPoint: "top",
476
+ endPoint: "bottom"
477
+ }),
478
+ disabled: "#CCCCCC",
479
+ animation: {
480
+ duration: 120,
481
+ easing: "ease-out"
482
+ }
483
+ }),
484
+ hoverCard: () => ({
485
+ default: "#FFFFFF",
486
+ hover: V.glass(),
487
+ animation: {
488
+ duration: 200,
489
+ easing: "ease"
490
+ }
491
+ }),
492
+ focusInput: () => ({
493
+ default: "#FFFFFF",
494
+ focus: a({
495
+ colors: ["#F0F8FF", "#E6F3FF"],
496
+ startPoint: "top",
497
+ endPoint: "bottom"
498
+ }),
499
+ disabled: "#F5F5F5",
500
+ animation: {
501
+ duration: 100,
502
+ easing: "ease-in-out"
503
+ }
504
+ })
505
+ }, Ot = {
506
+ /**
507
+ * Create a theme-responsive gradient that switches between light and dark variants
508
+ */
509
+ createThemeGradient: (t, e) => t,
510
+ /**
511
+ * Auto-generate dark mode variant of a gradient
512
+ */
513
+ createDarkVariant: (t) => t
514
+ }, Ht = {
515
+ /**
516
+ * Reverse the colors in a gradient
517
+ */
518
+ reverse: (t) => {
519
+ const e = { ...t };
520
+ return "colors" in e.options && (e.options = {
521
+ ...e.options,
522
+ colors: [...e.options.colors].reverse()
523
+ }), e;
524
+ },
525
+ /**
526
+ * Rotate a linear gradient by swapping start and end points
527
+ */
528
+ rotate: (t) => ({
529
+ ...t,
530
+ startPoint: t.endPoint,
531
+ endPoint: t.startPoint
532
+ }),
533
+ /**
534
+ * Add transparency to gradient colors
535
+ */
536
+ withOpacity: (t, e) => t,
537
+ /**
538
+ * Blend two gradients together
539
+ */
540
+ blend: (t, e, n = 0.5) => t
541
+ };
542
+ ({
543
+ ...V,
544
+ ...R
545
+ });
546
+ const v = {
547
+ /**
548
+ * Check if value is a valid gradient definition
549
+ */
550
+ isGradientDefinition(t) {
551
+ if (!t || typeof t != "object") return !1;
552
+ const e = t;
553
+ return typeof e.type == "string" && ["linear", "radial", "angular", "conic", "repeating-linear", "repeating-radial", "elliptical"].includes(e.type) && e.options !== void 0 && typeof e.options == "object" && e.options !== null;
554
+ },
555
+ /**
556
+ * Check if value is a linear gradient
557
+ */
558
+ isLinearGradient(t) {
559
+ return this.isGradientDefinition(t) && t.type === "linear";
560
+ },
561
+ /**
562
+ * Check if value is a radial gradient
563
+ */
564
+ isRadialGradient(t) {
565
+ return this.isGradientDefinition(t) && t.type === "radial";
566
+ },
567
+ /**
568
+ * Check if value is an angular gradient
569
+ */
570
+ isAngularGradient(t) {
571
+ return this.isGradientDefinition(t) && t.type === "angular";
572
+ },
573
+ /**
574
+ * Check if value is a state gradient configuration
575
+ */
576
+ isStateGradientOptions(t) {
577
+ if (!t || typeof t != "object") return !1;
578
+ const e = t;
579
+ return "default" in e && e.default !== void 0;
580
+ },
581
+ /**
582
+ * Check if value is a stateful background value
583
+ */
584
+ isStatefulBackgroundValue(t) {
585
+ return !!(typeof t == "string" || this.isGradientDefinition(t) || this.isAsset(t) || this.isStateGradientOptions(t));
586
+ },
587
+ /**
588
+ * Check if value is an Asset
589
+ */
590
+ isAsset(t) {
591
+ return t !== null && typeof t == "object" && "resolve" in t && typeof t.resolve == "function";
592
+ },
593
+ /**
594
+ * Check if value is a valid gradient start point
595
+ */
596
+ isGradientStartPoint(t) {
597
+ return typeof t == "string" && [
598
+ "top",
599
+ "bottom",
600
+ "leading",
601
+ "trailing",
602
+ "center",
603
+ "topLeading",
604
+ "topTrailing",
605
+ "bottomLeading",
606
+ "bottomTrailing"
607
+ ].includes(t);
608
+ },
609
+ /**
610
+ * Check if value is a valid gradient center
611
+ */
612
+ isGradientCenter(t) {
613
+ return typeof t == "string" ? ["center", "top", "bottom", "leading", "trailing"].includes(t) : Array.isArray(t) ? t.length === 2 && typeof t[0] == "number" && typeof t[1] == "number" : !1;
614
+ }
615
+ }, M = {
616
+ /**
617
+ * Validate color format (hex, rgb, rgba, hsl, hsla, named colors, CSS custom properties)
618
+ */
619
+ validateColor(t) {
620
+ return v.isAsset(t) ? { valid: !0 } : typeof t != "string" ? { valid: !1, error: "Color must be a string or Asset" } : /^(transparent|inherit|initial|unset|currentcolor)$/i.test(t) ? { valid: !0 } : /^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(t) ? { valid: !0 } : /^rgba?\(\s*(\d+(?:\.\d+)?%?)\s*,\s*(\d+(?:\.\d+)?%?)\s*,\s*(\d+(?:\.\d+)?%?)\s*(?:,\s*(\d+(?:\.\d+)?%?))?\s*\)$/i.test(t) ? { valid: !0 } : /^hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?%)\s*,\s*(\d+(?:\.\d+)?%)\s*(?:,\s*(\d+(?:\.\d+)?%?))?\s*\)$/i.test(t) ? { valid: !0 } : /^var\(--[a-zA-Z][a-zA-Z0-9-]*\)$/.test(t) ? { valid: !0 } : { valid: !1, error: `Invalid color format: ${t}` };
621
+ },
622
+ /**
623
+ * Validate gradient colors array
624
+ */
625
+ validateColors(t) {
626
+ const e = [];
627
+ return Array.isArray(t) ? t.length < 2 ? { valid: !1, errors: ["Gradient must have at least 2 colors"] } : (t.forEach((n, o) => {
628
+ const r = this.validateColor(n);
629
+ r.valid || e.push(`Color at index ${o}: ${r.error}`);
630
+ }), { valid: e.length === 0, errors: e }) : { valid: !1, errors: ["Colors must be an array"] };
631
+ },
632
+ /**
633
+ * Validate color stops array
634
+ */
635
+ validateStops(t, e) {
636
+ if (!Array.isArray(t))
637
+ return { valid: !1, error: "Stops must be an array" };
638
+ if (t.length !== e)
639
+ return { valid: !1, error: "Stops array length must match colors array length" };
640
+ for (let n = 0; n < t.length; n++) {
641
+ const o = t[n];
642
+ if (typeof o != "number")
643
+ return { valid: !1, error: `Stop at index ${n} must be a number` };
644
+ if (o < 0 || o > 100)
645
+ return { valid: !1, error: `Stop at index ${n} must be between 0 and 100` };
646
+ if (n > 0 && o < t[n - 1])
647
+ return { valid: !1, error: `Stops must be in ascending order. Stop at index ${n} (${o}) is less than previous stop (${t[n - 1]})` };
648
+ }
649
+ return { valid: !0 };
650
+ },
651
+ /**
652
+ * Validate linear gradient options
653
+ */
654
+ validateLinearGradient(t) {
655
+ const e = [], n = this.validateColors(t.colors);
656
+ if (n.valid || e.push(...n.errors), t.stops) {
657
+ const o = this.validateStops(t.stops, t.colors.length);
658
+ o.valid || e.push(o.error);
659
+ }
660
+ return v.isGradientStartPoint(t.startPoint) || e.push(`Invalid startPoint: ${t.startPoint}`), v.isGradientStartPoint(t.endPoint) || e.push(`Invalid endPoint: ${t.endPoint}`), t.angle !== void 0 && (typeof t.angle != "number" ? e.push("Angle must be a number") : (t.angle < 0 || t.angle > 360) && e.push("Angle must be between 0 and 360 degrees")), { valid: e.length === 0, errors: e };
661
+ },
662
+ /**
663
+ * Validate radial gradient options
664
+ */
665
+ validateRadialGradient(t) {
666
+ const e = [], n = this.validateColors(t.colors);
667
+ if (n.valid || e.push(...n.errors), t.stops) {
668
+ const o = this.validateStops(t.stops, t.colors.length);
669
+ o.valid || e.push(o.error);
670
+ }
671
+ return v.isGradientCenter(t.center) || e.push(`Invalid center: ${t.center}`), (typeof t.startRadius != "number" || t.startRadius < 0) && e.push("startRadius must be a non-negative number"), (typeof t.endRadius != "number" || t.endRadius < 0) && e.push("endRadius must be a non-negative number"), t.startRadius >= t.endRadius && e.push("endRadius must be greater than startRadius"), t.shape && !["circle", "ellipse"].includes(t.shape) && e.push(`Invalid shape: ${t.shape}. Must be 'circle' or 'ellipse'`), { valid: e.length === 0, errors: e };
672
+ },
673
+ /**
674
+ * Validate angular gradient options
675
+ */
676
+ validateAngularGradient(t) {
677
+ const e = [], n = this.validateColors(t.colors);
678
+ return n.valid || e.push(...n.errors), v.isGradientCenter(t.center) || e.push(`Invalid center: ${t.center}`), typeof t.startAngle != "number" && e.push("startAngle must be a number"), typeof t.endAngle != "number" && e.push("endAngle must be a number"), { valid: e.length === 0, errors: e };
679
+ },
680
+ /**
681
+ * Validate animation options
682
+ */
683
+ validateAnimationOptions(t) {
684
+ const e = [];
685
+ return t.duration !== void 0 && (typeof t.duration != "number" || t.duration < 0) && e.push("Duration must be a non-negative number"), t.delay !== void 0 && (typeof t.delay != "number" || t.delay < 0) && e.push("Delay must be a non-negative number"), t.easing !== void 0 && typeof t.easing != "string" && e.push("Easing must be a string"), { valid: e.length === 0, errors: e };
686
+ },
687
+ /**
688
+ * Validate state gradient options
689
+ */
690
+ validateStateGradientOptions(t) {
691
+ const e = [];
692
+ if (t.default || e.push("Default state is required"), ["default", "hover", "active", "focus", "disabled"].forEach((o) => {
693
+ const r = t[o];
694
+ r && !v.isStatefulBackgroundValue(r) && e.push(`Invalid ${o} state value`);
695
+ }), t.animation) {
696
+ const o = this.validateAnimationOptions(t.animation);
697
+ o.valid || e.push(...o.errors.map((r) => `Animation: ${r}`));
698
+ }
699
+ return { valid: e.length === 0, errors: e };
700
+ },
701
+ /**
702
+ * Comprehensive gradient validation
703
+ */
704
+ validateGradient(t) {
705
+ if (!v.isGradientDefinition(t))
706
+ return { valid: !1, errors: ["Invalid gradient definition structure"] };
707
+ switch (t.type) {
708
+ case "linear":
709
+ return this.validateLinearGradient(t.options);
710
+ case "radial":
711
+ return this.validateRadialGradient(t.options);
712
+ case "angular":
713
+ case "conic":
714
+ return this.validateAngularGradient(t.options);
715
+ default:
716
+ return { valid: !1, errors: [`Unsupported gradient type: ${t.type}`] };
717
+ }
718
+ }
719
+ }, jt = (t) => {
720
+ const e = M.validateGradient(t);
721
+ if (!e.valid)
722
+ throw new Error(`Invalid gradient: ${e.errors.join(", ")}`);
723
+ return t;
724
+ }, Ut = (t) => {
725
+ const e = M.validateStateGradientOptions(t);
726
+ if (!e.valid)
727
+ throw new Error(`Invalid state gradient: ${e.errors.join(", ")}`);
728
+ return t;
729
+ }, Wt = {
730
+ /**
731
+ * Assert gradient is valid (throws in development, no-op in production)
732
+ */
733
+ assertValidGradient(t) {
734
+ if (process.env.NODE_ENV === "development") {
735
+ const e = M.validateGradient(t);
736
+ if (!e.valid)
737
+ throw console.error("Invalid gradient:", t), console.error("Validation errors:", e.errors), new Error(`Invalid gradient: ${e.errors.join(", ")}`);
738
+ }
739
+ },
740
+ /**
741
+ * Warn about potential gradient issues
742
+ */
743
+ warnGradientIssues(t) {
744
+ process.env.NODE_ENV === "development" && "colors" in t.options && t.options.colors.length > 5 && console.warn("Gradient has many colors which may impact performance:", t);
745
+ }
746
+ }, c = {
747
+ /**
748
+ * Parse hex color to RGB components
749
+ */
750
+ hexToRgb: (t) => {
751
+ const e = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
752
+ return e ? {
753
+ r: parseInt(e[1], 16),
754
+ g: parseInt(e[2], 16),
755
+ b: parseInt(e[3], 16)
756
+ } : null;
757
+ },
758
+ /**
759
+ * Convert RGB to hex
760
+ */
761
+ rgbToHex: (t, e, n) => "#" + ((1 << 24) + (t << 16) + (e << 8) + n).toString(16).slice(1),
762
+ /**
763
+ * Add transparency to a color
764
+ */
765
+ withAlpha: (t, e) => {
766
+ if (t.startsWith("#")) {
767
+ const n = c.hexToRgb(t);
768
+ if (n)
769
+ return `rgba(${n.r}, ${n.g}, ${n.b}, ${e})`;
770
+ }
771
+ return t.startsWith("rgb(") ? t.replace("rgb(", "rgba(").replace(")", `, ${e})`) : t.startsWith("rgba(") ? t.replace(/,\s*[\d.]+\)$/, `, ${e})`) : t;
772
+ },
773
+ /**
774
+ * Blend two colors
775
+ */
776
+ blendColors: (t, e, n = 0.5) => {
777
+ const o = c.hexToRgb(t), r = c.hexToRgb(e);
778
+ if (!o || !r) return t;
779
+ const i = Math.round(o.r * (1 - n) + r.r * n), s = Math.round(o.g * (1 - n) + r.g * n), l = Math.round(o.b * (1 - n) + r.b * n);
780
+ return c.rgbToHex(i, s, l);
781
+ },
782
+ /**
783
+ * Generate color variations (lighter/darker)
784
+ */
785
+ lighten: (t, e = 0.2) => c.blendColors(t, "#ffffff", e),
786
+ darken: (t, e = 0.2) => c.blendColors(t, "#000000", e),
787
+ /**
788
+ * Generate complementary color
789
+ */
790
+ complement: (t) => {
791
+ const e = c.hexToRgb(t);
792
+ return e ? c.rgbToHex(255 - e.r, 255 - e.g, 255 - e.b) : t;
793
+ },
794
+ /**
795
+ * Get contrast ratio between two colors
796
+ */
797
+ getContrastRatio: (t, e) => {
798
+ const n = (l) => {
799
+ const d = c.hexToRgb(l);
800
+ if (!d) return 0;
801
+ const [p, H, Z] = [d.r, d.g, d.b].map((F) => (F = F / 255, F <= 0.03928 ? F / 12.92 : Math.pow((F + 0.055) / 1.055, 2.4)));
802
+ return 0.2126 * p + 0.7152 * H + 0.0722 * Z;
803
+ }, o = n(t), r = n(e), i = Math.max(o, r), s = Math.min(o, r);
804
+ return (i + 0.05) / (s + 0.05);
805
+ }
806
+ }, N = {
807
+ /**
808
+ * Reverse gradient colors
809
+ */
810
+ reverse: (t) => {
811
+ const e = { ...t };
812
+ return "colors" in e.options && (e.options = {
813
+ ...e.options,
814
+ colors: [...e.options.colors].reverse(),
815
+ stops: e.options.stops ? [...e.options.stops].reverse() : void 0
816
+ }), e;
817
+ },
818
+ /**
819
+ * Rotate linear gradient direction
820
+ */
821
+ rotateLinear: (t, e) => {
822
+ if (t.type !== "linear") return t;
823
+ const n = t.options;
824
+ return {
825
+ ...t,
826
+ options: {
827
+ ...n,
828
+ angle: (n.angle || 0) + e
829
+ }
830
+ };
831
+ },
832
+ /**
833
+ * Scale radial gradient
834
+ */
835
+ scaleRadial: (t, e) => {
836
+ if (t.type !== "radial") return t;
837
+ const n = t.options;
838
+ return {
839
+ ...t,
840
+ options: {
841
+ ...n,
842
+ startRadius: n.startRadius * e,
843
+ endRadius: n.endRadius * e
844
+ }
845
+ };
846
+ },
847
+ /**
848
+ * Add transparency to entire gradient
849
+ */
850
+ withOpacity: (t, e) => {
851
+ const n = { ...t };
852
+ return "colors" in n.options && (n.options = {
853
+ ...n.options,
854
+ colors: n.options.colors.map(
855
+ (o) => typeof o == "string" ? c.withAlpha(o, e) : o
856
+ )
857
+ }), n;
858
+ },
859
+ /**
860
+ * Mirror a linear gradient (swap start and end points)
861
+ */
862
+ mirror: (t) => {
863
+ if (t.type !== "linear") return t;
864
+ const e = t.options;
865
+ return {
866
+ ...t,
867
+ options: {
868
+ ...e,
869
+ startPoint: e.endPoint,
870
+ endPoint: e.startPoint
871
+ }
872
+ };
873
+ },
874
+ /**
875
+ * Convert linear gradient to radial
876
+ */
877
+ toRadial: (t, e = 100) => {
878
+ if (t.type !== "linear") return t;
879
+ const n = t.options;
880
+ return _({
881
+ colors: n.colors,
882
+ stops: n.stops,
883
+ center: "center",
884
+ startRadius: 0,
885
+ endRadius: e
886
+ });
887
+ },
888
+ /**
889
+ * Convert to angular/conic gradient
890
+ */
891
+ toAngular: (t) => "colors" in t.options ? K({
892
+ colors: t.options.colors,
893
+ stops: t.options.stops,
894
+ center: "center",
895
+ startAngle: 0,
896
+ endAngle: 360
897
+ }) : t
898
+ }, g = {
899
+ /**
900
+ * Get gradient color count
901
+ */
902
+ getColorCount: (t) => "colors" in t.options ? t.options.colors.length : 0,
903
+ /**
904
+ * Extract colors from gradient
905
+ */
906
+ extractColors: (t) => "colors" in t.options ? [...t.options.colors] : [],
907
+ /**
908
+ * Get gradient complexity score (for performance optimization)
909
+ */
910
+ getComplexityScore: (t) => {
911
+ let e = 0;
912
+ switch ("colors" in t.options && (e += t.options.colors.length * 2, e += t.options.stops ? t.options.stops.length : 0), t.type) {
913
+ case "linear":
914
+ e += 1;
915
+ break;
916
+ case "radial":
917
+ e += 3;
918
+ break;
919
+ case "angular":
920
+ e += 4;
921
+ break;
922
+ case "repeating-linear":
923
+ e += 5;
924
+ break;
925
+ case "repeating-radial":
926
+ e += 6;
927
+ break;
928
+ }
929
+ return e;
930
+ },
931
+ /**
932
+ * Check if gradient has transparency
933
+ */
934
+ hasTransparency: (t) => "colors" in t.options ? t.options.colors.some(
935
+ (e) => typeof e == "string" && (e.includes("rgba") || e.includes("transparent") || e.includes("hsla"))
936
+ ) : !1,
937
+ /**
938
+ * Estimate rendering performance impact
939
+ */
940
+ getPerformanceImpact: (t) => {
941
+ const e = g.getComplexityScore(t);
942
+ return e <= 5 ? "low" : e <= 10 ? "medium" : "high";
943
+ }
944
+ }, st = {
945
+ /**
946
+ * Generate rainbow gradient
947
+ */
948
+ rainbow: (t = 6) => {
949
+ const e = [];
950
+ for (let n = 0; n < t; n++) {
951
+ const o = n * 360 / t;
952
+ e.push(`hsl(${o}, 100%, 50%)`);
953
+ }
954
+ return a({
955
+ colors: e,
956
+ startPoint: "leading",
957
+ endPoint: "trailing"
958
+ });
959
+ },
960
+ /**
961
+ * Generate monochromatic gradient
962
+ */
963
+ monochromatic: (t, e = 5) => {
964
+ const n = [];
965
+ for (let o = 0; o < e; o++) {
966
+ const r = o / (e - 1);
967
+ r < 0.5 ? n.push(c.lighten(t, 0.4 - r * 0.8)) : n.push(c.darken(t, (r - 0.5) * 0.8));
968
+ }
969
+ return a({
970
+ colors: n,
971
+ startPoint: "top",
972
+ endPoint: "bottom"
973
+ });
974
+ },
975
+ /**
976
+ * Generate analogous color gradient
977
+ */
978
+ analogous: (t, e = 60) => a({
979
+ colors: [t, c.lighten(t, 0.2), c.darken(t, 0.2)],
980
+ startPoint: "topLeading",
981
+ endPoint: "bottomTrailing"
982
+ }),
983
+ /**
984
+ * Generate complementary gradient
985
+ */
986
+ complementary: (t, e) => {
987
+ const n = e || c.complement(t);
988
+ return a({
989
+ colors: [t, n],
990
+ startPoint: "topLeading",
991
+ endPoint: "bottomTrailing"
992
+ });
993
+ },
994
+ /**
995
+ * Generate sunset gradient
996
+ */
997
+ sunset: () => a({
998
+ colors: ["#ff7e5f", "#feb47b", "#ff6b6b", "#c44569"],
999
+ startPoint: "top",
1000
+ endPoint: "bottom"
1001
+ }),
1002
+ /**
1003
+ * Generate ocean gradient
1004
+ */
1005
+ ocean: () => a({
1006
+ colors: ["#667eea", "#764ba2", "#667eea"],
1007
+ startPoint: "topLeading",
1008
+ endPoint: "bottomTrailing"
1009
+ })
1010
+ }, ct = {
1011
+ /**
1012
+ * Create hover effect gradient
1013
+ */
1014
+ createHoverEffect: (t, e = 0.1) => {
1015
+ const n = N.withOpacity(
1016
+ N.reverse(t),
1017
+ 1 - e
1018
+ );
1019
+ return {
1020
+ default: t,
1021
+ hover: n,
1022
+ animation: {
1023
+ duration: 200,
1024
+ easing: "ease-out"
1025
+ }
1026
+ };
1027
+ },
1028
+ /**
1029
+ * Create button gradient states
1030
+ */
1031
+ createButtonStates: (t, e = "primary") => {
1032
+ const o = {
1033
+ primary: { base: t, hover: c.lighten(t, 0.1), active: c.darken(t, 0.1) },
1034
+ secondary: { base: "#f8f9fa", hover: "#e9ecef", active: "#dee2e6" },
1035
+ danger: { base: "#dc3545", hover: c.lighten("#dc3545", 0.1), active: c.darken("#dc3545", 0.1) }
1036
+ }[e];
1037
+ return {
1038
+ default: a({
1039
+ colors: [o.base, c.darken(o.base, 0.05)],
1040
+ startPoint: "top",
1041
+ endPoint: "bottom"
1042
+ }),
1043
+ hover: a({
1044
+ colors: [o.hover, c.darken(o.hover, 0.05)],
1045
+ startPoint: "top",
1046
+ endPoint: "bottom"
1047
+ }),
1048
+ active: a({
1049
+ colors: [o.active, c.darken(o.active, 0.05)],
1050
+ startPoint: "top",
1051
+ endPoint: "bottom"
1052
+ }),
1053
+ disabled: "#cccccc",
1054
+ animation: {
1055
+ duration: 150,
1056
+ easing: "ease-out"
1057
+ }
1058
+ };
1059
+ },
1060
+ /**
1061
+ * Create card hover effect
1062
+ */
1063
+ createCardHover: (t = "#ffffff") => ({
1064
+ default: t,
1065
+ hover: a({
1066
+ colors: [
1067
+ c.withAlpha("#ffffff", 0.1),
1068
+ c.withAlpha("#f8f9fa", 0.1)
1069
+ ],
1070
+ startPoint: "topLeading",
1071
+ endPoint: "bottomTrailing"
1072
+ }),
1073
+ animation: {
1074
+ duration: 200,
1075
+ easing: "ease"
1076
+ }
1077
+ })
1078
+ }, lt = {
1079
+ /**
1080
+ * Generate CSS custom properties for gradient
1081
+ */
1082
+ toCustomProperties: (t, e = "gradient") => {
1083
+ const n = I(t);
1084
+ return {
1085
+ [`--${e}-background`]: n
1086
+ };
1087
+ },
1088
+ /**
1089
+ * Generate fallback CSS for older browsers
1090
+ */
1091
+ withFallback: (t, e) => {
1092
+ const n = I(t);
1093
+ return `background: ${e}; background: ${n};`;
1094
+ },
1095
+ /**
1096
+ * Optimize CSS for performance
1097
+ */
1098
+ optimize: (t) => t.replace(/\s+/g, " ").replace(/,\s+/g, ",").replace(/:\s+/g, ":").trim()
1099
+ }, u = {
1100
+ ...c,
1101
+ ...N,
1102
+ ...g,
1103
+ ...st,
1104
+ ...ct,
1105
+ ...lt,
1106
+ /**
1107
+ * Convert any background value to CSS
1108
+ */
1109
+ toCSS: (t) => typeof t == "string" ? t : "resolve" in t && typeof t.resolve == "function" ? t.resolve() : "type" in t && "options" in t ? I(t) : "default" in t ? u.toCSS(t.default) : "transparent",
1110
+ /**
1111
+ * Deep clone gradient definition
1112
+ */
1113
+ clone: (t) => JSON.parse(JSON.stringify(t)),
1114
+ /**
1115
+ * Compare two gradients for equality
1116
+ */
1117
+ equals: (t, e) => JSON.stringify(t) === JSON.stringify(e)
1118
+ }, G = {
1119
+ /**
1120
+ * iOS-style primary button
1121
+ */
1122
+ iosPrimary: () => ({
1123
+ default: a({
1124
+ colors: ["#007AFF", "#0051D2"],
1125
+ startPoint: "top",
1126
+ endPoint: "bottom"
1127
+ }),
1128
+ hover: a({
1129
+ colors: ["#1A8FFF", "#0062E3"],
1130
+ startPoint: "top",
1131
+ endPoint: "bottom"
1132
+ }),
1133
+ active: a({
1134
+ colors: ["#0066CC", "#004499"],
1135
+ startPoint: "top",
1136
+ endPoint: "bottom"
1137
+ }),
1138
+ disabled: "#CCCCCC",
1139
+ animation: { duration: 150, easing: "ease-out" }
1140
+ }),
1141
+ /**
1142
+ * Material Design raised button
1143
+ */
1144
+ materialRaised: () => ({
1145
+ default: a({
1146
+ colors: ["#2196F3", "#1976D2"],
1147
+ startPoint: "top",
1148
+ endPoint: "bottom"
1149
+ }),
1150
+ hover: a({
1151
+ colors: ["#42A5F5", "#1E88E5"],
1152
+ startPoint: "top",
1153
+ endPoint: "bottom"
1154
+ }),
1155
+ active: a({
1156
+ colors: ["#1565C0", "#0D47A1"],
1157
+ startPoint: "top",
1158
+ endPoint: "bottom"
1159
+ }),
1160
+ animation: { duration: 200, easing: "cubic-bezier(0.4, 0, 0.2, 1)" }
1161
+ }),
1162
+ /**
1163
+ * Glass morphism button
1164
+ */
1165
+ glassMorphism: () => ({
1166
+ default: a({
1167
+ colors: ["rgba(255, 255, 255, 0.25)", "rgba(255, 255, 255, 0.05)"],
1168
+ startPoint: "topLeading",
1169
+ endPoint: "bottomTrailing"
1170
+ }),
1171
+ hover: a({
1172
+ colors: ["rgba(255, 255, 255, 0.35)", "rgba(255, 255, 255, 0.15)"],
1173
+ startPoint: "topLeading",
1174
+ endPoint: "bottomTrailing"
1175
+ }),
1176
+ active: a({
1177
+ colors: ["rgba(255, 255, 255, 0.15)", "rgba(255, 255, 255, 0.25)"],
1178
+ startPoint: "topLeading",
1179
+ endPoint: "bottomTrailing"
1180
+ }),
1181
+ animation: { duration: 250, easing: "ease" }
1182
+ }),
1183
+ /**
1184
+ * Neon glow button
1185
+ */
1186
+ neonGlow: (t = "#00ff88") => ({
1187
+ default: a({
1188
+ colors: [t, u.darken(t, 0.3)],
1189
+ startPoint: "top",
1190
+ endPoint: "bottom"
1191
+ }),
1192
+ hover: _({
1193
+ colors: [u.lighten(t, 0.2), t, u.darken(t, 0.4)],
1194
+ center: "center",
1195
+ startRadius: 0,
1196
+ endRadius: 60
1197
+ }),
1198
+ active: a({
1199
+ colors: [u.darken(t, 0.2), u.darken(t, 0.4)],
1200
+ startPoint: "top",
1201
+ endPoint: "bottom"
1202
+ }),
1203
+ animation: { duration: 300, easing: "ease-in-out" }
1204
+ }),
1205
+ /**
1206
+ * Gradient call-to-action button
1207
+ */
1208
+ ctaButton: () => ({
1209
+ default: a({
1210
+ colors: ["#ff416c", "#ff4b2b"],
1211
+ startPoint: "topLeading",
1212
+ endPoint: "bottomTrailing"
1213
+ }),
1214
+ hover: a({
1215
+ colors: ["#ff6b9d", "#ff6347"],
1216
+ startPoint: "topLeading",
1217
+ endPoint: "bottomTrailing"
1218
+ }),
1219
+ active: a({
1220
+ colors: ["#e63946", "#d62828"],
1221
+ startPoint: "topLeading",
1222
+ endPoint: "bottomTrailing"
1223
+ }),
1224
+ animation: { duration: 175, easing: "ease-out" }
1225
+ })
1226
+ }, C = {
1227
+ /**
1228
+ * Subtle card hover effect
1229
+ */
1230
+ subtleHover: () => ({
1231
+ default: "#ffffff",
1232
+ hover: a({
1233
+ colors: ["#f8f9fa", "#ffffff"],
1234
+ startPoint: "top",
1235
+ endPoint: "bottom"
1236
+ }),
1237
+ animation: { duration: 200, easing: "ease" }
1238
+ }),
1239
+ /**
1240
+ * Dark mode card
1241
+ */
1242
+ darkCard: () => ({
1243
+ default: a({
1244
+ colors: ["#2d3748", "#1a202c"],
1245
+ startPoint: "top",
1246
+ endPoint: "bottom"
1247
+ }),
1248
+ hover: a({
1249
+ colors: ["#4a5568", "#2d3748"],
1250
+ startPoint: "top",
1251
+ endPoint: "bottom"
1252
+ }),
1253
+ animation: { duration: 250, easing: "ease-in-out" }
1254
+ }),
1255
+ /**
1256
+ * Hero card with rich gradient
1257
+ */
1258
+ heroCard: () => a({
1259
+ colors: [
1260
+ "#667eea",
1261
+ "#764ba2",
1262
+ "rgba(118, 75, 162, 0.8)"
1263
+ ],
1264
+ startPoint: "topLeading",
1265
+ endPoint: "bottomTrailing"
1266
+ }),
1267
+ /**
1268
+ * Pricing card with accent
1269
+ */
1270
+ pricingCard: (t = "#007AFF") => a({
1271
+ colors: [
1272
+ "#ffffff",
1273
+ "#f8f9fa",
1274
+ u.withAlpha(t, 0.05)
1275
+ ],
1276
+ startPoint: "top",
1277
+ endPoint: "bottom"
1278
+ }),
1279
+ /**
1280
+ * Testimonial card
1281
+ */
1282
+ testimonialCard: () => a({
1283
+ colors: [
1284
+ "rgba(255, 255, 255, 0.9)",
1285
+ "rgba(248, 249, 250, 0.9)",
1286
+ "rgba(233, 236, 239, 0.9)"
1287
+ ],
1288
+ startPoint: "topLeading",
1289
+ endPoint: "bottomTrailing"
1290
+ })
1291
+ }, dt = {
1292
+ /**
1293
+ * App header gradient
1294
+ */
1295
+ appHeader: () => a({
1296
+ colors: ["#667eea", "#764ba2"],
1297
+ startPoint: "leading",
1298
+ endPoint: "trailing"
1299
+ }),
1300
+ /**
1301
+ * Tab bar gradient
1302
+ */
1303
+ tabBar: () => ({
1304
+ default: a({
1305
+ colors: ["#f8f9fa", "#e9ecef"],
1306
+ startPoint: "top",
1307
+ endPoint: "bottom"
1308
+ }),
1309
+ hover: a({
1310
+ colors: ["#e9ecef", "#dee2e6"],
1311
+ startPoint: "top",
1312
+ endPoint: "bottom"
1313
+ }),
1314
+ animation: { duration: 150, easing: "ease-out" }
1315
+ }),
1316
+ /**
1317
+ * Sidebar gradient
1318
+ */
1319
+ sidebar: () => a({
1320
+ colors: [
1321
+ "#2d3748",
1322
+ "#1a202c",
1323
+ "#171923"
1324
+ ],
1325
+ startPoint: "top",
1326
+ endPoint: "bottom"
1327
+ }),
1328
+ /**
1329
+ * Navigation breadcrumb
1330
+ */
1331
+ breadcrumb: () => ({
1332
+ default: "transparent",
1333
+ hover: a({
1334
+ colors: ["rgba(0, 122, 255, 0.1)", "rgba(0, 122, 255, 0.05)"],
1335
+ startPoint: "top",
1336
+ endPoint: "bottom"
1337
+ }),
1338
+ animation: { duration: 100, easing: "ease-out" }
1339
+ })
1340
+ }, x = {
1341
+ /**
1342
+ * Text input focus effect
1343
+ */
1344
+ textInputFocus: () => ({
1345
+ default: "#ffffff",
1346
+ focus: a({
1347
+ colors: ["#f0f8ff", "#e6f3ff"],
1348
+ startPoint: "top",
1349
+ endPoint: "bottom"
1350
+ }),
1351
+ disabled: "#f5f5f5",
1352
+ animation: { duration: 100, easing: "ease-in-out" }
1353
+ }),
1354
+ /**
1355
+ * Form section background
1356
+ */
1357
+ formSection: () => a({
1358
+ colors: [
1359
+ "rgba(248, 249, 250, 0.8)",
1360
+ "rgba(255, 255, 255, 0.8)",
1361
+ "rgba(248, 249, 250, 0.8)"
1362
+ ],
1363
+ startPoint: "top",
1364
+ endPoint: "bottom"
1365
+ }),
1366
+ /**
1367
+ * Submit button gradient
1368
+ */
1369
+ submitButton: () => ({
1370
+ default: a({
1371
+ colors: ["#30d158", "#248a3d"],
1372
+ startPoint: "top",
1373
+ endPoint: "bottom"
1374
+ }),
1375
+ hover: a({
1376
+ colors: ["#40d866", "#2c8f45"],
1377
+ startPoint: "top",
1378
+ endPoint: "bottom"
1379
+ }),
1380
+ active: a({
1381
+ colors: ["#28b946", "#1f7a35"],
1382
+ startPoint: "top",
1383
+ endPoint: "bottom"
1384
+ }),
1385
+ animation: { duration: 120, easing: "ease-out" }
1386
+ }),
1387
+ /**
1388
+ * Error state input
1389
+ */
1390
+ errorInput: () => ({
1391
+ default: a({
1392
+ colors: ["rgba(255, 59, 48, 0.1)", "rgba(255, 59, 48, 0.05)"],
1393
+ startPoint: "top",
1394
+ endPoint: "bottom"
1395
+ }),
1396
+ focus: a({
1397
+ colors: ["rgba(255, 59, 48, 0.15)", "rgba(255, 59, 48, 0.08)"],
1398
+ startPoint: "top",
1399
+ endPoint: "bottom"
1400
+ }),
1401
+ animation: { duration: 150, easing: "ease-in-out" }
1402
+ })
1403
+ }, ut = {
1404
+ /**
1405
+ * Metric card with positive trend
1406
+ */
1407
+ positiveMetric: () => a({
1408
+ colors: ["#d4edda", "#c3e6cb", "#b8dacc"],
1409
+ startPoint: "topLeading",
1410
+ endPoint: "bottomTrailing"
1411
+ }),
1412
+ /**
1413
+ * Metric card with negative trend
1414
+ */
1415
+ negativeMetric: () => a({
1416
+ colors: ["#f8d7da", "#f5c6cb", "#f1b0b7"],
1417
+ startPoint: "topLeading",
1418
+ endPoint: "bottomTrailing"
1419
+ }),
1420
+ /**
1421
+ * Chart background
1422
+ */
1423
+ chartBackground: () => a({
1424
+ colors: [
1425
+ "rgba(255, 255, 255, 0.95)",
1426
+ "rgba(248, 249, 250, 0.95)",
1427
+ "rgba(255, 255, 255, 0.95)"
1428
+ ],
1429
+ startPoint: "top",
1430
+ endPoint: "bottom"
1431
+ }),
1432
+ /**
1433
+ * Progress bar gradient
1434
+ */
1435
+ progressBar: (t = "#007AFF") => a({
1436
+ colors: [
1437
+ u.lighten(t, 0.1),
1438
+ t,
1439
+ u.darken(t, 0.1)
1440
+ ],
1441
+ startPoint: "top",
1442
+ endPoint: "bottom"
1443
+ }),
1444
+ /**
1445
+ * Status indicator gradients
1446
+ */
1447
+ statusSuccess: () => _({
1448
+ colors: ["#30d158", "#248a3d", "rgba(36, 138, 61, 0.8)"],
1449
+ center: "center",
1450
+ startRadius: 0,
1451
+ endRadius: 25
1452
+ }),
1453
+ statusWarning: () => _({
1454
+ colors: ["#ff9500", "#cc7700", "rgba(204, 119, 0, 0.8)"],
1455
+ center: "center",
1456
+ startRadius: 0,
1457
+ endRadius: 25
1458
+ }),
1459
+ statusError: () => _({
1460
+ colors: ["#ff3b30", "#cc2e26", "rgba(204, 46, 38, 0.8)"],
1461
+ center: "center",
1462
+ startRadius: 0,
1463
+ endRadius: 25
1464
+ })
1465
+ }, ft = {
1466
+ /**
1467
+ * Shimmer loading effect
1468
+ */
1469
+ shimmer: () => a({
1470
+ colors: [
1471
+ "rgba(255, 255, 255, 0)",
1472
+ "rgba(255, 255, 255, 0.4)",
1473
+ "rgba(255, 255, 255, 0.8)",
1474
+ "rgba(255, 255, 255, 0.4)",
1475
+ "rgba(255, 255, 255, 0)"
1476
+ ],
1477
+ startPoint: "leading",
1478
+ endPoint: "trailing",
1479
+ stops: [0, 25, 50, 75, 100]
1480
+ }),
1481
+ /**
1482
+ * Skeleton loading gradient
1483
+ */
1484
+ skeleton: () => a({
1485
+ colors: ["#f6f7f8", "#edeef1", "#f6f7f8"],
1486
+ startPoint: "leading",
1487
+ endPoint: "trailing"
1488
+ }),
1489
+ /**
1490
+ * Pulse animation gradient
1491
+ */
1492
+ pulse: (t = "#007AFF") => _({
1493
+ colors: [
1494
+ u.withAlpha(t, 0.8),
1495
+ u.withAlpha(t, 0.4),
1496
+ u.withAlpha(t, 0.1),
1497
+ "transparent"
1498
+ ],
1499
+ center: "center",
1500
+ startRadius: 0,
1501
+ endRadius: 100
1502
+ }),
1503
+ /**
1504
+ * Spinner gradient
1505
+ */
1506
+ spinner: () => K({
1507
+ colors: [
1508
+ "#007AFF",
1509
+ "rgba(0, 122, 255, 0.8)",
1510
+ "rgba(0, 122, 255, 0.4)",
1511
+ "rgba(0, 122, 255, 0.1)",
1512
+ "transparent",
1513
+ "transparent",
1514
+ "#007AFF"
1515
+ ],
1516
+ center: "center",
1517
+ startAngle: 0,
1518
+ endAngle: 360
1519
+ })
1520
+ }, B = {
1521
+ /**
1522
+ * App background gradient
1523
+ */
1524
+ appBackground: () => a({
1525
+ colors: [
1526
+ "#f8f9fa",
1527
+ "#ffffff",
1528
+ "#f8f9fa"
1529
+ ],
1530
+ startPoint: "top",
1531
+ endPoint: "bottom"
1532
+ }),
1533
+ /**
1534
+ * Dark mode app background
1535
+ */
1536
+ darkAppBackground: () => a({
1537
+ colors: [
1538
+ "#1a1a1a",
1539
+ "#0f0f0f",
1540
+ "#1a1a1a"
1541
+ ],
1542
+ startPoint: "top",
1543
+ endPoint: "bottom"
1544
+ }),
1545
+ /**
1546
+ * Modal backdrop
1547
+ */
1548
+ modalBackdrop: () => _({
1549
+ colors: [
1550
+ "rgba(0, 0, 0, 0.4)",
1551
+ "rgba(0, 0, 0, 0.6)",
1552
+ "rgba(0, 0, 0, 0.8)"
1553
+ ],
1554
+ center: "center",
1555
+ startRadius: 0,
1556
+ endRadius: 300
1557
+ }),
1558
+ /**
1559
+ * Hero section background
1560
+ */
1561
+ heroSection: () => a({
1562
+ colors: [
1563
+ "#667eea",
1564
+ "#764ba2",
1565
+ "#667eea"
1566
+ ],
1567
+ startPoint: "topLeading",
1568
+ endPoint: "bottomTrailing"
1569
+ }),
1570
+ /**
1571
+ * Footer gradient
1572
+ */
1573
+ footer: () => a({
1574
+ colors: [
1575
+ "#2d3748",
1576
+ "#1a202c"
1577
+ ],
1578
+ startPoint: "top",
1579
+ endPoint: "bottom"
1580
+ })
1581
+ }, z = {
1582
+ /**
1583
+ * iOS theme gradients
1584
+ */
1585
+ ios: {
1586
+ primary: G.iosPrimary,
1587
+ secondary: () => R.secondaryButton(),
1588
+ card: C.subtleHover,
1589
+ input: x.textInputFocus,
1590
+ background: B.appBackground
1591
+ },
1592
+ /**
1593
+ * Material Design theme gradients
1594
+ */
1595
+ material: {
1596
+ primary: G.materialRaised,
1597
+ secondary: () => R.secondaryButton(),
1598
+ card: C.subtleHover,
1599
+ input: x.textInputFocus,
1600
+ background: B.appBackground
1601
+ },
1602
+ /**
1603
+ * Modern/Glass theme gradients
1604
+ */
1605
+ modern: {
1606
+ primary: G.glassMorphism,
1607
+ secondary: G.glassMorphism,
1608
+ card: () => C.subtleHover(),
1609
+ input: x.textInputFocus,
1610
+ background: () => a({
1611
+ colors: [
1612
+ "rgba(255, 255, 255, 0.95)",
1613
+ "rgba(248, 249, 250, 0.95)"
1614
+ ],
1615
+ startPoint: "top",
1616
+ endPoint: "bottom"
1617
+ })
1618
+ }
1619
+ }, pt = (t = "ios") => {
1620
+ const e = z[t];
1621
+ return {
1622
+ Button: {
1623
+ primary: b("button-primary", e.primary()),
1624
+ secondary: b("button-secondary", e.secondary()),
1625
+ danger: b("button-danger", R.dangerButton()),
1626
+ success: b("button-success", R.successButton())
1627
+ },
1628
+ Card: {
1629
+ default: b("card-default", e.card()),
1630
+ hero: b("card-hero", {
1631
+ default: C.heroCard(),
1632
+ hover: u.reverse(C.heroCard()),
1633
+ animation: { duration: 300, easing: "ease-in-out" }
1634
+ })
1635
+ },
1636
+ Input: {
1637
+ default: b("input-default", e.input()),
1638
+ error: b("input-error", x.errorInput())
1639
+ },
1640
+ Background: {
1641
+ app: e.background(),
1642
+ modal: B.modalBackdrop()
1643
+ }
1644
+ };
1645
+ }, qt = {
1646
+ Button: G,
1647
+ Card: C,
1648
+ Navigation: dt,
1649
+ Form: x,
1650
+ Dashboard: ut,
1651
+ Animation: ft,
1652
+ Background: B,
1653
+ Themed: z,
1654
+ createComponentGradients: pt
1655
+ };
1656
+ var mt = Object.defineProperty, gt = (t, e, n) => e in t ? mt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, k = (t, e, n) => gt(t, typeof e != "symbol" ? e + "" : e, n);
1657
+ const J = class A {
1658
+ constructor() {
1659
+ k(this, "metrics", /* @__PURE__ */ new Map()), k(this, "enabled", process.env.NODE_ENV === "development"), k(this, "totalMetrics", {
1660
+ totalGradients: 0,
1661
+ totalResolutions: 0,
1662
+ totalCacheHits: 0,
1663
+ totalCacheMisses: 0,
1664
+ averageComplexity: 0,
1665
+ memoryPressure: 0
1666
+ });
1667
+ }
1668
+ static getInstance() {
1669
+ return A.instance || (A.instance = new A()), A.instance;
1670
+ }
1671
+ /**
1672
+ * Enable or disable performance monitoring
1673
+ */
1674
+ setEnabled(e) {
1675
+ this.enabled = e;
1676
+ }
1677
+ /**
1678
+ * Track gradient creation
1679
+ */
1680
+ trackCreation(e, n) {
1681
+ if (!this.enabled) return;
1682
+ const o = performance.now(), r = g.getComplexityScore(n), s = {
1683
+ creationTime: performance.now() - o,
1684
+ resolutionTime: 0,
1685
+ cssGenerationTime: 0,
1686
+ memoryUsage: this.estimateMemoryUsage(n),
1687
+ cacheHits: 0,
1688
+ cacheMisses: 0,
1689
+ complexityScore: r,
1690
+ renderCount: 0
1691
+ };
1692
+ this.metrics.set(e, s), this.updateTotalMetrics();
1693
+ }
1694
+ /**
1695
+ * Track gradient resolution (conversion to CSS)
1696
+ */
1697
+ trackResolution(e, n = !1) {
1698
+ if (!this.enabled) return;
1699
+ const o = performance.now(), r = this.metrics.get(e);
1700
+ if (r) {
1701
+ const i = performance.now();
1702
+ r.resolutionTime += i - o, r.renderCount++, n ? (r.cacheHits++, this.totalMetrics.totalCacheHits++) : (r.cacheMisses++, this.totalMetrics.totalCacheMisses++), this.totalMetrics.totalResolutions++;
1703
+ }
1704
+ }
1705
+ /**
1706
+ * Track CSS generation time
1707
+ */
1708
+ trackCSSGeneration(e, n) {
1709
+ if (!this.enabled) return;
1710
+ const o = this.metrics.get(e);
1711
+ o && (o.cssGenerationTime += n);
1712
+ }
1713
+ /**
1714
+ * Get performance metrics for a specific gradient
1715
+ */
1716
+ getMetrics(e) {
1717
+ return this.metrics.get(e);
1718
+ }
1719
+ /**
1720
+ * Get overall performance summary
1721
+ */
1722
+ getSummary() {
1723
+ const n = Array.from(this.metrics.entries()).sort((i, s) => {
1724
+ const [, l] = i, [, d] = s, p = l.cacheHits / (l.cacheHits + l.cacheMisses + 1);
1725
+ return d.cacheHits / (d.cacheHits + d.cacheMisses + 1) - p;
1726
+ }), o = n.slice(0, 5).map(([i, s]) => ({ id: i, metrics: s })), r = n.slice(-5).map(([i, s]) => ({ id: i, metrics: s }));
1727
+ return {
1728
+ totalMetrics: this.totalMetrics,
1729
+ topPerformers: o,
1730
+ poorPerformers: r,
1731
+ recommendations: this.generateRecommendations()
1732
+ };
1733
+ }
1734
+ /**
1735
+ * Reset all metrics
1736
+ */
1737
+ reset() {
1738
+ this.metrics.clear(), this.totalMetrics = {
1739
+ totalGradients: 0,
1740
+ totalResolutions: 0,
1741
+ totalCacheHits: 0,
1742
+ totalCacheMisses: 0,
1743
+ averageComplexity: 0,
1744
+ memoryPressure: 0
1745
+ };
1746
+ }
1747
+ /**
1748
+ * Export metrics to JSON for analysis
1749
+ */
1750
+ exportMetrics() {
1751
+ return JSON.stringify({
1752
+ totalMetrics: this.totalMetrics,
1753
+ gradientMetrics: Object.fromEntries(this.metrics),
1754
+ timestamp: Date.now(),
1755
+ environment: {
1756
+ userAgent: typeof navigator < "u" ? navigator.userAgent : "Node.js",
1757
+ memory: typeof performance < "u" && "memory" in performance ? performance.memory : null
1758
+ }
1759
+ }, null, 2);
1760
+ }
1761
+ estimateMemoryUsage(e) {
1762
+ let n = 0;
1763
+ n += 100, "colors" in e.options && (n += e.options.colors.length * 20, n += e.options.stops ? e.options.stops.length * 8 : 0);
1764
+ const o = g.getComplexityScore(e);
1765
+ return n += o * 10, n;
1766
+ }
1767
+ updateTotalMetrics() {
1768
+ this.totalMetrics.totalGradients = this.metrics.size;
1769
+ const e = Array.from(this.metrics.values()).map((o) => o.complexityScore);
1770
+ this.totalMetrics.averageComplexity = e.length > 0 ? e.reduce((o, r) => o + r, 0) / e.length : 0;
1771
+ const n = Array.from(this.metrics.values()).reduce((o, r) => o + r.memoryUsage, 0);
1772
+ this.totalMetrics.memoryPressure = n;
1773
+ }
1774
+ generateRecommendations() {
1775
+ const e = [];
1776
+ this.totalMetrics.totalCacheHits / (this.totalMetrics.totalCacheHits + this.totalMetrics.totalCacheMisses) < 0.7 && e.push("Consider using StateGradientAsset for frequently used gradients to improve caching"), this.totalMetrics.averageComplexity > 8 && e.push("Average gradient complexity is high. Consider simplifying gradients or using presets"), this.totalMetrics.memoryPressure > 5e4 && e.push("High memory usage detected. Consider cleanup of unused gradients");
1777
+ const o = Array.from(this.metrics.entries()).filter(([, r]) => r.renderCount > 100);
1778
+ return o.length > 0 && e.push(`${o.length} gradients are rendered frequently. Ensure they use caching`), e;
1779
+ }
1780
+ };
1781
+ k(J, "instance");
1782
+ let L = J;
1783
+ const j = {
1784
+ /**
1785
+ * Validate and debug a gradient configuration
1786
+ */
1787
+ debugGradient: (t) => {
1788
+ const e = M.validateGradient(t), n = g.getComplexityScore(t), o = g.getPerformanceImpact(t), r = [];
1789
+ n > 10 && r.push("High complexity gradient may impact performance"), g.hasTransparency(t) && r.push("Gradient uses transparency which may affect compositing performance"), g.getColorCount(t) > 5 && r.push("Many colors in gradient may cause banding on some devices");
1790
+ const i = [];
1791
+ o === "high" && (i.push("Consider simplifying the gradient or using a preset"), i.push("Cache this gradient if used frequently")), n > 15 && i.push("Consider breaking complex gradient into simpler components");
1792
+ let s = "";
1793
+ try {
1794
+ s = I(t);
1795
+ } catch (l) {
1796
+ s = `Error generating CSS: ${l.message}`;
1797
+ }
1798
+ return {
1799
+ isValid: e.valid,
1800
+ errors: e.errors,
1801
+ warnings: r,
1802
+ performance: {
1803
+ complexity: n,
1804
+ impact: o,
1805
+ recommendations: i
1806
+ },
1807
+ cssOutput: s
1808
+ };
1809
+ },
1810
+ /**
1811
+ * Debug state gradient configuration
1812
+ */
1813
+ debugStateGradient: (t) => {
1814
+ const e = M.validateStateGradientOptions(t), n = [], o = {};
1815
+ return Object.entries(t).forEach(([r, i]) => {
1816
+ r !== "animation" && (o[r] = {
1817
+ type: typeof i == "string" ? "string" : i && "type" in i ? "gradient" : "asset",
1818
+ complexity: i && typeof i == "object" && "type" in i ? g.getComplexityScore(i) : 1
1819
+ });
1820
+ }), t.animation && (t.animation.duration && t.animation.duration > 500 && n.push("Long animation duration may feel sluggish"), t.animation.duration && t.animation.duration < 50 && n.push("Very short animation duration may not be noticeable")), {
1821
+ isValid: e.valid,
1822
+ errors: e.errors,
1823
+ warnings: n,
1824
+ stateAnalysis: o
1825
+ };
1826
+ },
1827
+ /**
1828
+ * Performance profiler for gradient operations
1829
+ */
1830
+ profileOperation: (t, e) => {
1831
+ if (process.env.NODE_ENV !== "development")
1832
+ return e();
1833
+ const n = performance.now(), o = e(), r = performance.now();
1834
+ return console.log(`Gradient operation "${t}" took ${(r - n).toFixed(2)}ms`), o;
1835
+ },
1836
+ /**
1837
+ * CSS analyzer for generated gradients
1838
+ */
1839
+ analyzeCSS: (t) => {
1840
+ const e = [], n = [];
1841
+ let o = !1;
1842
+ return t.includes("conic-gradient") && (e.push("Chrome 69+", "Firefox 83+", "Safari 12.1+"), o = !0), t.includes("linear-gradient") && e.push("All modern browsers"), t.includes("radial-gradient") && e.push("All modern browsers"), (t.match(/#[0-9a-f]{6}|rgb\([^)]+\)|hsl\([^)]+\)/gi) || []).length > 5 && n.push("Many colors may cause performance impact on low-end devices"), t.includes("repeating-") && n.push("Repeating gradients can be GPU-intensive"), {
1843
+ browserSupport: e,
1844
+ fallbackRecommended: o,
1845
+ performanceNotes: n
1846
+ };
1847
+ }
1848
+ }, zt = {
1849
+ /**
1850
+ * Log gradient information to console (development only)
1851
+ */
1852
+ inspect: (t, e) => {
1853
+ if (process.env.NODE_ENV === "development") {
1854
+ if (console.group(`🎨 Gradient Inspector${e ? ` - ${e}` : ""}`), "type" in t) {
1855
+ const n = j.debugGradient(t);
1856
+ console.log("Type:", t.type), console.log("Valid:", n.isValid), console.log("Complexity:", n.performance.complexity), console.log("Performance Impact:", n.performance.impact), console.log("CSS:", n.cssOutput), n.errors.length > 0 && console.error("Errors:", n.errors), n.warnings.length > 0 && console.warn("Warnings:", n.warnings);
1857
+ } else {
1858
+ const n = j.debugStateGradient(t);
1859
+ console.log("Type: State Gradient"), console.log("Valid:", n.isValid), console.log("States:", Object.keys(n.stateAnalysis)), console.table(n.stateAnalysis), n.errors.length > 0 && console.error("Errors:", n.errors), n.warnings.length > 0 && console.warn("Warnings:", n.warnings);
1860
+ }
1861
+ console.groupEnd();
1862
+ }
1863
+ },
1864
+ /**
1865
+ * Track gradient usage in components
1866
+ */
1867
+ trackUsage: (t, e) => {
1868
+ if (process.env.NODE_ENV !== "development") return;
1869
+ L.getInstance().trackCreation(`${t}-${e}`, {
1870
+ type: "linear",
1871
+ options: { colors: ["#000", "#fff"], startPoint: "top", endPoint: "bottom" }
1872
+ });
1873
+ },
1874
+ /**
1875
+ * Generate performance report
1876
+ */
1877
+ generateReport: () => {
1878
+ if (process.env.NODE_ENV !== "development") return;
1879
+ const e = L.getInstance().getSummary();
1880
+ console.group("📊 Gradient Performance Report"), console.table(e.totalMetrics), e.recommendations.length > 0 && (console.group("💡 Recommendations"), e.recommendations.forEach((n) => console.log(`• ${n}`)), console.groupEnd()), e.poorPerformers.length > 0 && (console.group("⚠️ Poor Performers"), console.table(e.poorPerformers.map((n) => ({ id: n.id, ...n.metrics }))), console.groupEnd()), console.groupEnd();
1881
+ }
1882
+ }, Jt = L.getInstance();
1883
+ function a(t) {
1884
+ return {
1885
+ type: "linear",
1886
+ options: t
1887
+ };
1888
+ }
1889
+ function _(t) {
1890
+ return {
1891
+ type: "radial",
1892
+ options: t
1893
+ };
1894
+ }
1895
+ function K(t) {
1896
+ return {
1897
+ type: "angular",
1898
+ options: t
1899
+ };
1900
+ }
1901
+ function Kt(t) {
1902
+ return {
1903
+ type: "conic",
1904
+ options: t
1905
+ };
1906
+ }
1907
+ function Zt(t) {
1908
+ return {
1909
+ type: "repeating-linear",
1910
+ options: t
1911
+ };
1912
+ }
1913
+ function Qt(t) {
1914
+ return {
1915
+ type: "repeating-radial",
1916
+ options: t
1917
+ };
1918
+ }
1919
+ function Xt(t) {
1920
+ return {
1921
+ type: "elliptical",
1922
+ options: t
1923
+ };
1924
+ }
1925
+ var ht = Object.defineProperty, bt = (t, e, n) => e in t ? ht(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, T = (t, e, n) => bt(t, typeof e != "symbol" ? e + "" : e, n);
1926
+ class yt {
1927
+ constructor(e, n, o, r = {}) {
1928
+ T(this, "_accessor"), T(this, "_setter"), T(this, "_binding"), T(this, "_metadata");
1929
+ const [i, s] = Q(e);
1930
+ this._accessor = i, this._setter = s, this._binding = D(i, s, {
1931
+ name: r.name || `${o}Binding`
1932
+ }), this._metadata = {
1933
+ type: "State",
1934
+ propertyName: o,
1935
+ componentId: n.id,
1936
+ options: r
1937
+ }, n.setState(o, e);
1938
+ const l = X();
1939
+ l && l.cleanups.push(() => {
1940
+ this.cleanup();
1941
+ }), r.resetOnMount && this.resetToInitialValue(e), r.persist && typeof window < "u" && this.setupPersistence(o, e);
1942
+ }
1943
+ get wrappedValue() {
1944
+ return this._accessor();
1945
+ }
1946
+ set wrappedValue(e) {
1947
+ this._setter(e);
1948
+ }
1949
+ get projectedValue() {
1950
+ return this._binding;
1951
+ }
1952
+ /**
1953
+ * Get the underlying signal accessor (for advanced usage)
1954
+ */
1955
+ get accessor() {
1956
+ return this._accessor;
1957
+ }
1958
+ /**
1959
+ * Get the underlying signal setter (for advanced usage)
1960
+ */
1961
+ get setter() {
1962
+ return this._setter;
1963
+ }
1964
+ /**
1965
+ * Get property wrapper metadata
1966
+ */
1967
+ get metadata() {
1968
+ return this._metadata;
1969
+ }
1970
+ /**
1971
+ * Reset to initial value
1972
+ */
1973
+ resetToInitialValue(e) {
1974
+ this._setter(e);
1975
+ }
1976
+ /**
1977
+ * Set up local storage persistence
1978
+ */
1979
+ setupPersistence(e, n) {
1980
+ const o = `tachui_state_${this._metadata.componentId}_${e}`;
1981
+ try {
1982
+ const r = localStorage.getItem(o);
1983
+ if (r != null && r !== "undefined") {
1984
+ const i = JSON.parse(r);
1985
+ this._setter(i);
1986
+ }
1987
+ } catch (r) {
1988
+ console.warn(`Failed to load persisted state for ${e}:`, r);
1989
+ }
1990
+ Y(() => {
1991
+ const r = this._accessor();
1992
+ try {
1993
+ localStorage.setItem(o, JSON.stringify(r));
1994
+ } catch (i) {
1995
+ console.warn(`Failed to persist state for ${e}:`, i);
1996
+ }
1997
+ });
1998
+ }
1999
+ /**
2000
+ * Cleanup resources
2001
+ */
2002
+ cleanup() {
2003
+ }
2004
+ }
2005
+ function D(t, e, n = {}) {
2006
+ return new Pt(t, e, n);
2007
+ }
2008
+ let Pt = class {
2009
+ constructor(e, n, o = {}) {
2010
+ this._get = e, this._set = n, this._options = o;
2011
+ }
2012
+ get wrappedValue() {
2013
+ return this._get();
2014
+ }
2015
+ set wrappedValue(e) {
2016
+ this._set(e);
2017
+ }
2018
+ get projectedValue() {
2019
+ return this;
2020
+ }
2021
+ get() {
2022
+ return this._get();
2023
+ }
2024
+ set(e) {
2025
+ this._set(e);
2026
+ }
2027
+ /**
2028
+ * Create a derived binding with transformation
2029
+ */
2030
+ map(e, n) {
2031
+ return D(() => e(this._get()), (i) => {
2032
+ const s = this._get(), l = e(s), d = typeof i == "function" ? i(l) : i, p = n(d, s);
2033
+ this._set(p);
2034
+ }, {
2035
+ name: `${this._options.name || "binding"}_mapped`
2036
+ });
2037
+ }
2038
+ /**
2039
+ * Create a constant binding (read-only)
2040
+ */
2041
+ constant() {
2042
+ return D(
2043
+ this._get,
2044
+ () => (console.warn("Attempted to set value on constant binding"), this._get()),
2045
+ { name: `${this._options.name || "binding"}_constant` }
2046
+ );
2047
+ }
2048
+ };
2049
+ const te = (t, e = {}) => {
2050
+ const n = q(), o = vt() || "state";
2051
+ return new yt(t, n, o, e);
2052
+ }, ee = D;
2053
+ function vt() {
2054
+ try {
2055
+ const t = new Error().stack;
2056
+ if (t)
2057
+ return t.match(/at (\w+)\./)?.[1] || null;
2058
+ } catch {
2059
+ }
2060
+ return null;
2061
+ }
2062
+ function _t(t) {
2063
+ return t && typeof t == "object" && "wrappedValue" in t && "projectedValue" in t;
2064
+ }
2065
+ function wt(t) {
2066
+ return t && typeof t == "object" && "get" in t && "set" in t && "wrappedValue" in t;
2067
+ }
2068
+ function ne(t) {
2069
+ return _t(t) || wt(t) ? t.wrappedValue : t;
2070
+ }
2071
+ var Ct = Object.defineProperty, Ft = (t, e, n) => e in t ? Ct(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, $ = (t, e, n) => Ft(t, typeof e != "symbol" ? e + "" : e, n);
2072
+ class y {
2073
+ constructor(e, n, o, r, i = {}) {
2074
+ $(this, "_get"), $(this, "_set"), $(this, "_options"), $(this, "_componentContext"), $(this, "_propertyName"), this._get = e, this._set = n, this._componentContext = o, this._propertyName = r, this._options = i, o.setBinding(r, this);
2075
+ }
2076
+ get wrappedValue() {
2077
+ return this._get();
2078
+ }
2079
+ set wrappedValue(e) {
2080
+ this._set(e), this._componentContext.setState(`_binding_${this._propertyName}_trigger`, Date.now());
2081
+ }
2082
+ get projectedValue() {
2083
+ return this;
2084
+ }
2085
+ get() {
2086
+ return this._get();
2087
+ }
2088
+ set(e) {
2089
+ this._set(e), this._componentContext.setState(`_binding_${this._propertyName}_trigger`, Date.now());
2090
+ }
2091
+ /**
2092
+ * Create a derived binding with transformation
2093
+ */
2094
+ map(e, n) {
2095
+ const o = () => e(this._get()), r = (i) => {
2096
+ const s = this._get(), l = e(s), d = typeof i == "function" ? i(l) : i, p = n(d, s);
2097
+ this._set(p), this._componentContext.setState(`_binding_${this._propertyName}_mapped_trigger`, Date.now());
2098
+ };
2099
+ return new y(
2100
+ o,
2101
+ r,
2102
+ this._componentContext,
2103
+ `${this._propertyName}_mapped`,
2104
+ { name: `${this._options.name || "binding"}_mapped` }
2105
+ );
2106
+ }
2107
+ /**
2108
+ * Create a constant binding (read-only)
2109
+ */
2110
+ constant() {
2111
+ const e = () => (console.warn("Attempted to set value on constant binding"), this._get());
2112
+ return new y(
2113
+ this._get,
2114
+ e,
2115
+ this._componentContext,
2116
+ `${this._propertyName}_constant`,
2117
+ { name: `${this._options.name || "binding"}_constant` }
2118
+ );
2119
+ }
2120
+ /**
2121
+ * Create a binding with validation
2122
+ */
2123
+ withValidation(e, n) {
2124
+ const o = (r) => {
2125
+ const i = typeof r == "function" ? r(this._get()) : r;
2126
+ return e(i) ? (this._set(i), this._componentContext.setState(
2127
+ `_binding_${this._propertyName}_validated_trigger`,
2128
+ Date.now()
2129
+ )) : console.warn(n || `Validation failed for binding ${this._propertyName}`), i;
2130
+ };
2131
+ return new y(
2132
+ this._get,
2133
+ o,
2134
+ this._componentContext,
2135
+ `${this._propertyName}_validated`,
2136
+ { name: `${this._options.name || "binding"}_validated` }
2137
+ );
2138
+ }
2139
+ /**
2140
+ * Create a debounced binding
2141
+ */
2142
+ debounced(e = 300) {
2143
+ let n = null;
2144
+ const o = (r) => {
2145
+ const i = typeof r == "function" ? r(this._get()) : r;
2146
+ return n && clearTimeout(n), n = setTimeout(() => {
2147
+ this._set(i), this._componentContext.setState(
2148
+ `_binding_${this._propertyName}_debounced_trigger`,
2149
+ Date.now()
2150
+ ), n = null;
2151
+ }, e), i;
2152
+ };
2153
+ return new y(
2154
+ this._get,
2155
+ o,
2156
+ this._componentContext,
2157
+ `${this._propertyName}_debounced`,
2158
+ { name: `${this._options.name || "binding"}_debounced` }
2159
+ );
2160
+ }
2161
+ }
2162
+ function U(t, e, n = {}) {
2163
+ const o = q(), r = St() || "binding";
2164
+ return new y(t, e, o, r, n);
2165
+ }
2166
+ function St() {
2167
+ try {
2168
+ const t = new Error().stack;
2169
+ if (t)
2170
+ return t.match(/at (\w+)\./)?.[1] || null;
2171
+ } catch {
2172
+ }
2173
+ return null;
2174
+ }
2175
+ function oe(t) {
2176
+ return t && typeof t == "object" && "get" in t && "set" in t && "wrappedValue" in t && t instanceof y;
2177
+ }
2178
+ const re = {
2179
+ /**
2180
+ * Check if a binding is read-only
2181
+ */
2182
+ isReadOnly(t) {
2183
+ if (t instanceof y)
2184
+ try {
2185
+ const e = t.get(), n = console.warn;
2186
+ let o = !1;
2187
+ return console.warn = (...r) => {
2188
+ r[0] === "Attempted to set value on constant binding" && (o = !0);
2189
+ }, t.set(e), console.warn = n, o;
2190
+ } catch {
2191
+ return !0;
2192
+ }
2193
+ return !1;
2194
+ },
2195
+ /**
2196
+ * Create a computed binding from multiple sources
2197
+ */
2198
+ computed(t, e, n = {}) {
2199
+ const o = () => {
2200
+ const i = t.map((s) => s.get());
2201
+ return e(...i);
2202
+ };
2203
+ return U(o, () => (console.warn("Cannot set computed binding value"), o()), n);
2204
+ },
2205
+ /**
2206
+ * Chain multiple bindings together
2207
+ */
2208
+ chain(t, e = {}) {
2209
+ const n = () => t.map((r) => r.get());
2210
+ return U(n, (r) => {
2211
+ const i = typeof r == "function" ? r(n()) : r;
2212
+ return t.forEach((s, l) => {
2213
+ l < i.length && s.set(i[l]);
2214
+ }), i;
2215
+ }, e);
2216
+ }
2217
+ };
2218
+ export {
2219
+ re as $,
2220
+ kt as A,
2221
+ Ut as B,
2222
+ Kt as C,
2223
+ Wt as D,
2224
+ Xt as E,
2225
+ P as F,
2226
+ Ht as G,
2227
+ G as H,
2228
+ R as I,
2229
+ C as J,
2230
+ x as K,
2231
+ a as L,
2232
+ ut as M,
2233
+ dt as N,
2234
+ ft as O,
2235
+ B as P,
2236
+ z as Q,
2237
+ _ as R,
2238
+ te as S,
2239
+ Ot as T,
2240
+ pt as U,
2241
+ qt as V,
2242
+ L as W,
2243
+ j as X,
2244
+ zt as Y,
2245
+ Jt as Z,
2246
+ y as _,
2247
+ oe as a,
2248
+ D as a0,
2249
+ ee as a1,
2250
+ wt as a2,
2251
+ It as b,
2252
+ U as c,
2253
+ Bt as d,
2254
+ Dt as e,
2255
+ Mt as f,
2256
+ O as g,
2257
+ Tt as h,
2258
+ _t as i,
2259
+ Et as j,
2260
+ Vt as k,
2261
+ Nt as l,
2262
+ Lt as m,
2263
+ K as n,
2264
+ Zt as o,
2265
+ Qt as p,
2266
+ V as q,
2267
+ h as r,
2268
+ u as s,
2269
+ c as t,
2270
+ ne as u,
2271
+ g as v,
2272
+ ct as w,
2273
+ v as x,
2274
+ M as y,
2275
+ jt as z
2276
+ };