@tachui/core 0.7.1-alpha → 0.8.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/README.md +2 -2
  2. package/dist/bundles/common.d.ts +1 -1
  3. package/dist/bundles/common.d.ts.map +1 -1
  4. package/dist/bundles/minimal.d.ts +2 -16
  5. package/dist/bundles/minimal.d.ts.map +1 -1
  6. package/dist/bundles/production-minimal.d.ts +2 -16
  7. package/dist/bundles/production-minimal.d.ts.map +1 -1
  8. package/dist/common.js +403 -827
  9. package/dist/compiler/advanced-parser.d.ts.map +1 -1
  10. package/dist/compiler/index.js +14 -8
  11. package/dist/component-XAzF1xqs.js +487 -0
  12. package/dist/component-base-x2XmHFjy.js +255 -0
  13. package/dist/components/index.d.ts +4 -38
  14. package/dist/components/index.d.ts.map +1 -1
  15. package/dist/components/index.js +7 -4167
  16. package/dist/components/wrapper.d.ts +5 -152
  17. package/dist/components/wrapper.d.ts.map +1 -1
  18. package/dist/concatenated-component-ByPl3_FF.js +2933 -0
  19. package/dist/constants/index.d.ts +1 -1
  20. package/dist/constants/layout.d.ts +47 -4
  21. package/dist/constants/layout.d.ts.map +1 -1
  22. package/dist/constants/layout.js +84 -0
  23. package/dist/css-classes/index.js +176 -0
  24. package/dist/{dom-bridge-Cx-s6Ihx.js → dom-bridge-CAa1N2zX.js} +28 -28
  25. package/dist/{effect-CytAc9em.js → effect-B9Knft0b.js} +3 -3
  26. package/dist/essential.js +395 -825
  27. package/dist/index-DCPJFUm9.js +1407 -0
  28. package/dist/index-DIvMCJQO.js +268 -0
  29. package/dist/index-vdsiw6gQ.js +777 -0
  30. package/dist/index.d.ts +9 -9
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +395 -825
  33. package/dist/minimal-prod.js +101 -155
  34. package/dist/minimal.js +104 -170
  35. package/dist/modifiers/background.d.ts +41 -11
  36. package/dist/modifiers/background.d.ts.map +1 -1
  37. package/dist/modifiers/base.d.ts +6 -33
  38. package/dist/modifiers/base.d.ts.map +1 -1
  39. package/dist/modifiers/base.js +487 -0
  40. package/dist/modifiers/builder.d.ts +103 -195
  41. package/dist/modifiers/builder.d.ts.map +1 -1
  42. package/dist/modifiers/builder.js +9 -0
  43. package/dist/modifiers/core.d.ts +9 -401
  44. package/dist/modifiers/core.d.ts.map +1 -1
  45. package/dist/modifiers/{utils.d.ts → factories.d.ts} +18 -5
  46. package/dist/modifiers/factories.d.ts.map +1 -0
  47. package/dist/modifiers/index.d.ts +8 -52
  48. package/dist/modifiers/index.d.ts.map +1 -1
  49. package/dist/modifiers/index.js +38 -0
  50. package/dist/modifiers/presets.d.ts +368 -0
  51. package/dist/modifiers/presets.d.ts.map +1 -0
  52. package/dist/modifiers/registry.js +10 -0
  53. package/dist/modifiers/types.d.ts +39 -211
  54. package/dist/modifiers/types.d.ts.map +1 -1
  55. package/dist/modifiers/types.js +4 -0
  56. package/dist/performance-optimizer-stub-CtfXUwl4.js +38 -0
  57. package/dist/plugins/index.d.ts +5 -6
  58. package/dist/plugins/index.d.ts.map +1 -1
  59. package/dist/plugins/index.js +147 -297
  60. package/dist/plugins/simplified-index.d.ts +5 -6
  61. package/dist/plugins/simplified-index.d.ts.map +1 -1
  62. package/dist/production-minimal-BY_gMc-l.js +2532 -0
  63. package/dist/reactive/index.js +96 -95
  64. package/dist/reactive/types.js +4 -0
  65. package/dist/runtime/dom-bridge.js +5 -5
  66. package/dist/runtime/element-override.d.ts.map +1 -1
  67. package/dist/runtime/index.d.ts +0 -7
  68. package/dist/runtime/index.d.ts.map +1 -1
  69. package/dist/runtime/renderer.d.ts.map +1 -1
  70. package/dist/runtime/renderer.js +7 -8
  71. package/dist/runtime/semantic-role-manager.d.ts.map +1 -1
  72. package/dist/runtime/types.js +1 -0
  73. package/dist/{scheduler-7SvC3a21.js → scheduler-BKeqwrYE.js} +130 -130
  74. package/dist/validation/build-time-stub.d.ts +33 -0
  75. package/dist/validation/build-time-stub.d.ts.map +1 -0
  76. package/dist/validation/debug-tools-stub.d.ts +67 -0
  77. package/dist/validation/debug-tools-stub.d.ts.map +1 -0
  78. package/dist/validation/index.d.ts +23 -78
  79. package/dist/validation/index.d.ts.map +1 -1
  80. package/dist/validation/index.js +609 -6470
  81. package/dist/validation/lifecycle-validation.d.ts.map +1 -1
  82. package/dist/validation/performance-optimizer-stub.d.ts +50 -0
  83. package/dist/validation/performance-optimizer-stub.d.ts.map +1 -0
  84. package/dist/validation/plugin-registration.d.ts +5 -1
  85. package/dist/validation/plugin-registration.d.ts.map +1 -1
  86. package/dist/validation/production-bypass-core.d.ts +69 -0
  87. package/dist/validation/production-bypass-core.d.ts.map +1 -0
  88. package/package.json +41 -5
  89. package/dist/ScrollView-h-6wYMAm.js +0 -515
  90. package/dist/Spacer-BbteDQ9I.js +0 -5337
  91. package/dist/binding-CmdpowkI.js +0 -2276
  92. package/dist/components/BasicInput.d.ts +0 -116
  93. package/dist/components/BasicInput.d.ts.map +0 -1
  94. package/dist/components/Button.d.ts +0 -252
  95. package/dist/components/Button.d.ts.map +0 -1
  96. package/dist/components/Divider.d.ts +0 -141
  97. package/dist/components/Divider.d.ts.map +0 -1
  98. package/dist/components/EnhancedLink.d.ts +0 -365
  99. package/dist/components/EnhancedLink.d.ts.map +0 -1
  100. package/dist/components/Form.d.ts +0 -141
  101. package/dist/components/Form.d.ts.map +0 -1
  102. package/dist/components/Grid.d.ts +0 -698
  103. package/dist/components/Grid.d.ts.map +0 -1
  104. package/dist/components/GridResponsive.d.ts +0 -214
  105. package/dist/components/GridResponsive.d.ts.map +0 -1
  106. package/dist/components/Image.d.ts +0 -162
  107. package/dist/components/Image.d.ts.map +0 -1
  108. package/dist/components/List.d.ts +0 -287
  109. package/dist/components/List.d.ts.map +0 -1
  110. package/dist/components/Menu.d.ts +0 -159
  111. package/dist/components/Menu.d.ts.map +0 -1
  112. package/dist/components/Picker.d.ts +0 -153
  113. package/dist/components/Picker.d.ts.map +0 -1
  114. package/dist/components/ScrollView.d.ts +0 -222
  115. package/dist/components/ScrollView.d.ts.map +0 -1
  116. package/dist/components/Section.d.ts +0 -153
  117. package/dist/components/Section.d.ts.map +0 -1
  118. package/dist/components/Show.d.ts +0 -64
  119. package/dist/components/Show.d.ts.map +0 -1
  120. package/dist/components/Spacer.d.ts +0 -35
  121. package/dist/components/Spacer.d.ts.map +0 -1
  122. package/dist/components/Text.d.ts +0 -242
  123. package/dist/components/Text.d.ts.map +0 -1
  124. package/dist/components/Toggle.d.ts +0 -207
  125. package/dist/components/Toggle.d.ts.map +0 -1
  126. package/dist/concatenated-component-DPcl2TEO.js +0 -6779
  127. package/dist/context--zQFIImS.js +0 -283
  128. package/dist/debug/index.d.ts +0 -61
  129. package/dist/debug/index.d.ts.map +0 -1
  130. package/dist/debug.js +0 -178
  131. package/dist/developer-experience/enhanced-errors.d.ts +0 -128
  132. package/dist/developer-experience/enhanced-errors.d.ts.map +0 -1
  133. package/dist/developer-experience/enhanced-types.d.ts +0 -281
  134. package/dist/developer-experience/enhanced-types.d.ts.map +0 -1
  135. package/dist/developer-experience/index.d.ts +0 -44
  136. package/dist/developer-experience/index.d.ts.map +0 -1
  137. package/dist/index-Nfi2SBQh.js +0 -3268
  138. package/dist/modifiers/attributes.d.ts +0 -203
  139. package/dist/modifiers/attributes.d.ts.map +0 -1
  140. package/dist/modifiers/backdrop.d.ts +0 -59
  141. package/dist/modifiers/backdrop.d.ts.map +0 -1
  142. package/dist/modifiers/border.d.ts +0 -217
  143. package/dist/modifiers/border.d.ts.map +0 -1
  144. package/dist/modifiers/effects.d.ts +0 -159
  145. package/dist/modifiers/effects.d.ts.map +0 -1
  146. package/dist/modifiers/elements.d.ts +0 -240
  147. package/dist/modifiers/elements.d.ts.map +0 -1
  148. package/dist/modifiers/filters.d.ts +0 -275
  149. package/dist/modifiers/filters.d.ts.map +0 -1
  150. package/dist/modifiers/flexbox.d.ts +0 -82
  151. package/dist/modifiers/flexbox.d.ts.map +0 -1
  152. package/dist/modifiers/font.d.ts +0 -71
  153. package/dist/modifiers/font.d.ts.map +0 -1
  154. package/dist/modifiers/grid.d.ts +0 -92
  155. package/dist/modifiers/grid.d.ts.map +0 -1
  156. package/dist/modifiers/margin.d.ts +0 -128
  157. package/dist/modifiers/margin.d.ts.map +0 -1
  158. package/dist/modifiers/padding.d.ts +0 -204
  159. package/dist/modifiers/padding.d.ts.map +0 -1
  160. package/dist/modifiers/responsive/advanced-utilities.d.ts +0 -118
  161. package/dist/modifiers/responsive/advanced-utilities.d.ts.map +0 -1
  162. package/dist/modifiers/responsive/breakpoints.d.ts +0 -81
  163. package/dist/modifiers/responsive/breakpoints.d.ts.map +0 -1
  164. package/dist/modifiers/responsive/css-generator.d.ts +0 -100
  165. package/dist/modifiers/responsive/css-generator.d.ts.map +0 -1
  166. package/dist/modifiers/responsive/dev-tools.d.ts +0 -107
  167. package/dist/modifiers/responsive/dev-tools.d.ts.map +0 -1
  168. package/dist/modifiers/responsive/index.d.ts +0 -29
  169. package/dist/modifiers/responsive/index.d.ts.map +0 -1
  170. package/dist/modifiers/responsive/layout-patterns.d.ts +0 -230
  171. package/dist/modifiers/responsive/layout-patterns.d.ts.map +0 -1
  172. package/dist/modifiers/responsive/performance.d.ts +0 -130
  173. package/dist/modifiers/responsive/performance.d.ts.map +0 -1
  174. package/dist/modifiers/responsive/responsive-builder.d.ts +0 -133
  175. package/dist/modifiers/responsive/responsive-builder.d.ts.map +0 -1
  176. package/dist/modifiers/responsive/responsive-modifier.d.ts +0 -123
  177. package/dist/modifiers/responsive/responsive-modifier.d.ts.map +0 -1
  178. package/dist/modifiers/responsive/types.d.ts +0 -183
  179. package/dist/modifiers/responsive/types.d.ts.map +0 -1
  180. package/dist/modifiers/responsive/utilities.d.ts +0 -149
  181. package/dist/modifiers/responsive/utilities.d.ts.map +0 -1
  182. package/dist/modifiers/scroll.d.ts +0 -143
  183. package/dist/modifiers/scroll.d.ts.map +0 -1
  184. package/dist/modifiers/shadows.d.ts +0 -114
  185. package/dist/modifiers/shadows.d.ts.map +0 -1
  186. package/dist/modifiers/size.d.ts +0 -113
  187. package/dist/modifiers/size.d.ts.map +0 -1
  188. package/dist/modifiers/text.d.ts +0 -147
  189. package/dist/modifiers/text.d.ts.map +0 -1
  190. package/dist/modifiers/transformations.d.ts +0 -329
  191. package/dist/modifiers/transformations.d.ts.map +0 -1
  192. package/dist/modifiers/transitions.d.ts +0 -98
  193. package/dist/modifiers/transitions.d.ts.map +0 -1
  194. package/dist/modifiers/typography.d.ts +0 -192
  195. package/dist/modifiers/typography.d.ts.map +0 -1
  196. package/dist/modifiers/utility.d.ts +0 -69
  197. package/dist/modifiers/utility.d.ts.map +0 -1
  198. package/dist/modifiers/utils.d.ts.map +0 -1
  199. package/dist/plugins/simplified-error-handler.d.ts +0 -83
  200. package/dist/plugins/simplified-error-handler.d.ts.map +0 -1
  201. package/dist/runtime/dev-tools.d.ts +0 -240
  202. package/dist/runtime/dev-tools.d.ts.map +0 -1
  203. package/dist/runtime/development-warnings.d.ts +0 -42
  204. package/dist/runtime/development-warnings.d.ts.map +0 -1
  205. package/dist/runtime/error-boundary.d.ts +0 -302
  206. package/dist/runtime/error-boundary.d.ts.map +0 -1
  207. package/dist/runtime/error-recovery.d.ts +0 -267
  208. package/dist/runtime/error-recovery.d.ts.map +0 -1
  209. package/dist/runtime/error-reporting.d.ts +0 -287
  210. package/dist/runtime/error-reporting.d.ts.map +0 -1
  211. package/dist/runtime/error-utils.d.ts +0 -204
  212. package/dist/runtime/error-utils.d.ts.map +0 -1
  213. package/dist/runtime/performance.d.ts +0 -217
  214. package/dist/runtime/performance.d.ts.map +0 -1
  215. package/dist/sui-compat.d.ts +0 -110
  216. package/dist/sui-compat.d.ts.map +0 -1
  217. package/dist/validation/advanced-debugging.d.ts +0 -319
  218. package/dist/validation/advanced-debugging.d.ts.map +0 -1
  219. package/dist/validation/build-time/detection.d.ts +0 -32
  220. package/dist/validation/build-time/detection.d.ts.map +0 -1
  221. package/dist/validation/build-time/index.d.ts +0 -84
  222. package/dist/validation/build-time/index.d.ts.map +0 -1
  223. package/dist/validation/build-time/plugins.d.ts +0 -75
  224. package/dist/validation/build-time/plugins.d.ts.map +0 -1
  225. package/dist/validation/build-time/rules.d.ts +0 -73
  226. package/dist/validation/build-time/rules.d.ts.map +0 -1
  227. package/dist/validation/build-time/transformer.d.ts +0 -23
  228. package/dist/validation/build-time/transformer.d.ts.map +0 -1
  229. package/dist/validation/build-time/types.d.ts +0 -212
  230. package/dist/validation/build-time/types.d.ts.map +0 -1
  231. package/dist/validation/comprehensive.d.ts +0 -160
  232. package/dist/validation/comprehensive.d.ts.map +0 -1
  233. package/dist/validation/debug-tools.d.ts +0 -251
  234. package/dist/validation/debug-tools.d.ts.map +0 -1
  235. package/dist/validation/developer-experience.d.ts +0 -243
  236. package/dist/validation/developer-experience.d.ts.map +0 -1
  237. package/dist/validation/documentation-integration.d.ts +0 -269
  238. package/dist/validation/documentation-integration.d.ts.map +0 -1
  239. package/dist/validation/enhanced-runtime.d.ts +0 -279
  240. package/dist/validation/enhanced-runtime.d.ts.map +0 -1
  241. package/dist/validation/error-reporting.d.ts +0 -186
  242. package/dist/validation/error-reporting.d.ts.map +0 -1
  243. package/dist/validation/ide-integration.d.ts +0 -328
  244. package/dist/validation/ide-integration.d.ts.map +0 -1
  245. package/dist/validation/performance-optimizer.d.ts +0 -218
  246. package/dist/validation/performance-optimizer.d.ts.map +0 -1
  247. package/dist/validation/production-bypass.d.ts +0 -175
  248. package/dist/validation/production-bypass.d.ts.map +0 -1
  249. package/dist/validation/simple.d.ts +0 -111
  250. package/dist/validation/simple.d.ts.map +0 -1
  251. package/dist/viewport/adapters/web-adapter.d.ts +0 -227
  252. package/dist/viewport/adapters/web-adapter.d.ts.map +0 -1
  253. package/dist/viewport/components.d.ts +0 -131
  254. package/dist/viewport/components.d.ts.map +0 -1
  255. package/dist/viewport/environment.d.ts +0 -75
  256. package/dist/viewport/environment.d.ts.map +0 -1
  257. package/dist/viewport/index.d.ts +0 -138
  258. package/dist/viewport/index.d.ts.map +0 -1
  259. package/dist/viewport/index.js +0 -2085
  260. package/dist/viewport/platform-detection.d.ts +0 -59
  261. package/dist/viewport/platform-detection.d.ts.map +0 -1
  262. package/dist/viewport/types.d.ts +0 -301
  263. package/dist/viewport/types.d.ts.map +0 -1
  264. package/dist/viewport/viewport-manager.d.ts +0 -118
  265. package/dist/viewport/viewport-manager.d.ts.map +0 -1
