@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,240 +0,0 @@
1
- /**
2
- * Pseudo-element Modifiers - ::before and ::after styling
3
- *
4
- * Provides comprehensive pseudo-element support for ::before and ::after
5
- * with dynamic stylesheet generation and flexible styling options.
6
- */
7
- import type { DOMNode } from '../runtime/types';
8
- import { BaseModifier } from './base';
9
- import type { ModifierContext, ReactiveModifierProps } from './types';
10
- export interface PseudoElementStyles {
11
- content?: string;
12
- position?: 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky';
13
- top?: number | string;
14
- right?: number | string;
15
- bottom?: number | string;
16
- left?: number | string;
17
- width?: number | string;
18
- height?: number | string;
19
- backgroundColor?: string;
20
- color?: string;
21
- fontSize?: number | string;
22
- fontWeight?: string | number;
23
- fontFamily?: string;
24
- lineHeight?: number | string;
25
- textAlign?: 'left' | 'center' | 'right' | 'justify';
26
- margin?: number | string;
27
- marginTop?: number | string;
28
- marginRight?: number | string;
29
- marginBottom?: number | string;
30
- marginLeft?: number | string;
31
- padding?: number | string;
32
- paddingTop?: number | string;
33
- paddingRight?: number | string;
34
- paddingBottom?: number | string;
35
- paddingLeft?: number | string;
36
- border?: string;
37
- borderTop?: string;
38
- borderRight?: string;
39
- borderBottom?: string;
40
- borderLeft?: string;
41
- borderRadius?: number | string;
42
- borderWidth?: number | string;
43
- borderStyle?: string;
44
- borderColor?: string;
45
- boxShadow?: string;
46
- textShadow?: string;
47
- opacity?: number;
48
- transform?: string;
49
- transformOrigin?: string;
50
- zIndex?: number;
51
- display?: string;
52
- flexDirection?: string;
53
- flexWrap?: string;
54
- alignItems?: string;
55
- justifyContent?: string;
56
- alignSelf?: string;
57
- flex?: string;
58
- flexGrow?: number;
59
- flexShrink?: number;
60
- flexBasis?: string;
61
- order?: number;
62
- overflow?: 'visible' | 'hidden' | 'scroll' | 'auto';
63
- overflowX?: 'visible' | 'hidden' | 'scroll' | 'auto';
64
- overflowY?: 'visible' | 'hidden' | 'scroll' | 'auto';
65
- whiteSpace?: 'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line';
66
- textOverflow?: 'clip' | 'ellipsis';
67
- cursor?: string;
68
- pointerEvents?: 'auto' | 'none';
69
- visibility?: 'visible' | 'hidden';
70
- backgroundImage?: string;
71
- backgroundSize?: string;
72
- backgroundPosition?: string;
73
- backgroundRepeat?: string;
74
- filter?: string;
75
- backdropFilter?: string;
76
- transition?: string;
77
- animation?: string;
78
- [key: string]: any;
79
- }
80
- export interface PseudoElementOptions {
81
- before?: PseudoElementStyles;
82
- after?: PseudoElementStyles;
83
- }
84
- export type ReactivePseudoElementOptions = ReactiveModifierProps<PseudoElementOptions>;
85
- export declare class PseudoElementModifier extends BaseModifier<PseudoElementOptions> {
86
- readonly type = "pseudoElement";
87
- readonly priority = 50;
88
- private static styleSheetId;
89
- private static elementCount;
90
- constructor(options: ReactivePseudoElementOptions);
91
- apply(_node: DOMNode, context: ModifierContext): DOMNode | undefined;
92
- private addPseudoElementRule;
93
- private generatePseudoElementCSS;
94
- private formatCSSValue;
95
- private getOrCreateStyleSheet;
96
- }
97
- /**
98
- * ::before pseudo-element modifier
99
- *
100
- * @example
101
- * ```typescript
102
- * .before({
103
- * content: '★',
104
- * position: 'absolute',
105
- * left: -20,
106
- * color: '#ffd700'
107
- * })
108
- * ```
109
- */
110
- export declare function before(styles: PseudoElementStyles): PseudoElementModifier;
111
- /**
112
- * ::after pseudo-element modifier
113
- *
114
- * @example
115
- * ```typescript
116
- * .after({
117
- * content: '',
118
- * position: 'absolute',
119
- * bottom: 0,
120
- * left: 0,
121
- * right: 0,
122
- * height: 2,
123
- * backgroundColor: '#007AFF'
124
- * })
125
- * ```
126
- */
127
- export declare function after(styles: PseudoElementStyles): PseudoElementModifier;
128
- /**
129
- * Both ::before and ::after pseudo-elements
130
- *
131
- * @example
132
- * ```typescript
133
- * .pseudoElements({
134
- * before: { content: '"', fontSize: 24, color: '#666' },
135
- * after: { content: '"', fontSize: 24, color: '#666' }
136
- * })
137
- * ```
138
- */
139
- export declare function pseudoElements(options: PseudoElementOptions): PseudoElementModifier;
140
- /**
141
- * Icon before content using a Unicode character
142
- *
143
- * @example
144
- * ```typescript
145
- * .iconBefore('★', { color: '#ffd700', marginRight: 8 })
146
- * .iconBefore('→', { color: '#007AFF' })
147
- * ```
148
- */
149
- export declare function iconBefore(icon: string, styles?: Omit<PseudoElementStyles, 'content'>): PseudoElementModifier;
150
- /**
151
- * Icon after content using a Unicode character
152
- *
153
- * @example
154
- * ```typescript
155
- * .iconAfter('→', { color: '#007AFF', marginLeft: 8 })
156
- * .iconAfter('✓', { color: '#34c759' })
157
- * ```
158
- */
159
- export declare function iconAfter(icon: string, styles?: Omit<PseudoElementStyles, 'content'>): PseudoElementModifier;
160
- /**
161
- * Decorative line before content
162
- *
163
- * @example
164
- * ```typescript
165
- * .lineBefore() // Default line
166
- * .lineBefore('#007AFF', 2, 20) // Blue line, 2px thick, 20px long
167
- * ```
168
- */
169
- export declare function lineBefore(color?: string, thickness?: number, length?: number): PseudoElementModifier;
170
- /**
171
- * Decorative line after content
172
- *
173
- * @example
174
- * ```typescript
175
- * .lineAfter() // Default line
176
- * .lineAfter('#007AFF', 2, 20) // Blue line, 2px thick, 20px long
177
- * ```
178
- */
179
- export declare function lineAfter(color?: string, thickness?: number, length?: number): PseudoElementModifier;
180
- /**
181
- * Quote marks around content
182
- *
183
- * @example
184
- * ```typescript
185
- * .quotes() // Default quotes (" ")
186
- * .quotes('«', '»') // Custom quote characters
187
- * ```
188
- */
189
- export declare function quotes(openQuote?: string, closeQuote?: string): PseudoElementModifier;
190
- /**
191
- * Underline decoration using ::after
192
- *
193
- * @example
194
- * ```typescript
195
- * .underline() // Default underline
196
- * .underline('#007AFF', 2, 0.2) // Blue underline, 2px thick, 20% opacity
197
- * ```
198
- */
199
- export declare function underline(color?: string, thickness?: number, opacity?: number): PseudoElementModifier;
200
- /**
201
- * Badge or notification dot using ::after
202
- *
203
- * @example
204
- * ```typescript
205
- * .badge() // Default red dot
206
- * .badge('#007AFF', 8, '2') // Blue badge with "2" text
207
- * ```
208
- */
209
- export declare function badge(color?: string, size?: number, text?: string): PseudoElementModifier;
210
- /**
211
- * Tooltip using ::before with positioning
212
- *
213
- * @example
214
- * ```typescript
215
- * .tooltip('This is a tooltip')
216
- * .tooltip('Custom tooltip', 'bottom', '#333')
217
- * ```
218
- */
219
- export declare function tooltip(text: string, position?: 'top' | 'bottom' | 'left' | 'right', backgroundColor?: string, textColor?: string): PseudoElementModifier;
220
- /**
221
- * Corner ribbon using ::before
222
- *
223
- * @example
224
- * ```typescript
225
- * .cornerRibbon('New!') // Default red ribbon
226
- * .cornerRibbon('Sale', '#ff9500') // Orange sale ribbon
227
- * ```
228
- */
229
- export declare function cornerRibbon(text: string, color?: string, textColor?: string): PseudoElementModifier;
230
- /**
231
- * Loading spinner using ::before with animation
232
- *
233
- * @example
234
- * ```typescript
235
- * .spinner() // Default spinner
236
- * .spinner(16, '#007AFF', 2) // Custom size, color, border width
237
- * ```
238
- */
239
- export declare function spinner(size?: number, color?: string, borderWidth?: number): PseudoElementModifier;
240
- //# sourceMappingURL=elements.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../src/modifiers/elements.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAErE,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAA;IAClE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,GA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B;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,KAAK,GAAE,MAAe,EACtB,SAAS,GAAE,MAAU,EACrB,MAAM,GAAE,MAAW,GAClB,qBAAqB,CAUvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CACvB,KAAK,GAAE,MAAe,EACtB,SAAS,GAAE,MAAU,EACrB,MAAM,GAAE,MAAW,GAClB,qBAAqB,CAUvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CACpB,SAAS,GAAE,MAAY,EACvB,UAAU,GAAE,MAAY,GACvB,qBAAqB,CAevB;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CACvB,KAAK,GAAE,MAAuB,EAC9B,SAAS,GAAE,MAAU,EACrB,OAAO,GAAE,MAAU,GAClB,qBAAqB,CAWvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,KAAK,CACnB,KAAK,GAAE,MAAkB,EACzB,IAAI,GAAE,MAAU,EAChB,IAAI,GAAE,MAAW,GAChB,qBAAqB,CAoBvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,MAAM,EACZ,QAAQ,GAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAe,EACrD,eAAe,GAAE,MAAe,EAChC,SAAS,GAAE,MAAgB,GAC1B,qBAAqB,CAuBvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,MAAkB,EACzB,SAAS,GAAE,MAAgB,GAC1B,qBAAqB,CAgBvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CACrB,IAAI,GAAE,MAAW,EACjB,KAAK,GAAE,MAAkB,EACzB,WAAW,GAAE,MAAU,GACtB,qBAAqB,CAWvB"}
@@ -1,275 +0,0 @@
1
- /**
2
- * Filter Modifiers - CSS filter effects system
3
- *
4
- * Provides comprehensive CSS filter capabilities including blur, brightness,
5
- * contrast, saturation, and other visual effects for enhanced styling.
6
- */
7
- import type { DOMNode } from '../runtime/types';
8
- import { BaseModifier } from './base';
9
- import type { ModifierContext, ReactiveModifierProps } from './types';
10
- export interface FilterConfig {
11
- blur?: number;
12
- brightness?: number;
13
- contrast?: number;
14
- saturate?: number;
15
- sepia?: number;
16
- hueRotate?: string;
17
- invert?: number;
18
- opacity?: number;
19
- dropShadow?: string;
20
- grayscale?: number;
21
- }
22
- export interface FilterOptions {
23
- filter?: FilterConfig | string;
24
- }
25
- export type ReactiveFilterOptions = ReactiveModifierProps<FilterOptions>;
26
- export declare class FilterModifier extends BaseModifier<FilterOptions> {
27
- readonly type = "filter";
28
- readonly priority = 30;
29
- constructor(options: ReactiveFilterOptions);
30
- apply(_node: DOMNode, context: ModifierContext): DOMNode | undefined;
31
- private computeFilterStyles;
32
- private generateFilterCSS;
33
- }
34
- /**
35
- * General filter modifier with flexible configuration
36
- *
37
- * @example
38
- * ```typescript
39
- * .filter({ blur: 5, brightness: 1.2, contrast: 1.1 })
40
- * .filter('blur(3px) sepia(0.8)') // Direct CSS filter string
41
- * ```
42
- */
43
- export declare function filter(config: FilterConfig | string): FilterModifier;
44
- /**
45
- * Blur filter effect
46
- *
47
- * @example
48
- * ```typescript
49
- * .blur(5) // 5px blur
50
- * .blur(0.5) // Subtle 0.5px blur
51
- * .blur(10) // Heavy 10px blur
52
- * ```
53
- */
54
- export declare function blur(radius: number): FilterModifier;
55
- /**
56
- * Brightness adjustment filter
57
- *
58
- * @example
59
- * ```typescript
60
- * .brightness(1.2) // 20% brighter
61
- * .brightness(0.8) // 20% darker
62
- * .brightness(2.0) // Double brightness
63
- * ```
64
- */
65
- export declare function brightness(value: number): FilterModifier;
66
- /**
67
- * Contrast adjustment filter
68
- *
69
- * @example
70
- * ```typescript
71
- * .contrast(1.5) // 50% more contrast
72
- * .contrast(0.7) // 30% less contrast
73
- * .contrast(2.0) // Double contrast
74
- * ```
75
- */
76
- export declare function contrast(value: number): FilterModifier;
77
- /**
78
- * Saturation adjustment filter
79
- *
80
- * @example
81
- * ```typescript
82
- * .saturate(1.5) // 50% more saturated
83
- * .saturate(0.5) // 50% less saturated
84
- * .saturate(0) // Completely desaturated (grayscale)
85
- * .saturate(2.0) // Double saturation
86
- * ```
87
- */
88
- export declare function saturate(value: number): FilterModifier;
89
- /**
90
- * Grayscale filter effect
91
- *
92
- * @example
93
- * ```typescript
94
- * .grayscale(1) // Full grayscale
95
- * .grayscale(0.5) // 50% grayscale
96
- * .grayscale(0) // No grayscale (full color)
97
- * ```
98
- */
99
- export declare function grayscale(value: number): FilterModifier;
100
- /**
101
- * Sepia filter effect for vintage look
102
- *
103
- * @example
104
- * ```typescript
105
- * .sepia(1) // Full sepia effect
106
- * .sepia(0.6) // 60% sepia effect
107
- * .sepia(0) // No sepia effect
108
- * ```
109
- */
110
- export declare function sepia(value: number): FilterModifier;
111
- /**
112
- * Hue rotation filter effect
113
- *
114
- * @example
115
- * ```typescript
116
- * .hueRotate('90deg') // Rotate hue by 90 degrees
117
- * .hueRotate('0.25turn') // Quarter turn hue rotation
118
- * .hueRotate('180deg') // Half rotation (complementary colors)
119
- * ```
120
- */
121
- export declare function hueRotate(angle: string): FilterModifier;
122
- /**
123
- * Invert colors filter
124
- *
125
- * @example
126
- * ```typescript
127
- * .invert(1) // Full color inversion
128
- * .invert(0.5) // 50% color inversion
129
- * .invert(0) // No inversion (normal colors)
130
- * ```
131
- */
132
- export declare function invert(value: number): FilterModifier;
133
- /**
134
- * Drop shadow filter (alternative to box-shadow)
135
- *
136
- * @example
137
- * ```typescript
138
- * .dropShadow('2px 2px 4px rgba(0,0,0,0.3)')
139
- * .dropShadow('0 4px 8px #000')
140
- * .dropShadow('inset 0 0 10px rgba(255,255,255,0.5)')
141
- * ```
142
- */
143
- export declare function dropShadow(shadow: string): FilterModifier;
144
- /**
145
- * Vintage photo effect - sepia + contrast + slight blur
146
- *
147
- * @example
148
- * ```typescript
149
- * .vintagePhoto() // Default vintage effect
150
- * .vintagePhoto(0.8, 1.2) // Custom sepia and contrast
151
- * ```
152
- */
153
- export declare function vintagePhoto(sepiaAmount?: number, contrastAmount?: number): FilterModifier;
154
- /**
155
- * High contrast black and white effect
156
- *
157
- * @example
158
- * ```typescript
159
- * .blackAndWhite() // Full grayscale with high contrast
160
- * .blackAndWhite(1.5) // Custom contrast level
161
- * ```
162
- */
163
- export declare function blackAndWhite(contrastAmount?: number): FilterModifier;
164
- /**
165
- * Vibrant color enhancement
166
- *
167
- * @example
168
- * ```typescript
169
- * .vibrant() // Enhanced saturation and contrast
170
- * .vibrant(1.4, 1.1) // Custom saturation and contrast
171
- * ```
172
- */
173
- export declare function vibrant(saturationAmount?: number, contrastAmount?: number): FilterModifier;
174
- /**
175
- * Warm color temperature effect
176
- *
177
- * @example
178
- * ```typescript
179
- * .warmTone() // Warm hue shift with brightness
180
- * .warmTone('15deg') // Custom hue rotation
181
- * ```
182
- */
183
- export declare function warmTone(hueShift?: string): FilterModifier;
184
- /**
185
- * Cool color temperature effect
186
- *
187
- * @example
188
- * ```typescript
189
- * .coolTone() // Cool hue shift
190
- * .coolTone('-20deg') // Custom hue rotation
191
- * ```
192
- */
193
- export declare function coolTone(hueShift?: string): FilterModifier;
194
- /**
195
- * Faded/washed out effect
196
- *
197
- * @example
198
- * ```typescript
199
- * .faded() // Reduced contrast and saturation
200
- * .faded(0.8, 0.7) // Custom contrast and saturation
201
- * ```
202
- */
203
- export declare function faded(contrastAmount?: number, saturationAmount?: number): FilterModifier;
204
- /**
205
- * High-key photography effect - bright and airy
206
- *
207
- * @example
208
- * ```typescript
209
- * .highKey() // Bright, airy effect
210
- * .highKey(1.3, 0.9) // Custom brightness and contrast
211
- * ```
212
- */
213
- export declare function highKey(brightnessAmount?: number, contrastAmount?: number): FilterModifier;
214
- /**
215
- * Low-key photography effect - dark and moody
216
- *
217
- * @example
218
- * ```typescript
219
- * .lowKey() // Dark, moody effect
220
- * .lowKey(0.8, 1.4) // Custom brightness and contrast
221
- * ```
222
- */
223
- export declare function lowKey(brightnessAmount?: number, contrastAmount?: number): FilterModifier;
224
- /**
225
- * Soft focus effect - subtle blur with brightness
226
- *
227
- * @example
228
- * ```typescript
229
- * .softFocus() // Subtle blur with glow effect
230
- * .softFocus(1.5) // Custom blur amount
231
- * ```
232
- */
233
- export declare function softFocus(blurAmount?: number): FilterModifier;
234
- /**
235
- * High contrast mode for accessibility
236
- */
237
- export declare function highContrastMode(): FilterModifier;
238
- /**
239
- * Reduced motion safe blur (very subtle)
240
- */
241
- export declare function subtleBlur(): FilterModifier;
242
- /**
243
- * Dark mode invert filter
244
- */
245
- export declare function darkModeInvert(): FilterModifier;
246
- /**
247
- * SwiftUI-compatible colorInvert modifier (full color inversion)
248
- *
249
- * @example
250
- * ```typescript
251
- * .colorInvert() // Full color inversion (equivalent to .invert(1))
252
- * ```
253
- */
254
- export declare function colorInvert(): FilterModifier;
255
- /**
256
- * SwiftUI-compatible saturation modifier (alias for saturate)
257
- *
258
- * @example
259
- * ```typescript
260
- * .saturation(1.5) // 50% more saturated
261
- * .saturation(0) // Completely desaturated (grayscale)
262
- * ```
263
- */
264
- export declare function saturation(amount: number): FilterModifier;
265
- /**
266
- * SwiftUI-compatible hueRotation modifier (alias for hueRotate)
267
- *
268
- * @example
269
- * ```typescript
270
- * .hueRotation('90deg') // Rotate hue by 90 degrees
271
- * .hueRotation('0.25turn') // Quarter turn hue rotation
272
- * ```
273
- */
274
- export declare function hueRotation(angle: string): FilterModifier;
275
- //# sourceMappingURL=filters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../src/modifiers/filters.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAErE,MAAM,WAAW,YAAY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AAS,CAAC,UAAU,GAAE,MAAU,GAAG,cAAc,CAOhE;AAMD;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,cAAc,CAOjD;AAED;;GAEG;AACH,wBAAgB,UAAU,IAAI,cAAc,CAE3C;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,cAAc,CAO/C;AAMD;;;;;;;GAOG;AACH,wBAAgB,WAAW,IAAI,cAAc,CAE5C;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,CAEzD;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAEzD"}
@@ -1,82 +0,0 @@
1
- /**
2
- * Flexbox Modifier - comprehensive flexbox layout properties
3
- *
4
- * Provides a unified interface for flexbox properties
5
- * including flex-grow, justify-content, align-items, etc.
6
- */
7
- import type { DOMNode } from '../runtime/types';
8
- import { BaseModifier } from './base';
9
- import type { ModifierContext, ReactiveModifierProps } from './types';
10
- export interface FlexboxOptions {
11
- flexGrow?: number;
12
- flexShrink?: number;
13
- flexBasis?: number | string;
14
- flex?: string;
15
- justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
16
- alignItems?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
17
- alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
18
- flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse';
19
- flexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
20
- alignContent?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around';
21
- gap?: number | string;
22
- rowGap?: number | string;
23
- columnGap?: number | string;
24
- }
25
- export type ReactiveFlexboxOptions = ReactiveModifierProps<FlexboxOptions>;
26
- export declare class FlexboxModifier extends BaseModifier<FlexboxOptions> {
27
- readonly type = "flexbox";
28
- readonly priority = 60;
29
- constructor(options: ReactiveFlexboxOptions);
30
- apply(_node: DOMNode, context: ModifierContext): DOMNode | undefined;
31
- private computeFlexboxStyles;
32
- }
33
- /**
34
- * Create a flexbox modifier with comprehensive flexbox properties
35
- *
36
- * @example
37
- * ```typescript
38
- * // Complete flexbox layout
39
- * .flexbox({
40
- * flexGrow: 1,
41
- * justifyContent: 'center',
42
- * alignItems: 'stretch',
43
- * gap: 16
44
- * })
45
- *
46
- * // Simple flex grow
47
- * .flexGrow(1)
48
- *
49
- * // Justify content
50
- * .justifyContent('space-between')
51
- * ```
52
- */
53
- export declare function flexbox(options: ReactiveFlexboxOptions): FlexboxModifier;
54
- /**
55
- * Convenience function for flex-grow
56
- */
57
- export declare function flexGrow(value: number): FlexboxModifier;
58
- /**
59
- * Convenience function for flex-shrink
60
- */
61
- export declare function flexShrink(value: number): FlexboxModifier;
62
- /**
63
- * Convenience function for justify-content
64
- */
65
- export declare function justifyContent(value: FlexboxOptions['justifyContent']): FlexboxModifier;
66
- /**
67
- * Convenience function for align-items
68
- */
69
- export declare function alignItems(value: FlexboxOptions['alignItems']): FlexboxModifier;
70
- /**
71
- * Convenience function for gap
72
- */
73
- export declare function gap(value: number | string): FlexboxModifier;
74
- /**
75
- * Convenience function for flex-direction
76
- */
77
- export declare function flexDirection(value: FlexboxOptions['flexDirection']): FlexboxModifier;
78
- /**
79
- * Convenience function for flex-wrap
80
- */
81
- export declare function flexWrap(value: FlexboxOptions['flexWrap']): FlexboxModifier;
82
- //# sourceMappingURL=flexbox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flexbox.d.ts","sourceRoot":"","sources":["../../src/modifiers/flexbox.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAErE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AAO,EAAE,sBAAsB,GAAG,eAAe,CAExE;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAEvD;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAEzD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,CAAC,gBAAgB,CAAC,GAAG,eAAe,CAEvF;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,CAAC,YAAY,CAAC,GAAG,eAAe,CAE/E;AAED;;GAEG;AACH,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,eAAe,CAE3D;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,cAAc,CAAC,eAAe,CAAC,GAAG,eAAe,CAErF;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,eAAe,CAE3E"}
@@ -1,71 +0,0 @@
1
- /**
2
- * Font Modifier - SwiftUI-style font configuration
3
- *
4
- * Provides a unified interface for font configuration including
5
- * font family, size, weight, and style in a single modifier.
6
- */
7
- import type { FontAsset, FontWeightValue } from '../assets/FontAsset';
8
- import { TypographyModifier, type FontStyle, type FontWeight } from './typography';
9
- export interface FontOptions {
10
- family?: string | FontAsset;
11
- size?: number | string;
12
- weight?: FontWeight | FontWeightValue;
13
- style?: FontStyle;
14
- }
15
- /**
16
- * SwiftUI-style font modifier for comprehensive font configuration
17
- *
18
- * @example
19
- * ```typescript
20
- * // System font with size
21
- * Text("Hello").modifier.font({ size: 18 })
22
- *
23
- * // Custom font family
24
- * Text("Hello").modifier.font({
25
- * family: 'Georgia, serif',
26
- * size: 24,
27
- * weight: 'bold'
28
- * })
29
- *
30
- * // With FontAsset
31
- * import { Assets } from '@tachui/core'
32
- * Text("Hello").modifier.font({
33
- * family: Assets.headingFont,
34
- * size: 32,
35
- * weight: 700
36
- * })
37
- *
38
- * // SwiftUI-style presets (future enhancement)
39
- * Text("Title").modifier.font('.title')
40
- * Text("Body").modifier.font('.body')
41
- * ```
42
- */
43
- export declare function font(options: FontOptions | string): TypographyModifier;
44
- /**
45
- * Create a system font with specific design
46
- *
47
- * @example
48
- * ```typescript
49
- * Text("Hello").modifier.system({ size: 18, weight: 'medium', design: 'rounded' })
50
- * ```
51
- */
52
- export declare function system(options: {
53
- size?: number | string;
54
- weight?: FontWeight | FontWeightValue;
55
- design?: 'default' | 'serif' | 'rounded' | 'monospaced';
56
- }): TypographyModifier;
57
- /**
58
- * Create a custom font configuration
59
- *
60
- * @example
61
- * ```typescript
62
- * const myFont = custom('Avenir Next', { size: 18, weight: 500 })
63
- * Text("Hello").modifier.apply(myFont)
64
- * ```
65
- */
66
- export declare function custom(family: string | FontAsset, options?: {
67
- size?: number | string;
68
- weight?: FontWeight | FontWeightValue;
69
- style?: FontStyle;
70
- }): TypographyModifier;
71
- //# sourceMappingURL=font.d.ts.map