@tachui/core 0.7.1-alpha → 0.8.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 (286) hide show
  1. package/README.md +20 -2
  2. package/dist/bundles/assets.d.ts +19 -0
  3. package/dist/bundles/assets.d.ts.map +1 -0
  4. package/dist/bundles/common.d.ts +1 -1
  5. package/dist/bundles/common.d.ts.map +1 -1
  6. package/dist/bundles/context.d.ts +22 -0
  7. package/dist/bundles/context.d.ts.map +1 -0
  8. package/dist/bundles/minimal.d.ts +8 -18
  9. package/dist/bundles/minimal.d.ts.map +1 -1
  10. package/dist/bundles/production-minimal.d.ts +2 -16
  11. package/dist/bundles/production-minimal.d.ts.map +1 -1
  12. package/dist/common.js +405 -828
  13. package/dist/compiler/advanced-parser.d.ts.map +1 -1
  14. package/dist/compiler/codegen.d.ts.map +1 -1
  15. package/dist/compiler/index.js +6 -1387
  16. package/dist/compiler/parser.d.ts +1 -1
  17. package/dist/compiler/parser.d.ts.map +1 -1
  18. package/dist/compiler/plugin.d.ts.map +1 -1
  19. package/dist/compiler/types.d.ts +28 -0
  20. package/dist/compiler/types.d.ts.map +1 -1
  21. package/dist/component-XAzF1xqs.js +487 -0
  22. package/dist/component-base-x2XmHFjy.js +255 -0
  23. package/dist/components/index.d.ts +4 -38
  24. package/dist/components/index.d.ts.map +1 -1
  25. package/dist/components/index.js +7 -4167
  26. package/dist/components/wrapper.d.ts +5 -152
  27. package/dist/components/wrapper.d.ts.map +1 -1
  28. package/dist/concatenated-component-ByPl3_FF.js +2933 -0
  29. package/dist/constants/index.d.ts +1 -1
  30. package/dist/constants/layout.d.ts +47 -4
  31. package/dist/constants/layout.d.ts.map +1 -1
  32. package/dist/constants/layout.js +84 -0
  33. package/dist/css-classes/index.js +176 -0
  34. package/dist/{dom-bridge-Cx-s6Ihx.js → dom-bridge-CAa1N2zX.js} +28 -28
  35. package/dist/{effect-CytAc9em.js → effect-B9Knft0b.js} +3 -3
  36. package/dist/essential.js +397 -826
  37. package/dist/index-DEBd8cq7.js +1144 -0
  38. package/dist/index-DIvMCJQO.js +268 -0
  39. package/dist/index-vdsiw6gQ.js +777 -0
  40. package/dist/index.d.ts +9 -9
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +397 -826
  43. package/dist/minimal-prod.js +101 -155
  44. package/dist/minimal.js +118 -170
  45. package/dist/modifiers/background.d.ts +41 -11
  46. package/dist/modifiers/background.d.ts.map +1 -1
  47. package/dist/modifiers/base.d.ts +6 -33
  48. package/dist/modifiers/base.d.ts.map +1 -1
  49. package/dist/modifiers/base.js +487 -0
  50. package/dist/modifiers/builder.d.ts +103 -195
  51. package/dist/modifiers/builder.d.ts.map +1 -1
  52. package/dist/modifiers/builder.js +9 -0
  53. package/dist/modifiers/core.d.ts +9 -401
  54. package/dist/modifiers/core.d.ts.map +1 -1
  55. package/dist/modifiers/{utils.d.ts → factories.d.ts} +18 -5
  56. package/dist/modifiers/factories.d.ts.map +1 -0
  57. package/dist/modifiers/index.d.ts +8 -52
  58. package/dist/modifiers/index.d.ts.map +1 -1
  59. package/dist/modifiers/index.js +38 -0
  60. package/dist/modifiers/presets.d.ts +368 -0
  61. package/dist/modifiers/presets.d.ts.map +1 -0
  62. package/dist/modifiers/registry.js +10 -0
  63. package/dist/modifiers/types.d.ts +39 -211
  64. package/dist/modifiers/types.d.ts.map +1 -1
  65. package/dist/modifiers/types.js +4 -0
  66. package/dist/observed-object-Cos-FtjP.js +269 -0
  67. package/dist/performance-optimizer-stub-CtfXUwl4.js +38 -0
  68. package/dist/plugin-BCAdZXKq.js +1680 -0
  69. package/dist/plugins/index.d.ts +5 -6
  70. package/dist/plugins/index.d.ts.map +1 -1
  71. package/dist/plugins/index.js +147 -297
  72. package/dist/plugins/simplified-index.d.ts +5 -6
  73. package/dist/plugins/simplified-index.d.ts.map +1 -1
  74. package/dist/production-minimal-BY_gMc-l.js +2532 -0
  75. package/dist/reactive/index.js +96 -95
  76. package/dist/reactive/types.js +4 -0
  77. package/dist/runtime/concatenation-aria.d.ts +24 -0
  78. package/dist/runtime/concatenation-aria.d.ts.map +1 -0
  79. package/dist/runtime/concatenation-aria.js +53 -0
  80. package/dist/runtime/concatenation-full.d.ts +30 -0
  81. package/dist/runtime/concatenation-full.d.ts.map +1 -0
  82. package/dist/runtime/concatenation-full.js +77 -0
  83. package/dist/runtime/concatenation-minimal.d.ts +25 -0
  84. package/dist/runtime/concatenation-minimal.d.ts.map +1 -0
  85. package/dist/runtime/concatenation-minimal.js +40 -0
  86. package/dist/runtime/dom-bridge.js +5 -5
  87. package/dist/runtime/element-override.d.ts.map +1 -1
  88. package/dist/runtime/index.d.ts +0 -7
  89. package/dist/runtime/index.d.ts.map +1 -1
  90. package/dist/runtime/renderer.d.ts.map +1 -1
  91. package/dist/runtime/renderer.js +7 -8
  92. package/dist/runtime/semantic-role-manager.d.ts.map +1 -1
  93. package/dist/runtime/types.js +1 -0
  94. package/dist/{scheduler-7SvC3a21.js → scheduler-BKeqwrYE.js} +130 -130
  95. package/dist/validation/build-time-stub.d.ts +33 -0
  96. package/dist/validation/build-time-stub.d.ts.map +1 -0
  97. package/dist/validation/debug-tools-stub.d.ts +67 -0
  98. package/dist/validation/debug-tools-stub.d.ts.map +1 -0
  99. package/dist/validation/index.d.ts +23 -78
  100. package/dist/validation/index.d.ts.map +1 -1
  101. package/dist/validation/index.js +609 -6470
  102. package/dist/validation/lifecycle-validation.d.ts.map +1 -1
  103. package/dist/validation/performance-optimizer-stub.d.ts +50 -0
  104. package/dist/validation/performance-optimizer-stub.d.ts.map +1 -0
  105. package/dist/validation/plugin-registration.d.ts +5 -1
  106. package/dist/validation/plugin-registration.d.ts.map +1 -1
  107. package/dist/validation/production-bypass-core.d.ts +69 -0
  108. package/dist/validation/production-bypass-core.d.ts.map +1 -0
  109. package/package.json +61 -5
  110. package/dist/ScrollView-h-6wYMAm.js +0 -515
  111. package/dist/Spacer-BbteDQ9I.js +0 -5337
  112. package/dist/binding-CmdpowkI.js +0 -2276
  113. package/dist/components/BasicInput.d.ts +0 -116
  114. package/dist/components/BasicInput.d.ts.map +0 -1
  115. package/dist/components/Button.d.ts +0 -252
  116. package/dist/components/Button.d.ts.map +0 -1
  117. package/dist/components/Divider.d.ts +0 -141
  118. package/dist/components/Divider.d.ts.map +0 -1
  119. package/dist/components/EnhancedLink.d.ts +0 -365
  120. package/dist/components/EnhancedLink.d.ts.map +0 -1
  121. package/dist/components/Form.d.ts +0 -141
  122. package/dist/components/Form.d.ts.map +0 -1
  123. package/dist/components/Grid.d.ts +0 -698
  124. package/dist/components/Grid.d.ts.map +0 -1
  125. package/dist/components/GridResponsive.d.ts +0 -214
  126. package/dist/components/GridResponsive.d.ts.map +0 -1
  127. package/dist/components/Image.d.ts +0 -162
  128. package/dist/components/Image.d.ts.map +0 -1
  129. package/dist/components/List.d.ts +0 -287
  130. package/dist/components/List.d.ts.map +0 -1
  131. package/dist/components/Menu.d.ts +0 -159
  132. package/dist/components/Menu.d.ts.map +0 -1
  133. package/dist/components/Picker.d.ts +0 -153
  134. package/dist/components/Picker.d.ts.map +0 -1
  135. package/dist/components/ScrollView.d.ts +0 -222
  136. package/dist/components/ScrollView.d.ts.map +0 -1
  137. package/dist/components/Section.d.ts +0 -153
  138. package/dist/components/Section.d.ts.map +0 -1
  139. package/dist/components/Show.d.ts +0 -64
  140. package/dist/components/Show.d.ts.map +0 -1
  141. package/dist/components/Spacer.d.ts +0 -35
  142. package/dist/components/Spacer.d.ts.map +0 -1
  143. package/dist/components/Text.d.ts +0 -242
  144. package/dist/components/Text.d.ts.map +0 -1
  145. package/dist/components/Toggle.d.ts +0 -207
  146. package/dist/components/Toggle.d.ts.map +0 -1
  147. package/dist/concatenated-component-DPcl2TEO.js +0 -6779
  148. package/dist/context--zQFIImS.js +0 -283
  149. package/dist/debug/index.d.ts +0 -61
  150. package/dist/debug/index.d.ts.map +0 -1
  151. package/dist/debug.js +0 -178
  152. package/dist/developer-experience/enhanced-errors.d.ts +0 -128
  153. package/dist/developer-experience/enhanced-errors.d.ts.map +0 -1
  154. package/dist/developer-experience/enhanced-types.d.ts +0 -281
  155. package/dist/developer-experience/enhanced-types.d.ts.map +0 -1
  156. package/dist/developer-experience/index.d.ts +0 -44
  157. package/dist/developer-experience/index.d.ts.map +0 -1
  158. package/dist/index-Nfi2SBQh.js +0 -3268
  159. package/dist/modifiers/attributes.d.ts +0 -203
  160. package/dist/modifiers/attributes.d.ts.map +0 -1
  161. package/dist/modifiers/backdrop.d.ts +0 -59
  162. package/dist/modifiers/backdrop.d.ts.map +0 -1
  163. package/dist/modifiers/border.d.ts +0 -217
  164. package/dist/modifiers/border.d.ts.map +0 -1
  165. package/dist/modifiers/effects.d.ts +0 -159
  166. package/dist/modifiers/effects.d.ts.map +0 -1
  167. package/dist/modifiers/elements.d.ts +0 -240
  168. package/dist/modifiers/elements.d.ts.map +0 -1
  169. package/dist/modifiers/filters.d.ts +0 -275
  170. package/dist/modifiers/filters.d.ts.map +0 -1
  171. package/dist/modifiers/flexbox.d.ts +0 -82
  172. package/dist/modifiers/flexbox.d.ts.map +0 -1
  173. package/dist/modifiers/font.d.ts +0 -71
  174. package/dist/modifiers/font.d.ts.map +0 -1
  175. package/dist/modifiers/grid.d.ts +0 -92
  176. package/dist/modifiers/grid.d.ts.map +0 -1
  177. package/dist/modifiers/margin.d.ts +0 -128
  178. package/dist/modifiers/margin.d.ts.map +0 -1
  179. package/dist/modifiers/padding.d.ts +0 -204
  180. package/dist/modifiers/padding.d.ts.map +0 -1
  181. package/dist/modifiers/responsive/advanced-utilities.d.ts +0 -118
  182. package/dist/modifiers/responsive/advanced-utilities.d.ts.map +0 -1
  183. package/dist/modifiers/responsive/breakpoints.d.ts +0 -81
  184. package/dist/modifiers/responsive/breakpoints.d.ts.map +0 -1
  185. package/dist/modifiers/responsive/css-generator.d.ts +0 -100
  186. package/dist/modifiers/responsive/css-generator.d.ts.map +0 -1
  187. package/dist/modifiers/responsive/dev-tools.d.ts +0 -107
  188. package/dist/modifiers/responsive/dev-tools.d.ts.map +0 -1
  189. package/dist/modifiers/responsive/index.d.ts +0 -29
  190. package/dist/modifiers/responsive/index.d.ts.map +0 -1
  191. package/dist/modifiers/responsive/layout-patterns.d.ts +0 -230
  192. package/dist/modifiers/responsive/layout-patterns.d.ts.map +0 -1
  193. package/dist/modifiers/responsive/performance.d.ts +0 -130
  194. package/dist/modifiers/responsive/performance.d.ts.map +0 -1
  195. package/dist/modifiers/responsive/responsive-builder.d.ts +0 -133
  196. package/dist/modifiers/responsive/responsive-builder.d.ts.map +0 -1
  197. package/dist/modifiers/responsive/responsive-modifier.d.ts +0 -123
  198. package/dist/modifiers/responsive/responsive-modifier.d.ts.map +0 -1
  199. package/dist/modifiers/responsive/types.d.ts +0 -183
  200. package/dist/modifiers/responsive/types.d.ts.map +0 -1
  201. package/dist/modifiers/responsive/utilities.d.ts +0 -149
  202. package/dist/modifiers/responsive/utilities.d.ts.map +0 -1
  203. package/dist/modifiers/scroll.d.ts +0 -143
  204. package/dist/modifiers/scroll.d.ts.map +0 -1
  205. package/dist/modifiers/shadows.d.ts +0 -114
  206. package/dist/modifiers/shadows.d.ts.map +0 -1
  207. package/dist/modifiers/size.d.ts +0 -113
  208. package/dist/modifiers/size.d.ts.map +0 -1
  209. package/dist/modifiers/text.d.ts +0 -147
  210. package/dist/modifiers/text.d.ts.map +0 -1
  211. package/dist/modifiers/transformations.d.ts +0 -329
  212. package/dist/modifiers/transformations.d.ts.map +0 -1
  213. package/dist/modifiers/transitions.d.ts +0 -98
  214. package/dist/modifiers/transitions.d.ts.map +0 -1
  215. package/dist/modifiers/typography.d.ts +0 -192
  216. package/dist/modifiers/typography.d.ts.map +0 -1
  217. package/dist/modifiers/utility.d.ts +0 -69
  218. package/dist/modifiers/utility.d.ts.map +0 -1
  219. package/dist/modifiers/utils.d.ts.map +0 -1
  220. package/dist/plugins/simplified-error-handler.d.ts +0 -83
  221. package/dist/plugins/simplified-error-handler.d.ts.map +0 -1
  222. package/dist/runtime/dev-tools.d.ts +0 -240
  223. package/dist/runtime/dev-tools.d.ts.map +0 -1
  224. package/dist/runtime/development-warnings.d.ts +0 -42
  225. package/dist/runtime/development-warnings.d.ts.map +0 -1
  226. package/dist/runtime/error-boundary.d.ts +0 -302
  227. package/dist/runtime/error-boundary.d.ts.map +0 -1
  228. package/dist/runtime/error-recovery.d.ts +0 -267
  229. package/dist/runtime/error-recovery.d.ts.map +0 -1
  230. package/dist/runtime/error-reporting.d.ts +0 -287
  231. package/dist/runtime/error-reporting.d.ts.map +0 -1
  232. package/dist/runtime/error-utils.d.ts +0 -204
  233. package/dist/runtime/error-utils.d.ts.map +0 -1
  234. package/dist/runtime/performance.d.ts +0 -217
  235. package/dist/runtime/performance.d.ts.map +0 -1
  236. package/dist/sui-compat.d.ts +0 -110
  237. package/dist/sui-compat.d.ts.map +0 -1
  238. package/dist/validation/advanced-debugging.d.ts +0 -319
  239. package/dist/validation/advanced-debugging.d.ts.map +0 -1
  240. package/dist/validation/build-time/detection.d.ts +0 -32
  241. package/dist/validation/build-time/detection.d.ts.map +0 -1
  242. package/dist/validation/build-time/index.d.ts +0 -84
  243. package/dist/validation/build-time/index.d.ts.map +0 -1
  244. package/dist/validation/build-time/plugins.d.ts +0 -75
  245. package/dist/validation/build-time/plugins.d.ts.map +0 -1
  246. package/dist/validation/build-time/rules.d.ts +0 -73
  247. package/dist/validation/build-time/rules.d.ts.map +0 -1
  248. package/dist/validation/build-time/transformer.d.ts +0 -23
  249. package/dist/validation/build-time/transformer.d.ts.map +0 -1
  250. package/dist/validation/build-time/types.d.ts +0 -212
  251. package/dist/validation/build-time/types.d.ts.map +0 -1
  252. package/dist/validation/comprehensive.d.ts +0 -160
  253. package/dist/validation/comprehensive.d.ts.map +0 -1
  254. package/dist/validation/debug-tools.d.ts +0 -251
  255. package/dist/validation/debug-tools.d.ts.map +0 -1
  256. package/dist/validation/developer-experience.d.ts +0 -243
  257. package/dist/validation/developer-experience.d.ts.map +0 -1
  258. package/dist/validation/documentation-integration.d.ts +0 -269
  259. package/dist/validation/documentation-integration.d.ts.map +0 -1
  260. package/dist/validation/enhanced-runtime.d.ts +0 -279
  261. package/dist/validation/enhanced-runtime.d.ts.map +0 -1
  262. package/dist/validation/error-reporting.d.ts +0 -186
  263. package/dist/validation/error-reporting.d.ts.map +0 -1
  264. package/dist/validation/ide-integration.d.ts +0 -328
  265. package/dist/validation/ide-integration.d.ts.map +0 -1
  266. package/dist/validation/performance-optimizer.d.ts +0 -218
  267. package/dist/validation/performance-optimizer.d.ts.map +0 -1
  268. package/dist/validation/production-bypass.d.ts +0 -175
  269. package/dist/validation/production-bypass.d.ts.map +0 -1
  270. package/dist/validation/simple.d.ts +0 -111
  271. package/dist/validation/simple.d.ts.map +0 -1
  272. package/dist/viewport/adapters/web-adapter.d.ts +0 -227
  273. package/dist/viewport/adapters/web-adapter.d.ts.map +0 -1
  274. package/dist/viewport/components.d.ts +0 -131
  275. package/dist/viewport/components.d.ts.map +0 -1
  276. package/dist/viewport/environment.d.ts +0 -75
  277. package/dist/viewport/environment.d.ts.map +0 -1
  278. package/dist/viewport/index.d.ts +0 -138
  279. package/dist/viewport/index.d.ts.map +0 -1
  280. package/dist/viewport/index.js +0 -2085
  281. package/dist/viewport/platform-detection.d.ts +0 -59
  282. package/dist/viewport/platform-detection.d.ts.map +0 -1
  283. package/dist/viewport/types.d.ts +0 -301
  284. package/dist/viewport/types.d.ts.map +0 -1
  285. package/dist/viewport/viewport-manager.d.ts +0 -118
  286. package/dist/viewport/viewport-manager.d.ts.map +0 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * TachUI Constants
