@tachui/core 0.8.0-alpha → 0.8.5-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 (176) hide show
  1. package/README.md +58 -2
  2. package/dist/assets/AssetCollection.d.ts.map +1 -1
  3. package/dist/assets/ColorAsset.d.ts.map +1 -1
  4. package/dist/assets/index.d.ts +1 -0
  5. package/dist/assets/index.d.ts.map +1 -1
  6. package/dist/assets/index.js +486 -0
  7. package/dist/assets/types.d.ts +8 -68
  8. package/dist/assets/types.d.ts.map +1 -1
  9. package/dist/binding-CYpEQquE.js +308 -0
  10. package/dist/build-plugins/index.d.ts +3 -0
  11. package/dist/build-plugins/index.d.ts.map +1 -0
  12. package/dist/build-plugins/modifier-types.d.ts +12 -0
  13. package/dist/build-plugins/modifier-types.d.ts.map +1 -0
  14. package/dist/build-tools/typegen-runner.d.ts +29 -0
  15. package/dist/build-tools/typegen-runner.d.ts.map +1 -0
  16. package/dist/bundles/assets.d.ts +19 -0
  17. package/dist/bundles/assets.d.ts.map +1 -0
  18. package/dist/bundles/context.d.ts +22 -0
  19. package/dist/bundles/context.d.ts.map +1 -0
  20. package/dist/bundles/minimal.d.ts +8 -2
  21. package/dist/bundles/minimal.d.ts.map +1 -1
  22. package/dist/common.js +427 -393
  23. package/dist/compiler/codegen.d.ts.map +1 -1
  24. package/dist/compiler/index.js +6 -1393
  25. package/dist/compiler/parser.d.ts +1 -1
  26. package/dist/compiler/parser.d.ts.map +1 -1
  27. package/dist/compiler/plugin.d.ts.map +1 -1
  28. package/dist/compiler/types.d.ts +28 -0
  29. package/dist/compiler/types.d.ts.map +1 -1
  30. package/dist/{component-XAzF1xqs.js → component-CECyfUOE.js} +80 -68
  31. package/dist/{component-base-x2XmHFjy.js → component-base-CJ__jTlr.js} +9 -7
  32. package/dist/component-context-B6qX_Qsg.js +176 -0
  33. package/dist/components/factory.d.ts +24 -0
  34. package/dist/components/factory.d.ts.map +1 -0
  35. package/dist/components/index.d.ts +3 -2
  36. package/dist/components/index.d.ts.map +1 -1
  37. package/dist/components/index.js +8 -6
  38. package/dist/components/wrapper.d.ts +70 -30
  39. package/dist/components/wrapper.d.ts.map +1 -1
  40. package/dist/concatenated-component-_tF1eMvy.js +2288 -0
  41. package/dist/concatenation/concatenated-component.d.ts +16 -2
  42. package/dist/concatenation/concatenated-component.d.ts.map +1 -1
  43. package/dist/concatenation/text-optimizer.d.ts.map +1 -1
  44. package/dist/config.d.ts +7 -0
  45. package/dist/config.d.ts.map +1 -0
  46. package/dist/constants/layout.d.ts +2 -9
  47. package/dist/constants/layout.d.ts.map +1 -1
  48. package/dist/css-classes/index.js +15 -173
  49. package/dist/{effect-B9Knft0b.js → effect-DGmdACI2.js} +3 -3
  50. package/dist/enhanced-renderer-Bwqsh8Ku.js +172 -0
  51. package/dist/essential.js +425 -391
  52. package/dist/{index-DIvMCJQO.js → factories-Co2Lv2kJ.js} +13 -13
  53. package/dist/factory-D7jAY5Kn.js +485 -0
  54. package/dist/gradients/css-generator.js +99 -0
  55. package/dist/gradients/index.js +56 -0
  56. package/dist/gradients/reactive.d.ts.map +1 -1
  57. package/dist/gradients/types.d.ts +3 -91
  58. package/dist/gradients/types.d.ts.map +1 -1
  59. package/dist/hooks-DeLasj54.js +446 -0
  60. package/dist/index-JQ1sW1SK.js +2049 -0
  61. package/dist/index-X8MVY78C.js +618 -0
  62. package/dist/index.d.ts +8 -1
  63. package/dist/index.d.ts.map +1 -1
  64. package/dist/index.js +426 -392
  65. package/dist/minimal-prod.js +94 -93
  66. package/dist/minimal.js +126 -106
  67. package/dist/modifiers/alignment.d.ts +5 -0
  68. package/dist/modifiers/alignment.d.ts.map +1 -0
  69. package/dist/modifiers/base.d.ts +6 -7
  70. package/dist/modifiers/base.d.ts.map +1 -1
  71. package/dist/modifiers/base.js +24 -16
  72. package/dist/modifiers/builder.d.ts +28 -165
  73. package/dist/modifiers/builder.d.ts.map +1 -1
  74. package/dist/modifiers/builder.js +7 -7
  75. package/dist/modifiers/core.d.ts +0 -1
  76. package/dist/modifiers/core.d.ts.map +1 -1
  77. package/dist/modifiers/corner-radius.d.ts +8 -0
  78. package/dist/modifiers/corner-radius.d.ts.map +1 -0
  79. package/dist/modifiers/index.d.ts +9 -6
  80. package/dist/modifiers/index.d.ts.map +1 -1
  81. package/dist/modifiers/index.js +36 -30
  82. package/dist/modifiers/layout-priority.d.ts +8 -0
  83. package/dist/modifiers/layout-priority.d.ts.map +1 -0
  84. package/dist/modifiers/opacity.d.ts +8 -0
  85. package/dist/modifiers/opacity.d.ts.map +1 -0
  86. package/dist/modifiers/presets.d.ts.map +1 -1
  87. package/dist/modifiers/proxy.d.ts +4 -0
  88. package/dist/modifiers/proxy.d.ts.map +1 -0
  89. package/dist/modifiers/registration-utils.d.ts +7 -0
  90. package/dist/modifiers/registration-utils.d.ts.map +1 -0
  91. package/dist/modifiers/registry.d.ts +18 -9
  92. package/dist/modifiers/registry.d.ts.map +1 -1
  93. package/dist/modifiers/registry.js +2 -2
  94. package/dist/modifiers/type-generator.d.ts +82 -0
  95. package/dist/modifiers/type-generator.d.ts.map +1 -0
  96. package/dist/modifiers/types.d.ts +2 -479
  97. package/dist/modifiers/types.d.ts.map +1 -1
  98. package/dist/modifiers/types.js +1 -4
  99. package/dist/observed-object-DepiqSgg.js +269 -0
  100. package/dist/optimization-CbKNA9w4.js +21 -0
  101. package/dist/plugin-BCAdZXKq.js +1680 -0
  102. package/dist/plugins/index.js +28 -8
  103. package/dist/plugins/simplified-lazy-loader.d.ts.map +1 -1
  104. package/dist/presets-B9x94uRn.js +381 -0
  105. package/dist/proxy-Cqmbiyx0.js +175 -0
  106. package/dist/reactive/cleanup.d.ts.map +1 -1
  107. package/dist/reactive/computed.d.ts +1 -1
  108. package/dist/reactive/computed.d.ts.map +1 -1
  109. package/dist/reactive/context.d.ts +4 -3
  110. package/dist/reactive/context.d.ts.map +1 -1
  111. package/dist/reactive/index.d.ts +1 -0
  112. package/dist/reactive/index.d.ts.map +1 -1
  113. package/dist/reactive/index.js +84 -490
  114. package/dist/reactive/signal-list.d.ts +100 -0
  115. package/dist/reactive/signal-list.d.ts.map +1 -0
  116. package/dist/reactive/signal.d.ts.map +1 -1
  117. package/dist/reactive/types.d.ts +2 -89
  118. package/dist/reactive/types.d.ts.map +1 -1
  119. package/dist/reactive/types.js +1 -4
  120. package/dist/registration-utils-CNsN4eoU.js +27 -0
  121. package/dist/runtime/component.d.ts.map +1 -1
  122. package/dist/runtime/concatenation-aria.d.ts +24 -0
  123. package/dist/runtime/concatenation-aria.d.ts.map +1 -0
  124. package/dist/runtime/concatenation-aria.js +58 -0
  125. package/dist/runtime/concatenation-full.d.ts +30 -0
  126. package/dist/runtime/concatenation-full.d.ts.map +1 -0
  127. package/dist/runtime/concatenation-full.js +85 -0
  128. package/dist/runtime/concatenation-minimal.d.ts +25 -0
  129. package/dist/runtime/concatenation-minimal.d.ts.map +1 -0
  130. package/dist/runtime/concatenation-minimal.js +45 -0
  131. package/dist/runtime/context.d.ts.map +1 -1
  132. package/dist/runtime/dom-bridge.d.ts +1 -1
  133. package/dist/runtime/dom-bridge.d.ts.map +1 -1
  134. package/dist/runtime/dom-bridge.js +239 -12
  135. package/dist/runtime/event-delegation.d.ts +59 -0
  136. package/dist/runtime/event-delegation.d.ts.map +1 -0
  137. package/dist/runtime/index.d.ts +3 -1
  138. package/dist/runtime/index.d.ts.map +1 -1
  139. package/dist/runtime/index.js +96 -0
  140. package/dist/runtime/layout-scheduler.d.ts +89 -0
  141. package/dist/runtime/layout-scheduler.d.ts.map +1 -0
  142. package/dist/runtime/props.d.ts.map +1 -1
  143. package/dist/runtime/renderer.d.ts +54 -2
  144. package/dist/runtime/renderer.d.ts.map +1 -1
  145. package/dist/runtime/renderer.js +11 -7
  146. package/dist/runtime/semantic-role-manager.d.ts.map +1 -1
  147. package/dist/runtime/types.d.ts +2 -226
  148. package/dist/runtime/types.d.ts.map +1 -1
  149. package/dist/runtime/types.js +1 -1
  150. package/dist/scheduler-DI_8ykMk.js +169 -0
  151. package/dist/signal-list-BdpxSodS.js +525 -0
  152. package/dist/state/index.js +319 -0
  153. package/dist/theme-BFaKUcjZ.js +677 -0
  154. package/dist/utils/clone-helpers.d.ts +11 -0
  155. package/dist/utils/clone-helpers.d.ts.map +1 -0
  156. package/dist/validation/index.js +28 -26
  157. package/dist/version.d.ts +19 -0
  158. package/dist/version.d.ts.map +1 -0
  159. package/dist/version.js +6 -0
  160. package/package.json +69 -9
  161. package/dist/concatenated-component-ByPl3_FF.js +0 -2933
  162. package/dist/dom-bridge-CAa1N2zX.js +0 -406
  163. package/dist/index-DCPJFUm9.js +0 -1407
  164. package/dist/index-vdsiw6gQ.js +0 -777
  165. package/dist/modifiers/as-html-validator.d.ts +0 -20
  166. package/dist/modifiers/as-html-validator.d.ts.map +0 -1
  167. package/dist/modifiers/as-html.d.ts +0 -65
  168. package/dist/modifiers/as-html.d.ts.map +0 -1
  169. package/dist/modifiers/background.d.ts +0 -51
  170. package/dist/modifiers/background.d.ts.map +0 -1
  171. package/dist/modifiers/basic-sanitizer.d.ts +0 -54
  172. package/dist/modifiers/basic-sanitizer.d.ts.map +0 -1
  173. package/dist/modifiers/css.d.ts +0 -86
  174. package/dist/modifiers/css.d.ts.map +0 -1
  175. package/dist/production-minimal-BY_gMc-l.js +0 -2532
  176. package/dist/scheduler-BKeqwrYE.js +0 -814
