@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,242 +0,0 @@
1
- /**
2
- * Enhanced Text Component (Phase 5.1)
3
- *
4
- * SwiftUI-inspired Text component with full typography support,
5
- * text formatting, and advanced styling capabilities.
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
- import type { Concatenatable, ComponentSegment } from '../concatenation/types';
11
- import { ConcatenatedComponent } from '../concatenation/concatenated-component';
12
- import { type ElementOverrideProps } from '../runtime/element-override';
13
- import { ComponentWithCSSClasses, type CSSClassesProps } from '../css-classes';
14
- /**
15
- * Text component properties with element override support and CSS classes
16
- */
17
- export interface TextProps extends ComponentProps, ElementOverrideProps, CSSClassesProps {
18
- content?: string | (() => string) | Signal<string>;
19
- font?: {
20
- family?: string;
21
- size?: number | string;
22
- weight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
23
- style?: 'normal' | 'italic' | 'oblique';
24
- variant?: 'normal' | 'small-caps';
25
- };
26
- color?: string | Signal<string>;
27
- backgroundColor?: string | Signal<string>;
28
- textAlign?: 'left' | 'center' | 'right' | 'justify';
29
- textDecoration?: 'none' | 'underline' | 'line-through' | 'overline';
30
- textTransform?: 'none' | 'uppercase' | 'lowercase' | 'capitalize';
31
- lineHeight?: number | string;
32
- letterSpacing?: number | string;
33
- wordSpacing?: number | string;
34
- lineLimit?: number;
35
- truncationMode?: 'head' | 'tail' | 'middle';
36
- allowsSelection?: boolean;
37
- accessibilityLabel?: string;
38
- accessibilityRole?: 'text' | 'heading' | 'label';
39
- accessibilityLevel?: 1 | 2 | 3 | 4 | 5 | 6;
40
- onTap?: () => void;
41
- onLongPress?: () => void;
42
- }
43
- /**
44
- * Text formatting options
45
- */
46
- export interface TextFormatting {
47
- bold?: boolean;
48
- italic?: boolean;
49
- underline?: boolean;
50
- strikethrough?: boolean;
51
- monospace?: boolean;
52
- smallCaps?: boolean;
53
- }
54
- /**
55
- * Typography presets following SwiftUI patterns
56
- */
57
- export declare const Typography: {
58
- largeTitle: {
59
- size: number;
60
- weight: "400";
61
- lineHeight: number;
62
- };
63
- title: {
64
- size: number;
65
- weight: "400";
66
- lineHeight: number;
67
- };
68
- title2: {
69
- size: number;
70
- weight: "400";
71
- lineHeight: number;
72
- };
73
- title3: {
74
- size: number;
75
- weight: "400";
76
- lineHeight: number;
77
- };
78
- headline: {
79
- size: number;
80
- weight: "600";
81
- lineHeight: number;
82
- };
83
- body: {
84
- size: number;
85
- weight: "400";
86
- lineHeight: number;
87
- };
88
- callout: {
89
- size: number;
90
- weight: "400";
91
- lineHeight: number;
92
- };
93
- subheadline: {
94
- size: number;
95
- weight: "400";
96
- lineHeight: number;
97
- };
98
- footnote: {
99
- size: number;
100
- weight: "400";
101
- lineHeight: number;
102
- };
103
- caption: {
104
- size: number;
105
- weight: "400";
106
- lineHeight: number;
107
- };
108
- caption2: {
109
- size: number;
110
- weight: "400";
111
- lineHeight: number;
112
- };
113
- };
114
- /**
115
- * Enhanced Text component class with reactive content handling, concatenation support, element override, and CSS classes
116
- */
117
- export declare class EnhancedText extends ComponentWithCSSClasses implements ComponentInstance<TextProps>, Concatenatable<TextProps> {
118
- props: TextProps;
119
- readonly type: "component";
120
- readonly id: string;
121
- mounted: boolean;
122
- cleanup: (() => void)[];
123
- private effectiveTag;
124
- private validationResult;
125
- constructor(props: TextProps);
126
- /**
127
- * Render the text component with reactive content handling, element override support, and CSS classes
128
- */
129
- render(): import("../runtime").DOMNode[];
130
- /**
131
- * Concatenate this text component with another concatenatable component
132
- */
133
- concat<U extends Concatenatable<any>>(other: U): ConcatenatedComponent<TextProps | U>;
134
- /**
135
- * Convert this text component to a segment for concatenation
136
- */
137
- toSegment(): ComponentSegment;
138
- /**
139
- * Check if this component supports concatenation
140
- */
141
- isConcatenatable(): boolean;
142
- /**
143
- * Get the text content for accessibility purposes
144
- */
145
- getTextContent(): string;
146
- /**
147
- * Determine accessibility role when concatenating with another component
148
- */
149
- private determineAccessibilityRole;
150
- /**
151
- * Determine semantic structure when concatenating with another component
152
- */
153
- private determineSemanticStructure;
154
- /**
155
- * Merge accessibility roles
156
- */
157
- private mergeAccessibilityRoles;
158
- /**
159
- * Merge semantic structures
160
- */
161
- private mergeSemanticStructures;
162
- }
163
- /**
164
- * Create enhanced Text component with modifier support
165
- */
166
- export declare function Text(content: string | (() => string) | Signal<string>, props?: Omit<TextProps, 'content'>): ModifiableComponent<TextProps> & {
167
- modifier: ModifierBuilder<ModifiableComponent<TextProps>>;
168
- };
169
- /**
170
- * Typography preset components
171
- */
172
- export declare const TextStyles: {
173
- LargeTitle: (content: string | (() => string) | Signal<string>, props?: Omit<TextProps, "content" | "font">) => ModifiableComponent<TextProps> & {
174
- modifier: ModifierBuilder<ModifiableComponent<TextProps>>;
175
- };
176
- Title: (content: string | (() => string) | Signal<string>, props?: Omit<TextProps, "content" | "font">) => ModifiableComponent<TextProps> & {
177
- modifier: ModifierBuilder<ModifiableComponent<TextProps>>;
178
- };
179
- Title2: (content: string | (() => string) | Signal<string>, props?: Omit<TextProps, "content" | "font">) => ModifiableComponent<TextProps> & {
180
- modifier: ModifierBuilder<ModifiableComponent<TextProps>>;
181
- };
182
- Title3: (content: string | (() => string) | Signal<string>, props?: Omit<TextProps, "content" | "font">) => ModifiableComponent<TextProps> & {
183
- modifier: ModifierBuilder<ModifiableComponent<TextProps>>;
184
- };
185
- Headline: (content: string | (() => string) | Signal<string>, props?: Omit<TextProps, "content" | "font">) => ModifiableComponent<TextProps> & {
186
- modifier: ModifierBuilder<ModifiableComponent<TextProps>>;
187
- };
188
- Body: (content: string | (() => string) | Signal<string>, props?: Omit<TextProps, "content" | "font">) => ModifiableComponent<TextProps> & {
189
- modifier: ModifierBuilder<ModifiableComponent<TextProps>>;
190
- };
191
- Callout: (content: string | (() => string) | Signal<string>, props?: Omit<TextProps, "content" | "font">) => ModifiableComponent<TextProps> & {
192
- modifier: ModifierBuilder<ModifiableComponent<TextProps>>;
193
- };
194
- Subheadline: (content: string | (() => string) | Signal<string>, props?: Omit<TextProps, "content" | "font">) => ModifiableComponent<TextProps> & {
195
- modifier: ModifierBuilder<ModifiableComponent<TextProps>>;
196
- };
197
- Footnote: (content: string | (() => string) | Signal<string>, props?: Omit<TextProps, "content" | "font">) => ModifiableComponent<TextProps> & {
198
- modifier: ModifierBuilder<ModifiableComponent<TextProps>>;
199
- };
200
- Caption: (content: string | (() => string) | Signal<string>, props?: Omit<TextProps, "content" | "font">) => ModifiableComponent<TextProps> & {
201
- modifier: ModifierBuilder<ModifiableComponent<TextProps>>;
202
- };
203
- Caption2: (content: string | (() => string) | Signal<string>, props?: Omit<TextProps, "content" | "font">) => ModifiableComponent<TextProps> & {
204
- modifier: ModifierBuilder<ModifiableComponent<TextProps>>;
205
- };
206
- };
207
- /**
208
- * Text formatting utilities
209
- */
210
- export declare const TextFormat: {
211
- /**
212
- * Apply multiple formatting options to text
213
- */
214
- formatted(content: string | (() => string) | Signal<string>, formatting: TextFormatting, props?: Omit<TextProps, "content">): ModifiableComponent<TextProps> & {
215
- modifier: ModifierBuilder<ModifiableComponent<TextProps>>;
216
- };
217
- /**
218
- * Create bold text
219
- */
220
- bold(content: string | (() => string) | Signal<string>, props?: Omit<TextProps, "content">): ModifiableComponent<TextProps> & {
221
- modifier: ModifierBuilder<ModifiableComponent<TextProps>>;
222
- };
223
- /**
224
- * Create italic text
225
- */
226
- italic(content: string | (() => string) | Signal<string>, props?: Omit<TextProps, "content">): ModifiableComponent<TextProps> & {
227
- modifier: ModifierBuilder<ModifiableComponent<TextProps>>;
228
- };
229
- /**
230
- * Create underlined text
231
- */
232
- underline(content: string | (() => string) | Signal<string>, props?: Omit<TextProps, "content">): ModifiableComponent<TextProps> & {
233
- modifier: ModifierBuilder<ModifiableComponent<TextProps>>;
234
- };
235
- /**
236
- * Create monospace text
237
- */
238
- monospace(content: string | (() => string) | Signal<string>, props?: Omit<TextProps, "content">): ModifiableComponent<TextProps> & {
239
- modifier: ModifierBuilder<ModifiableComponent<TextProps>>;
240
- };
241
- };
242
- //# sourceMappingURL=Text.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/components/Text.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAC9E,OAAO,K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C1C,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;kBA9CvB,eAAe,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;;IAmD3D;;OAEG;uBAEQ,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,UAC1C,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;kBAxDvB,eAAe,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;;CA4D5D,CAAA"}
@@ -1,207 +0,0 @@
1
- /**
2
- * Enhanced Toggle Component (Phase 6.4.5)
3
- *
4
- * SwiftUI-inspired Toggle component with switch-style boolean controls,
5
- * smooth animations, and multiple style variants.
6
- */
7
- import type { ModifiableComponent, ModifierBuilder } from '../modifiers/types';
8
- import type { Signal } from '../reactive/types';
9
- import type { ComponentInstance, ComponentProps, DOMNode } from '../runtime/types';
10
- /**
11
- * Toggle component properties
12
- */
13
- export interface ToggleProps extends ComponentProps {
14
- isOn: boolean | Signal<boolean>;
15
- onToggle?: (isOn: boolean) => void;
16
- label?: string | (() => string) | Signal<string> | ComponentInstance;
17
- variant?: 'switch' | 'checkbox' | 'button';
18
- size?: 'small' | 'medium' | 'large';
19
- color?: string;
20
- offColor?: string;
21
- thumbColor?: string;
22
- disabled?: boolean | Signal<boolean>;
23
- animated?: boolean;
24
- labelPosition?: 'leading' | 'trailing';
25
- spacing?: number;
26
- accessibilityLabel?: string;
27
- accessibilityHint?: string;
28
- }
29
- /**
30
- * Enhanced Toggle component class
31
- */
32
- export declare class EnhancedToggle implements ComponentInstance<ToggleProps> {
33
- props: ToggleProps;
34
- readonly type: "component";
35
- readonly id: string;
36
- mounted: boolean;
37
- cleanup: (() => void)[];
38
- private toggleElement;
39
- private setIsAnimating;
40
- constructor(props: ToggleProps);
41
- /**
42
- * Get current toggle state
43
- */
44
- private getIsOn;
45
- /**
46
- * Check if toggle is disabled
47
- */
48
- private isDisabled;
49
- /**
50
- * Resolve label content
51
- */
52
- private resolveLabel;
53
- /**
54
- * Helper to render component content safely
55
- */
56
- private renderComponentContent;
57
- /**
58
- * Handle toggle change
59
- */
60
- private handleToggle;
61
- /**
62
- * Get toggle size styles
63
- */
64
- private getSizeStyles;
65
- /**
66
- * Render switch variant
67
- */
68
- private renderSwitch;
69
- /**
70
- * Render checkbox variant
71
- */
72
- private renderCheckbox;
73
- /**
74
- * Render button variant
75
- */
76
- private renderButton;
77
- /**
78
- * Render toggle control based on variant
79
- */
80
- private renderToggleControl;
81
- /**
82
- * Render label content
83
- */
84
- private renderLabel;
85
- render(): DOMNode;
86
- }
87
- /**
88
- * Toggle component function
89
- */
90
- export declare function Toggle(isOn: boolean | Signal<boolean>, props?: Omit<ToggleProps, 'isOn'>): ModifiableComponent<ToggleProps> & {
91
- modifier: ModifierBuilder<ModifiableComponent<ToggleProps>>;
92
- };
93
- /**
94
- * Toggle with label
95
- */
96
- export declare function ToggleWithLabel(label: string | (() => string) | Signal<string> | ComponentInstance, isOn: boolean | Signal<boolean>, props?: Omit<ToggleProps, 'isOn' | 'label'>): ModifiableComponent<ToggleProps> & {
97
- modifier: ModifierBuilder<ModifiableComponent<ToggleProps>>;
98
- };
99
- /**
100
- * Toggle style variants
101
- */
102
- export declare const ToggleStyles: {
103
- /**
104
- * Switch toggle (default)
105
- */
106
- Switch(isOn: boolean | Signal<boolean>, props?: Omit<ToggleProps, "isOn" | "variant">): ModifiableComponent<ToggleProps> & {
107
- modifier: ModifierBuilder<ModifiableComponent<ToggleProps>>;
108
- };
109
- /**
110
- * Checkbox toggle
111
- */
112
- Checkbox(isOn: boolean | Signal<boolean>, props?: Omit<ToggleProps, "isOn" | "variant">): ModifiableComponent<ToggleProps> & {
113
- modifier: ModifierBuilder<ModifiableComponent<ToggleProps>>;
114
- };
115
- /**
116
- * Button toggle
117
- */
118
- Button(isOn: boolean | Signal<boolean>, props?: Omit<ToggleProps, "isOn" | "variant">): ModifiableComponent<ToggleProps> & {
119
- modifier: ModifierBuilder<ModifiableComponent<ToggleProps>>;
120
- };
121
- /**
122
- * Small toggle
123
- */
124
- Small(isOn: boolean | Signal<boolean>, props?: Omit<ToggleProps, "isOn" | "size">): ModifiableComponent<ToggleProps> & {
125
- modifier: ModifierBuilder<ModifiableComponent<ToggleProps>>;
126
- };
127
- /**
128
- * Large toggle
129
- */
130
- Large(isOn: boolean | Signal<boolean>, props?: Omit<ToggleProps, "isOn" | "size">): ModifiableComponent<ToggleProps> & {
131
- modifier: ModifierBuilder<ModifiableComponent<ToggleProps>>;
132
- };
133
- /**
134
- * Custom color toggle
135
- */
136
- CustomColor(isOn: boolean | Signal<boolean>, color: string, props?: Omit<ToggleProps, "isOn" | "color">): ModifiableComponent<ToggleProps> & {
137
- modifier: ModifierBuilder<ModifiableComponent<ToggleProps>>;
138
- };
139
- /**
140
- * Toggle with leading label
141
- */
142
- WithLeadingLabel(label: string | (() => string) | Signal<string> | ComponentInstance, isOn: boolean | Signal<boolean>, props?: Omit<ToggleProps, "isOn" | "label" | "labelPosition">): ModifiableComponent<ToggleProps> & {
143
- modifier: ModifierBuilder<ModifiableComponent<ToggleProps>>;
144
- };
145
- /**
146
- * Toggle with trailing label (default)
147
- */
148
- WithTrailingLabel(label: string | (() => string) | Signal<string> | ComponentInstance, isOn: boolean | Signal<boolean>, props?: Omit<ToggleProps, "isOn" | "label" | "labelPosition">): ModifiableComponent<ToggleProps> & {
149
- modifier: ModifierBuilder<ModifiableComponent<ToggleProps>>;
150
- };
151
- };
152
- /**
153
- * Toggle utilities
154
- */
155
- export declare const ToggleUtils: {
156
- /**
157
- * Create a toggle group with multiple options
158
- */
159
- createGroup(options: Array<{
160
- key: string;
161
- label: string;
162
- isOn: boolean | Signal<boolean>;
163
- onToggle?: (isOn: boolean) => void;
164
- }>, props?: Omit<ToggleProps, "isOn" | "label" | "onToggle">): (ModifiableComponent<ToggleProps> & {
165
- modifier: ModifierBuilder<ModifiableComponent<ToggleProps>>;
166
- })[];
167
- /**
168
- * Create exclusive toggle group (radio-like behavior)
169
- */
170
- createExclusiveGroup(options: Array<{
171
- key: string;
172
- label: string;
173
- }>, selectedKey: string | Signal<string>, onSelectionChange?: (key: string) => void, props?: Omit<ToggleProps, "isOn" | "label" | "onToggle">): (ModifiableComponent<ToggleProps> & {
174
- modifier: ModifierBuilder<ModifiableComponent<ToggleProps>>;
175
- })[];
176
- /**
177
- * Batch toggle operations
178
- */
179
- batch: {
180
- /**
181
- * Toggle all items in a group
182
- */
183
- toggleAll(toggles: Array<{
184
- isOn: boolean | Signal<boolean>;
185
- onToggle?: (isOn: boolean) => void;
186
- }>, newState: boolean): void;
187
- /**
188
- * Get state of all toggles in a group
189
- */
190
- getStates(toggles: Array<{
191
- isOn: boolean | Signal<boolean>;
192
- }>): boolean[];
193
- /**
194
- * Check if all toggles are on
195
- */
196
- allOn(toggles: Array<{
197
- isOn: boolean | Signal<boolean>;
198
- }>): boolean;
199
- /**
200
- * Check if any toggle is on
201
- */
202
- anyOn(toggles: Array<{
203
- isOn: boolean | Signal<boolean>;
204
- }>): boolean;
205
- };
206
- };
207
- //# sourceMappingURL=Toggle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../src/components/Toggle.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,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAGlF;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,cAAc;IAEjD,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,CAAA;IAC/B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAGlC,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM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