3
3
  *
4
- * Exports all constants for easy access throughout the framework
4
+ * Unified constants system with SwiftUI-compatible layout utilities
5
5
  */
6
6
  export * from './layout';
7
7
  export * from './frame-utils';
@@ -19,11 +19,54 @@ export type InfinityValue = typeof infinity;
19
19
  */
20
20
  export type Dimension = number | string | InfinityValue;
21
21
  /**
22
- * SUI-compatible export object (SUI = SwiftUI-inspired)
23
- * Allows usage like: import { SUI } from '@tachui/core'; SUI.infinity
22
+ * Layout patterns namespace for common SwiftUI-style layouts
24
23
  */
25
- export declare const SUI: {
26
- readonly infinity: typeof infinity;
24
+ export declare const Layout: {
25
+ /**
26
+ * Full-width button pattern - common in forms and action sheets
27
+ */
28
+ readonly fullWidthButton: {
29
+ readonly maxWidth: typeof infinity;
30
+ };
31
+ /**
32
+ * Sidebar layout pattern - fixed width with full height
33
+ */
34
+ readonly sidebar: (width?: number | string) => {
35
+ width: string | number;
36
+ maxHeight: symbol;
37
+ };
38
+ /**
39
+ * Header/footer pattern - fixed height with full width
40
+ */
41
+ readonly header: (height?: number | string) => {
42
+ height: string | number;
43
+ maxWidth: symbol;
44
+ };
45
+ /**
46
+ * Content area pattern - fills remaining space with constraints
47
+ */
48
+ readonly content: (maxWidth?: number | string) => {
49
+ width: symbol;
50
+ height: symbol;
51
+ maxWidth: string | number | undefined;
52
+ };
53
+ /**
54
+ * Card layout pattern - responsive with sensible constraints
55
+ */
56
+ readonly card: {
57
+ readonly width: typeof infinity;
58
+ readonly height: typeof infinity;
59
+ readonly minWidth: 320;
60
+ readonly maxWidth: 800;
61
+ readonly minHeight: 200;
62
+ };
63
+ /**
64
+ * Modal overlay pattern - full screen coverage
65
+ */
66
+ readonly overlay: {
67
+ readonly width: "100vw";
68
+ readonly height: "100vh";
69
+ };
27
70
  };
28
71
  /**
29
72
  * Helper function to check if a value is the infinity constant
@@ -1 +1 @@
1
- {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/constants/layout.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,QAAQ,eAAgC,CAAA;AAErD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,QAAQ,CAAA;AAE3C;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa,CAAA;AAEvD;;;GAGG;AACH,eAAO,MAAM,GAAG;;CAEN,CAAA;AAEV;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,aAAa,CAE7D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAe/E;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAM1D;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAC/C,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB,GAAG;IACF,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC,CA8BA"}
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/constants/layout.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,QAAQ,eAAgC,CAAA;AAErD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,QAAQ,CAAA;AAE3C;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa,CAAA;AAEvD;;GAEG;AACH,eAAO,MAAM,MAAM;IACjB;;OAEG;;;;IAGH;;OAEG;+BACc,MAAM,GAAG,MAAM;;;;IAKhC;;OAEG;+BACc,MAAM,GAAG,MAAM;;;;IAKhC;;OAEG;kCACkB,MAAM,GAAG,MAAM;;;;;IAMpC;;OAEG;;;;;;;;IASH;;OAEG;;;;;CAEK,CAAA;AAEV;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,aAAa,CAE7D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,SAAS,GAAG,SAAS,GAC3B,MAAM,GAAG,SAAS,CAepB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAM1D;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAC/C,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB,GAAG;IACF,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC,CAgCA"}
@@ -0,0 +1,84 @@
1
+ const i = Symbol.for("tachui.infinity"), h = {
2
+ /**
3
+ * Full-width button pattern - common in forms and action sheets
4
+ */
5
+ fullWidthButton: { maxWidth: i },
6
+ /**
7
+ * Sidebar layout pattern - fixed width with full height
8
+ */
9
+ sidebar: (t = 250) => ({
10
+ width: t,
11
+ maxHeight: i
12
+ }),
13
+ /**
14
+ * Header/footer pattern - fixed height with full width
15
+ */
16
+ header: (t = 60) => ({
17
+ height: t,
18
+ maxWidth: i
19
+ }),
20
+ /**
21
+ * Content area pattern - fills remaining space with constraints
22
+ */
23
+ content: (t) => ({
24
+ width: i,
25
+ height: i,
26
+ maxWidth: t
27
+ }),
28
+ /**
29
+ * Card layout pattern - responsive with sensible constraints
30
+ */
31
+ card: {
32
+ width: i,
33
+ height: i,
34
+ minWidth: 320,
35
+ maxWidth: 800,
36
+ minHeight: 200
37
+ },
38
+ /**
39
+ * Modal overlay pattern - full screen coverage
40
+ */
41
+ overlay: { width: "100vw", height: "100vh" }
42
+ };
43
+ function o(t) {
44
+ return t === i;
45
+ }
46
+ function f(t) {
47
+ if (t !== void 0)
48
+ return t === i ? "100%" : typeof t == "number" ? `${t}px` : t;
49
+ }
50
+ function a() {
51
+ return {
52
+ flexGrow: "1",
53
+ flexShrink: "1",
54
+ flexBasis: "0%"
55
+ };
56
+ }
57
+ function d(t) {
58
+ const r = t.width === i || t.maxWidth === i, e = t.height === i || t.maxHeight === i, n = {};
59
+ return r && Object.assign(n, {
60
+ flexGrow: "1 !important",
61
+ flexShrink: "1 !important",
62
+ flexBasis: "0% !important",
63
+ alignSelf: "stretch !important"
64
+ // Override parent's align-items constraint
65
+ }), e && Object.assign(n, {
66
+ flexGrow: "1 !important",
67
+ flexShrink: "1 !important",
68
+ flexBasis: "0% !important",
69
+ alignSelf: "stretch !important"
70
+ // Override parent's align-items constraint
71
+ }), {
72
+ expandWidth: r,
73
+ expandHeight: e,
74
+ cssProps: n
75
+ };
76
+ }
77
+ export {
78
+ h as Layout,
79
+ f as dimensionToCSS,
80
+ i as infinity,
81
+ a as infinityToFlexCSS,
82
+ o as isInfinity,
83
+ d as shouldExpandForInfinity
84
+ };
@@ -0,0 +1,176 @@
1
+ import { c as l } from "../component-base-x2XmHFjy.js";
2
+ import { C as j, b, a as x, g as M } from "../component-base-x2XmHFjy.js";
3
+ import { J as n } from "../scheduler-BKeqwrYE.js";
4
+ import { c as o } from "../effect-B9Knft0b.js";
5
+ function m() {
6
+ return {
7
+ combineClasses(...t) {
8
+ const s = [];
9
+ return t.forEach((e) => {
10
+ if (e) {
11
+ const a = l.processClasses(e);
12
+ s.push(...a);
13
+ }
14
+ }), l.deduplicateClasses(s).join(" ");
15
+ },
16
+ conditionalClasses(t) {
17
+ return Object.entries(t).filter(([s, e]) => e).map(([s, e]) => s);
18
+ },
19
+ mergeClassProps(...t) {
20
+ const s = [];
21
+ return t.forEach((e) => {
22
+ if (e?.css) {
23
+ const a = l.processClasses(e.css);
24
+ s.push(...a);
25
+ }
26
+ }), s.length === 0 ? {} : {
27
+ css: l.deduplicateClasses(s)
28
+ };
29
+ },
30
+ extractClasses(t) {
31
+ return l.processClasses(t);
32
+ },
33
+ validateClassNames(t) {
34
+ const s = [], e = [];
35
+ return t.forEach((a) => {
36
+ l.sanitizeClassName(a) === a.toLowerCase() ? s.push(a) : e.push(a);
37
+ }), { valid: s, invalid: e };
38
+ }
39
+ };
40
+ }
41
+ class f {
42
+ /**
43
+ * Apply CSS classes to a DOM element
44
+ */
45
+ applyCSSClasses(s, e) {
46
+ if (!e) return;
47
+ const r = (Array.isArray(e) ? e : [e]).filter(Boolean);
48
+ r.length > 0 && (s.className = r.join(" "));
49
+ }
50
+ /**
51
+ * Apply reactive CSS classes to a DOM element
52
+ */
53
+ applyReactiveCSSClasses(s, e) {
54
+ const a = require("../reactive").createEffect;
55
+ return a(() => {
56
+ const c = e();
57
+ s.className = c;
58
+ });
59
+ }
60
+ /**
61
+ * Update CSS classes on an existing element
62
+ */
63
+ updateCSSClasses(s, e) {
64
+ this.applyCSSClasses(s, e);
65
+ }
66
+ /**
67
+ * Remove CSS classes from an element
68
+ */
69
+ removeCSSClasses(s, e) {
70
+ if (!e) return;
71
+ const a = Array.isArray(e) ? e : [e], c = s.className.split(" ").filter((i) => !a.includes(i));
72
+ s.className = c.join(" ");
73
+ }
74
+ /**
75
+ * Merge CSS classes with existing classes on an element
76
+ */
77
+ mergeCSSClasses(s, e) {
78
+ if (!e) return;
79
+ const a = Array.isArray(e) ? e : [e], c = [...s.className ? s.className.split(" ") : [], ...a.filter(Boolean)], i = [...new Set(c)];
80
+ s.className = i.join(" ");
81
+ }
82
+ }
83
+ const g = new f();
84
+ function h(t, s = {}, e = [], a) {
85
+ const c = {
86
+ ...{
87
+ type: "element",
88
+ tag: t,
89
+ props: s,
90
+ children: e
91
+ }
92
+ };
93
+ return a && (Array.isArray(a) ? c.cssClasses = a : c.reactiveClasses = a), c;
94
+ }
95
+ function N(t) {
96
+ return {
97
+ static: t.cssClasses || [],
98
+ reactive: t.reactiveClasses
99
+ };
100
+ }
101
+ const C = {
102
+ /**
103
+ * Apply CSS classes to an element during creation
104
+ */
105
+ applyCSSClasses(t, s) {
106
+ if (s.cssClasses && s.cssClasses.length > 0) {
107
+ const e = s.cssClasses.join(" ");
108
+ t.className = e;
109
+ }
110
+ if (s.reactiveClasses && n(s.reactiveClasses)) {
111
+ const e = s.reactiveClasses();
112
+ t.className = e, o(() => {
113
+ const a = s.reactiveClasses();
114
+ t.className = a;
115
+ });
116
+ }
117
+ },
118
+ /**
119
+ * Process className prop and CSS classes together
120
+ */
121
+ processElementClasses(t, s) {
122
+ let e = [];
123
+ if (s.props?.className) {
124
+ const a = typeof s.props.className == "string" ? s.props.className.split(" ").filter(Boolean) : [];
125
+ e.push(...a);
126
+ }
127
+ if (s.cssClasses && e.push(...s.cssClasses), e.length > 0) {
128
+ const a = [...new Set(e)];
129
+ t.className = a.join(" ");
130
+ }
131
+ s.reactiveClasses && n(s.reactiveClasses) && o(() => {
132
+ const a = s.reactiveClasses();
133
+ if (e.length > 0) {
134
+ const r = e.join(" ");
135
+ t.className = `${r} ${a}`.trim();
136
+ } else
137
+ t.className = a;
138
+ });
139
+ }
140
+ };
141
+ function y(t) {
142
+ const s = t.createElement.bind(t), e = (a) => {
143
+ const r = s(a), c = a;
144
+ return (c.cssClasses || c.reactiveClasses) && C.processElementClasses(r, c), r;
145
+ };
146
+ return t.createElement = e, Object.assign(t, C);
147
+ }
148
+ function v(t, s = {}, e = [], a) {
149
+ const r = {
150
+ type: "element",
151
+ tag: t,
152
+ props: s,
153
+ children: e
154
+ };
155
+ return a && (Array.isArray(a) ? r.cssClasses = a : r.reactiveClasses = a), r;
156
+ }
157
+ function A(t) {
158
+ const s = t;
159
+ return !!(s.cssClasses || s.reactiveClasses);
160
+ }
161
+ export {
162
+ j as CSSClassManager,
163
+ b as ComponentWithCSSClasses,
164
+ f as DOMCSSClassApplicator,
165
+ x as configureCSSClasses,
166
+ v as createCSSClassDOMNode,
167
+ m as createCSSClassUtilities,
168
+ h as createDOMNodeWithClasses,
169
+ l as cssClassManager,
170
+ C as cssClassRendererMixin,
171
+ g as domCSSClassApplicator,
172
+ y as enhanceRendererWithCSSClasses,
173
+ N as extractCSSClasses,
174
+ M as getCSSClassConfig,
175
+ A as hasCSSClassSupport
176
+ };
@@ -1,7 +1,7 @@
1
- import { n as g, q as x, s as b } from "./scheduler-7SvC3a21.js";
2
- import { dQ as L } from "./concatenated-component-DPcl2TEO.js";
1
+ import { W as g, k as x, l as b } from "./scheduler-BKeqwrYE.js";
2
+ import { D as L } from "./concatenated-component-ByPl3_FF.js";
3
3
  var S = Object.defineProperty, D = (e, t, o) => t in e ? S(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, l = (e, t, o) => D(e, typeof t != "symbol" ? t + "" : t, o);
4
- const d = Symbol("TachUI.ComponentContext"), B = Symbol("TachUI.Environment");
4
+ const d = Symbol("TachUI.ComponentContext"), k = Symbol("TachUI.Environment");
5
5
  let u = null;
6
6
  class O {
7
7
  constructor(t, o) {
@@ -119,7 +119,7 @@ function A(e, t) {
119
119
  u === e && (u = o), n && (o ? n.context.set(d, o) : n.context.delete(d));
120
120
  }
121
121
  }
122
- function k(e, t) {
122
+ function B(e, t) {
123
123
  return (o) => {
124
124
  const n = t || `component-${Math.random().toString(36).substr(2, 9)}`, r = v(n, u || void 0);
125
125
  return A(r, () => {
@@ -135,10 +135,10 @@ function P(e, t) {
135
135
  name: e
136
136
  };
137
137
  }
138
- function j(e, t) {
138
+ function W(e, t) {
139
139
  M().provide(e.symbol, t);
140
140
  }
141
- function z(e) {
141
+ function j(e) {
142
142
  const o = M().consume(e.symbol);
143
143
  if (o !== void 0)
144
144
  return o;
@@ -148,7 +148,7 @@ function z(e) {
148
148
  `Environment value for '${e.name}' not found. Make sure to provide this value higher in the component hierarchy.`
149
149
  );
150
150
  }
151
- const V = {
151
+ const z = {
152
152
  getCurrentContext: () => u,
153
153
  getContextHierarchy: () => {
154
154
  const e = [];
@@ -162,7 +162,7 @@ const V = {
162
162
  return t ? t.getMetrics() : null;
163
163
  }
164
164
  }, _ = new L(), p = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Set();
165
- function W(e) {
165
+ function V(e) {
166
166
  e._enhancedLifecycle && C.add(e);
167
167
  }
168
168
  function F() {
@@ -343,7 +343,7 @@ function K(e, t) {
343
343
  }
344
344
  return o;
345
345
  }
346
- function Q(e, t) {
346
+ function G(e, t) {
347
347
  const o = f.get(e);
348
348
  if (!o) {
349
349
  console.warn("Attempted to update unmounted component");
@@ -353,7 +353,7 @@ function Q(e, t) {
353
353
  const n = o[0]?.parentElement;
354
354
  n && (N(e, n), E(e, n));
355
355
  }
356
- function G(e) {
356
+ function J(e) {
357
357
  let t = e;
358
358
  for (; t; ) {
359
359
  const o = p.get(t);
@@ -362,7 +362,7 @@ function G(e) {
362
362
  t = t.parentElement;
363
363
  }
364
364
  }
365
- const J = {
365
+ const Q = {
366
366
  getMountedComponents: () => Array.from(p.entries()),
367
367
  getComponentElements: (e) => f.get(e),
368
368
  isComponentMounted: (e) => e.mounted || !1,
@@ -383,24 +383,24 @@ const J = {
383
383
  }
384
384
  };
385
385
  export {
386
- V as C,
387
- J as D,
388
- B as E,
389
- E as a,
390
- I as b,
391
- K as c,
392
- Q as d,
393
- d as e,
394
- z as f,
395
- G as g,
396
- v as h,
397
- P as i,
398
- M as j,
399
- A as k,
386
+ z as C,
387
+ Q as D,
388
+ k as E,
389
+ d as a,
390
+ v as b,
391
+ j as c,
392
+ P as d,
393
+ A as e,
394
+ J as f,
395
+ M as g,
396
+ K as h,
397
+ E as i,
398
+ I as j,
399
+ G as k,
400
400
  q as m,
401
- j as p,
402
- W as r,
401
+ W as p,
402
+ V as r,
403
403
  y as s,
404
404
  N as u,
405
- k as w
405
+ B as w
406
406
  };
@@ -1,4 +1,4 @@
1
- import { C as o, n as f } from "./scheduler-7SvC3a21.js";
1
+ import { Y as o, W as f } from "./scheduler-BKeqwrYE.js";
2
2
  function i(e, n = {}) {
3
3
  const c = f();
4
4
  let r, t = !0;
@@ -56,8 +56,8 @@ function y(e) {
56
56
  };
57
57
  }
58
58
  export {
59
- d as a,
60
- p as b,
59
+ p as a,
60
+ d as b,
61
61
  i as c,
62
62
  b as d,
63
63
  v as e,