@tachui/modifiers 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.
- package/README.md +19 -9
- package/dist/animation/index.d.ts +11 -0
- package/dist/animation/index.d.ts.map +1 -0
- package/dist/appearance/background.d.ts +23 -6
- package/dist/appearance/background.d.ts.map +1 -1
- package/dist/appearance/border.d.ts +2 -2
- package/dist/appearance/border.d.ts.map +1 -1
- package/dist/appearance/clip-shape.d.ts +2 -2
- package/dist/appearance/clip-shape.d.ts.map +1 -1
- package/dist/appearance/clipped.d.ts +2 -2
- package/dist/appearance/clipped.d.ts.map +1 -1
- package/dist/appearance/foreground.d.ts +14 -5
- package/dist/appearance/foreground.d.ts.map +1 -1
- package/dist/appearance/index.js +11 -12
- package/dist/appearance/reactive-factories.d.ts +20 -0
- package/dist/appearance/reactive-factories.d.ts.map +1 -0
- package/dist/attributes/accessibility.d.ts +10 -0
- package/dist/attributes/accessibility.d.ts.map +1 -0
- package/dist/attributes/aria.d.ts +2 -2
- package/dist/attributes/aria.d.ts.map +1 -1
- package/dist/attributes/css-properties.d.ts +2 -2
- package/dist/attributes/css-properties.d.ts.map +1 -1
- package/dist/attributes/html.d.ts +2 -2
- package/dist/attributes/html.d.ts.map +1 -1
- package/dist/attributes/index.d.ts +1 -0
- package/dist/attributes/index.d.ts.map +1 -1
- package/dist/base.d.ts +6 -7
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +9 -840
- package/dist/basic/animation.d.ts +41 -0
- package/dist/basic/animation.d.ts.map +1 -0
- package/dist/basic/base.d.ts +7 -8
- package/dist/basic/base.d.ts.map +1 -1
- package/dist/basic/index.d.ts +19 -2
- package/dist/basic/index.d.ts.map +1 -1
- package/dist/basic/index.js +252 -0
- package/dist/basic/margin.d.ts +2 -2
- package/dist/basic/margin.d.ts.map +1 -1
- package/dist/basic/margin.js +13 -158
- package/dist/basic/padding.d.ts +2 -2
- package/dist/basic/padding.d.ts.map +1 -1
- package/dist/basic/padding.js +13 -153
- package/dist/basic/size.d.ts +2 -2
- package/dist/basic/size.d.ts.map +1 -1
- package/dist/basic/size.js +10 -76
- package/dist/effects/backdrop/index.d.ts +60 -0
- package/dist/effects/backdrop/index.d.ts.map +1 -0
- package/dist/effects/backdrop/index.js +118 -0
- package/dist/effects/effects/index.d.ts +190 -0
- package/dist/effects/effects/index.d.ts.map +1 -0
- package/dist/effects/filters/index.d.ts +297 -0
- package/dist/effects/filters/index.d.ts.map +1 -0
- package/dist/effects/filters/index.js +234 -0
- package/dist/effects/index.d.ts +14 -0
- package/dist/effects/index.d.ts.map +1 -0
- package/dist/effects/index.js +373 -0
- package/dist/effects/internal-exports.d.ts +9 -0
- package/dist/effects/internal-exports.d.ts.map +1 -0
- package/dist/effects/shadows/index.d.ts +316 -0
- package/dist/effects/shadows/index.d.ts.map +1 -0
- package/dist/effects/shadows/index.js +405 -0
- package/dist/effects/transforms/index.d.ts +316 -0
- package/dist/effects/transforms/index.d.ts.map +1 -0
- package/dist/effects/transforms/index.js +193 -0
- package/dist/elements/pseudo-elements.d.ts +2 -2
- package/dist/elements/pseudo-elements.d.ts.map +1 -1
- package/dist/essential-manifest.d.ts +5 -0
- package/dist/essential-manifest.d.ts.map +1 -0
- package/dist/index.d.ts +10 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +273 -881
- package/dist/interaction/allows-hit-testing.d.ts +1 -1
- package/dist/interaction/allows-hit-testing.d.ts.map +1 -1
- package/dist/interaction/dom-events.d.ts +35 -0
- package/dist/interaction/dom-events.d.ts.map +1 -0
- package/dist/interaction/focus-events.d.ts +54 -0
- package/dist/interaction/focus-events.d.ts.map +1 -0
- package/dist/interaction/focusable.d.ts +1 -1
- package/dist/interaction/focusable.d.ts.map +1 -1
- package/dist/interaction/focused.d.ts +1 -1
- package/dist/interaction/focused.d.ts.map +1 -1
- package/dist/interaction/index.d.ts +5 -0
- package/dist/interaction/index.d.ts.map +1 -1
- package/dist/interaction/index.js +75 -28
- package/dist/interaction/keyboard-events.d.ts +69 -0
- package/dist/interaction/keyboard-events.d.ts.map +1 -0
- package/dist/interaction/keyboard-shortcut.d.ts +1 -1
- package/dist/interaction/keyboard-shortcut.d.ts.map +1 -1
- package/dist/interaction/mouse-events.d.ts +125 -0
- package/dist/interaction/mouse-events.d.ts.map +1 -0
- package/dist/interaction/on-continuous-hover.d.ts +1 -1
- package/dist/interaction/on-continuous-hover.d.ts.map +1 -1
- package/dist/interaction/on-hover.d.ts +30 -0
- package/dist/interaction/on-hover.d.ts.map +1 -0
- package/dist/interaction/on-long-press-gesture.d.ts +1 -1
- package/dist/interaction/on-long-press-gesture.d.ts.map +1 -1
- package/dist/interaction/scroll.d.ts +2 -2
- package/dist/interaction/scroll.d.ts.map +1 -1
- package/dist/layout/aspect-ratio.d.ts +2 -2
- package/dist/layout/aspect-ratio.d.ts.map +1 -1
- package/dist/layout/fixed-size.d.ts +2 -2
- package/dist/layout/fixed-size.d.ts.map +1 -1
- package/dist/layout/flexbox.d.ts +2 -2
- package/dist/layout/flexbox.d.ts.map +1 -1
- package/dist/layout/frame.d.ts +13 -0
- package/dist/layout/frame.d.ts.map +1 -0
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.d.ts.map +1 -1
- package/dist/layout/index.js +25 -22
- package/dist/layout/offset.d.ts +2 -2
- package/dist/layout/offset.d.ts.map +1 -1
- package/dist/layout/overlay.d.ts +1 -1
- package/dist/layout/overlay.d.ts.map +1 -1
- package/dist/layout/position.d.ts +2 -2
- package/dist/layout/position.d.ts.map +1 -1
- package/dist/layout/resizable.d.ts +6 -0
- package/dist/layout/resizable.d.ts.map +1 -0
- package/dist/layout/scale-effect.d.ts +6 -5
- package/dist/layout/scale-effect.d.ts.map +1 -1
- package/dist/layout/z-index.d.ts +2 -2
- package/dist/layout/z-index.d.ts.map +1 -1
- package/dist/lifecycle/index.d.ts +6 -0
- package/dist/lifecycle/index.d.ts.map +1 -0
- package/dist/modifiers-basic-DLmE749_.js +5604 -0
- package/dist/navigation/index.d.ts +12 -0
- package/dist/navigation/index.d.ts.map +1 -0
- package/dist/preload/backdrop.d.ts +5 -0
- package/dist/preload/backdrop.d.ts.map +1 -0
- package/dist/preload/backdrop.js +7 -0
- package/dist/preload/basic.d.ts +7 -0
- package/dist/preload/basic.d.ts.map +1 -0
- package/dist/preload/basic.js +251 -0
- package/dist/preload/effects.d.ts +6 -0
- package/dist/preload/effects.d.ts.map +1 -0
- package/dist/preload/effects.js +95 -0
- package/dist/preload/filters.d.ts +6 -0
- package/dist/preload/filters.d.ts.map +1 -0
- package/dist/preload/filters.js +31 -0
- package/dist/preload/shadows.d.ts +5 -0
- package/dist/preload/shadows.d.ts.map +1 -0
- package/dist/preload/shadows.js +27 -0
- package/dist/preload/transforms.d.ts +5 -0
- package/dist/preload/transforms.d.ts.map +1 -0
- package/dist/preload/transforms.js +30 -0
- package/dist/types.d.ts +7 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +0 -1
- package/dist/typography/font.d.ts +5 -2
- package/dist/typography/font.d.ts.map +1 -1
- package/dist/typography/index.d.ts +1 -0
- package/dist/typography/index.d.ts.map +1 -1
- package/dist/typography/index.js +26 -28
- package/dist/typography/text.d.ts +2 -2
- package/dist/typography/text.d.ts.map +1 -1
- package/dist/typography/text.js +9 -127
- package/dist/typography/typography.d.ts +6 -4
- package/dist/typography/typography.d.ts.map +1 -1
- package/dist/utility/as-html-validator.d.ts +20 -0
- package/dist/utility/as-html-validator.d.ts.map +1 -0
- package/dist/utility/as-html.d.ts +65 -0
- package/dist/utility/as-html.d.ts.map +1 -0
- package/dist/utility/basic-sanitizer.d.ts +54 -0
- package/dist/utility/basic-sanitizer.d.ts.map +1 -0
- package/dist/utility/css.d.ts +2 -2
- package/dist/utility/css.d.ts.map +1 -1
- package/dist/utility/index.d.ts +3 -0
- package/dist/utility/index.d.ts.map +1 -1
- package/dist/utility/index.js +19 -15
- package/dist/utility/utility.d.ts +2 -2
- package/dist/utility/utility.d.ts.map +1 -1
- package/dist/version.d.ts +14 -0
- package/dist/version.d.ts.map +1 -0
- package/package.json +59 -4
- package/dist/allows-hit-testing-DscPrcOw.js +0 -464
- package/dist/allows-hit-testing-DscPrcOw.js.map +0 -1
- package/dist/appearance/index.js.map +0 -1
- package/dist/base-CkGf4b9G.js +0 -786
- package/dist/base-CkGf4b9G.js.map +0 -1
- package/dist/base.js.map +0 -1
- package/dist/basic/margin.js.map +0 -1
- package/dist/basic/padding.js.map +0 -1
- package/dist/basic/size.js.map +0 -1
- package/dist/clipped-CCW8gJqJ.js +0 -282
- package/dist/clipped-CCW8gJqJ.js.map +0 -1
- package/dist/css-CJEXRr6H.js +0 -124
- package/dist/css-CJEXRr6H.js.map +0 -1
- package/dist/font-3qM2Z97N.js +0 -135
- package/dist/font-3qM2Z97N.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/interaction/index.js.map +0 -1
- package/dist/layout/index.js.map +0 -1
- package/dist/overlay-DDiSLprp.js +0 -774
- package/dist/overlay-DDiSLprp.js.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/typography/index.js.map +0 -1
- package/dist/typography/text.js.map +0 -1
- package/dist/utility/index.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,885 +1,277 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { l as w, n as S, o as M, r as T, p as C, s as $, z as P } from "./overlay-DDiSLprp.js";
|
|
9
|
-
import { A as Tt, m as Ct, F as $t, O as Pt, q as Rt, P as Et, S as Bt, Z as Vt, d as kt, e as zt, c as Dt, h as Ot, a as Lt, b as Nt, i as Ut, f as Ht, k as jt, g as Wt, j as Ft } from "./overlay-DDiSLprp.js";
|
|
10
|
-
import { f as R, g as E, h as B, u as V } from "./css-CJEXRr6H.js";
|
|
11
|
-
import { C as qt, U as Gt, i as Zt, c as _t, d as Xt, b as Yt, e as Jt, a as Qt, o as er } from "./css-CJEXRr6H.js";
|
|
12
|
-
import { b as k, i as z, y as D, A as O, v as L } from "./clipped-CCW8gJqJ.js";
|
|
13
|
-
import { a as rr, B as ir, h as or, x as ar, z as nr, C as sr, F as dr, c as lr, d as cr, e as fr, l as pr, q as ur, n as mr, m as gr, k as br, j as hr, p as yr, t as Ir, u as xr, w as vr, f as Ar, g as wr, o as Sr, r as Mr, s as Tr } from "./clipped-CCW8gJqJ.js";
|
|
14
|
-
import { t as N, a as U, j as H } from "./font-3qM2Z97N.js";
|
|
15
|
-
import { T as $r, k as Pr, i as Rr, f as Er, d as Br, e as Vr, l as kr, o as zr, s as Dr, h as Or, c as Lr, g as Nr, b as Ur, w as Hr } from "./font-3qM2Z97N.js";
|
|
16
|
-
import { lineClamp as j, wordBreak as W } from "./typography/text.js";
|
|
17
|
-
import { HyphensModifier as Wr, LineClampModifier as Fr, OverflowWrapModifier as Kr, WordBreakModifier as qr, hyphens as Gr, overflowWrap as Zr } from "./typography/text.js";
|
|
18
|
-
import { u as F, l as K, m as q, n as G, i as Z, k as _, q as X, g as Y, s as J, a as Q, o as ee, b as te, c as re, d as ie, e as oe, f as ae } from "./allows-hit-testing-DscPrcOw.js";
|
|
19
|
-
import { A as Xr, j as Yr, F as Jr, K as Qr, p as ei, O as ti, S as ri, w as ii, v as oi, h as ai, t as ni, r as si } from "./allows-hit-testing-DscPrcOw.js";
|
|
20
|
-
import { padding as ne, paddingTop as se, paddingBottom as de, paddingLeft as le, paddingRight as ce, paddingLeading as fe, paddingTrailing as pe, paddingHorizontal as ue, paddingVertical as me } from "./basic/padding.js";
|
|
21
|
-
import { PaddingModifier as li, paddingPresets as ci } from "./basic/padding.js";
|
|
22
|
-
import { margin as ge, marginTop as be, marginBottom as he, marginLeft as ye, marginRight as Ie, marginLeading as xe, marginTrailing as ve, marginHorizontal as Ae, marginVertical as we } from "./basic/margin.js";
|
|
23
|
-
import { MarginModifier as pi, marginPresets as ui } from "./basic/margin.js";
|
|
24
|
-
import { size as Se, width as Me, height as Te, maxWidth as Ce, maxHeight as $e, minWidth as Pe, minHeight as Re } from "./basic/size.js";
|
|
25
|
-
import { SizeModifier as gi } from "./basic/size.js";
|
|
26
|
-
import { BaseModifier as Ee } from "./base.js";
|
|
27
|
-
const c = class c extends Ee {
|
|
28
|
-
constructor() {
|
|
29
|
-
super(...arguments);
|
|
30
|
-
s(this, "type", "pseudoElement");
|
|
31
|
-
s(this, "priority", 50);
|
|
32
|
-
}
|
|
33
|
-
apply(e, t) {
|
|
34
|
-
if (!t.element) return;
|
|
35
|
-
const i = `tachui-pseudo-${++c.elementCount}`;
|
|
36
|
-
t.element.classList.add(i), this.properties.before && this.addPseudoElementRule(i, "before", this.properties.before), this.properties.after && this.addPseudoElementRule(i, "after", this.properties.after);
|
|
37
|
-
}
|
|
38
|
-
addPseudoElementRule(e, t, i) {
|
|
39
|
-
const a = this.getOrCreateStyleSheet(), n = this.generatePseudoElementCSS(e, t, i);
|
|
40
|
-
try {
|
|
41
|
-
a.insertRule(n);
|
|
42
|
-
} catch (d) {
|
|
43
|
-
(typeof process > "u" || process.env.NODE_ENV !== "test") && console.warn("Failed to add pseudo-element rule:", d);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
generatePseudoElementCSS(e, t, i) {
|
|
47
|
-
const a = `.${e}::${t}`, n = [];
|
|
48
|
-
return i.content || (i.content = '""'), Object.entries(i).forEach(([d, l]) => {
|
|
49
|
-
if (l !== void 0) {
|
|
50
|
-
const y = this.toCSSProperty(d), I = this.formatCSSValue(d, l);
|
|
51
|
-
n.push(`${y}: ${I}`);
|
|
52
|
-
}
|
|
53
|
-
}), `${a} { ${n.join("; ")} }`;
|
|
54
|
-
}
|
|
55
|
-
formatCSSValue(e, t) {
|
|
56
|
-
return e === "content" ? typeof t == "string" ? !t.startsWith('"') && !t.startsWith("'") ? `"${t.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"` : t : '""' : typeof t == "number" ? [
|
|
57
|
-
"opacity",
|
|
58
|
-
"z-index",
|
|
59
|
-
"line-height",
|
|
60
|
-
"flex-grow",
|
|
61
|
-
"flex-shrink",
|
|
62
|
-
"order",
|
|
63
|
-
"column-count",
|
|
64
|
-
"font-weight"
|
|
65
|
-
].includes(this.toCSSProperty(e)) ? String(t) : `${t}px` : String(t);
|
|
66
|
-
}
|
|
67
|
-
getOrCreateStyleSheet() {
|
|
68
|
-
const e = document.getElementById(
|
|
69
|
-
c.styleSheetId
|
|
70
|
-
);
|
|
71
|
-
if (e && e instanceof HTMLStyleElement)
|
|
72
|
-
return e.sheet;
|
|
73
|
-
const t = document.createElement("style");
|
|
74
|
-
t.id = c.styleSheetId;
|
|
75
|
-
try {
|
|
76
|
-
document.head.appendChild(t);
|
|
77
|
-
} catch (i) {
|
|
78
|
-
(typeof process > "u" || process.env.NODE_ENV !== "test") && console.warn("Failed to append stylesheet to document.head:", i);
|
|
79
|
-
}
|
|
80
|
-
return t.sheet;
|
|
81
|
-
}
|
|
82
|
-
toCSSProperty(e) {
|
|
83
|
-
return e.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
// High priority to ensure pseudo-elements are applied last
|
|
87
|
-
s(c, "styleSheetId", "tachui-pseudo-elements"), s(c, "elementCount", 0);
|
|
88
|
-
let f = c;
|
|
89
|
-
function p(r) {
|
|
90
|
-
return new f({ before: r });
|
|
91
|
-
}
|
|
92
|
-
function m(r) {
|
|
93
|
-
return new f({ after: r });
|
|
94
|
-
}
|
|
95
|
-
function Be(r) {
|
|
96
|
-
return new f(r);
|
|
97
|
-
}
|
|
98
|
-
function Ve(r, o = {}) {
|
|
99
|
-
return p({
|
|
100
|
-
content: r,
|
|
101
|
-
display: "inline-block",
|
|
102
|
-
...o
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
function ke(r, o = {}) {
|
|
106
|
-
return m({
|
|
107
|
-
content: r,
|
|
108
|
-
display: "inline-block",
|
|
109
|
-
...o
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
function ze(r = "#ddd", o = 1, e = 16) {
|
|
113
|
-
return p({
|
|
114
|
-
content: "",
|
|
115
|
-
display: "inline-block",
|
|
116
|
-
width: e,
|
|
117
|
-
height: o,
|
|
118
|
-
backgroundColor: r,
|
|
119
|
-
marginRight: 8,
|
|
120
|
-
verticalAlign: "middle"
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
function De(r = "#ddd", o = 1, e = 16) {
|
|
124
|
-
return m({
|
|
125
|
-
content: "",
|
|
126
|
-
display: "inline-block",
|
|
127
|
-
width: e,
|
|
128
|
-
height: o,
|
|
129
|
-
backgroundColor: r,
|
|
130
|
-
marginLeft: 8,
|
|
131
|
-
verticalAlign: "middle"
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
function Oe(r = '"', o = '"') {
|
|
135
|
-
return new f({
|
|
136
|
-
before: {
|
|
137
|
-
content: r,
|
|
138
|
-
fontSize: "1.2em",
|
|
139
|
-
color: "#666",
|
|
140
|
-
marginRight: 4
|
|
141
|
-
},
|
|
142
|
-
after: {
|
|
143
|
-
content: o,
|
|
144
|
-
fontSize: "1.2em",
|
|
145
|
-
color: "#666",
|
|
146
|
-
marginLeft: 4
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
function Le(r = "currentColor", o = 1, e = 1) {
|
|
151
|
-
return m({
|
|
152
|
-
content: "",
|
|
153
|
-
position: "absolute",
|
|
154
|
-
bottom: 0,
|
|
155
|
-
left: 0,
|
|
156
|
-
right: 0,
|
|
157
|
-
height: o,
|
|
158
|
-
backgroundColor: r,
|
|
159
|
-
opacity: e
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
function Ne(r = "#ff3b30", o = 6, e = "") {
|
|
163
|
-
return m({
|
|
164
|
-
content: e,
|
|
165
|
-
position: "absolute",
|
|
166
|
-
top: -2,
|
|
167
|
-
right: -2,
|
|
168
|
-
width: e ? "auto" : o,
|
|
169
|
-
height: o,
|
|
170
|
-
minWidth: o,
|
|
171
|
-
backgroundColor: r,
|
|
172
|
-
borderRadius: "50%",
|
|
173
|
-
fontSize: 10,
|
|
174
|
-
color: "white",
|
|
175
|
-
textAlign: "center",
|
|
176
|
-
lineHeight: e ? o / 10 : 1,
|
|
177
|
-
padding: e ? "2px 4px" : 0,
|
|
178
|
-
display: "flex",
|
|
179
|
-
alignItems: "center",
|
|
180
|
-
justifyContent: "center"
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
function Ue(r, o = "top", e = "#333", t = "white") {
|
|
184
|
-
return p({
|
|
185
|
-
content: r,
|
|
186
|
-
position: "absolute",
|
|
187
|
-
backgroundColor: e,
|
|
188
|
-
color: t,
|
|
189
|
-
padding: "4px 8px",
|
|
190
|
-
borderRadius: 4,
|
|
191
|
-
fontSize: 12,
|
|
192
|
-
whiteSpace: "nowrap",
|
|
193
|
-
zIndex: 1e3,
|
|
194
|
-
opacity: 0,
|
|
195
|
-
pointerEvents: "none",
|
|
196
|
-
transition: "opacity 0.2s ease",
|
|
197
|
-
...{
|
|
198
|
-
top: {
|
|
199
|
-
bottom: "100%",
|
|
200
|
-
left: "50%",
|
|
201
|
-
transform: "translateX(-50%)",
|
|
202
|
-
marginBottom: 5
|
|
203
|
-
},
|
|
204
|
-
bottom: {
|
|
205
|
-
top: "100%",
|
|
206
|
-
left: "50%",
|
|
207
|
-
transform: "translateX(-50%)",
|
|
208
|
-
marginTop: 5
|
|
209
|
-
},
|
|
210
|
-
left: {
|
|
211
|
-
right: "100%",
|
|
212
|
-
top: "50%",
|
|
213
|
-
transform: "translateY(-50%)",
|
|
214
|
-
marginRight: 5
|
|
215
|
-
},
|
|
216
|
-
right: {
|
|
217
|
-
left: "100%",
|
|
218
|
-
top: "50%",
|
|
219
|
-
transform: "translateY(-50%)",
|
|
220
|
-
marginLeft: 5
|
|
221
|
-
}
|
|
222
|
-
}[o]
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
function He(r, o = "#ff3b30", e = "white") {
|
|
226
|
-
return p({
|
|
227
|
-
content: r,
|
|
228
|
-
position: "absolute",
|
|
229
|
-
top: 8,
|
|
230
|
-
right: -8,
|
|
231
|
-
backgroundColor: o,
|
|
232
|
-
color: e,
|
|
233
|
-
padding: "2px 12px",
|
|
234
|
-
fontSize: 11,
|
|
235
|
-
fontWeight: "bold",
|
|
236
|
-
textTransform: "uppercase",
|
|
237
|
-
transform: "rotate(45deg)",
|
|
238
|
-
transformOrigin: "center",
|
|
239
|
-
zIndex: 10
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
function je(r = 20, o = "#007AFF", e = 2) {
|
|
243
|
-
if (!document.getElementById("tachui-spinner-animation")) {
|
|
244
|
-
const t = document.createElement("style");
|
|
245
|
-
t.id = "tachui-spinner-animation", t.textContent = `
|
|
246
|
-
@keyframes spin {
|
|
247
|
-
0% { transform: rotate(0deg); }
|
|
248
|
-
100% { transform: rotate(360deg); }
|
|
249
|
-
}
|
|
250
|
-
`, document.head.appendChild(t);
|
|
251
|
-
}
|
|
252
|
-
return p({
|
|
253
|
-
content: "",
|
|
254
|
-
display: "inline-block",
|
|
255
|
-
width: r,
|
|
256
|
-
height: r,
|
|
257
|
-
border: `${e}px solid transparent`,
|
|
258
|
-
borderTop: `${e}px solid ${o}`,
|
|
259
|
-
borderRadius: "50%",
|
|
260
|
-
animation: "spin 1s linear infinite"
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
class We extends u {
|
|
264
|
-
// High priority for HTML attributes
|
|
265
|
-
constructor(e) {
|
|
266
|
-
super(e);
|
|
267
|
-
s(this, "type", "id");
|
|
268
|
-
s(this, "priority", 85);
|
|
269
|
-
}
|
|
270
|
-
apply(e, t) {
|
|
271
|
-
if (!t.element) return;
|
|
272
|
-
const { id: i } = this.properties;
|
|
273
|
-
typeof process < "u" && process.env.NODE_ENV === "development" && this.validateId(i), t.element.setAttribute("id", i);
|
|
274
|
-
}
|
|
275
|
-
validateId(e) {
|
|
276
|
-
if (!e || typeof e != "string") {
|
|
277
|
-
console.warn("TachUI ID Modifier: ID must be a non-empty string");
|
|
278
|
-
return;
|
|
279
|
-
}
|
|
280
|
-
/^[a-zA-Z][a-zA-Z0-9_:-]*$/.test(e) || console.warn(
|
|
281
|
-
`TachUI ID Modifier: Invalid ID format "${e}". IDs must start with a letter and contain only letters, digits, hyphens, underscores, colons, and periods.`
|
|
282
|
-
), typeof document < "u" && document.getElementById && document.getElementById(e) && console.warn(
|
|
283
|
-
`TachUI ID Modifier: Duplicate ID "${e}" detected. IDs should be unique within the document.`
|
|
284
|
-
);
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
function Fe(r) {
|
|
288
|
-
return new We({ id: r });
|
|
289
|
-
}
|
|
290
|
-
class Ke extends u {
|
|
291
|
-
// High priority for HTML attributes
|
|
292
|
-
constructor(e) {
|
|
293
|
-
super(e);
|
|
294
|
-
s(this, "type", "data");
|
|
295
|
-
s(this, "priority", 80);
|
|
296
|
-
}
|
|
297
|
-
apply(e, t) {
|
|
298
|
-
if (!t.element) return;
|
|
299
|
-
const { data: i } = this.properties;
|
|
300
|
-
typeof process < "u" && process.env.NODE_ENV === "development" && this.validateDataAttributes(i), Object.entries(i).forEach(([a, n]) => {
|
|
301
|
-
const d = this.formatDataAttributeName(a), l = this.formatDataAttributeValue(n);
|
|
302
|
-
t.element.setAttribute(d, l);
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
formatDataAttributeName(e) {
|
|
306
|
-
const t = e.replace(/[A-Z]/g, (i) => `-${i.toLowerCase()}`);
|
|
307
|
-
return t.startsWith("data-") ? t : `data-${t}`;
|
|
308
|
-
}
|
|
309
|
-
formatDataAttributeValue(e) {
|
|
310
|
-
return typeof e == "boolean" ? e ? "true" : "false" : String(e);
|
|
311
|
-
}
|
|
312
|
-
validateDataAttributes(e) {
|
|
313
|
-
Object.entries(e).forEach(([t, i]) => {
|
|
314
|
-
if (!t || typeof t != "string") {
|
|
315
|
-
console.warn(
|
|
316
|
-
"TachUI Data Modifier: Data attribute keys must be non-empty strings"
|
|
317
|
-
);
|
|
318
|
-
return;
|
|
319
|
-
}
|
|
320
|
-
const a = t.replace(/^data-/, "");
|
|
321
|
-
/^[a-zA-Z][a-zA-Z0-9-_]*$/.test(a) || console.warn(
|
|
322
|
-
`TachUI Data Modifier: Invalid data attribute key "${t}". Keys should start with a letter and contain only letters, numbers, hyphens, and underscores.`
|
|
323
|
-
), i != null && typeof i != "string" && typeof i != "number" && typeof i != "boolean" && console.warn(
|
|
324
|
-
`TachUI Data Modifier: Data attribute "${t}" has invalid value type "${typeof i}". Only strings, numbers, and booleans are supported.`
|
|
325
|
-
);
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
function qe(r) {
|
|
330
|
-
return new Ke({ data: r });
|
|
331
|
-
}
|
|
332
|
-
class Ge extends u {
|
|
333
|
-
// High priority for accessibility
|
|
334
|
-
constructor(e) {
|
|
335
|
-
super(e);
|
|
336
|
-
s(this, "type", "tabIndex");
|
|
337
|
-
s(this, "priority", 75);
|
|
338
|
-
}
|
|
339
|
-
apply(e, t) {
|
|
340
|
-
if (!t.element) return;
|
|
341
|
-
const { tabIndex: i } = this.properties;
|
|
342
|
-
typeof process < "u" && process.env.NODE_ENV === "development" && this.validateTabIndex(i), t.element.setAttribute("tabindex", String(i));
|
|
343
|
-
}
|
|
344
|
-
validateTabIndex(e) {
|
|
345
|
-
if (typeof e != "number" || !Number.isInteger(e)) {
|
|
346
|
-
console.warn("TachUI TabIndex Modifier: tabIndex must be an integer");
|
|
347
|
-
return;
|
|
348
|
-
}
|
|
349
|
-
e > 0 && console.info(
|
|
350
|
-
'TachUI TabIndex Modifier: Positive tabIndex values can disrupt natural tab order. Consider using tabIndex="0" for focusable elements and tabIndex="-1" for programmatically focusable elements.'
|
|
351
|
-
), e < -1 && console.warn(
|
|
352
|
-
"TachUI TabIndex Modifier: tabIndex values less than -1 are not recommended. Use -1 to remove from tab order or 0+ for tab order."
|
|
353
|
-
);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
function Ze(r) {
|
|
357
|
-
return new Ge({ tabIndex: r });
|
|
358
|
-
}
|
|
359
|
-
const b = class b extends u {
|
|
360
|
-
constructor(e) {
|
|
361
|
-
super(e);
|
|
362
|
-
s(this, "type", "aria");
|
|
363
|
-
s(this, "priority", 90);
|
|
364
|
-
}
|
|
365
|
-
apply(e, t) {
|
|
366
|
-
if (!t.element) return;
|
|
367
|
-
const { aria: i } = this.properties;
|
|
368
|
-
typeof process < "u" && process.env.NODE_ENV === "development" && this.validateAriaAttributes(i), Object.entries(i).forEach(([a, n]) => {
|
|
369
|
-
if (n != null) {
|
|
370
|
-
const d = this.formatAriaAttributeName(a), l = this.formatAriaAttributeValue(n);
|
|
371
|
-
t.element.setAttribute(d, l);
|
|
372
|
-
}
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
formatAriaAttributeName(e) {
|
|
376
|
-
if (e === "role")
|
|
377
|
-
return "role";
|
|
378
|
-
e === "labeledby" && (e = "labelledby");
|
|
379
|
-
const t = e.replace(/[A-Z]/g, (i) => `-${i.toLowerCase()}`);
|
|
380
|
-
return t.startsWith("aria-") ? t : `aria-${t}`;
|
|
381
|
-
}
|
|
382
|
-
formatAriaAttributeValue(e) {
|
|
383
|
-
return typeof e == "boolean" ? e ? "true" : "false" : String(e);
|
|
384
|
-
}
|
|
385
|
-
validateAriaAttributes(e) {
|
|
386
|
-
Object.entries(e).forEach(([t, i]) => {
|
|
387
|
-
if (!t || typeof t != "string") {
|
|
388
|
-
console.warn(
|
|
389
|
-
"TachUI ARIA Modifier: ARIA attribute keys must be non-empty strings"
|
|
390
|
-
);
|
|
391
|
-
return;
|
|
392
|
-
}
|
|
393
|
-
const a = t.replace(/^aria-/, "");
|
|
394
|
-
!b.KNOWN_ATTRIBUTES.has(a) && !t.startsWith("aria-") && console.warn(
|
|
395
|
-
`TachUI ARIA Modifier: Unknown ARIA attribute "${t}". This may not be a valid ARIA attribute. Did you mean "${this.suggestCorrection(a)}"?`
|
|
396
|
-
), this.validateSpecificAriaAttribute(t, i);
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
validateSpecificAriaAttribute(e, t) {
|
|
400
|
-
const i = e.replace(/^aria-/, "");
|
|
401
|
-
switch (i) {
|
|
402
|
-
case "live":
|
|
403
|
-
["off", "polite", "assertive"].includes(t) || console.warn(
|
|
404
|
-
`TachUI ARIA Modifier: Invalid value "${t}" for aria-live. Valid values are: "off", "polite", "assertive"`
|
|
405
|
-
);
|
|
406
|
-
break;
|
|
407
|
-
case "haspopup":
|
|
408
|
-
const a = [
|
|
409
|
-
"false",
|
|
410
|
-
"true",
|
|
411
|
-
"menu",
|
|
412
|
-
"listbox",
|
|
413
|
-
"tree",
|
|
414
|
-
"grid",
|
|
415
|
-
"dialog"
|
|
416
|
-
];
|
|
417
|
-
typeof t == "string" && !a.includes(t) && console.warn(
|
|
418
|
-
`TachUI ARIA Modifier: Invalid value "${t}" for aria-haspopup. Valid values are: ${a.join(", ")}`
|
|
419
|
-
);
|
|
420
|
-
break;
|
|
421
|
-
case "current":
|
|
422
|
-
const n = ["page", "step", "location", "date", "time"];
|
|
423
|
-
typeof t == "string" && !n.includes(t) && console.warn(
|
|
424
|
-
`TachUI ARIA Modifier: Invalid value "${t}" for aria-current. Valid values are: false, true, ${n.join(", ")}`
|
|
425
|
-
);
|
|
426
|
-
break;
|
|
427
|
-
case "invalid":
|
|
428
|
-
const d = ["false", "true", "grammar", "spelling"];
|
|
429
|
-
typeof t == "string" && !d.includes(t) && console.warn(
|
|
430
|
-
`TachUI ARIA Modifier: Invalid value "${t}" for aria-invalid. Valid values are: ${d.join(", ")}`
|
|
431
|
-
);
|
|
432
|
-
break;
|
|
433
|
-
case "orientation":
|
|
434
|
-
["horizontal", "vertical"].includes(t) || console.warn(
|
|
435
|
-
`TachUI ARIA Modifier: Invalid value "${t}" for aria-orientation. Valid values are: "horizontal", "vertical"`
|
|
436
|
-
);
|
|
437
|
-
break;
|
|
438
|
-
case "sort":
|
|
439
|
-
["none", "ascending", "descending", "other"].includes(
|
|
440
|
-
t
|
|
441
|
-
) || console.warn(
|
|
442
|
-
`TachUI ARIA Modifier: Invalid value "${t}" for aria-sort. Valid values are: "none", "ascending", "descending", "other"`
|
|
443
|
-
);
|
|
444
|
-
break;
|
|
445
|
-
case "pressed":
|
|
446
|
-
const l = ["true", "false", "mixed"];
|
|
447
|
-
typeof t == "string" && !l.includes(t) && console.warn(
|
|
448
|
-
`TachUI ARIA Modifier: Invalid value "${t}" for aria-pressed. Valid values are: ${l.join(", ")}`
|
|
449
|
-
);
|
|
450
|
-
break;
|
|
451
|
-
// Numeric attributes validation
|
|
452
|
-
case "level":
|
|
453
|
-
case "posinset":
|
|
454
|
-
case "setsize":
|
|
455
|
-
case "valuemax":
|
|
456
|
-
case "valuemin":
|
|
457
|
-
case "valuenow":
|
|
458
|
-
typeof t == "number" && (t < 0 || !Number.isInteger(t)) && console.warn(
|
|
459
|
-
`TachUI ARIA Modifier: Invalid value "${t}" for aria-${i}. Must be a non-negative integer.`
|
|
460
|
-
);
|
|
461
|
-
break;
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
suggestCorrection(e) {
|
|
465
|
-
return {
|
|
466
|
-
lable: "label",
|
|
467
|
-
labeledby: "labelledby",
|
|
468
|
-
descripedby: "describedby",
|
|
469
|
-
described: "describedby",
|
|
470
|
-
controled: "controls",
|
|
471
|
-
controles: "controls",
|
|
472
|
-
expaned: "expanded",
|
|
473
|
-
expandd: "expanded",
|
|
474
|
-
hiden: "hidden",
|
|
475
|
-
hidde: "hidden",
|
|
476
|
-
disbled: "disabled",
|
|
477
|
-
disable: "disabled",
|
|
478
|
-
requird: "required",
|
|
479
|
-
require: "required",
|
|
480
|
-
selectd: "selected",
|
|
481
|
-
select: "selected",
|
|
482
|
-
orientaton: "orientation"
|
|
483
|
-
}[e] || e;
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
|
-
// Highest priority for accessibility
|
|
487
|
-
s(b, "KNOWN_ATTRIBUTES", /* @__PURE__ */ new Set([
|
|
488
|
-
"label",
|
|
489
|
-
"labelledby",
|
|
490
|
-
"describedby",
|
|
491
|
-
"expanded",
|
|
492
|
-
"hidden",
|
|
493
|
-
"live",
|
|
494
|
-
"atomic",
|
|
495
|
-
"busy",
|
|
496
|
-
"controls",
|
|
497
|
-
"current",
|
|
498
|
-
"disabled",
|
|
499
|
-
"grabbed",
|
|
500
|
-
"haspopup",
|
|
501
|
-
"invalid",
|
|
502
|
-
"level",
|
|
503
|
-
"multiline",
|
|
504
|
-
"multiselectable",
|
|
505
|
-
"orientation",
|
|
506
|
-
"owns",
|
|
507
|
-
"placeholder",
|
|
508
|
-
"posinset",
|
|
509
|
-
"pressed",
|
|
510
|
-
"readonly",
|
|
511
|
-
"relevant",
|
|
512
|
-
"required",
|
|
513
|
-
"selected",
|
|
514
|
-
"setsize",
|
|
515
|
-
"sort",
|
|
516
|
-
"valuemax",
|
|
517
|
-
"valuemin",
|
|
518
|
-
"valuenow",
|
|
519
|
-
"valuetext",
|
|
520
|
-
"role"
|
|
521
|
-
]));
|
|
522
|
-
let h = b;
|
|
523
|
-
function _e(r) {
|
|
524
|
-
return new h({ aria: r });
|
|
525
|
-
}
|
|
526
|
-
class g extends u {
|
|
527
|
-
// Early application for CSS variables
|
|
528
|
-
constructor(e) {
|
|
529
|
-
super(e);
|
|
530
|
-
s(this, "type", "customProperties");
|
|
531
|
-
s(this, "priority", 5);
|
|
532
|
-
}
|
|
533
|
-
apply(e, t) {
|
|
534
|
-
if (!t.element) return;
|
|
535
|
-
const i = this.computeCustomPropertyStyles(this.properties);
|
|
536
|
-
this.applyStyles(t.element, i);
|
|
537
|
-
}
|
|
538
|
-
computeCustomPropertyStyles(e) {
|
|
539
|
-
const t = {};
|
|
540
|
-
return Object.entries(e.properties).forEach(([i, a]) => {
|
|
541
|
-
const n = i.startsWith("--") ? i : `--${i}`;
|
|
542
|
-
t[n] = this.formatPropertyValue(a);
|
|
543
|
-
}), t;
|
|
544
|
-
}
|
|
545
|
-
formatPropertyValue(e) {
|
|
546
|
-
return typeof e == "number" ? e.toString() : String(e);
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
function Xe(r) {
|
|
550
|
-
return new g({
|
|
551
|
-
properties: r.properties,
|
|
552
|
-
scope: r.scope || "local"
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
|
-
function Ye(r, o, e) {
|
|
556
|
-
return new g({
|
|
557
|
-
properties: { [r]: o },
|
|
558
|
-
scope: e || "local"
|
|
559
|
-
});
|
|
560
|
-
}
|
|
561
|
-
function Je(r) {
|
|
562
|
-
return new g({
|
|
563
|
-
properties: r,
|
|
564
|
-
scope: "local"
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
|
-
function mt(r) {
|
|
568
|
-
const o = {};
|
|
569
|
-
return Object.entries(r).forEach(([e, t]) => {
|
|
570
|
-
if (t !== void 0) {
|
|
571
|
-
const i = e.replace(
|
|
572
|
-
/[A-Z]/g,
|
|
573
|
-
(a) => `-${a.toLowerCase()}`
|
|
574
|
-
);
|
|
575
|
-
o[`--theme-color-${i}`] = t;
|
|
576
|
-
}
|
|
577
|
-
}), new g({
|
|
578
|
-
properties: o,
|
|
579
|
-
scope: "local"
|
|
580
|
-
});
|
|
581
|
-
}
|
|
582
|
-
function gt(r) {
|
|
583
|
-
const o = {};
|
|
584
|
-
return Object.entries(r).forEach(([e, t]) => {
|
|
585
|
-
t !== void 0 && (o[`--token-${e}`] = t);
|
|
586
|
-
}), new g({
|
|
587
|
-
properties: o,
|
|
588
|
-
scope: "local"
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
const Qe = [
|
|
592
|
-
// Basic layout modifiers
|
|
593
|
-
["padding", ne],
|
|
594
|
-
["paddingTop", se],
|
|
595
|
-
["paddingBottom", de],
|
|
596
|
-
["paddingLeft", le],
|
|
597
|
-
["paddingRight", ce],
|
|
598
|
-
["paddingLeading", fe],
|
|
599
|
-
["paddingTrailing", pe],
|
|
600
|
-
["paddingHorizontal", ue],
|
|
601
|
-
["paddingVertical", me],
|
|
602
|
-
["margin", ge],
|
|
603
|
-
["marginTop", be],
|
|
604
|
-
["marginBottom", he],
|
|
605
|
-
["marginLeft", ye],
|
|
606
|
-
["marginRight", Ie],
|
|
607
|
-
["marginLeading", xe],
|
|
608
|
-
["marginTrailing", ve],
|
|
609
|
-
["marginHorizontal", Ae],
|
|
610
|
-
["marginVertical", we],
|
|
611
|
-
["size", Se],
|
|
612
|
-
["width", Me],
|
|
613
|
-
["height", Te],
|
|
614
|
-
["maxWidth", Ce],
|
|
615
|
-
["maxHeight", $e],
|
|
616
|
-
["minWidth", Pe],
|
|
617
|
-
["minHeight", Re],
|
|
618
|
-
// Advanced layout modifiers - only core functions that exist
|
|
619
|
-
["aspectRatio", w],
|
|
620
|
-
["fixedSize", S],
|
|
621
|
-
["offset", M],
|
|
622
|
-
["overlay", T],
|
|
623
|
-
["position", C],
|
|
624
|
-
["scaleEffect", $],
|
|
625
|
-
["zIndex", P],
|
|
626
|
-
// Appearance modifiers - core functions only
|
|
627
|
-
["backgroundColor", k],
|
|
628
|
-
["border", z],
|
|
629
|
-
["clipShape", D],
|
|
630
|
-
["clipped", O],
|
|
631
|
-
["foregroundColor", L],
|
|
632
|
-
// Typography modifiers - core functions only
|
|
633
|
-
["typography", N],
|
|
634
|
-
["textAlign", U],
|
|
635
|
-
["font", H],
|
|
636
|
-
["lineClamp", j],
|
|
637
|
-
["wordBreak", W],
|
|
638
|
-
// Interaction modifiers
|
|
639
|
-
["allowsHitTesting", F],
|
|
640
|
-
["focusable", K],
|
|
641
|
-
["activatable", q],
|
|
642
|
-
["editable", G],
|
|
643
|
-
["focused", Z],
|
|
644
|
-
["keyboardShortcut", _],
|
|
645
|
-
["onContinuousHover", X],
|
|
646
|
-
["onLongPressGesture", Y],
|
|
647
|
-
["scroll", J],
|
|
648
|
-
["scrollBehavior", Q],
|
|
649
|
-
["overscrollBehavior", ee],
|
|
650
|
-
["overscrollBehaviorX", te],
|
|
651
|
-
["overscrollBehaviorY", re],
|
|
652
|
-
["scrollMargin", ie],
|
|
653
|
-
["scrollPadding", oe],
|
|
654
|
-
["scrollSnap", ae],
|
|
655
|
-
// Utility modifiers
|
|
656
|
-
["css", R],
|
|
657
|
-
["cssProperty", E],
|
|
658
|
-
["cssVariable", B],
|
|
659
|
-
["utility", V],
|
|
660
|
-
// Attribute modifiers
|
|
661
|
-
["aria", _e],
|
|
662
|
-
["customProperties", Xe],
|
|
663
|
-
["customProperty", Ye],
|
|
664
|
-
["cssVariables", Je],
|
|
665
|
-
["id", Fe],
|
|
666
|
-
["data", qe],
|
|
667
|
-
["tabIndex", Ze],
|
|
668
|
-
// Element modifiers
|
|
669
|
-
["before", p],
|
|
670
|
-
["after", m],
|
|
671
|
-
["pseudoElements", Be],
|
|
672
|
-
["iconBefore", Ve],
|
|
673
|
-
["iconAfter", ke],
|
|
674
|
-
["lineBefore", ze],
|
|
675
|
-
["lineAfter", De],
|
|
676
|
-
["quotes", Oe],
|
|
677
|
-
["underline", Le],
|
|
678
|
-
["badge", Ne],
|
|
679
|
-
["tooltip", Ue],
|
|
680
|
-
["cornerRibbon", He],
|
|
681
|
-
["spinner", je]
|
|
682
|
-
];
|
|
683
|
-
function et() {
|
|
684
|
-
let r = 0, o = 0;
|
|
685
|
-
Qe.forEach(([e, t]) => {
|
|
686
|
-
try {
|
|
687
|
-
A.register(e, t), r++;
|
|
688
|
-
} catch (i) {
|
|
689
|
-
console.warn(`Failed to register modifier '${e}':`, i), o++;
|
|
690
|
-
}
|
|
691
|
-
}), console.log(
|
|
692
|
-
`@tachui/modifiers: Registered ${r} modifiers${o > 0 ? `, ${o} failed` : ""}`
|
|
1
|
+
import { globalModifierRegistry as s } from "@tachui/registry";
|
|
2
|
+
import { bi as r, d6 as n, d4 as t, ck as d, bZ as c, b$ as l, A as f, a5 as b, a4 as M, bX as g, af as u, bS as p, au as m, aw as h, ag as y, cr as x, cg as C, n as v, F as T, ba as B, b8 as S, ar as H, a2 as P, ce as O, d5 as w, b5 as L, d3 as I, d7 as A, X as k, cI as D, M as G, O as R, b0 as z, aO as E, be as K, aN as F, a$ as V, aH as W, aV as U, aX as _, aW as N, b3 as X, aL as Y, aJ as j, aK as q, aM as Z, a0 as $, x as J, cx as Q, P as aa, c0 as sa, S as ea, ay as ia, cT as oa, d1 as ra, d2 as na, ci as ta, c$ as da, T as ca, bK as la, _ as fa, Z as ba, u as Ma, bc as ga, c2 as ua, e as pa, g as ma, bj as ha, dc as ya, cl as xa, cp as Ca, cn as va, co as Ta, cq as Ba, b_ as Sa, m as Ha, a7 as Pa, a8 as Oa, a6 as wa, ca as La, b as Ia, bY as Aa, c1 as ka, aa as Da, ah as Ga, ak as Ra, ao as za, am as Ea, al as Ka, aj as Fa, ai as Va, an as Wa, ap as Ua, av as _a, ax as Na, aq as Xa, cc as Ya, bT as ja, bU as qa, bV as Za, cu as $a, bW as Ja, bM as Qa, W as as, cs as ss, ct as es, ch as is, cw as os, bl as rs, bJ as ns, bP as ts, bd as ds, bk as cs, p as ls, d as fs, i as bs, a as Ms, c as gs, k as us, f as ps, l as ms, bb as hs, b9 as ys, B as xs, U as Cs, H as vs, I as Ts, at as Bs, as as Ss, q as Hs, h as Ps, ae as Os, a9 as ws, cW as Ls, bm as Is, a3 as As, c5 as ks, c4 as Ds, cf as Gs, j as Rs, b6 as zs, b7 as Es, t as Ks, K as Fs, c7 as Vs, c6 as Ws, Y as Us, J as _s, cJ as Ns, cL as Xs, cQ as Ys, cO as js, cM as qs, cS as Zs, cN as $s, cK as Js, cP as Qs, cR as ae, cZ as se, cX as ee, c_ as ie, cY as oe, d9 as re, da as ne, d8 as te, ad as de, o as ce, b2 as le, bq as fe, bz as be, aU as Me, bw as ge, bf as ue, bh as pe, bg as me, bA as he, bB as ye, aT as xe, bv as Ce, b1 as ve, bp as Te, aI as Be, by as Se, aY as He, bs as Pe, a_ as Oe, bt as we, aZ as Le, bu as Ie, b4 as Ae, aR as ke, aP as De, aQ as Ge, aS as Re, bC as ze, br as Ee, bD as Ke, bH as Fe, bI as Ve, bo as We, bG as Ue, bF as _e, bE as Ne, bx as Xe, bQ as Ye, bR as je, Q as qe, a1 as Ze, bO as $e, bN as Je, y as Qe, aB as ai, aC as si, aD as ei, cy as ii, cA as oi, cF as ri, cD as ni, cB as ti, cH as di, cC as ci, cz as li, cE as fi, cG as bi, w as Mi, c3 as gi, c8 as ui, ab as pi, r as mi, r as hi, v as yi, cm as xi, s as Ci, az as vi, aA as Ti, aE as Bi, aF as Si, aG as Hi, bn as Pi, cU as Oi, cd as wi, ac as Li, V as Ii, cj as Ai, de as ki, D as Di, R as Gi, G as Ri, L as zi, E as Ei, cv as Ki, cb as Fi, db as Vi, d0 as Wi, dd as Ui, C as _i, c9 as Ni, bL as Xi, N as Yi, cV as ji, $ as qi, z as Zi } from "./modifiers-basic-DLmE749_.js";
|
|
3
|
+
import { BaseModifier as Ji, createModifiableComponent as Qi, createModifierBuilder as ao, registerModifierWithMetadata as so } from "@tachui/core/modifiers";
|
|
4
|
+
if (process.env.NODE_ENV === "development") {
|
|
5
|
+
const a = s.list();
|
|
6
|
+
console.log(
|
|
7
|
+
`@tachui/modifiers: Basic modifiers preloaded and registered. Registry total: ${a.length} modifiers.`
|
|
693
8
|
);
|
|
694
9
|
}
|
|
695
|
-
et();
|
|
696
10
|
export {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
q as
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
11
|
+
r as AllowsHitTestingModifier,
|
|
12
|
+
n as AnimationModifier,
|
|
13
|
+
t as AppearanceModifier,
|
|
14
|
+
d as AriaModifier,
|
|
15
|
+
c as AsHTMLModifier,
|
|
16
|
+
l as AsHTMLValidator,
|
|
17
|
+
f as AspectRatioModifier,
|
|
18
|
+
b as BackgroundClipModifier,
|
|
19
|
+
M as BackgroundModifier,
|
|
20
|
+
Ji as BaseModifier,
|
|
21
|
+
g as BasicSanitizer,
|
|
22
|
+
u as BorderModifier,
|
|
23
|
+
p as CSSModifier,
|
|
24
|
+
m as ClipShapeModifier,
|
|
25
|
+
h as ClippedModifier,
|
|
26
|
+
y as CornerRadiusModifier,
|
|
27
|
+
x as CustomPropertiesModifier,
|
|
28
|
+
C as DataModifier,
|
|
29
|
+
v as FixedSizeModifier,
|
|
30
|
+
T as FlexboxModifier,
|
|
31
|
+
B as FocusableModifier,
|
|
32
|
+
S as FocusedModifier,
|
|
33
|
+
H as ForegroundModifier,
|
|
34
|
+
P as HyphensModifier,
|
|
35
|
+
O as IdModifier,
|
|
36
|
+
w as InteractionModifier,
|
|
37
|
+
L as KeyboardShortcutModifier,
|
|
38
|
+
I as LayoutModifier,
|
|
39
|
+
A as LifecycleModifier,
|
|
40
|
+
k as LineClampModifier,
|
|
41
|
+
D as MarginModifier,
|
|
42
|
+
G as ModifierPriority,
|
|
43
|
+
R as OffsetModifier,
|
|
44
|
+
z as OnBlurModifier,
|
|
45
|
+
E as OnContextMenuModifier,
|
|
46
|
+
K as OnContinuousHoverModifier,
|
|
47
|
+
F as OnDoubleClickModifier,
|
|
48
|
+
V as OnFocusModifier,
|
|
49
|
+
W as OnHoverModifier,
|
|
50
|
+
U as OnKeyDownModifier,
|
|
51
|
+
_ as OnKeyPressModifier,
|
|
52
|
+
N as OnKeyUpModifier,
|
|
53
|
+
X as OnLongPressGestureModifier,
|
|
54
|
+
Y as OnMouseDownModifier,
|
|
55
|
+
j as OnMouseEnterModifier,
|
|
56
|
+
q as OnMouseLeaveModifier,
|
|
57
|
+
Z as OnMouseUpModifier,
|
|
58
|
+
$ as OverflowWrapModifier,
|
|
59
|
+
J as OverlayModifier,
|
|
60
|
+
Q as PaddingModifier,
|
|
61
|
+
aa as PositionModifier,
|
|
62
|
+
sa as PseudoElementModifier,
|
|
63
|
+
ea as ScaleEffectModifier,
|
|
64
|
+
ia as ScrollModifier,
|
|
65
|
+
oa as SizeModifier,
|
|
66
|
+
ra as TACHUI_PACKAGE,
|
|
67
|
+
na as TACHUI_PACKAGE_VERSION,
|
|
68
|
+
ta as TabIndexModifier,
|
|
69
|
+
da as TransitionModifier,
|
|
70
|
+
ca as TypographyModifier,
|
|
71
|
+
la as UtilityModifier,
|
|
72
|
+
fa as WordBreakModifier,
|
|
73
|
+
ba as ZIndexModifier,
|
|
74
|
+
Ma as absolutePosition,
|
|
75
|
+
ga as activatable,
|
|
76
|
+
ua as after,
|
|
77
|
+
pa as alignItems,
|
|
78
|
+
ma as alignSelf,
|
|
79
|
+
ha as allowsHitTesting,
|
|
80
|
+
ya as animation,
|
|
81
|
+
xa as aria,
|
|
82
|
+
Ca as ariaDescribedBy,
|
|
83
|
+
va as ariaLabel,
|
|
84
|
+
Ta as ariaLive,
|
|
85
|
+
Ba as ariaModal,
|
|
86
|
+
Sa as asHTML,
|
|
87
|
+
Ha as aspectRatio,
|
|
88
|
+
Pa as background,
|
|
89
|
+
Oa as backgroundClip,
|
|
90
|
+
wa as backgroundColor,
|
|
91
|
+
La as badge,
|
|
92
|
+
Ia as basicModifierRegistrations,
|
|
93
|
+
Aa as basicSanitize,
|
|
94
|
+
ka as before,
|
|
95
|
+
Da as blueGradientText,
|
|
96
|
+
Ga as border,
|
|
97
|
+
Ra as borderBottom,
|
|
98
|
+
za as borderHorizontal,
|
|
99
|
+
Ea as borderLeading,
|
|
100
|
+
Ka as borderLeft,
|
|
101
|
+
Fa as borderRight,
|
|
102
|
+
Va as borderTop,
|
|
103
|
+
Wa as borderTrailing,
|
|
104
|
+
Ua as borderVertical,
|
|
105
|
+
_a as clipShape,
|
|
106
|
+
Na as clipped,
|
|
107
|
+
Xa as cornerRadius,
|
|
108
|
+
Ya as cornerRibbon,
|
|
109
|
+
Qi as createModifiableComponent,
|
|
110
|
+
ao as createModifierBuilder,
|
|
111
|
+
ja as css,
|
|
112
|
+
qa as cssProperty,
|
|
113
|
+
Za as cssVariable,
|
|
114
|
+
$a as cssVariables,
|
|
115
|
+
Ja as cssVendor,
|
|
116
|
+
Qa as cursor,
|
|
117
|
+
as as custom,
|
|
118
|
+
ss as customProperties,
|
|
119
|
+
es as customProperty,
|
|
120
|
+
is as data,
|
|
121
|
+
os as designTokens,
|
|
122
|
+
rs as disableHitTesting,
|
|
123
|
+
ns as disabled,
|
|
124
|
+
ts as display,
|
|
125
|
+
ds as editable,
|
|
126
|
+
cs as enableHitTesting,
|
|
127
|
+
ls as fixedSize,
|
|
128
|
+
fs as flexBasis,
|
|
129
|
+
bs as flexDirection,
|
|
130
|
+
Ms as flexGrow,
|
|
131
|
+
gs as flexShrink,
|
|
132
|
+
us as flexWrap,
|
|
133
|
+
ps as flexbox,
|
|
134
|
+
ms as flexboxPresets,
|
|
135
|
+
hs as focusable,
|
|
136
|
+
ys as focused,
|
|
137
|
+
xs as font,
|
|
138
|
+
Cs as fontFamily,
|
|
139
|
+
vs as fontSize,
|
|
140
|
+
Ts as fontWeight,
|
|
141
|
+
Bs as foreground,
|
|
142
|
+
Ss as foregroundColor,
|
|
143
|
+
Hs as frame,
|
|
144
|
+
Ps as gap,
|
|
145
|
+
Os as goldGradientText,
|
|
146
|
+
ws as gradientText,
|
|
147
|
+
Ls as height,
|
|
148
|
+
Is as highPriorityGesture,
|
|
149
|
+
As as hyphens,
|
|
150
|
+
ks as iconAfter,
|
|
151
|
+
Ds as iconBefore,
|
|
152
|
+
Gs as id,
|
|
153
|
+
Rs as justifyContent,
|
|
154
|
+
zs as keyboardShortcut,
|
|
155
|
+
Es as keyboardShortcutBuilder,
|
|
156
|
+
Ks as layoutPriority,
|
|
157
|
+
Fs as letterSpacing,
|
|
158
|
+
Vs as lineAfter,
|
|
159
|
+
Ws as lineBefore,
|
|
160
|
+
Us as lineClamp,
|
|
161
|
+
_s as lineHeight,
|
|
162
|
+
Ns as margin,
|
|
163
|
+
Xs as marginBottom,
|
|
164
|
+
Ys as marginHorizontal,
|
|
165
|
+
js as marginLeading,
|
|
166
|
+
qs as marginLeft,
|
|
167
|
+
Zs as marginPresets,
|
|
168
|
+
$s as marginRight,
|
|
169
|
+
Js as marginTop,
|
|
170
|
+
Qs as marginTrailing,
|
|
171
|
+
ae as marginVertical,
|
|
172
|
+
se as maxHeight,
|
|
173
|
+
ee as maxWidth,
|
|
174
|
+
ie as minHeight,
|
|
175
|
+
oe as minWidth,
|
|
176
|
+
re as navigationBarHidden,
|
|
177
|
+
ne as navigationBarItems,
|
|
178
|
+
te as navigationTitle,
|
|
179
|
+
de as oceanGradientText,
|
|
180
|
+
ce as offset,
|
|
181
|
+
le as onBlur,
|
|
182
|
+
fe as onBlurInteraction,
|
|
183
|
+
be as onChange,
|
|
184
|
+
Me as onContextMenu,
|
|
185
|
+
ge as onContextMenuInteraction,
|
|
186
|
+
ue as onContinuousHover,
|
|
187
|
+
pe as onContinuousHoverGlobal,
|
|
188
|
+
me as onContinuousHoverLocal,
|
|
189
|
+
he as onCopy,
|
|
190
|
+
ye as onCut,
|
|
191
|
+
xe as onDoubleClick,
|
|
192
|
+
Ce as onDoubleClickInteraction,
|
|
193
|
+
ve as onFocus,
|
|
194
|
+
Te as onFocusInteraction,
|
|
195
|
+
Be as onHover,
|
|
196
|
+
Se as onInput,
|
|
197
|
+
He as onKeyDown,
|
|
198
|
+
Pe as onKeyDownInteraction,
|
|
199
|
+
Oe as onKeyPress,
|
|
200
|
+
we as onKeyPressInteraction,
|
|
201
|
+
Le as onKeyUp,
|
|
202
|
+
Ie as onKeyUpInteraction,
|
|
203
|
+
Ae as onLongPressGesture,
|
|
204
|
+
ke as onMouseDown,
|
|
205
|
+
De as onMouseEnter,
|
|
206
|
+
Ge as onMouseLeave,
|
|
207
|
+
Re as onMouseUp,
|
|
208
|
+
ze as onPaste,
|
|
209
|
+
Ee as onScroll,
|
|
210
|
+
Ke as onSelect,
|
|
211
|
+
Fe as onSwipeLeft,
|
|
212
|
+
Ve as onSwipeRight,
|
|
213
|
+
We as onTap,
|
|
214
|
+
Ue as onTouchEnd,
|
|
215
|
+
_e as onTouchMove,
|
|
216
|
+
Ne as onTouchStart,
|
|
217
|
+
Xe as onWheel,
|
|
218
|
+
Ye as outline,
|
|
219
|
+
je as outlineOffset,
|
|
220
|
+
qe as overflow,
|
|
221
|
+
Ze as overflowWrap,
|
|
222
|
+
$e as overflowX,
|
|
223
|
+
Je as overflowY,
|
|
224
|
+
Qe as overlay,
|
|
225
|
+
ai as overscrollBehavior,
|
|
226
|
+
si as overscrollBehaviorX,
|
|
227
|
+
ei as overscrollBehaviorY,
|
|
228
|
+
ii as padding,
|
|
229
|
+
oi as paddingBottom,
|
|
230
|
+
ri as paddingHorizontal,
|
|
231
|
+
ni as paddingLeading,
|
|
232
|
+
ti as paddingLeft,
|
|
233
|
+
di as paddingPresets,
|
|
234
|
+
ci as paddingRight,
|
|
235
|
+
li as paddingTop,
|
|
236
|
+
fi as paddingTrailing,
|
|
237
|
+
bi as paddingVertical,
|
|
238
|
+
Mi as position,
|
|
239
|
+
gi as pseudoElements,
|
|
240
|
+
ui as quotes,
|
|
241
|
+
pi as rainbowGradientText,
|
|
242
|
+
mi as registerBasicModifiers,
|
|
243
|
+
so as registerModifierWithMetadata,
|
|
244
|
+
hi as registerModifiers,
|
|
245
|
+
yi as resizable,
|
|
246
|
+
xi as role,
|
|
247
|
+
Ci as scaleEffect,
|
|
248
|
+
vi as scroll,
|
|
249
|
+
Ti as scrollBehavior,
|
|
250
|
+
Bi as scrollMargin,
|
|
251
|
+
Si as scrollPadding,
|
|
252
|
+
Hi as scrollSnap,
|
|
253
|
+
Pi as simultaneousGesture,
|
|
254
|
+
Oi as size,
|
|
255
|
+
wi as spinner,
|
|
256
|
+
Li as sunsetGradientText,
|
|
257
|
+
Ii as system,
|
|
258
|
+
Ai as tabIndex,
|
|
259
|
+
ki as task,
|
|
260
|
+
Di as textAlign,
|
|
261
|
+
Gi as textCase,
|
|
262
|
+
Ri as textDecoration,
|
|
263
|
+
zi as textOverflow,
|
|
264
|
+
Ei as textTransform,
|
|
265
|
+
Ki as themeColors,
|
|
266
|
+
Fi as tooltip,
|
|
267
|
+
Vi as transform,
|
|
268
|
+
Wi as transition,
|
|
269
|
+
Ui as transitions,
|
|
270
|
+
_i as typography,
|
|
271
|
+
Ni as underline,
|
|
272
|
+
Xi as utility,
|
|
273
|
+
Yi as whiteSpace,
|
|
274
|
+
ji as width,
|
|
275
|
+
qi as wordBreak,
|
|
276
|
+
Zi as zIndex
|
|
884
277
|
};
|
|
885
|
-
//# sourceMappingURL=index.js.map
|