@tachui/primitives 0.8.17 → 0.8.18
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { withModifiers as f, ComponentWithCSSClasses as V, processElementOverride as D, createSignal as
|
|
1
|
+
import { withModifiers as f, ComponentWithCSSClasses as V, processElementOverride as D, createSignal as w, useLifecycle as k, registerComponentWithLifecycleHooks as F, h as v, createEffect as y, ConcatenatedComponent as A, sanitizeSVG as N, text as Y, isSignal as b } from "@tachui/core";
|
|
2
2
|
import { isSignal as x, isComputed as z } from "@tachui/core/reactive";
|
|
3
3
|
import { aspectRatio as $ } from "@tachui/modifiers";
|
|
4
4
|
var B = Object.defineProperty, j = (e, t, s) => t in e ? B(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, m = (e, t, s) => j(e, typeof t != "symbol" ? t + "" : t, s);
|
|
@@ -49,18 +49,25 @@ class J extends V {
|
|
|
49
49
|
this.loadingStateSignal = this.props.loadingState, this.setLoadingState = (o) => {
|
|
50
50
|
};
|
|
51
51
|
else {
|
|
52
|
-
const o = this.props.src ? "idle" : "error", [i, r] =
|
|
52
|
+
const o = this.props.src ? "idle" : "error", [i, r] = w(o);
|
|
53
53
|
this.loadingStateSignal = i, this.setLoadingState = r;
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
k(this, {
|
|
56
56
|
onDOMReady: (o, i) => {
|
|
57
|
-
|
|
57
|
+
const r = this.props.renderingMode ?? "original";
|
|
58
|
+
if (r === "template" && i instanceof HTMLSpanElement) {
|
|
58
59
|
this.setupTemplateModeReactivityForDOMElement(i);
|
|
59
60
|
return;
|
|
60
61
|
}
|
|
62
|
+
if (r === "template") {
|
|
63
|
+
process.env.NODE_ENV !== "production" && console.warn(
|
|
64
|
+
"Image(template): expected HTMLSpanElement primary element; skipping mismatched lifecycle binding."
|
|
65
|
+
), this.setLoadingStateWithCallback("error"), this.props.onError?.(new Event("error"));
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
61
68
|
i instanceof HTMLImageElement && this.setupLoadingStateReactivityForDOMElement(i);
|
|
62
69
|
}
|
|
63
|
-
}),
|
|
70
|
+
}), F(this);
|
|
64
71
|
}
|
|
65
72
|
/**
|
|
66
73
|
* Set loading state and notify callback
|
|
@@ -332,7 +339,7 @@ class S {
|
|
|
332
339
|
];
|
|
333
340
|
}
|
|
334
341
|
}
|
|
335
|
-
const
|
|
342
|
+
const E = {
|
|
336
343
|
/**
|
|
337
344
|
* Create a div element with modifier support
|
|
338
345
|
*/
|
|
@@ -439,7 +446,7 @@ const w = {
|
|
|
439
446
|
);
|
|
440
447
|
return f(s);
|
|
441
448
|
}
|
|
442
|
-
}, ct =
|
|
449
|
+
}, ct = E.heading(1), ht = E.heading(2), dt = E.heading(3), pt = E.heading(4), ft = E.heading(5), ut = E.heading(6);
|
|
443
450
|
var Q = Object.defineProperty, tt = (e, t, s) => t in e ? Q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, l = (e, t, s) => tt(e, typeof t != "symbol" ? t + "" : t, s);
|
|
444
451
|
class et {
|
|
445
452
|
constructor(t) {
|
|
@@ -494,18 +501,18 @@ class et {
|
|
|
494
501
|
this.setPullToRefreshState("idle");
|
|
495
502
|
this.isPulling = !1;
|
|
496
503
|
}), this.id = `scrollview-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, this.scrollEventThrottle = t.scrollEventThrottle || 16;
|
|
497
|
-
const [s, o] =
|
|
504
|
+
const [s, o] = w(
|
|
498
505
|
{ x: 0, y: 0 }
|
|
499
506
|
);
|
|
500
507
|
this.contentOffsetSignal = s, this.setContentOffset = o;
|
|
501
|
-
const [i, r] =
|
|
508
|
+
const [i, r] = w({
|
|
502
509
|
width: 0,
|
|
503
510
|
height: 0
|
|
504
511
|
});
|
|
505
512
|
this.contentSizeSignal = i, this.setContentSize = r;
|
|
506
|
-
const [, n] =
|
|
513
|
+
const [, n] = w(!1);
|
|
507
514
|
this.setIsScrolling = n;
|
|
508
|
-
const [p, u] =
|
|
515
|
+
const [p, u] = w("idle");
|
|
509
516
|
if (this.pullToRefreshStateSignal = p, this.setPullToRefreshState = u, t.contentOffset && b(t.contentOffset)) {
|
|
510
517
|
this.setContentOffset(t.contentOffset());
|
|
511
518
|
const h = y(() => {
|
|
@@ -816,7 +823,7 @@ const gt = {
|
|
|
816
823
|
};
|
|
817
824
|
export {
|
|
818
825
|
J as E,
|
|
819
|
-
|
|
826
|
+
E as H,
|
|
820
827
|
P as I,
|
|
821
828
|
_ as S,
|
|
822
829
|
nt as a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../src/display/Image.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EACf,gCAAgC,EACjC,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAG1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAErE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAK1D,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAEjB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAA0B,KAAK,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAChF,OAAO,EAAE,uBAAuB,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAA;AAG5E,KAAK,cAAc,GAAG,UAAU,GAAG,eAAe,CAAA;AAClD,KAAK,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,cAAc,CAAA;AAC3D,KAAK,kBAAkB,GAAG,UAAU,GAAG,UAA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GAAG,gBAAgB,CAAC,GAClE,mBAAmB,CAAC,UAAU,CAAC,GAAG;QACnC,QAAQ,EAAE,eAAe,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAA;KAC3D;IAQD;;OAEG;yBAEI,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,kBACZ,MAAM,UACf,IAAI,CAAC,UAAU,EAAE,KAAK,GAAG,aAAa,CAAC,GAC7C,mBAAmB,CAAC,UAAU,CAAC,GAAG;QACnC,QAAQ,EAAE,eAAe,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAA;KAC3D;CAMF,CAAA"}
|
package/dist/display/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as e, H as t, T as o, a as H, b as l, c as n } from "../Text-WpP4H9se.js";
|
|
2
|
-
import { E as c, j as g, d as m, e as i, f as T, g as d, h as x, i as I, H as S, I as h, b as E, a as p, c as f, S as w, k as y } from "../ScrollView-
|
|
2
|
+
import { E as c, j as g, d as m, e as i, f as T, g as d, h as x, i as I, H as S, I as h, b as E, a as p, c as f, S as w, k as y } from "../ScrollView-4WhOoZol.js";
|
|
3
3
|
export {
|
|
4
4
|
c as EnhancedImage,
|
|
5
5
|
g as EnhancedScrollView,
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Divider as b, DividerComponent as P, DividerStyles as I, DividerUtils as y, HStack as j, Spacer as S, SpacerComponent as A, VStack as L, ZStack as C, defaultDividerTheme as V } from "./layout/index.js";
|
|
2
2
|
import { E as O, H as E, T as $, a as F, b as q, c as U } from "./Text-WpP4H9se.js";
|
|
3
|
-
import { E as N, j as _, d as W, e as R, f as M, g as G, h as K, i as Z, H as z, I as J, b as Q, a as X, c as Y, S as ee, k as te } from "./ScrollView-
|
|
3
|
+
import { E as N, j as _, d as W, e as R, f as M, g as G, h as K, i as Z, H as z, I as J, b as Q, a as X, c as Y, S as ee, k as te } from "./ScrollView-4WhOoZol.js";
|
|
4
4
|
import { B as ne, a as ie, E as re, h as ae, c as se, L as ce, b as le, P as pe, i as de, j as ge, T as ue, e as me, f as he, g as fe, d as ve } from "./Picker-CpERkpVp.js";
|
|
5
5
|
import { B as xe, a as ke, b as Be, c as Te, d as be, e as Pe, f as Ie } from "./BasicInput-BHfrSdoi.js";
|
|
6
6
|
import { withModifiers as je } from "@tachui/core";
|
|
@@ -425,7 +425,7 @@ const w = {
|
|
|
425
425
|
}
|
|
426
426
|
console.groupEnd();
|
|
427
427
|
}
|
|
428
|
-
}, h = "@tachui/primitives", f = "0.8.
|
|
428
|
+
}, h = "@tachui/primitives", f = "0.8.18", x = h, k = f;
|
|
429
429
|
export {
|
|
430
430
|
xe as BasicForm,
|
|
431
431
|
ke as BasicFormImplementation,
|
package/dist/layout/Spacer.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SwiftUI-inspired Spacer component that expands to fill available space
|
|
5
5
|
* along the main axis of its container. Behaves like SwiftUI.Spacer.
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
7
|
+
import type { ModifiableComponentWithModifiers } from '@tachui/core';
|
|
8
8
|
import type { ComponentProps, DOMNode } from '@tachui/core';
|
|
9
9
|
import { ComponentWithCSSClasses, type CSSClassesProps } from '@tachui/core';
|
|
10
10
|
import type { CloneableComponent, CloneOptions } from '@tachui/core/runtime/types';
|
|
@@ -32,10 +32,6 @@ export declare class SpacerComponent extends ComponentWithCSSClasses implements
|
|
|
32
32
|
/**
|
|
33
33
|
* Create a Spacer component with optional minimum length
|
|
34
34
|
*/
|
|
35
|
-
export declare function Spacer(minLength?: number):
|
|
36
|
-
|
|
37
|
-
};
|
|
38
|
-
export declare function Spacer(props?: SpacerProps): ModifiableComponent<SpacerProps> & {
|
|
39
|
-
modifier: ModifierBuilder<ModifiableComponent<SpacerProps>>;
|
|
40
|
-
};
|
|
35
|
+
export declare function Spacer(minLength?: number): ModifiableComponentWithModifiers<SpacerProps>;
|
|
36
|
+
export declare function Spacer(props?: SpacerProps): ModifiableComponentWithModifiers<SpacerProps>;
|
|
41
37
|
//# sourceMappingURL=Spacer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spacer.d.ts","sourceRoot":"","sources":["../../src/layout/Spacer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Spacer.d.ts","sourceRoot":"","sources":["../../src/layout/Spacer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,cAAc,CAAA;AAEpE,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3D,OAAO,EAAE,uBAAuB,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAMlF;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,cAAc,EAAE,eAAe;IAClE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,qBAAa,eACX,SAAQ,uBACR,YAAW,kBAAkB,CAAC,WAAW,CAAC;IAE1C,SAAgB,IAAI,EAAG,WAAW,CAAS;IAC3C,SAAgB,EAAE,EAAE,MAAM,CAAA;IAC1B,SAAgB,KAAK,EAAE,WAAW,CAAA;IAC3B,OAAO,UAAQ;IACf,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,EAAE,CAAK;gBAEvB,KAAK,EAAE,WAAW;IAM9B,MAAM,IAAI,OAAO;IAgCjB,KAAK,CAAC,OAAO,GAAE,YAAiB,GAAG,IAAI;IAIvC,YAAY,IAAI,IAAI;IAOpB,SAAS,IAAI,IAAI;CAQlB;AAED;;GAEG;AACH,wBAAgB,MAAM,CACpB,SAAS,CAAC,EAAE,MAAM,GACjB,gCAAgC,CAAC,WAAW,CAAC,CAAA;AAChD,wBAAgB,MAAM,CACpB,KAAK,CAAC,EAAE,WAAW,GAClB,gCAAgC,CAAC,WAAW,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachui/primitives",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.18",
|
|
4
4
|
"description": "Basic UI components for tachUI framework",
|
|
5
5
|
"homepage": "https://tachui.dev/",
|
|
6
6
|
"type": "module",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"dist"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@tachui/core": "0.8.
|
|
37
|
-
"@tachui/modifiers": "0.8.
|
|
36
|
+
"@tachui/core": "0.8.18",
|
|
37
|
+
"@tachui/modifiers": "0.8.18"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^20.0.0",
|