@@ -0,0 +1,308 @@
1
+ import { c as l, l as f } from "./theme-BFaKUcjZ.js";
2
+ import { c as w } from "./effect-DGmdACI2.js";
3
+ import { g as m } from "./component-context-B6qX_Qsg.js";
4
+ var b = Object.defineProperty, $ = (e, t, n) => t in e ? b(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, _ = (e, t, n) => $(e, typeof t != "symbol" ? t + "" : t, n);
5
+ class y {
6
+ constructor(t, n, r, s = {}) {
7
+ _(this, "_accessor"), _(this, "_setter"), _(this, "_binding"), _(this, "_metadata");
8
+ const [o, i] = l(t);
9
+ this._accessor = o, this._setter = i, this._binding = u(o, i, {
10
+ name: s.name || `${r}Binding`
11
+ }), this._metadata = {
12
+ type: "State",
13
+ propertyName: r,
14
+ componentId: n.id,
15
+ options: s
16
+ }, n.setState(r, t);
17
+ const a = f();
18
+ a && a.cleanups.push(() => {
19
+ this.cleanup();
20
+ }), s.resetOnMount && this.resetToInitialValue(t), s.persist && typeof window < "u" && this.setupPersistence(r, t);
21
+ }
22
+ get wrappedValue() {
23
+ return this._accessor();
24
+ }
25
+ set wrappedValue(t) {
26
+ this._setter(t);
27
+ }
28
+ get projectedValue() {
29
+ return this._binding;
30
+ }
31
+ /**
32
+ * Get the underlying signal accessor (for advanced usage)
33
+ */
34
+ get accessor() {
35
+ return this._accessor;
36
+ }
37
+ /**
38
+ * Get the underlying signal setter (for advanced usage)
39
+ */
40
+ get setter() {
41
+ return this._setter;
42
+ }
43
+ /**
44
+ * Get property wrapper metadata
45
+ */
46
+ get metadata() {
47
+ return this._metadata;
48
+ }
49
+ /**
50
+ * Reset to initial value
51
+ */
52
+ resetToInitialValue(t) {
53
+ this._setter(t);
54
+ }
55
+ /**
56
+ * Set up local storage persistence
57
+ */
58
+ setupPersistence(t, n) {
59
+ const r = `tachui_state_${this._metadata.componentId}_${t}`;
60
+ try {
61
+ const s = localStorage.getItem(r);
62
+ if (s != null && s !== "undefined") {
63
+ const o = JSON.parse(s);
64
+ this._setter(o);
65
+ }
66
+ } catch (s) {
67
+ console.warn(`Failed to load persisted state for ${t}:`, s);
68
+ }
69
+ w(() => {
70
+ const s = this._accessor();
71
+ try {
72
+ localStorage.setItem(r, JSON.stringify(s));
73
+ } catch (o) {
74
+ console.warn(`Failed to persist state for ${t}:`, o);
75
+ }
76
+ });
77
+ }
78
+ /**
79
+ * Cleanup resources
80
+ */
81
+ cleanup() {
82
+ }
83
+ }
84
+ function u(e, t, n = {}) {
85
+ return new V(e, t, n);
86
+ }
87
+ let V = class {
88
+ constructor(t, n, r = {}) {
89
+ this._get = t, this._set = n, this._options = r;
90
+ }
91
+ get wrappedValue() {
92
+ return this._get();
93
+ }
94
+ set wrappedValue(t) {
95
+ this._set(t);
96
+ }
97
+ get projectedValue() {
98
+ return this;
99
+ }
100
+ get() {
101
+ return this._get();
102
+ }
103
+ set(t) {
104
+ this._set(t);
105
+ }
106
+ /**
107
+ * Create a derived binding with transformation
108
+ */
109
+ map(t, n) {
110
+ return u(() => t(this._get()), (o) => {
111
+ const i = this._get(), a = t(i), d = typeof o == "function" ? o(a) : o, h = n(d, i);
112
+ this._set(h);
113
+ }, {
114
+ name: `${this._options.name || "binding"}_mapped`
115
+ });
116
+ }
117
+ /**
118
+ * Create a constant binding (read-only)
119
+ */
120
+ constant() {
121
+ return u(
122
+ this._get,
123
+ () => (console.warn("Attempted to set value on constant binding"), this._get()),
124
+ { name: `${this._options.name || "binding"}_constant` }
125
+ );
126
+ }
127
+ };
128
+ const M = (e, t = {}) => {
129
+ const n = m(), r = S() || "state";
130
+ return new y(e, n, r, t);
131
+ }, E = u;
132
+ function S() {
133
+ try {
134
+ const e = new Error().stack;
135
+ if (e)
136
+ return e.match(/at (\w+)\./)?.[1] || null;
137
+ } catch {
138
+ }
139
+ return null;
140
+ }
141
+ function C(e) {
142
+ return e && typeof e == "object" && "wrappedValue" in e && "projectedValue" in e;
143
+ }
144
+ function N(e) {
145
+ return e && typeof e == "object" && "get" in e && "set" in e && "wrappedValue" in e;
146
+ }
147
+ function F(e) {
148
+ return C(e) || N(e) ? e.wrappedValue : e;
149
+ }
150
+ var x = Object.defineProperty, O = (e, t, n) => t in e ? x(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, p = (e, t, n) => O(e, typeof t != "symbol" ? t + "" : t, n);
151
+ class c {
152
+ constructor(t, n, r, s, o = {}) {
153
+ p(this, "_get"), p(this, "_set"), p(this, "_options"), p(this, "_componentContext"), p(this, "_propertyName"), this._get = t, this._set = n, this._componentContext = r, this._propertyName = s, this._options = o, r.setBinding(s, this);
154
+ }
155
+ get wrappedValue() {
156
+ return this._get();
157
+ }
158
+ set wrappedValue(t) {
159
+ this._set(t), this._componentContext.setState(`_binding_${this._propertyName}_trigger`, Date.now());
160
+ }
161
+ get projectedValue() {
162
+ return this;
163
+ }
164
+ get() {
165
+ return this._get();
166
+ }
167
+ set(t) {
168
+ this._set(t), this._componentContext.setState(`_binding_${this._propertyName}_trigger`, Date.now());
169
+ }
170
+ /**
171
+ * Create a derived binding with transformation
172
+ */
173
+ map(t, n) {
174
+ const r = () => t(this._get()), s = (o) => {
175
+ const i = this._get(), a = t(i), d = typeof o == "function" ? o(a) : o, h = n(d, i);
176
+ this._set(h), this._componentContext.setState(`_binding_${this._propertyName}_mapped_trigger`, Date.now());
177
+ };
178
+ return new c(
179
+ r,
180
+ s,
181
+ this._componentContext,
182
+ `${this._propertyName}_mapped`,
183
+ { name: `${this._options.name || "binding"}_mapped` }
184
+ );
185
+ }
186
+ /**
187
+ * Create a constant binding (read-only)
188
+ */
189
+ constant() {
190
+ const t = () => (console.warn("Attempted to set value on constant binding"), this._get());
191
+ return new c(
192
+ this._get,
193
+ t,
194
+ this._componentContext,
195
+ `${this._propertyName}_constant`,
196
+ { name: `${this._options.name || "binding"}_constant` }
197
+ );
198
+ }
199
+ /**
200
+ * Create a binding with validation
201
+ */
202
+ withValidation(t, n) {
203
+ const r = (s) => {
204
+ const o = typeof s == "function" ? s(this._get()) : s;
205
+ return t(o) ? (this._set(o), this._componentContext.setState(
206
+ `_binding_${this._propertyName}_validated_trigger`,
207
+ Date.now()
208
+ )) : console.warn(n || `Validation failed for binding ${this._propertyName}`), o;
209
+ };
210
+ return new c(
211
+ this._get,
212
+ r,
213
+ this._componentContext,
214
+ `${this._propertyName}_validated`,
215
+ { name: `${this._options.name || "binding"}_validated` }
216
+ );
217
+ }
218
+ /**
219
+ * Create a debounced binding
220
+ */
221
+ debounced(t = 300) {
222
+ let n = null;
223
+ const r = (s) => {
224
+ const o = typeof s == "function" ? s(this._get()) : s;
225
+ return n && clearTimeout(n), n = setTimeout(() => {
226
+ this._set(o), this._componentContext.setState(
227
+ `_binding_${this._propertyName}_debounced_trigger`,
228
+ Date.now()
229
+ ), n = null;
230
+ }, t), o;
231
+ };
232
+ return new c(
233
+ this._get,
234
+ r,
235
+ this._componentContext,
236
+ `${this._propertyName}_debounced`,
237
+ { name: `${this._options.name || "binding"}_debounced` }
238
+ );
239
+ }
240
+ }
241
+ function g(e, t, n = {}) {
242
+ const r = m(), s = P() || "binding";
243
+ return new c(e, t, r, s, n);
244
+ }
245
+ function P() {
246
+ try {
247
+ const e = new Error().stack;
248
+ if (e)
249
+ return e.match(/at (\w+)\./)?.[1] || null;
250
+ } catch {
251
+ }
252
+ return null;
253
+ }
254
+ function T(e) {
255
+ return e && typeof e == "object" && "get" in e && "set" in e && "wrappedValue" in e && e instanceof c;
256
+ }
257
+ const A = {
258
+ /**
259
+ * Check if a binding is read-only
260
+ */
261
+ isReadOnly(e) {
262
+ if (e instanceof c)
263
+ try {
264
+ const t = e.get(), n = console.warn;
265
+ let r = !1;
266
+ return console.warn = (...s) => {
267
+ s[0] === "Attempted to set value on constant binding" && (r = !0);
268
+ }, e.set(t), console.warn = n, r;
269
+ } catch {
270
+ return !0;
271
+ }
272
+ return !1;
273
+ },
274
+ /**
275
+ * Create a computed binding from multiple sources
276
+ */
277
+ computed(e, t, n = {}) {
278
+ const r = () => {
279
+ const o = e.map((i) => i.get());
280
+ return t(...o);
281
+ };
282
+ return g(r, () => (console.warn("Cannot set computed binding value"), r()), n);
283
+ },
284
+ /**
285
+ * Chain multiple bindings together
286
+ */
287
+ chain(e, t = {}) {
288
+ const n = () => e.map((s) => s.get());
289
+ return g(n, (s) => {
290
+ const o = typeof s == "function" ? s(n()) : s;
291
+ return e.forEach((i, a) => {
292
+ a < o.length && i.set(o[a]);
293
+ }), o;
294
+ }, t);
295
+ }
296
+ };
297
+ export {
298
+ c as B,
299
+ M as S,
300
+ T as a,
301
+ A as b,
302
+ g as c,
303
+ u as d,
304
+ E as e,
305
+ N as f,
306
+ C as i,
307
+ F as u
308
+ };
@@ -0,0 +1,3 @@
1
+ export { modifierTypesPlugin } from './modifier-types';
2
+ export type { ModifierTypesPluginOptions } from './modifier-types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/build-plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AACtD,YAAY,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import type { Plugin } from 'vite';
2
+ export interface ModifierTypesPluginOptions {
3
+ declaration?: string;
4
+ snapshot?: string;
5
+ failOnConflict?: boolean;
6
+ watch?: boolean;
7
+ watchPatterns?: string[];
8
+ extraHydrators?: string[];
9
+ debug?: boolean;
10
+ }
11
+ export declare function modifierTypesPlugin(options?: ModifierTypesPluginOptions): Plugin;
12
+ //# sourceMappingURL=modifier-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modifier-types.d.ts","sourceRoot":"","sources":["../../src/build-plugins/modifier-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAgBlC,MAAM,WAAW,0BAA0B;IACzC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,wBAAgB,mBAAmB,CACjC,OAAO,GAAE,0BAA+B,GACvC,MAAM,CA0ER"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Shared utilities for modifier type generation tooling.
3
+ * These helpers are reused by the CLI script and the Vite plugin.
4
+ */
5
+ import type { GeneratedModifierArtifacts } from '../modifiers/type-generator';
6
+ export interface HydratorCandidate {
7
+ name: string;
8
+ relativePath: string;
9
+ hooks?: string[];
10
+ optional?: boolean;
11
+ }
12
+ export interface HydrationOptions {
13
+ debug?: boolean;
14
+ extraModules?: string[];
15
+ }
16
+ export declare const DEFAULT_HYDRATORS: HydratorCandidate[];
17
+ export declare function hydrateRegistry(options?: HydrationOptions): Promise<void>;
18
+ export interface ResolvePathsOptions {
19
+ declaration?: string;
20
+ snapshot?: string;
21
+ }
22
+ export declare function resolveOutputPaths(options?: ResolvePathsOptions): {
23
+ declarationFile: string;
24
+ snapshotFile: string;
25
+ };
26
+ export declare function verifyOutputs(artifacts: GeneratedModifierArtifacts, declarationFile: string, snapshotFile: string): Promise<void>;
27
+ export declare function writeArtifacts(artifacts: GeneratedModifierArtifacts, declarationFile: string, snapshotFile: string): Promise<void>;
28
+ export declare function relativePath(path: string): string;
29
+ //# sourceMappingURL=typegen-runner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typegen-runner.d.ts","sourceRoot":"","sources":["../../src/build-tools/typegen-runner.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AAE7E,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB;AAID,eAAO,MAAM,iBAAiB,EAAE,iBAAiB,EAYhD,CAAA;AAED,wBAAsB,eAAe,CACnC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,IAAI,CAAC,CAyEf;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,wBAAgB,kBAAkB,CAChC,OAAO,GAAE,mBAAwB,GAChC;IAAE,eAAe,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAoBnD;AAED,wBAAsB,aAAa,CACjC,SAAS,EAAE,0BAA0B,EACrC,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CA2Bf;AAED,wBAAsB,cAAc,CAClC,SAAS,EAAE,0BAA0B,EACrC,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CA2Bf;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @fileoverview TachUI Assets Bundle
3
+ *
4
+ * Dedicated entry point for asset-related functions (fonts, colors, images, gradients).
5
+ * Enables tree-shaking for applications that only need asset functionality.
6
+ */
7
+ export { Assets, Asset, ColorAsset, ImageAsset, FontAsset, registerAsset, createColorAsset, createImageAsset, createFontAsset, createGoogleFont, createVariableFont, getAssetInfo, listAssetNames, type FontAssetOptions, type FontWeightValue, type FontWidthValue, type AssetInfo, type AssetsInterface, } from '../assets';
8
+ export { LinearGradient, RadialGradient, StateGradient } from '../gradients';
9
+ /**
10
+ * Assets Bundle Metadata
11
+ */
12
+ export declare const BUNDLE_INFO: {
13
+ readonly name: "@tachui/core/assets";
14
+ readonly version: "0.1.0";
15
+ readonly description: "Dedicated assets bundle for fonts, colors, images, and gradients";
16
+ readonly targetSize: "~15KB";
17
+ readonly useCase: "Asset-heavy applications, theming systems, design systems";
18
+ };
19
+ //# sourceMappingURL=assets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/bundles/assets.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,MAAM,EACN,KAAK,EACL,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,eAAe,GACrB,MAAM,WAAW,CAAA;AAGlB,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;CAOd,CAAA"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @fileoverview TachUI Context Bundle
3
+ *
4
+ * Dedicated entry point for context and component lifecycle functions.
5
+ * Enables tree-shaking for applications that need context/environment management.
6
+ */
7
+ export { EnvironmentObject, createEnvironmentKey, provideEnvironmentObject, } from '../state/environment';
8
+ export { withComponentContext, getCurrentComponentContext, createComponentContext, setCurrentComponentContext, } from '../runtime/component-context';
9
+ export { batch, createRoot, getOwner, getReactiveContext, runWithOwner, untrack, } from '../reactive/context';
10
+ export { createDetachedRoot, getOwnerChain, getRootOwner, isReactiveContext, runOutsideReactiveContext, } from '../reactive/ownership';
11
+ export { mountRoot } from '../runtime/dom-bridge';
12
+ /**
13
+ * Context Bundle Metadata
14
+ */
15
+ export declare const BUNDLE_INFO: {
16
+ readonly name: "@tachui/core/context";
17
+ readonly version: "0.1.0";
18
+ readonly description: "Dedicated context bundle for environment and component lifecycle management";
19
+ readonly targetSize: "~10KB";
20
+ readonly useCase: "Applications with complex state management and component hierarchies";
21
+ };
22
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/bundles/context.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,8BAA8B,CAAA;AAGrC,OAAO,EACL,KAAK,EACL,UAAU,EACV,QAAQ,EACR,kBAAkB,EAClB,YAAY,EACZ,OAAO,GACR,MAAM,qBAAqB,CAAA;AAG5B,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,uBAAuB,CAAA;AAG9B,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;CAQd,CAAA"}
@@ -9,15 +9,21 @@ export * from '../reactive/computed';
9
9
  export * from '../reactive/effect';
10
10
  export { onCleanup, dispose, createCleanupGroup } from '../reactive/cleanup';
11
11
  export * from '../reactive/context';
12
+ export { setTheme, detectSystemTheme, getCurrentTheme } from '../reactive/theme';
12
13
  export * from '../runtime/dom-bridge';
13
14
  export * from '../runtime/component';
14
15
  export * from '../runtime/props';
16
+ export type { ComponentInstance } from '../runtime/types';
17
+ export { EnvironmentObject, createEnvironmentKey, provideEnvironmentObject, } from '../state/environment';
18
+ export { withComponentContext, getCurrentComponentContext, createComponentContext, setCurrentComponentContext, } from '../runtime/component-context';
15
19
  export * from '../modifiers/core';
16
20
  export { State, isState, unwrapValue } from '../state/state';
17
21
  export { createBinding, isBinding } from '../state/binding';
18
- export { Assets, Asset, ColorAsset, ImageAsset, FontAsset, registerAsset, createColorAsset, createImageAsset, createFontAsset, } from '../assets';
22
+ export { ObservableObjectBase } from '../state/observed-object';
23
+ export { Assets, Asset, ColorAsset, ImageAsset, FontAsset, registerAsset, createColorAsset, createImageAsset, createFontAsset, createGoogleFont, } from '../assets';
19
24
  export { infinity, Layout, isInfinity } from '../constants';
20
- export { LinearGradient } from '../gradients';
25
+ export { LinearGradient, StateGradient } from '../gradients';
26
+ export { TACHUI_PACKAGE, TACHUI_PACKAGE_VERSION, VERSION } from '../version';
21
27
  /**
22
28
  * Minimal Bundle Metadata
23
29
  */
@@ -1 +1 @@
1
- {"version":3,"file":"minimal.d.ts","sourceRoot":"","sources":["../../src/bundles/minimal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC5E,cAAc,qBAAqB,CAAA;AAGnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAOhC,cAAc,mBAAmB,CAAA;AAQjC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG3D,OAAO,EACL,MAAM,EACN,KAAK,EACL,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,GAChB,MAAM,WAAW,CAAA;AAGlB,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAG3D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAI7C;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;CAiBd,CAAA"}
1
+ {"version":3,"file":"minimal.d.ts","sourceRoot":"","sources":["../../src/bundles/minimal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC5E,cAAc,qBAAqB,CAAA;AAGnC,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAGhF,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAGzD,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,8BAA8B,CAAA;AAOrC,cAAc,mBAAmB,CAAA;AAQjC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAG/D,OAAO,EACL,MAAM,EACN,KAAK,EACL,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EAEf,gBAAgB,GACjB,MAAM,WAAW,CAAA;AAGlB,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAG3D,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAK5D,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;CAiBd,CAAA"}