@@ -1,222 +0,0 @@
1
- /**
2
- * Enhanced ScrollView Component (Phase 5.5)
3
- *
4
- * SwiftUI-inspired ScrollView component with performance optimization,
5
- * smooth scrolling, pull-to-refresh, and advanced scroll handling.
6
- */
7
- import type { ModifiableComponent, ModifierBuilder } from '../modifiers/types';
8
- import type { Signal } from '../reactive/types';
9
- import type { ComponentInstance, ComponentProps } from '../runtime/types';
10
- /**
11
- * Scroll direction
12
- */
13
- export type ScrollDirection = 'vertical' | 'horizontal' | 'both';
14
- /**
15
- * Scroll behavior for programmatic scrolling
16
- */
17
- export type ScrollBehavior = 'auto' | 'smooth' | 'instant';
18
- /**
19
- * Content offset position
20
- */
21
- export interface ContentOffset {
22
- x: number;
23
- y: number;
24
- }
25
- /**
26
- * Scroll edge detection
27
- */
28
- export interface ScrollEdges {
29
- top: boolean;
30
- bottom: boolean;
31
- left: boolean;
32
- right: boolean;
33
- }
34
- /**
35
- * Pull-to-refresh state
36
- */
37
- export type PullToRefreshState = 'idle' | 'pulling' | 'ready' | 'refreshing';
38
- /**
39
- * Scroll event information
40
- */
41
- export interface ScrollEventInfo {
42
- offset: ContentOffset;
43
- velocity: ContentOffset;
44
- contentSize: {
45
- width: number;
46
- height: number;
47
- };
48
- containerSize: {
49
- width: number;
50
- height: number;
51
- };
52
- edges: ScrollEdges;
53
- }
54
- /**
55
- * ScrollView component properties
56
- */
57
- export interface ScrollViewProps extends ComponentProps {
58
- children?: ComponentInstance[];
59
- direction?: ScrollDirection;
60
- showsScrollIndicator?: boolean;
61
- bounces?: boolean;
62
- scrollEnabled?: boolean | Signal<boolean>;
63
- contentOffset?: Signal<ContentOffset>;
64
- contentSize?: Signal<{
65
- width: number;
66
- height: number;
67
- }>;
68
- refreshControl?: {
69
- enabled: boolean;
70
- onRefresh: () => Promise<void>;
71
- refreshing?: Signal<boolean>;
72
- threshold?: number;
73
- tintColor?: string;
74
- };
75
- onScroll?: (info: ScrollEventInfo) => void;
76
- onScrollBegin?: () => void;
77
- onScrollEnd?: () => void;
78
- onReachTop?: () => void;
79
- onReachBottom?: () => void;
80
- onReachLeft?: () => void;
81
- onReachRight?: () => void;
82
- scrollEventThrottle?: number;
83
- decelerationRate?: 'normal' | 'fast' | number;
84
- contentInset?: {
85
- top?: number;
86
- bottom?: number;
87
- left?: number;
88
- right?: number;
89
- };
90
- pagingEnabled?: boolean;
91
- snapToAlignment?: 'start' | 'center' | 'end';
92
- snapToInterval?: number;
93
- keyboardDismissMode?: 'none' | 'on-drag' | 'interactive';
94
- accessibilityLabel?: string;
95
- accessibilityRole?: string;
96
- }
97
- /**
98
- * Enhanced ScrollView component class
99
- */
100
- export declare class EnhancedScrollView implements ComponentInstance<ScrollViewProps> {
101
- props: ScrollViewProps;
102
- readonly type: "component";
103
- readonly id: string;
104
- mounted: boolean;
105
- cleanup: (() => void)[];
106
- private scrollElement;
107
- contentOffsetSignal: () => ContentOffset;
108
- private setContentOffset;
109
- contentSizeSignal: () => {
110
- width: number;
111
- height: number;
112
- };
113
- private setContentSize;
114
- private setIsScrolling;
115
- private pullToRefreshStateSignal;
116
- private setPullToRefreshState;
117
- private scrollEventThrottle;
118
- private lastScrollTime;
119
- private scrollVelocity;
120
- private lastScrollOffset;
121
- private pullStartY;
122
- private isPulling;
123
- constructor(props: ScrollViewProps);
124
- /**
125
- * Calculate scroll velocity
126
- */
127
- private calculateVelocity;
128
- /**
129
- * Detect scroll edges
130
- */
131
- private detectScrollEdges;
132
- /**
133
- * Handle scroll events
134
- */
135
- private handleScroll;
136
- /**
137
- * Handle scroll start
138
- */
139
- private handleScrollStart;
140
- /**
141
- * Handle scroll end
142
- */
143
- private handleScrollEnd;
144
- /**
145
- * Handle touch start for pull to refresh
146
- */
147
- private handleTouchStart;
148
- /**
149
- * Handle touch move for pull to refresh
150
- */
151
- private handleTouchMove;
152
- /**
153
- * Handle touch end for pull to refresh
154
- */
155
- private handleTouchEnd;
156
- /**
157
- * Set up scroll event handlers
158
- */
159
- private setupScrollHandlers;
160
- /**
161
- * Get overflow styles based on direction
162
- */
163
- private getOverflowStyles;
164
- /**
165
- * Apply additional scroll view styling (position and overflow already set in initial render)
166
- */
167
- private applyScrollViewStyles;
168
- /**
169
- * Apply content insets
170
- */
171
- private applyContentInsets;
172
- /**
173
- * Create pull to refresh indicator
174
- */
175
- private createPullToRefreshIndicator;
176
- /**
177
- * Scroll to specific position
178
- */
179
- scrollTo(offset: Partial<ContentOffset>, behavior?: ScrollBehavior): void;
180
- /**
181
- * Scroll to top
182
- */
183
- scrollToTop(behavior?: ScrollBehavior): void;
184
- /**
185
- * Scroll to bottom
186
- */
187
- scrollToBottom(behavior?: ScrollBehavior): void;
188
- /**
189
- * Render the scroll view component
190
- */
191
- render(): import("../runtime").DOMNode[];
192
- }
193
- /**
194
- * Create enhanced ScrollView component with modifier support
195
- */
196
- export declare function ScrollView(props?: ScrollViewProps): ModifiableComponent<ScrollViewProps> & {
197
- modifier: ModifierBuilder<ModifiableComponent<ScrollViewProps>>;
198
- };
199
- /**
200
- * ScrollView utility functions
201
- */
202
- export declare const ScrollViewUtils: {
203
- /**
204
- * Create a scroll view with pull to refresh
205
- */
206
- withRefresh(children: ComponentInstance[], onRefresh: () => Promise<void>, options?: Partial<ScrollViewProps["refreshControl"]>): ModifiableComponent<ScrollViewProps> & {
207
- modifier: ModifierBuilder<ModifiableComponent<ScrollViewProps>>;
208
- };
209
- /**
210
- * Create a horizontal scroll view
211
- */
212
- horizontal(children: ComponentInstance[], props?: Omit<ScrollViewProps, "children" | "direction">): ModifiableComponent<ScrollViewProps> & {
213
- modifier: ModifierBuilder<ModifiableComponent<ScrollViewProps>>;
214
- };
215
- /**
216
- * Create a paged scroll view
217
- */
218
- paged(children: ComponentInstance[], props?: Omit<ScrollViewProps, "children" | "pagingEnabled">): ModifiableComponent<ScrollViewProps> & {
219
- modifier: ModifierBuilder<ModifiableComponent<ScrollViewProps>>;
220
- };
221
- };
222
- //# sourceMappingURL=ScrollView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../../src/components/ScrollView.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAE9E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGzE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,CAAA;AAEhE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAA;AAE1D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,OAAO,CAAA;IACZ,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;CACf;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,CAAA;AAE5E;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,aAAa,CAAA;IACrB,QAAQ,EAAE,aAAa,CAAA;IACvB,WAAW,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MA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C,eAAe,CAAC,GAAG;QACxC,QAAQ,EAAE,eAAe,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC,CAAA;KAChE;IAWD;;OAEG;yBAES,iBAAiB,EAAE,UACtB,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,WAAW,CAAC,GACrD,mBAAmB,CAAC,eAAe,CAAC,GAAG;QACxC,QAAQ,EAAE,eAAe,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC,CAAA;KAChE;IAQD;;OAEG;oBAES,iBAAiB,EAAE,UACtB,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,eAAe,CAAC,GACzD,mBAAmB,CAAC,eAAe,CAAC,GAAG;QACxC,QAAQ,EAAE,eAAe,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC,CAAA;KAChE;CAOF,CAAA"}
@@ -1,153 +0,0 @@
1
- /**
2
- * Enhanced Section Component (Phase 6.4.2)
3
- *
4
- * @deprecated This component has been superseded by FormSection from @tachui/forms
5
- * for form contexts, which provides the same features with better semantic HTML.
6
- * For general layout grouping, use VStack or HStack with styling instead.
7
- *
8
- * Migration Guide:
9
- * - For forms: Replace with FormSection from @tachui/forms
10
- * - For general grouping: Use VStack with styling modifiers
11
- * - All props are compatible between Section and FormSection
12
- *
13
- * SwiftUI-inspired Section component for grouping form content
14
- * with headers, footers, and automatic styling.
15
- */
16
- import type { ModifiableComponent, ModifierBuilder } from '../modifiers/types';
17
- import type { Signal } from '../reactive/types';
18
- import type { ComponentInstance, ComponentProps, DOMNode } from '../runtime/types';
19
- /**
20
- * Section component properties
21
- */
22
- export interface SectionProps extends ComponentProps {
23
- children?: ComponentInstance[];
24
- header?: string | (() => string) | Signal<string> | ComponentInstance;
25
- footer?: string | (() => string) | Signal<string> | ComponentInstance;
26
- style?: 'automatic' | 'grouped' | 'inset' | 'plain' | 'sidebar';
27
- spacing?: number;
28
- collapsible?: boolean;
29
- collapsed?: boolean | Signal<boolean>;
30
- onToggle?: (collapsed: boolean) => void;
31
- accessibilityLabel?: string;
32
- accessibilityRole?: string;
33
- }
34
- /**
35
- * Enhanced Section component class
36
- */
37
- export declare class EnhancedSection implements ComponentInstance<SectionProps> {
38
- props: SectionProps;
39
- readonly type: "component";
40
- readonly id: string;
41
- mounted: boolean;
42
- cleanup: (() => void)[];
43
- constructor(props: SectionProps);
44
- /**
45
- * Resolve dynamic content
46
- */
47
- private resolveContent;
48
- /**
49
- * Check if section is collapsed
50
- */
51
- private isCollapsed;
52
- /**
53
- * Handle toggle action
54
- */
55
- private handleToggle;
56
- /**
57
- * Helper to render component content safely
58
- */
59
- private renderComponentContent;
60
- /**
61
- * Get section styles based on style prop
62
- */
63
- private getSectionStyles;
64
- /**
65
- * Get header styles
66
- */
67
- private getHeaderStyles;
68
- /**
69
- * Get content styles
70
- */
71
- private getContentStyles;
72
- /**
73
- * Get footer styles
74
- */
75
- private getFooterStyles;
76
- /**
77
- * Render header content
78
- */
79
- private renderHeader;
80
- /**
81
- * Render content
82
- */
83
- private renderContent;
84
- /**
85
- * Render footer content
86
- */
87
- private renderFooter;
88
- render(): DOMNode;
89
- }
90
- /**
91
- * Section component function
92
- * @deprecated Use FormSection from @tachui/forms for form contexts, or VStack for general grouping
93
- */
94
- export declare function Section(children: ComponentInstance[], props?: Omit<SectionProps, 'children'>): ModifiableComponent<SectionProps> & {
95
- modifier: ModifierBuilder<ModifiableComponent<SectionProps>>;
96
- };
97
- /**
98
- * Section with header
99
- * @deprecated Use FormSection from @tachui/forms
100
- */
101
- export declare function SectionWithHeader(header: string | (() => string) | Signal<string> | ComponentInstance, children: ComponentInstance[], props?: Omit<SectionProps, 'children' | 'header'>): ModifiableComponent<SectionProps> & {
102
- modifier: ModifierBuilder<ModifiableComponent<SectionProps>>;
103
- };
104
- /**
105
- * Section with header and footer
106
- * @deprecated Use FormSection from @tachui/forms
107
- */
108
- export declare function SectionWithHeaderFooter(header: string | (() => string) | Signal<string> | ComponentInstance, footer: string | (() => string) | Signal<string> | ComponentInstance, children: ComponentInstance[], props?: Omit<SectionProps, 'children' | 'header' | 'footer'>): ModifiableComponent<SectionProps> & {
109
- modifier: ModifierBuilder<ModifiableComponent<SectionProps>>;
110
- };
111
- /**
112
- * Section style variants
113
- * @deprecated Use FormSection from @tachui/forms with style prop
114
- */
115
- export declare const SectionStyles: {
116
- /**
117
- * Automatic section styling (default)
118
- */
119
- Automatic(children: ComponentInstance[], props?: Omit<SectionProps, "children" | "style">): ModifiableComponent<SectionProps> & {
120
- modifier: ModifierBuilder<ModifiableComponent<SectionProps>>;
121
- };
122
- /**
123
- * Grouped section with container styling
124
- */
125
- Grouped(children: ComponentInstance[], props?: Omit<SectionProps, "children" | "style">): ModifiableComponent<SectionProps> & {
126
- modifier: ModifierBuilder<ModifiableComponent<SectionProps>>;
127
- };
128
- /**
129
- * Inset section styling
130
- */
131
- Inset(children: ComponentInstance[], props?: Omit<SectionProps, "children" | "style">): ModifiableComponent<SectionProps> & {
132
- modifier: ModifierBuilder<ModifiableComponent<SectionProps>>;
133
- };
134
- /**
135
- * Sidebar-style section
136
- */
137
- Sidebar(children: ComponentInstance[], props?: Omit<SectionProps, "children" | "style">): ModifiableComponent<SectionProps> & {
138
- modifier: ModifierBuilder<ModifiableComponent<SectionProps>>;
139
- };
140
- /**
141
- * Plain section without styling
142
- */
143
- Plain(children: ComponentInstance[], props?: Omit<SectionProps, "children" | "style">): ModifiableComponent<SectionProps> & {
144
- modifier: ModifierBuilder<ModifiableComponent<SectionProps>>;
145
- };
146
- /**
147
- * Collapsible section
148
- */
149
- Collapsible(header: string | (() => string) | Signal<string> | ComponentInstance, children: ComponentInstance[], collapsed?: boolean | Signal<boolean>, props?: Omit<SectionProps, "children" | "header" | "collapsible" | "collapsed">): ModifiableComponent<SectionProps> & {
150
- modifier: ModifierBuilder<ModifiableComponent<SectionProps>>;
151
- };
152
- };
153
- //# sourceMappingURL=Section.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../src/components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,CAAA"}
@@ -1,64 +0,0 @@
1
- /**
2
- * Show component for conditional rendering
3
- *
4
- * Reactive implementation that works with TachUI's reactive architecture
5
- */
6
- import type { ComponentInstance, DOMNode } from '../runtime/types';
7
- export interface ShowProps {
8
- /**
9
- * Condition to determine if content should be shown
10
- */
11
- when: boolean | (() => boolean);
12
- /**
13
- * Content to render when condition is true
14
- */
15
- children: ComponentInstance;
16
- /**
17
- * Optional fallback content when condition is false
18
- */
19
- fallback?: ComponentInstance;
20
- }
21
- /**
22
- * Show component implementation that integrates with TachUI's reactive system
23
- */
24
- export declare class ShowComponent implements ComponentInstance<ShowProps> {
25
- readonly type: "component";
26
- readonly id: string;
27
- readonly props: ShowProps;
28
- mounted: boolean;
29
- cleanup: (() => void)[];
30
- constructor(props: ShowProps);
31
- /**
32
- * Evaluate the condition
33
- */
34
- private evaluateCondition;
35
- /**
36
- * Get the content to render based on condition
37
- */
38
- private getContent;
39
- /**
40
- * Render the Show component with self-contained reactivity like text() function
41
- */
42
- render(): DOMNode[];
43
- /**
44
- * Update the container DOM element with new children using TachUI's renderer
45
- */
46
- private updateContainerDOM;
47
- /**
48
- * Cleanup resources
49
- */
50
- dispose(): void;
51
- }
52
- /**
53
- * Create Show component for conditional rendering
54
- */
55
- export declare function Show(props: ShowProps): ShowComponent;
56
- /**
57
- * Convenience function for simple conditional rendering
58
- */
59
- export declare function When(condition: boolean | (() => boolean), content: ComponentInstance): ShowComponent;
60
- /**
61
- * Convenience function for negated conditional rendering
62
- */
63
- export declare function Unless(condition: boolean | (() => boolean), content: ComponentInstance): ShowComponent;
64
- //# sourceMappingURL=Show.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Show.d.ts","sourceRoot":"","sources":["../../src/components/Show.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAGlE,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,IAAI,EAAE,OAAO,GAAG,CAAC,MAAM,OAAO,CAAC,CAAA;IAE/B;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAA;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC7B;AAED;;GAEG;AACH,qBAAa,aAAc,YAAW,iBAAiB,CAAC,SAAS,CAAC;IAChE,SAAgB,IAAI,EAAG,WAAW,CAAS;IAC3C,SAAgB,EAAE,EAAE,MAAM,CAAA;IAC1B,SAAgB,KAAK,EAAE,SAAS,CAAA;IACzB,OAAO,UAAQ;IACf,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,EAAE,CAAK;gBAEvB,KAAK,EAAE,SAAS;IAK5B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAczB;;OAEG;IACH,OAAO,CAAC,UAAU;IAalB;;OAEG;IACH,MAAM,IAAI,OAAO,EAAE;IA4DnB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAoB1B;;OAEG;IACH,OAAO,IAAI,IAAI;CAUhB;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,GAAG,aAAa,CAEpD;AAED;;GAEG;AACH,wBAAgB,IAAI,CAClB,SAAS,EAAE,OAAO,GAAG,CAAC,MAAM,OAAO,CAAC,EACpC,OAAO,EAAE,iBAAiB,GACzB,aAAa,CAEf;AAED;;GAEG;AACH,wBAAgB,MAAM,CACpB,SAAS,EAAE,OAAO,GAAG,CAAC,MAAM,OAAO,CAAC,EACpC,OAAO,EAAE,iBAAiB,GACzB,aAAa,CAKf"}
@@ -1,35 +0,0 @@
1
- /**
2
- * Spacer Component
3
- *
4
- * SwiftUI-inspired Spacer component that expands to fill available space
5
- * along the main axis of its container. Behaves like SwiftUI.Spacer.
6
- */
7
- import type { ModifiableComponent, ModifierBuilder } from '../modifiers/types';
8
- import type { ComponentInstance, ComponentProps, DOMNode } from '../runtime/types';
9
- import { ComponentWithCSSClasses, type CSSClassesProps } from '../css-classes';
10
- /**
11
- * Spacer component properties with CSS classes support
12
- */
13
- export interface SpacerProps extends ComponentProps, CSSClassesProps {
14
- minLength?: number;
15
- }
16
- /**
17
- * Spacer component implementation with CSS classes support
18
- */
19
- export declare class SpacerComponent extends ComponentWithCSSClasses implements ComponentInstance<SpacerProps> {
20
- readonly type: "component";
21
- readonly id: string;
22
- readonly props: SpacerProps;
23
- constructor(props: SpacerProps);
24
- render(): DOMNode;
25
- }
26
- /**
27
- * Create a Spacer component with optional minimum length
28
- */
29
- export declare function Spacer(minLength?: number): ModifiableComponent<SpacerProps> & {
30
- modifier: ModifierBuilder<ModifiableComponent<SpacerProps>>;
31
- };
32
- export declare function Spacer(props?: SpacerProps): ModifiableComponent<SpacerProps> & {
33
- modifier: ModifierBuilder<ModifiableComponent<SpacerProps>>;
34
- };
35
- //# sourceMappingURL=Spacer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Spacer.d.ts","sourceRoot":"","sources":["../../src/components/Spacer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAE9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAElF,OAAO,EACL,uBAAuB,EACvB,KAAK,eAAe,EACrB,MAAM,gBAAgB,CAAA;AAEvB;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,cAAc,EAAE,eAAe;IAClE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,uBAAwB,YAAW,iBAAiB,CAAC,WAAW,CAAC;IACpG,SAAgB,IAAI,EAAG,WAAW,CAAS;IAC3C,SAAgB,EAAE,EAAE,MAAM,CAAA;IAC1B,SAAgB,KAAK,EAAE,WAAW,CAAA;gBAEtB,KAAK,EAAE,WAAW;IAM9B,MAAM,IAAI,OAAO;CA8BlB;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC,WAAW,CAAC,GAAG;IAC7E,QAAQ,EAAE,eAAe,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC,CAAA;CAC5D,CAAA;AACD,wBAAgB,MAAM,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,mBAAmB,CAAC,WAAW,CAAC,GAAG;IAC9E,QAAQ,EAAE,eAAe,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC,CAAA;CAC5D,CAAA"}