@tachui/core 0.8.18 → 0.8.20

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.
@@ -32,11 +32,11 @@ export declare class ColorAsset extends Asset {
32
32
  */
33
33
  static validateColor(color: string): ColorValidationResult;
34
34
  static getCurrentTheme(): string;
35
- opacity(alpha: number): string;
36
- saturate(amount: number): string;
37
- brighten(amount: number): string;
38
- contrast(amount: number): string;
39
- rotateHue(degrees: number): string;
35
+ opacity(alpha: number): ColorAsset;
36
+ saturate(amount: number): ColorAsset;
37
+ brighten(amount: number): ColorAsset;
38
+ contrast(amount: number): ColorAsset;
39
+ rotateHue(degrees: number): ColorAsset;
40
40
  resolve(): string;
41
41
  private isFiniteInput;
42
42
  private static clamp;
@@ -1 +1 @@
1
- {"version":3,"file":"ColorAsset.d.ts","sourceRoot":"","sources":["../../src/assets/ColorAsset.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb;AAED,qBAAa,UAAW,SAAQ,KAAK;IACnC,SAAgB,OAAO,EAAE,MAAM,CAAA;IAC/B,SAAgB,KAAK,CAAC,EAAE,MAAM,CAAA;IAC9B,SAAgB,IAAI,CAAC,EAAE,MAAM,CAAA;IAC7B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CACoB;IACrD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CACwC;IACzE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CACgE;IAClG,OAAO,CAAC,MAAM,CAAC,QAA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AAG,UAAU;IAiBpC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU;IAgBpC,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU;IAetC,OAAO,IAAI,MAAM;IAuBjB,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,MAAM,CAAC,KAAK;IAIpB,OAAO,CAAC,MAAM,CAAC,WAAW;IAO1B,OAAO,CAAC,MAAM,CAAC,UAAU;IAOzB,OAAO,CAAC,MAAM,CAAC,UAAU;IA2CzB,OAAO,CAAC,MAAM,CAAC,QAAQ;IAKvB,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAqBhC,OAAO,CAAC,MAAM,CAAC,eAAe;IA0B9B,OAAO,CAAC,MAAM,CAAC,eAAe;IAgC9B,OAAO,CAAC,MAAM,CAAC,aAAa;IA2B5B,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAoB/B,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAiD/B,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAgC/B,OAAO,CAAC,MAAM,CAAC,QAAQ;IAkCvB,OAAO,CAAC,MAAM,CAAC,QAAQ;IAyCvB,OAAO,CAAC,MAAM,CAAC,QAAQ;CAIxB"}
@@ -8,14 +8,20 @@ import { ColorAsset } from './ColorAsset';
8
8
  import { ImageAsset } from './ImageAsset';
9
9
  import { FontAsset, type FontAssetOptions } from './FontAsset';
10
10
  import type { AssetInfo, AssetsInterface } from './types';
11
+ import type { ColorAssetProxy, ImageAssetProxy, FontAssetProxy } from '@tachui/types/assets';
11
12
  export declare const Assets: AssetsInterface;
12
13
  export { Asset, ColorAsset, ImageAsset, FontAsset };
13
14
  export * from './types';
14
15
  export { FontWeightPreset as FontWeight, FontWidth, SystemFonts, createSystemFont, createGoogleFont, createVariableFont, type FontAssetOptions, type FontWeightValue, type FontWidthValue } from './FontAsset';
16
+ export declare function registerAsset(asset: ColorAsset): ColorAssetProxy;
17
+ export declare function registerAsset(asset: ImageAsset): ImageAssetProxy;
18
+ export declare function registerAsset(asset: FontAsset): FontAssetProxy;
19
+ export declare function registerAsset(name: string, asset: ColorAsset): ColorAssetProxy;
20
+ export declare function registerAsset(name: string, asset: ImageAsset): ImageAssetProxy;
21
+ export declare function registerAsset(name: string, asset: FontAsset): FontAssetProxy;
22
+ export declare function registerAsset(...assets: [Asset, ...Asset[]]): void;
15
23
  export declare function registerAsset(name: string, asset: Asset): void;
16
- export declare function registerAsset(asset: Asset): void;
17
24
  export declare function registerAsset(asset: Asset, name?: string): void;
18
- export declare function registerAsset(...assets: [Asset, ...Asset[]]): void;
19
25
  export declare function createColorAsset(light: string, dark: string, name?: string): ColorAsset;
20
26
  export declare function createImageAsset(defaultPath: string, light?: string, dark?: string, name?: string, options?: {
21
27
  alt?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/assets/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AASzD,eAAO,MAAM,MAAM,EAAE,eAAgD,CAAA;AAGrE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,CAAA;AACnD,cAAc,SAAS,CAAA;AACvB,OAAO,EACL,gBAAgB,IAAI,UAAU,EAC9B,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,aAAa,CAAA;AAGpB,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,E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CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;AAwDhE,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,MAAW,GAChB,UAAU,CAOZ;AAED,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,MAAM,EACb,IAAI,GAAE,MAAW,EACjB,OAAO,CAAC,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/C,UAAU,CAQZ;AAED,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,EACd,SAAS,GAAE,MAAM,EAAO,EACxB,IAAI,GAAE,MAAW,EACjB,OAAO,CAAC,EAAE,gBAAgB,GACzB,SAAS,CAEX;AAGD,wBAAgB,YAAY,IAAI,SAAS,EAAE,CAuB1C;AAGD,wBAAgB,cAAc,IAAI,MAAM,EAAE,CAEzC;AAqDD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA"}
@@ -1,37 +1,37 @@
1
- import { A as g } from "../index-JQ1sW1SK.js";
2
- import { L as rt, R as st, k as nt } from "../index-JQ1sW1SK.js";
3
- import { J as S, K as C, k as N } from "../theme-CRLPHryV.js";
1
+ import { A as b } from "../index-JQ1sW1SK.js";
2
+ import { L as rt, R as st, k as at } from "../index-JQ1sW1SK.js";
3
+ import { J as S, K as C, k as x } from "../theme-CRLPHryV.js";
4
4
  export * from "@tachui/types/assets";
5
- var G = Object.defineProperty, H = (i, t, e) => t in i ? G(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, b = (i, t, e) => H(i, typeof t != "symbol" ? t + "" : t, e);
6
- const E = class a extends g {
5
+ var k = Object.defineProperty, G = (i, t, e) => t in i ? k(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, p = (i, t, e) => G(i, typeof t != "symbol" ? t + "" : t, e);
6
+ const E = class n extends b {
7
7
  constructor(t) {
8
- if (super(t.name), b(this, "default"), b(this, "light"), b(this, "dark"), !t.default)
8
+ if (super(t.name), p(this, "default"), p(this, "light"), p(this, "dark"), !t.default)
9
9
  throw new Error(
10
10
  `ColorAsset "${t.name}" must specify a default color`
11
11
  );
12
- const e = a.validateColor(t.default);
12
+ const e = n.validateColor(t.default);
13
13
  if (!e.isValid)
14
14
  throw new Error(
15
15
  `Invalid default color format for asset "${t.name}": ${e.error}`
16
16
  );
17
17
  if (t.light) {
18
- const s = a.validateColor(t.light);
19
- if (!s.isValid)
18
+ const r = n.validateColor(t.light);
19
+ if (!r.isValid)
20
20
  throw new Error(
21
- `Invalid light color format for asset "${t.name}": ${s.error}`
21
+ `Invalid light color format for asset "${t.name}": ${r.error}`
22
22
  );
23
23
  }
24
24
  if (t.dark) {
25
- const s = a.validateColor(t.dark);
26
- if (!s.isValid)
25
+ const r = n.validateColor(t.dark);
26
+ if (!r.isValid)
27
27
  throw new Error(
28
- `Invalid dark color format for asset "${t.name}": ${s.error}`
28
+ `Invalid dark color format for asset "${t.name}": ${r.error}`
29
29
  );
30
30
  }
31
31
  this.default = t.default, this.light = t.light, this.dark = t.dark;
32
32
  }
33
33
  static init(t) {
34
- return new a(t);
34
+ return new n(t);
35
35
  }
36
36
  /**
37
37
  * Validates a color string format
@@ -44,32 +44,32 @@ const E = class a extends g {
44
44
  error: "Color must be a non-empty string"
45
45
  };
46
46
  const e = t.trim();
47
- if (a.HEX_REGEX.test(e))
47
+ if (n.HEX_REGEX.test(e))
48
48
  return { isValid: !0, format: "hex" };
49
- if (a.RGB_REGEX.test(e)) {
50
- const n = e.match(a.RGB_REGEX), [, r, o, u] = n.map(Number);
51
- return r <= 255 && o <= 255 && u <= 255 ? { isValid: !0, format: "rgb" } : {
49
+ if (n.RGB_REGEX.test(e)) {
50
+ const a = e.match(n.RGB_REGEX), [, s, o, c] = a.map(Number);
51
+ return s <= 255 && o <= 255 && c <= 255 ? { isValid: !0, format: "rgb" } : {
52
52
  isValid: !1,
53
53
  error: "RGB values must be between 0 and 255"
54
54
  };
55
55
  }
56
- if (a.RGBA_REGEX.test(e)) {
57
- const n = e.match(a.RGBA_REGEX), [, r, o, u, l] = n, f = Number(r), c = Number(o), h = Number(u), m = Number(l);
58
- return f <= 255 && c <= 255 && h <= 255 && m >= 0 && m <= 1 ? { isValid: !0, format: "rgba" } : {
56
+ if (n.RGBA_REGEX.test(e)) {
57
+ const a = e.match(n.RGBA_REGEX), [, s, o, c, l] = a, u = Number(s), h = Number(o), f = Number(c), m = Number(l);
58
+ return u <= 255 && h <= 255 && f <= 255 && m >= 0 && m <= 1 ? { isValid: !0, format: "rgba" } : {
59
59
  isValid: !1,
60
60
  error: "RGBA values must be: RGB 0-255, alpha 0-1"
61
61
  };
62
62
  }
63
- if (a.HSL_REGEX.test(e)) {
64
- const n = e.match(a.HSL_REGEX), [, r, o, u] = n.map(Number);
65
- return r <= 360 && o <= 100 && u <= 100 ? { isValid: !0, format: "hsl" } : {
63
+ if (n.HSL_REGEX.test(e)) {
64
+ const a = e.match(n.HSL_REGEX), [, s, o, c] = a.map(Number);
65
+ return s <= 360 && o <= 100 && c <= 100 ? { isValid: !0, format: "hsl" } : {
66
66
  isValid: !1,
67
67
  error: "HSL values must be: H 0-360, S/L 0-100%"
68
68
  };
69
69
  }
70
- if (a.HSLA_REGEX.test(e)) {
71
- const n = e.match(a.HSLA_REGEX), [, r, o, u, l] = n, f = Number(r), c = Number(o), h = Number(u), m = Number(l);
72
- return f <= 360 && c <= 100 && h <= 100 && m >= 0 && m <= 1 ? { isValid: !0, format: "hsla" } : {
70
+ if (n.HSLA_REGEX.test(e)) {
71
+ const a = e.match(n.HSLA_REGEX), [, s, o, c, l] = a, u = Number(s), h = Number(o), f = Number(c), m = Number(l);
72
+ return u <= 360 && h <= 100 && f <= 100 && m >= 0 && m <= 1 ? { isValid: !0, format: "hsla" } : {
73
73
  isValid: !1,
74
74
  error: "HSLA values must be: H 0-360, S/L 0-100%, alpha 0-1"
75
75
  };
@@ -102,9 +102,9 @@ const E = class a extends g {
102
102
  "silver",
103
103
  "aqua",
104
104
  "fuchsia"
105
- ].includes(e.toLowerCase()) ? { isValid: !0, format: "named" } : e.startsWith("var(--") && e.endsWith(")") ? { isValid: !0, format: "named" } : {
105
+ ].includes(e.toLowerCase()) ? { isValid: !0, format: "named" } : e.startsWith("var(--") && e.endsWith(")") ? { isValid: !0, format: "named" } : e.startsWith("color-mix(") ? { isValid: !0, format: "named" } : {
106
106
  isValid: !1,
107
- error: "Unsupported color format. Supported: hex, rgb, rgba, hsl, hsla, named colors, CSS custom properties"
107
+ error: "Unsupported color format. Supported: hex, rgb, rgba, hsl, hsla, named colors, CSS custom properties, color-mix()"
108
108
  };
109
109
  }
110
110
  static getCurrentTheme() {
@@ -112,210 +112,240 @@ const E = class a extends g {
112
112
  }
113
113
  opacity(t) {
114
114
  if (!this.isFiniteInput(t, "opacity(alpha)"))
115
- return this.resolve();
116
- const e = a.clamp(t, 0, 1);
117
- return a.applyAlpha(this.resolve(), e);
115
+ return this;
116
+ const e = n.clamp(t, 0, 1);
117
+ return new n({
118
+ name: this.name,
119
+ default: n.applyAlpha(this.default, e),
120
+ light: this.light ? n.applyAlpha(this.light, e) : void 0,
121
+ dark: this.dark ? n.applyAlpha(this.dark, e) : void 0
122
+ });
118
123
  }
119
124
  saturate(t) {
120
125
  if (!this.isFiniteInput(t, "saturate(amount)"))
121
- return this.resolve();
122
- const e = a.clamp(t, -1, 1);
123
- return a.applySaturation(this.resolve(), e);
126
+ return this;
127
+ const e = n.clamp(t, -1, 1);
128
+ return new n({
129
+ name: this.name,
130
+ default: n.applySaturation(this.default, e),
131
+ light: this.light ? n.applySaturation(this.light, e) : void 0,
132
+ dark: this.dark ? n.applySaturation(this.dark, e) : void 0
133
+ });
124
134
  }
125
135
  brighten(t) {
126
136
  if (!this.isFiniteInput(t, "brighten(amount)"))
127
- return this.resolve();
128
- const e = a.clamp(t, -1, 1);
129
- return a.applyBrightness(this.resolve(), e);
137
+ return this;
138
+ const e = n.clamp(t, -1, 1);
139
+ return new n({
140
+ name: this.name,
141
+ default: n.applyBrightness(this.default, e),
142
+ light: this.light ? n.applyBrightness(this.light, e) : void 0,
143
+ dark: this.dark ? n.applyBrightness(this.dark, e) : void 0
144
+ });
130
145
  }
131
146
  contrast(t) {
132
147
  if (!this.isFiniteInput(t, "contrast(amount)"))
133
- return this.resolve();
134
- const e = a.clamp(t, -1, 1);
135
- return a.applyContrast(this.resolve(), e);
148
+ return this;
149
+ const e = n.clamp(t, -1, 1);
150
+ return new n({
151
+ name: this.name,
152
+ default: n.applyContrast(this.default, e),
153
+ light: this.light ? n.applyContrast(this.light, e) : void 0,
154
+ dark: this.dark ? n.applyContrast(this.dark, e) : void 0
155
+ });
136
156
  }
137
157
  rotateHue(t) {
138
158
  if (!this.isFiniteInput(t, "rotateHue(degrees)"))
139
- return this.resolve();
159
+ return this;
140
160
  const e = (t % 360 + 360) % 360;
141
- return a.applyHueRotation(this.resolve(), e);
161
+ return new n({
162
+ name: this.name,
163
+ default: n.applyHueRotation(this.default, e),
164
+ light: this.light ? n.applyHueRotation(this.light, e) : void 0,
165
+ dark: this.dark ? n.applyHueRotation(this.dark, e) : void 0
166
+ });
142
167
  }
143
168
  resolve() {
144
- const t = N() !== null;
169
+ const t = x() !== null;
145
170
  let e;
146
- return t ? e = C()() : e = a.getCurrentTheme(), e === "dark" ? this.dark || this.default : this.light || this.default;
171
+ return t ? e = C()() : e = n.getCurrentTheme(), e === "dark" ? this.dark || this.default : this.light || this.default;
147
172
  }
148
173
  isFiniteInput(t, e) {
149
174
  if (Number.isFinite(t))
150
175
  return !0;
151
- const s = `ColorAsset.${e} requires a finite number for asset "${this.name}"`;
176
+ const r = `ColorAsset.${e} requires a finite number for asset "${this.name}"`;
152
177
  if (process.env.NODE_ENV === "development")
153
- throw new Error(s);
178
+ throw new Error(r);
154
179
  return !1;
155
180
  }
156
- static clamp(t, e, s) {
157
- return Math.min(s, Math.max(e, t));
181
+ static clamp(t, e, r) {
182
+ return Math.min(r, Math.max(e, t));
158
183
  }
159
184
  static formatAlpha(t) {
160
185
  return t === 0 || t === 1 ? String(t) : Number(t.toFixed(4)).toString();
161
186
  }
162
187
  static toColorMix(t, e) {
163
- const s = Number((e * 100).toFixed(2)).toString();
164
- return `color-mix(in srgb, ${t} ${s}%, transparent)`;
188
+ const r = Number((e * 100).toFixed(2)).toString();
189
+ return `color-mix(in srgb, ${t} ${r}%, transparent)`;
165
190
  }
166
191
  static applyAlpha(t, e) {
167
- const s = t.trim(), n = a.formatAlpha(e);
168
- if (s.match(a.HEX_REGEX)) {
169
- const [c, h, m] = a.parseHex(s);
170
- return `rgba(${c}, ${h}, ${m}, ${n})`;
192
+ const r = t.trim(), a = n.formatAlpha(e);
193
+ if (r.match(n.HEX_REGEX)) {
194
+ const [f, m, d] = n.parseHex(r);
195
+ return `rgba(${f}, ${m}, ${d}, ${a})`;
171
196
  }
172
- const o = s.match(a.RGB_REGEX);
197
+ const o = r.match(n.RGB_REGEX);
173
198
  if (o) {
174
- const [, c, h, m] = o.map(Number);
175
- return `rgba(${c}, ${h}, ${m}, ${n})`;
199
+ const [, f, m, d] = o.map(Number);
200
+ return `rgba(${f}, ${m}, ${d}, ${a})`;
176
201
  }
177
- const u = s.match(a.RGBA_REGEX);
178
- if (u) {
179
- const [, c, h, m] = u.map(Number);
180
- return `rgba(${c}, ${h}, ${m}, ${n})`;
202
+ const c = r.match(n.RGBA_REGEX);
203
+ if (c) {
204
+ const [, f, m, d] = c.map(Number);
205
+ return `rgba(${f}, ${m}, ${d}, ${a})`;
181
206
  }
182
- const l = s.match(a.HSL_REGEX);
207
+ const l = r.match(n.HSL_REGEX);
183
208
  if (l) {
184
- const [, c, h, m] = l.map(Number);
185
- return `hsla(${c}, ${h}%, ${m}%, ${n})`;
209
+ const [, f, m, d] = l.map(Number);
210
+ return `hsla(${f}, ${m}%, ${d}%, ${a})`;
186
211
  }
187
- const f = s.match(a.HSLA_REGEX);
188
- if (f) {
189
- const [, c, h, m] = f.map(Number);
190
- return `hsla(${c}, ${h}%, ${m}%, ${n})`;
212
+ const u = r.match(n.HSLA_REGEX);
213
+ if (u) {
214
+ const [, f, m, d] = u.map(Number);
215
+ return `hsla(${f}, ${m}%, ${d}%, ${a})`;
191
216
  }
192
- return a.toColorMix(s, e);
217
+ const h = n.NAMED_COLOR_RGB[r.toLowerCase()];
218
+ if (h) {
219
+ const [f, m, d] = h;
220
+ return `rgba(${f}, ${m}, ${d}, ${a})`;
221
+ }
222
+ return n.toColorMix(r, e);
193
223
  }
194
224
  static parseHex(t) {
195
- const [e, s, n] = a.parseHexWithAlpha(t);
196
- return [e, s, n];
225
+ const [e, r, a] = n.parseHexWithAlpha(t);
226
+ return [e, r, a];
197
227
  }
198
228
  static parseHexWithAlpha(t) {
199
- const e = t.slice(1), s = e.length === 3 ? e.split("").map((l) => `${l}${l}`).join("") : e.length === 8 ? e.slice(0, 6) : e, n = e.length === 8 ? Number.parseInt(e.slice(6, 8), 16) / 255 : 1, r = Number.parseInt(s.slice(0, 2), 16), o = Number.parseInt(s.slice(2, 4), 16), u = Number.parseInt(s.slice(4, 6), 16);
200
- return [r, o, u, n];
229
+ const e = t.slice(1), r = e.length === 3 ? e.split("").map((l) => `${l}${l}`).join("") : e.length === 8 ? e.slice(0, 6) : e, a = e.length === 8 ? Number.parseInt(e.slice(6, 8), 16) / 255 : 1, s = Number.parseInt(r.slice(0, 2), 16), o = Number.parseInt(r.slice(2, 4), 16), c = Number.parseInt(r.slice(4, 6), 16);
230
+ return [s, o, c, a];
201
231
  }
202
232
  static applySaturation(t, e) {
203
- const s = a.parseColorToHsla(t);
204
- if (!s)
233
+ const r = n.parseColorToHsla(t);
234
+ if (!r)
205
235
  return t;
206
- const n = e >= 0 ? s.s + (1 - s.s) * e : s.s * (1 + e), r = a.clamp(n, 0, 1), [o, u, l] = a.hslToRgb(s.h, r, s.l);
207
- return s.a < 1 ? `rgba(${o}, ${u}, ${l}, ${a.formatAlpha(s.a)})` : a.rgbToHex(o, u, l);
236
+ const a = e >= 0 ? r.s + (1 - r.s) * e : r.s * (1 + e), s = n.clamp(a, 0, 1), [o, c, l] = n.hslToRgb(r.h, s, r.l);
237
+ return r.a < 1 ? `rgba(${o}, ${c}, ${l}, ${n.formatAlpha(r.a)})` : n.rgbToHex(o, c, l);
208
238
  }
209
239
  static applyBrightness(t, e) {
210
- const s = a.parseColorToRgba(t);
211
- if (!s)
240
+ const r = n.parseColorToRgba(t);
241
+ if (!r)
212
242
  return t;
213
- const n = (l) => {
214
- const f = e >= 0 ? l + (255 - l) * e : l * (1 + e);
215
- return Math.round(a.clamp(f, 0, 255));
216
- }, r = n(s.r), o = n(s.g), u = n(s.b);
217
- return s.a < 1 ? `rgba(${r}, ${o}, ${u}, ${a.formatAlpha(s.a)})` : a.rgbToHex(r, o, u);
243
+ const a = (l) => {
244
+ const u = e >= 0 ? l + (255 - l) * e : l * (1 + e);
245
+ return Math.round(n.clamp(u, 0, 255));
246
+ }, s = a(r.r), o = a(r.g), c = a(r.b);
247
+ return r.a < 1 ? `rgba(${s}, ${o}, ${c}, ${n.formatAlpha(r.a)})` : n.rgbToHex(s, o, c);
218
248
  }
219
249
  static applyContrast(t, e) {
220
- const s = a.parseColorToRgba(t);
221
- if (!s)
250
+ const r = n.parseColorToRgba(t);
251
+ if (!r)
222
252
  return t;
223
- const n = 1 + e, r = (f) => {
224
- const h = (f / 255 - 0.5) * n + 0.5;
225
- return Math.round(a.clamp(h, 0, 1) * 255);
226
- }, o = r(s.r), u = r(s.g), l = r(s.b);
227
- return s.a < 1 ? `rgba(${o}, ${u}, ${l}, ${a.formatAlpha(s.a)})` : a.rgbToHex(o, u, l);
253
+ const a = 1 + e, s = (u) => {
254
+ const f = (u / 255 - 0.5) * a + 0.5;
255
+ return Math.round(n.clamp(f, 0, 1) * 255);
256
+ }, o = s(r.r), c = s(r.g), l = s(r.b);
257
+ return r.a < 1 ? `rgba(${o}, ${c}, ${l}, ${n.formatAlpha(r.a)})` : n.rgbToHex(o, c, l);
228
258
  }
229
259
  static applyHueRotation(t, e) {
230
- const s = a.parseColorToHsla(t);
231
- if (!s)
260
+ const r = n.parseColorToHsla(t);
261
+ if (!r)
232
262
  return t;
233
- const n = (s.h + e) % 360, [r, o, u] = a.hslToRgb(n, s.s, s.l);
234
- return s.a < 1 ? `rgba(${r}, ${o}, ${u}, ${a.formatAlpha(s.a)})` : a.rgbToHex(r, o, u);
263
+ const a = (r.h + e) % 360, [s, o, c] = n.hslToRgb(a, r.s, r.l);
264
+ return r.a < 1 ? `rgba(${s}, ${o}, ${c}, ${n.formatAlpha(r.a)})` : n.rgbToHex(s, o, c);
235
265
  }
236
266
  static parseColorToRgba(t) {
237
267
  const e = t.trim();
238
- if (a.HEX_REGEX.test(e)) {
239
- const [l, f, c, h] = a.parseHexWithAlpha(e);
240
- return { r: l, g: f, b: c, a: h };
268
+ if (n.HEX_REGEX.test(e)) {
269
+ const [l, u, h, f] = n.parseHexWithAlpha(e);
270
+ return { r: l, g: u, b: h, a: f };
241
271
  }
242
- const s = e.match(a.RGB_REGEX);
243
- if (s) {
244
- const [, l, f, c] = s.map(Number);
245
- return { r: l, g: f, b: c, a: 1 };
272
+ const r = e.match(n.RGB_REGEX);
273
+ if (r) {
274
+ const [, l, u, h] = r.map(Number);
275
+ return { r: l, g: u, b: h, a: 1 };
246
276
  }
247
- const n = e.match(a.RGBA_REGEX);
248
- if (n) {
249
- const [, l, f, c, h] = n;
250
- return { r: Number(l), g: Number(f), b: Number(c), a: Number(h) };
277
+ const a = e.match(n.RGBA_REGEX);
278
+ if (a) {
279
+ const [, l, u, h, f] = a;
280
+ return { r: Number(l), g: Number(u), b: Number(h), a: Number(f) };
251
281
  }
252
- const r = e.match(a.HSL_REGEX);
253
- if (r) {
254
- const [, l, f, c] = r.map(Number), [h, m, w] = a.hslToRgb(l, f / 100, c / 100);
255
- return { r: h, g: m, b: w, a: 1 };
282
+ const s = e.match(n.HSL_REGEX);
283
+ if (s) {
284
+ const [, l, u, h] = s.map(Number), [f, m, d] = n.hslToRgb(l, u / 100, h / 100);
285
+ return { r: f, g: m, b: d, a: 1 };
256
286
  }
257
- const o = e.match(a.HSLA_REGEX);
287
+ const o = e.match(n.HSLA_REGEX);
258
288
  if (o) {
259
- const [, l, f, c, h] = o, [m, w, x] = a.hslToRgb(
289
+ const [, l, u, h, f] = o, [m, d, N] = n.hslToRgb(
260
290
  Number(l),
261
- Number(f) / 100,
262
- Number(c) / 100
291
+ Number(u) / 100,
292
+ Number(h) / 100
263
293
  );
264
- return { r: m, g: w, b: x, a: Number(h) };
294
+ return { r: m, g: d, b: N, a: Number(f) };
265
295
  }
266
- const u = a.NAMED_COLOR_RGB[e.toLowerCase()];
267
- if (u) {
268
- const [l, f, c, h] = u;
269
- return { r: l, g: f, b: c, a: h };
296
+ const c = n.NAMED_COLOR_RGB[e.toLowerCase()];
297
+ if (c) {
298
+ const [l, u, h, f] = c;
299
+ return { r: l, g: u, b: h, a: f };
270
300
  }
271
301
  return null;
272
302
  }
273
303
  static parseColorToHsla(t) {
274
- const e = t.trim(), s = e.match(a.HSL_REGEX);
275
- if (s) {
276
- const [, f, c, h] = s.map(Number);
277
- return { h: f, s: c / 100, l: h / 100, a: 1 };
304
+ const e = t.trim(), r = e.match(n.HSL_REGEX);
305
+ if (r) {
306
+ const [, u, h, f] = r.map(Number);
307
+ return { h: u, s: h / 100, l: f / 100, a: 1 };
278
308
  }
279
- const n = e.match(a.HSLA_REGEX);
280
- if (n) {
281
- const [, f, c, h, m] = n;
309
+ const a = e.match(n.HSLA_REGEX);
310
+ if (a) {
311
+ const [, u, h, f, m] = a;
282
312
  return {
283
- h: Number(f),
284
- s: Number(c) / 100,
285
- l: Number(h) / 100,
313
+ h: Number(u),
314
+ s: Number(h) / 100,
315
+ l: Number(f) / 100,
286
316
  a: Number(m)
287
317
  };
288
318
  }
289
- const r = a.parseColorToRgba(e);
290
- if (!r)
319
+ const s = n.parseColorToRgba(e);
320
+ if (!s)
291
321
  return null;
292
- const [o, u, l] = a.rgbToHsl(r.r, r.g, r.b);
293
- return { h: o, s: u, l, a: r.a };
294
- }
295
- static rgbToHsl(t, e, s) {
296
- const n = t / 255, r = e / 255, o = s / 255, u = Math.max(n, r, o), l = Math.min(n, r, o), f = u - l;
297
- let c = 0;
298
- const h = (u + l) / 2, m = f === 0 ? 0 : f / (1 - Math.abs(2 * h - 1));
299
- return f !== 0 && (u === n ? c = (r - o) / f % 6 : u === r ? c = (o - n) / f + 2 : c = (n - r) / f + 4, c *= 60, c < 0 && (c += 360)), [c, m, h];
300
- }
301
- static hslToRgb(t, e, s) {
302
- const n = (t % 360 + 360) % 360, r = (1 - Math.abs(2 * s - 1)) * e, o = r * (1 - Math.abs(n / 60 % 2 - 1)), u = s - r / 2;
303
- let l = 0, f = 0, c = 0;
304
- n < 60 ? (l = r, f = o) : n < 120 ? (l = o, f = r) : n < 180 ? (f = r, c = o) : n < 240 ? (f = o, c = r) : n < 300 ? (l = o, c = r) : (l = r, c = o);
305
- const h = Math.round((l + u) * 255), m = Math.round((f + u) * 255), w = Math.round((c + u) * 255);
306
- return [h, m, w];
307
- }
308
- static rgbToHex(t, e, s) {
309
- const n = (r) => r.toString(16).padStart(2, "0");
310
- return `#${n(t)}${n(e)}${n(s)}`.toUpperCase();
322
+ const [o, c, l] = n.rgbToHsl(s.r, s.g, s.b);
323
+ return { h: o, s: c, l, a: s.a };
324
+ }
325
+ static rgbToHsl(t, e, r) {
326
+ const a = t / 255, s = e / 255, o = r / 255, c = Math.max(a, s, o), l = Math.min(a, s, o), u = c - l;
327
+ let h = 0;
328
+ const f = (c + l) / 2, m = u === 0 ? 0 : u / (1 - Math.abs(2 * f - 1));
329
+ return u !== 0 && (c === a ? h = (s - o) / u % 6 : c === s ? h = (o - a) / u + 2 : h = (a - s) / u + 4, h *= 60, h < 0 && (h += 360)), [h, m, f];
330
+ }
331
+ static hslToRgb(t, e, r) {
332
+ const a = (t % 360 + 360) % 360, s = (1 - Math.abs(2 * r - 1)) * e, o = s * (1 - Math.abs(a / 60 % 2 - 1)), c = r - s / 2;
333
+ let l = 0, u = 0, h = 0;
334
+ a < 60 ? (l = s, u = o) : a < 120 ? (l = o, u = s) : a < 180 ? (u = s, h = o) : a < 240 ? (u = o, h = s) : a < 300 ? (l = o, h = s) : (l = s, h = o);
335
+ const f = Math.round((l + c) * 255), m = Math.round((u + c) * 255), d = Math.round((h + c) * 255);
336
+ return [f, m, d];
337
+ }
338
+ static rgbToHex(t, e, r) {
339
+ const a = (s) => s.toString(16).padStart(2, "0");
340
+ return `#${a(t)}${a(e)}${a(r)}`.toUpperCase();
311
341
  }
312
342
  };
313
- b(E, "HEX_REGEX", /^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/);
314
- b(E, "RGB_REGEX", /^rgb\s*\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)$/i);
315
- b(E, "RGBA_REGEX", /^rgba\s*\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]*\.?[0-9]+)\s*\)$/i);
316
- b(E, "HSL_REGEX", /^hsl\s*\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})%\s*,\s*([0-9]{1,3})%\s*\)$/i);
317
- b(E, "HSLA_REGEX", /^hsla\s*\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})%\s*,\s*([0-9]{1,3})%\s*,\s*([0-9]*\.?[0-9]+)\s*\)$/i);
318
- b(E, "NAMED_COLOR_RGB", {
343
+ p(E, "HEX_REGEX", /^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/);
344
+ p(E, "RGB_REGEX", /^rgb\s*\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)$/i);
345
+ p(E, "RGBA_REGEX", /^rgba\s*\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]*\.?[0-9]+)\s*\)$/i);
346
+ p(E, "HSL_REGEX", /^hsl\s*\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})%\s*,\s*([0-9]{1,3})%\s*\)$/i);
347
+ p(E, "HSLA_REGEX", /^hsla\s*\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})%\s*,\s*([0-9]{1,3})%\s*,\s*([0-9]*\.?[0-9]+)\s*\)$/i);
348
+ p(E, "NAMED_COLOR_RGB", {
319
349
  transparent: [0, 0, 0, 0],
320
350
  black: [0, 0, 0, 1],
321
351
  white: [255, 255, 255, 1],
@@ -340,9 +370,9 @@ b(E, "NAMED_COLOR_RGB", {
340
370
  aqua: [0, 255, 255, 1],
341
371
  fuchsia: [255, 0, 255, 1]
342
372
  });
343
- let d = E;
344
- var k = Object.defineProperty, M = (i, t, e) => t in i ? k(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, v = (i, t, e) => M(i, typeof t != "symbol" ? t + "" : t, e);
345
- class F extends g {
373
+ let g = E;
374
+ var H = Object.defineProperty, M = (i, t, e) => t in i ? H(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, v = (i, t, e) => M(i, typeof t != "symbol" ? t + "" : t, e);
375
+ class F extends b {
346
376
  constructor(t) {
347
377
  if (super(t.name), v(this, "default"), v(this, "light"), v(this, "dark"), v(this, "alt"), v(this, "placeholder"), !t.default)
348
378
  throw new Error(`ImageAsset "${t.name}" must specify a default image path`);
@@ -355,7 +385,7 @@ class F extends g {
355
385
  return S();
356
386
  }
357
387
  resolve() {
358
- const t = N() !== null;
388
+ const t = x() !== null;
359
389
  let e;
360
390
  return t ? e = C()() : e = F.getCurrentTheme(), e === "dark" ? this.dark || this.default : this.light || this.default;
361
391
  }
@@ -373,21 +403,21 @@ class F extends g {
373
403
  return this.default;
374
404
  }
375
405
  }
376
- var P = Object.defineProperty, L = (i, t, e) => t in i ? P(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, A = (i, t, e) => L(i, typeof t != "symbol" ? t + "" : t, e);
377
- class y extends g {
378
- constructor(t, e = [], s = "", n = {}) {
379
- super(s || t), A(this, "family"), A(this, "fallbacks"), A(this, "options"), A(this, "loaded", !1), A(this, "loadPromise", null), this.family = t, this.fallbacks = e, this.options = {
406
+ var L = Object.defineProperty, P = (i, t, e) => t in i ? L(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, A = (i, t, e) => P(i, typeof t != "symbol" ? t + "" : t, e);
407
+ class w extends b {
408
+ constructor(t, e = [], r = "", a = {}) {
409
+ super(r || t), A(this, "family"), A(this, "fallbacks"), A(this, "options"), A(this, "loaded", !1), A(this, "loadPromise", null), this.family = t, this.fallbacks = e, this.options = {
380
410
  loading: "lazy",
381
411
  fontDisplay: "swap",
382
412
  preconnect: !0,
383
- ...n
413
+ ...a
384
414
  }, this.options.loading === "eager" && this.load();
385
415
  }
386
416
  /**
387
417
  * Static factory method for SwiftUI-style initialization
388
418
  */
389
- static init(t, e = [], s, n = {}) {
390
- return new y(t, e, s, n);
419
+ static init(t, e = [], r, a = {}) {
420
+ return new w(t, e, r, a);
391
421
  }
392
422
  /**
393
423
  * Get the full font-family CSS value including fallbacks
@@ -413,18 +443,18 @@ class y extends g {
413
443
  if (t) {
414
444
  if (e && typeof document < "u" && document.querySelector)
415
445
  try {
416
- const n = new URL(t).origin;
417
- if (!document.querySelector(`link[rel="preconnect"][href="${n}"]`)) {
418
- const r = document.createElement("link");
419
- r.rel = "preconnect", r.href = n, r.crossOrigin = "anonymous", document.head.appendChild(r);
446
+ const a = new URL(t).origin;
447
+ if (!document.querySelector(`link[rel="preconnect"][href="${a}"]`)) {
448
+ const s = document.createElement("link");
449
+ s.rel = "preconnect", s.href = a, s.crossOrigin = "anonymous", document.head.appendChild(s);
420
450
  }
421
451
  } catch {
422
452
  }
423
453
  if (t.endsWith(".css") || t.includes("fonts.googleapis.com") ? await this.loadFontCSS(t) : await this.loadFontFile(t), "fonts" in document)
424
454
  try {
425
455
  await document.fonts.ready;
426
- const n = `16px ${this.family.includes(" ") ? `"${this.family}"` : this.family}`;
427
- document.fonts.check(n) || console.warn(`⚠️ Font "${this.family}" may not have loaded correctly`);
456
+ const a = `16px ${this.family.includes(" ") ? `"${this.family}"` : this.family}`;
457
+ document.fonts.check(a) || console.warn(`⚠️ Font "${this.family}" may not have loaded correctly`);
428
458
  } catch {
429
459
  }
430
460
  }
@@ -433,44 +463,44 @@ class y extends g {
433
463
  * Load a CSS file containing @font-face rules
434
464
  */
435
465
  async loadFontCSS(t) {
436
- return new Promise((e, s) => {
466
+ return new Promise((e, r) => {
437
467
  if (document.querySelector(`link[href="${t}"]`)) {
438
468
  e();
439
469
  return;
440
470
  }
441
- const r = document.createElement("link");
442
- r.rel = "stylesheet", r.href = t, r.onload = () => {
471
+ const s = document.createElement("link");
472
+ s.rel = "stylesheet", s.href = t, s.onload = () => {
443
473
  e();
444
- }, r.onerror = (o) => {
474
+ }, s.onerror = (o) => {
445
475
  console.warn(`⚠️ Failed to load font CSS for ${this.family}:`, t), e();
446
- }, document.head.appendChild(r);
476
+ }, document.head.appendChild(s);
447
477
  });
448
478
  }
449
479
  /**
450
480
  * Load a font file directly and create @font-face rule
451
481
  */
452
482
  async loadFontFile(t) {
453
- const { fontFormat: e, fontDisplay: s, weightRange: n, widthRange: r } = this.options;
483
+ const { fontFormat: e, fontDisplay: r, weightRange: a, widthRange: s } = this.options;
454
484
  let o = "";
455
485
  e ? o = `format('${e}')` : t.endsWith(".woff2") ? o = "format('woff2')" : t.endsWith(".woff") ? o = "format('woff')" : t.endsWith(".ttf") && (o = "format('truetype')");
456
- let u = `
486
+ let c = `
457
487
  @font-face {
458
488
  font-family: "${this.family}";
459
489
  src: url("${t}") ${o};
460
- font-display: ${s || "swap"};
490
+ font-display: ${r || "swap"};
461
491
  `;
462
- n && (u += `font-weight: ${n[0]} ${n[1]};
463
- `), r && (u += `font-stretch: ${r[0]}% ${r[1]}%;
464
- `), u += "}";
492
+ a && (c += `font-weight: ${a[0]} ${a[1]};
493
+ `), s && (c += `font-stretch: ${s[0]}% ${s[1]}%;
494
+ `), c += "}";
465
495
  const l = document.createElement("style");
466
- if (l.textContent = u, document.head.appendChild(l), "FontFace" in window)
496
+ if (l.textContent = c, document.head.appendChild(l), "FontFace" in window)
467
497
  try {
468
- const f = new FontFace(this.family, `url(${t})`, {
469
- display: s || "swap",
470
- weight: n ? `${n[0]} ${n[1]}` : void 0,
471
- stretch: r ? `${r[0]}% ${r[1]}%` : void 0
498
+ const u = new FontFace(this.family, `url(${t})`, {
499
+ display: r || "swap",
500
+ weight: a ? `${a[0]} ${a[1]}` : void 0,
501
+ stretch: s ? `${s[0]}% ${s[1]}%` : void 0
472
502
  });
473
- await f.load(), document.fonts.add(f);
503
+ await u.load(), document.fonts.add(u);
474
504
  } catch {
475
505
  }
476
506
  }
@@ -521,35 +551,35 @@ const D = {
521
551
  fantasy: ["fantasy"]
522
552
  };
523
553
  function z(i = "sansSerif", t) {
524
- return new y("", [...R[i]], t || `system-${i}`);
554
+ return new w("", [...R[i]], t || `system-${i}`);
525
555
  }
526
- function U(i, t = [400], e, s = {}) {
527
- const n = t.join(";"), o = `https://fonts.googleapis.com/css2?family=${i.replace(/\s+/g, "+")}:wght@${n}&display=swap`;
528
- return new y(
556
+ function U(i, t = [400], e, r = {}) {
557
+ const a = t.join(";"), o = `https://fonts.googleapis.com/css2?family=${i.replace(/\s+/g, "+")}:wght@${a}&display=swap`;
558
+ return new w(
529
559
  i,
530
560
  [...R.sansSerif],
531
561
  e || i.toLowerCase().replace(/\s+/g, "-"),
532
562
  {
533
- ...s,
563
+ ...r,
534
564
  fontUrl: o,
535
565
  preconnect: !0
536
566
  }
537
567
  );
538
568
  }
539
- function j(i, t, e, s = [...R.sansSerif], n) {
540
- const r = {};
541
- return e.slant && (r.slnt = e.slant), e.optical && (r.opsz = e.optical), e.custom && Object.assign(r, e.custom), new y(i, s, n, {
569
+ function j(i, t, e, r = [...R.sansSerif], a) {
570
+ const s = {};
571
+ return e.slant && (s.slnt = e.slant), e.optical && (s.opsz = e.optical), e.custom && Object.assign(s, e.custom), new w(i, r, a, {
542
572
  fontUrl: t,
543
573
  weightRange: e.weight,
544
574
  widthRange: e.width,
545
- variableAxes: r,
575
+ variableAxes: s,
546
576
  fontDisplay: "swap"
547
577
  });
548
578
  }
549
- var X = Object.defineProperty, T = (i, t, e) => t in i ? X(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, V = (i, t, e) => T(i, t + "", e);
550
- class B {
579
+ var X = Object.defineProperty, T = (i, t, e) => t in i ? X(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, B = (i, t, e) => T(i, t + "", e);
580
+ class V {
551
581
  constructor() {
552
- V(this, "assets", /* @__PURE__ */ new Map());
582
+ B(this, "assets", /* @__PURE__ */ new Map());
553
583
  }
554
584
  add(t, e) {
555
585
  this.assets.set(t, e);
@@ -568,18 +598,18 @@ class B {
568
598
  get: (t, e) => {
569
599
  if (e === "toString" || e === "valueOf")
570
600
  return () => "[Assets]";
571
- const s = this.assets.get(e);
572
- if (s)
573
- return s instanceof d ? new Proxy(s, {
574
- get: (n, r) => r === "light" || r === "dark" ? n[r] : r === "resolve" ? () => n.resolve() : r === "toString" || r === "valueOf" ? () => n.resolve() : n[r],
575
- has: (n, r) => r === "resolve" ? !0 : r in n
576
- }) : s instanceof F ? new Proxy(s, {
577
- get: (n, r) => r === "lightSrc" || r === "darkSrc" || r === "src" || r === "defaultSrc" ? n[r] : r === "resolve" ? () => n.resolve() : r === "toString" || r === "valueOf" ? () => n.resolve() : n[r],
578
- has: (n, r) => r === "resolve" ? !0 : r in n
579
- }) : s instanceof y ? new Proxy(s, {
580
- get: (n, r) => r === "family" || r === "fallbacks" || r === "options" ? n[r] : r === "resolve" ? () => n.resolve() : r === "toString" || r === "valueOf" ? () => n.resolve() : n[r],
581
- has: (n, r) => r === "resolve" ? !0 : r in n
582
- }) : s;
601
+ const r = this.assets.get(e);
602
+ if (r)
603
+ return r instanceof g ? new Proxy(r, {
604
+ get: (a, s) => s === "light" || s === "dark" ? a[s] : s === "resolve" ? () => a.resolve() : s === "toString" || s === "valueOf" ? () => a.resolve() : a[s],
605
+ has: (a, s) => s === "resolve" ? !0 : s in a
606
+ }) : r instanceof F ? new Proxy(r, {
607
+ get: (a, s) => s === "lightSrc" || s === "darkSrc" || s === "src" || s === "defaultSrc" ? a[s] : s === "resolve" ? () => a.resolve() : s === "toString" || s === "valueOf" ? () => a.resolve() : a[s],
608
+ has: (a, s) => s === "resolve" ? !0 : s in a
609
+ }) : r instanceof w ? new Proxy(r, {
610
+ get: (a, s) => s === "family" || s === "fallbacks" || s === "options" ? a[s] : s === "resolve" ? () => a.resolve() : s === "toString" || s === "valueOf" ? () => a.resolve() : a[s],
611
+ has: (a, s) => s === "resolve" ? !0 : s in a
612
+ }) : r;
583
613
  },
584
614
  // Add ownKeys handler to support Object.keys() enumeration
585
615
  ownKeys: (t) => Array.from(this.assets.keys()),
@@ -589,129 +619,130 @@ class B {
589
619
  );
590
620
  }
591
621
  }
592
- const $ = new B(), I = $.asProxy(), K = I;
593
- function p(...i) {
622
+ const $ = new V(), I = $.asProxy(), K = I;
623
+ function y(...i) {
594
624
  if (i.length === 0)
595
625
  throw new Error("registerAsset requires at least one argument");
596
626
  const t = i[0], e = i[1];
597
- if (typeof t == "string" && e instanceof g && i.length === 2)
598
- $.add(t, e);
599
- else if (t instanceof g && typeof e == "string" && i.length === 2)
600
- $.add(e, t);
601
- else if (t instanceof g && i.length === 1)
602
- $.add(t.name, t);
603
- else if (t instanceof g && e === void 0 && i.length === 2)
604
- $.add(t.name, t);
605
- else if (t instanceof g && i.length > 1) {
606
- const s = [];
607
- i.forEach((n, r) => {
608
- if (!(n instanceof g))
627
+ if (typeof t == "string" && e instanceof b && i.length === 2)
628
+ return $.add(t, e), e;
629
+ if (t instanceof b && typeof e == "string" && i.length === 2)
630
+ return $.add(e, t), t;
631
+ if (t instanceof b && i.length === 1)
632
+ return $.add(t.name, t), t;
633
+ if (t instanceof b && e === void 0 && i.length === 2)
634
+ return $.add(t.name, t), t;
635
+ if (t instanceof b && i.length > 1) {
636
+ const r = [];
637
+ i.forEach((a, s) => {
638
+ if (!(a instanceof b))
609
639
  throw new Error(
610
- `registerAsset variadic argument at index ${r} must be an Asset`
640
+ `registerAsset variadic argument at index ${s} must be an Asset`
611
641
  );
612
- s.push(n);
613
- }), s.forEach((n) => {
614
- $.add(n.name, n);
642
+ r.push(a);
643
+ }), r.forEach((a) => {
644
+ $.add(a.name, a);
615
645
  });
646
+ return;
616
647
  } else
617
648
  throw new Error(
618
649
  "registerAsset requires either (name, asset), (asset), (asset, overrideName), or (...assets)"
619
650
  );
620
651
  }
621
652
  function J(i, t, e = "") {
622
- return d.init({
653
+ return g.init({
623
654
  default: i,
624
655
  light: i,
625
656
  dark: t,
626
657
  name: e
627
658
  });
628
659
  }
629
- function Q(i, t, e, s = "", n) {
660
+ function Q(i, t, e, r = "", a) {
630
661
  return F.init({
631
662
  default: i,
632
663
  light: t,
633
664
  dark: e,
634
- name: s,
635
- options: n
665
+ name: r,
666
+ options: a
636
667
  });
637
668
  }
638
- function Y(i, t = [], e = "", s) {
639
- return y.init(i, t, e, s);
669
+ function Y(i, t = [], e = "", r) {
670
+ return w.init(i, t, e, r);
640
671
  }
641
672
  function Z() {
642
673
  const i = $.getAll(), t = [];
643
- for (const [e, s] of i) {
644
- let n = "custom";
645
- s instanceof d ? n = "color" : s instanceof F ? n = "image" : s instanceof y && (n = "font"), t.push({
674
+ for (const [e, r] of i) {
675
+ let a = "custom";
676
+ r instanceof g ? a = "color" : r instanceof F ? a = "image" : r instanceof w && (a = "font"), t.push({
646
677
  name: e,
647
- type: n,
648
- asset: s
678
+ type: a,
679
+ asset: r
649
680
  });
650
681
  }
651
- return t.sort((e, s) => e.name.localeCompare(s.name));
682
+ return t.sort((e, r) => e.name.localeCompare(r.name));
652
683
  }
653
684
  function _() {
654
685
  return Array.from($.getAll().keys()).sort();
655
686
  }
656
- p(d.init({
687
+ y(g.init({
657
688
  default: "#007AFF",
658
689
  light: "#007AFF",
659
690
  dark: "#0A84FF",
660
691
  name: "systemBlue"
661
692
  }));
662
- p(d.init({
693
+ y(g.init({
663
694
  default: "#34C759",
664
695
  light: "#34C759",
665
696
  dark: "#30D158",
666
697
  name: "systemGreen"
667
698
  }));
668
- p(d.init({
699
+ y(g.init({
669
700
  default: "#FF3B30",
670
701
  light: "#FF3B30",
671
702
  dark: "#FF453A",
672
703
  name: "systemRed"
673
704
  }));
674
- p(d.init({
705
+ y(g.init({
675
706
  default: "#FF9500",
676
707
  light: "#FF9500",
677
708
  dark: "#FF9F0A",
678
709
  name: "systemOrange"
679
710
  }));
680
- p(d.init({
711
+ y(g.init({
681
712
  default: "#5856D6",
682
713
  light: "#5856D6",
683
714
  dark: "#5E5CE6",
684
715
  name: "systemPurple"
685
716
  }));
686
- p(d.init({
717
+ y(g.init({
687
718
  default: "#FF2D55",
688
719
  light: "#FF2D55",
689
720
  dark: "#FF375F",
690
721
  name: "systemPink"
691
722
  }));
692
- p(d.init({
723
+ y(g.init({
693
724
  default: "#8E8E93",
694
725
  name: "systemGray"
695
726
  }));
696
- p(d.init({
727
+ y(g.init({
697
728
  default: "#000000",
698
729
  name: "systemBlack"
699
730
  }));
700
- p(d.init({
731
+ y(g.init({
701
732
  default: "#FFFFFF",
702
733
  name: "systemWhite"
703
734
  }));
704
735
  export {
705
- g as Asset,
736
+ b as Asset,
706
737
  K as Assets,
707
- d as ColorAsset,
708
- y as FontAsset,
738
+ g as ColorAsset,
739
+ w as FontAsset,
709
740
  D as FontWeight,
710
741
  q as FontWidth,
711
742
  F as ImageAsset,
712
743
  rt as LinearGradient,
713
744
  st as RadialGradient,
714
- nt as StateGradient,
745
+ at as StateGradient,
715
746
  R as SystemFonts,
716
747
  J as createColorAsset,
717
748
  Y as createFontAsset,
@@ -721,5 +752,5 @@ export {
721
752
  j as createVariableFont,
722
753
  Z as getAssetInfo,
723
754
  _ as listAssetNames,
724
- p as registerAsset
755
+ y as registerAsset
725
756
  };
@@ -4,7 +4,7 @@
4
4
  * Provides wrapper functions to enhance regular components with modifier support
5
5
  * and integrate them with the TachUI modifier system.
6
6
  */
7
- import type { ModifiableComponent, ModifierBuilder, ModifiableComponentWithModifiers } from '../modifiers/types';
7
+ import type { ModifiableComponent, Modifier, ModifierBuilder, ModifiableComponentWithModifiers } from '../modifiers/types';
8
8
  import type { ComponentInstance, ComponentProps, DOMNode, CloneableComponent, CloneOptions } from '../runtime/types';
9
9
  import { type ElementOverrideProps } from '../runtime/element-override';
10
10
  import { ComponentWithCSSClasses, type CSSClassesProps } from '../css-classes';
@@ -115,25 +115,10 @@ export declare function wrapComponent<P extends ComponentProps>(component: Compo
115
115
  /**
116
116
  * Higher-order component wrapper
117
117
  */
118
- export declare function withModifierSupport<P extends ComponentProps>(ComponentClass: new (props: P) => ComponentInstance<P>): {
119
- new (props: P): {
120
- _modifiableComponent?: ModifiableComponent<P>;
121
- get modifier(): ModifierBuilder<ModifiableComponent<P>>;
122
- get modifiers(): any;
123
- type: "component";
124
- render: import("packages/types/dist/runtime").RenderFunction;
125
- props: P;
126
- prevProps?: P | undefined;
127
- children?: import("packages/types/dist/runtime").ComponentChildren;
128
- context?: import("packages/types/dist/runtime").ComponentContext;
129
- cleanup?: import("packages/types/dist/runtime").LifecycleCleanup[];
130
- id: string;
131
- ref?: import("packages/types/dist/runtime").Ref | undefined;
132
- mounted?: boolean;
133
- domElements?: Map<string, Element>;
134
- primaryElement?: Element;
135
- domReady?: boolean;
136
- };
118
+ export declare function withModifierSupport<P extends ComponentProps>(ComponentClass: new (props: P) => ComponentInstance<P>): new (props: P) => ComponentInstance<P> & {
119
+ _modifiableComponent?: ModifiableComponent<P>;
120
+ readonly modifier: ModifierBuilder<ModifiableComponent<P>>;
121
+ readonly modifiers: Modifier[];
137
122
  };
138
123
  /**
139
124
  * Factory function for creating modifiable components
@@ -1 +1 @@
1
- {"version":3,"file":"wrapper.d.ts","sourceRoot":"","sources":["../../src/components/wrapper.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EACf,gCAAgC,EACjC,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,OAAO,EACP,kBAAkB,EAClB,YAAY,EACb,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,uBAAuB,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAO9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAS5D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,yBAAyB,CAAC,EAAE,OAAO,CAAA;CACpC;AAED,MAAM,WAAW,eACf,SAAQ,cAAc,EACpB,oBAAoB,EACpB,eAAe;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAA;CAC/B;AAED,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAA;CAC9C;AAED,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAA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W,GAAE,GAAQ;IAiH/B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IA0D5B,MAAM;;;;;;;;;;;;;;;;IAyTN,KAAK,CAAC,OAAO,GAAE,YAAiB,GAAG,IAAI;IAIvC,YAAY,IAAI,IAAI;IAgBpB,SAAS,IAAI,IAAI;CAyBlB;AAED;;GAEG;AACH,eAAO,MAAM,MAAM;IACjB;;OAEG;qBACa,iBAAiB;;;IAejC;;OAEG;qBACa,iBAAiB;;;IAejC;;OAEG;qBACa,iBAAiB;;;CAgBlC,CAAA;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,cAAc,EACpD,SAAS,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAC9B,mBAAmB,CAAC,CAAC,CAAC,GAAG;IAC1B,QAAQ,EAAE,eAAe,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAA;CAClD,CAEA;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,cAAc,EAC1D,cAAc,EAAE,KAAK,KAAK,EAAE,CAAC,KAAK,iBAAiB,CAAC,CAAC,CAAC,GACrD,KAAK,KAAK,EAAE,CAAC,KAAK,iBAAiB,CAAC,CAAC,CAAC,GAAG;IAC1C,oBAAoB,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAA;IAC7C,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAA;IAC1D,QAAQ,CAAC,SAAS,EAAE,QAAQ,EAAE,CAAA;CAC/B,CA2CA;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,CAAC,SAAS,cAAc,EACvE,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,GAAG,OAAO,EAAE,IAEnC,OAAO,CAAC;;EAejB"}
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import { ComputationImpl } from './context';
8
8
  import { type EqualityFunction } from './equality';
9
- import type { Computation, Signal } from './types';
9
+ import type { Computation, Owner, Signal } from './types';
10
10
  import { type ReactiveNode, UpdatePriority } from './unified-scheduler';
11
11
  export interface ComputedOptions<T> {
12
12
  equals?: EqualityFunction<T>;
@@ -25,7 +25,7 @@ declare class ComputedImpl<T> extends ComputationImpl implements ReactiveNode {
25
25
  private _error;
26
26
  private equalsFn;
27
27
  private options;
28
- constructor(fn: () => T, options?: ComputedOptions<T>, owner?: import("packages/types/dist/reactive").Owner | null);
28
+ constructor(fn: () => T, options?: ComputedOptions<T>, owner?: Owner | null);
29
29
  /**
30
30
  * Get the computed value, tracking dependency and lazily computing
31
31
  */
@@ -1 +1 @@
1
- {"version":3,"file":"computed.d.ts","sourceRoot":"","sources":["../../src/reactive/computed.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,eAAe,EAA0C,MAAM,WAAW,CAAA;AACnF,OAAO,EAAiB,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAA;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAElD,OAAO,EAAE,KAAK,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEvE,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAA;IAC5B,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,CAAC,CAAA;IAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AAED;;GAEG;AACH,cAAM,YAAY,CAAC,CAAC,CAAE,SAAQ,eAAgB,YAAW,YAAY;IACnE,QAAQ,CAAC,IAAI,EAAG,UAAU,CAAS;IACnC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAA;IAEjC,OAAO,CAAC,SAAS,CAAQ;IACzB,OAAO,CAAC,MAAM,CAAq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ACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,CAenF;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CAiBxF;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAA"}
@@ -55,16 +55,14 @@ export declare function getComponentFromElement(element: Element): ComponentInst
55
55
  /**
56
56
  * Debug utilities for DOM bridge
57
57
  */
58
- export declare const DOMBridgeDebug: {
59
- getMountedComponents: () => [Element, ComponentInstance<import("packages/types/dist/runtime").ComponentProps>][];
60
- getComponentElements: (component: ComponentInstance) => Element[] | undefined;
61
- isComponentMounted: (component: ComponentInstance) => boolean;
62
- /**
63
- * Validate that all components are properly mounted
64
- */
58
+ export interface DOMBridgeDebugAPI {
59
+ getMountedComponents(): Array<[Element, ComponentInstance]>;
60
+ getComponentElements(component: ComponentInstance): Element[] | undefined;
61
+ isComponentMounted(component: ComponentInstance): boolean;
65
62
  validateMounting(): {
66
63
  valid: boolean;
67
64
  issues: string[];
68
65
  };
69
- };
66
+ }
67
+ export declare const DOMBridgeDebug: DOMBridgeDebugAPI;
70
68
  //# sourceMappingURL=dom-bridge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dom-bridge.d.ts","sourceRoot":"","sources":["../../src/runtime/dom-bridge.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAUH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAkBhD;;GAEG;AACH,wBAAgB,mCAAmC,CACjD,SAAS,EAAE,iBAAiB,GAC3B,IAAI,CAIN;AAwED;;;;;;;;;;;;;;;;;GAiBG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n = c, t = o, s = o;
2
2
  export {
3
3
  n as TACHUI_PACKAGE,
4
4
  t as TACHUI_PACKAGE_VERSION,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tachui/core",
3
- "version": "0.8.18",
3
+ "version": "0.8.20",
4
4
  "description": "tachUI core framework with reactive system and compiler",
5
5
  "homepage": "https://tachui.dev/",
6
6
  "type": "module",
@@ -141,8 +141,8 @@
141
141
  "dist"
142
142
  ],
143
143
  "dependencies": {
144
- "@tachui/types": "0.8.18",
145
- "@tachui/registry": "0.8.18"
144
+ "@tachui/types": "0.8.20",
145
+ "@tachui/registry": "0.8.20"
146
146
  },
147
147
  "devDependencies": {
148
148
  "@types/jsdom": "^21.1.6",