tekivex-ui 2.5.11 → 2.5.12
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/dist/TkxForm-1KDzoniV.cjs +12 -0
- package/dist/TkxForm-9-W3Nl6m.js +314 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.js +543 -507
- package/dist/chunk-Bmb41Sf3.cjs +1 -0
- package/dist/headless.cjs +1 -1
- package/dist/headless.js +428 -447
- package/dist/hooks-6pRsPOyG.js +58 -0
- package/dist/hooks-mivgRljH.cjs +1 -0
- package/dist/i18n.cjs +1 -1
- package/dist/i18n.js +728 -752
- package/dist/index.cjs +26 -26
- package/dist/index.js +16102 -16619
- package/dist/quantum.cjs +14 -16
- package/dist/quantum.js +2473 -2279
- package/dist/realtime.cjs +4 -10
- package/dist/realtime.js +804 -958
- package/dist/src/components/TkxClock.d.ts.map +1 -1
- package/dist/src/components/TkxForm.d.ts.map +1 -1
- package/dist/src/components/TkxLiveFeed.d.ts +1 -1
- package/dist/src/components/TkxLiveLog.d.ts +1 -1
- package/dist/src/components/TkxRealTimeChart.d.ts +1 -1
- package/dist/src/components/TkxTooltip.d.ts.map +1 -1
- package/dist/src/components/TkxTypography.d.ts +5 -5
- package/dist/src/components/TkxTypography.d.ts.map +1 -1
- package/dist/tekivex-ui.css +2 -0
- package/dist/themes-BbJanqiC.js +498 -0
- package/dist/themes-CMq2vWXj.cjs +2 -0
- package/dist/tkx-0oAwZqgL.cjs +4 -0
- package/dist/tkx-DQkvHdE5.js +1172 -0
- package/package.json +16 -16
- package/src/components/TkxClock.tsx +2 -2
- package/src/components/TkxForm.tsx +4 -2
- package/src/components/TkxTooltip.tsx +7 -5
- package/src/components/TkxTypography.tsx +2 -2
- package/dist/TkxForm-2tGLCPH6.js +0 -326
- package/dist/TkxForm-C2VqR2wC.cjs +0 -12
- package/dist/index-BgHMZe4Z.js +0 -66
- package/dist/index-Bt5y50Qa.cjs +0 -1
- package/dist/index-DnqXtpwV.cjs +0 -2
- package/dist/index-iUUHRxqJ.js +0 -515
- package/dist/security-C-ZPGoyG.js +0 -97
- package/dist/security-Uf0mjv8o.cjs +0 -1
- package/dist/style.css +0 -1
- package/dist/tkx-BtHzWKTl.js +0 -1112
- package/dist/tkx-C7GvVUE9.cjs +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TkxClock.d.ts","sourceRoot":"","sources":["../../../src/components/TkxClock.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"TkxClock.d.ts","sourceRoot":"","sources":["../../../src/components/TkxClock.tsx"],"names":[],"mappings":"AAAA,OAAc,EAIZ,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AAOf,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AACzD,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,KAAK,CAAC;AAC1C,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE3D,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AA+bD,wBAAgB,QAAQ,CAAC,EACvB,OAAgB,EAChB,IAAW,EACX,W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export declare function TkxLiveFeed({ items, maxItems, height, autoScroll, showT
|
|
|
880
880
|
glyphOrientationVertical?: import("csstype").Property.GlyphOrientationVertical | undefined;
|
|
881
881
|
};
|
|
882
882
|
}, HTMLElement> | import("react").DetailedReactHTMLElement<{
|
|
883
|
-
ref: import("react").RefObject<HTMLDivElement>;
|
|
883
|
+
ref: import("react").RefObject<HTMLDivElement | null>;
|
|
884
884
|
style: CSSProperties;
|
|
885
885
|
onScroll: () => void;
|
|
886
886
|
onMouseEnter: (() => void) | undefined;
|
|
@@ -882,7 +882,7 @@ export declare function TkxLiveLog({ entries, maxEntries, height, autoScroll, sh
|
|
|
882
882
|
glyphOrientationVertical?: import("csstype").Property.GlyphOrientationVertical | undefined;
|
|
883
883
|
};
|
|
884
884
|
}, HTMLElement> | import("react").DetailedReactHTMLElement<{
|
|
885
|
-
ref: import("react").RefObject<HTMLDivElement>;
|
|
885
|
+
ref: import("react").RefObject<HTMLDivElement | null>;
|
|
886
886
|
style: CSSProperties;
|
|
887
887
|
onScroll: () => void;
|
|
888
888
|
role: "log";
|
|
@@ -21,7 +21,7 @@ export interface TkxRealTimeChartProps {
|
|
|
21
21
|
yMax?: number;
|
|
22
22
|
}
|
|
23
23
|
export declare function TkxRealTimeChart({ data, maxPoints, height, width, color, fill, showGrid, showLabels, showTooltip, label, unit, animate, yMin, yMax, }: TkxRealTimeChartProps): import("react").DetailedReactHTMLElement<{
|
|
24
|
-
ref: import("react").RefObject<HTMLDivElement>;
|
|
24
|
+
ref: import("react").RefObject<HTMLDivElement | null>;
|
|
25
25
|
style: CSSProperties;
|
|
26
26
|
}, HTMLDivElement>;
|
|
27
27
|
//# sourceMappingURL=TkxRealTimeChart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TkxTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/TkxTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,EAAgB,MAAM,OAAO,CAAC;AAOjF,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAEnE,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AASD,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAiB,EAAE,KAAW,EAAE,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"TkxTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/TkxTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,EAAgB,MAAM,OAAO,CAAC;AAOjF,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAEnE,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AASD,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAiB,EAAE,KAAW,EAAE,EAAE,eAAe,2CAgDhG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode, type CSSProperties } from 'react';
|
|
1
|
+
import React, { type ReactNode, type CSSProperties } from 'react';
|
|
2
2
|
export type TypographyType = 'default' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
3
3
|
export interface TkxTitleProps {
|
|
4
4
|
level?: 1 | 2 | 3 | 4 | 5;
|
|
@@ -28,7 +28,7 @@ export interface TkxParagraphProps {
|
|
|
28
28
|
};
|
|
29
29
|
style?: CSSProperties;
|
|
30
30
|
}
|
|
31
|
-
export declare function TkxTitle({ level, children, copyable, type, style, }: TkxTitleProps):
|
|
31
|
+
export declare function TkxTitle({ level, children, copyable, type, style, }: TkxTitleProps): React.ReactElement<{
|
|
32
32
|
style: {
|
|
33
33
|
accentColor?: import("csstype").Property.AccentColor | undefined;
|
|
34
34
|
alignContent?: import("csstype").Property.AlignContent | undefined;
|
|
@@ -888,8 +888,8 @@ export declare function TkxTitle({ level, children, copyable, type, style, }: Tk
|
|
|
888
888
|
colorRendering?: import("csstype").Property.ColorRendering | undefined;
|
|
889
889
|
glyphOrientationVertical?: import("csstype").Property.GlyphOrientationVertical | undefined;
|
|
890
890
|
};
|
|
891
|
-
}, string |
|
|
892
|
-
export declare function TkxText({ children, type, strong, italic, underline, delete: strikethrough, code, mark, copyable, style, }: TkxTextProps):
|
|
891
|
+
}, string | React.JSXElementConstructor<any>>;
|
|
892
|
+
export declare function TkxText({ children, type, strong, italic, underline, delete: strikethrough, code, mark, copyable, style, }: TkxTextProps): React.DetailedReactHTMLElement<{
|
|
893
893
|
style: {
|
|
894
894
|
accentColor?: import("csstype").Property.AccentColor | undefined;
|
|
895
895
|
alignContent?: import("csstype").Property.AlignContent | undefined;
|
|
@@ -1750,7 +1750,7 @@ export declare function TkxText({ children, type, strong, italic, underline, del
|
|
|
1750
1750
|
glyphOrientationVertical?: import("csstype").Property.GlyphOrientationVertical | undefined;
|
|
1751
1751
|
};
|
|
1752
1752
|
}, HTMLElement>;
|
|
1753
|
-
export declare function TkxParagraph({ children, type, copyable, ellipsis, style, }: TkxParagraphProps):
|
|
1753
|
+
export declare function TkxParagraph({ children, type, copyable, ellipsis, style, }: TkxParagraphProps): React.DetailedReactHTMLElement<{
|
|
1754
1754
|
style: {
|
|
1755
1755
|
accentColor?: import("csstype").Property.AccentColor | undefined;
|
|
1756
1756
|
alignContent?: import("csstype").Property.AlignContent | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TkxTypography.d.ts","sourceRoot":"","sources":["../../../src/components/TkxTypography.tsx"],"names":[],"mappings":"AAAA,OAAO,
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ger:#f72585;--tkx-warning:#ffbe0b;--tkx-success:#06d6a0;--tkx-info:#3a86ff;--tkx-space-xs:4px;--tkx-space-sm:8px;--tkx-space-md:16px;--tkx-space-lg:24px;--tkx-space-xl:32px;--tkx-radius-sm:4px;--tkx-radius-md:8px;--tkx-radius-lg:12px;--tkx-radius-full:9999px;--tkx-font-family:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--tkx-font-mono:"Cascadia Code", "Fira Code", "Consolas", monospace;--tkx-transition:.2s ease;--tkx-transition-fast:.1s ease}.tkx-focus-ring:focus-visible{outline:2px solid var(--tkx-primary);outline-offset:2px;border-radius:2px}:focus:not(:focus-visible){outline:none}.tkx-skip-nav{z-index:9999;background:var(--tkx-primary);color:var(--tkx-bg);transition:top var(--tkx-transition-fast);border-radius:0 0 4px;padding:8px 16px;font-weight:600;text-decoration:none;position:absolute;top:-9999px;left:0}.tkx-skip-nav:focus{outline:2px solid var(--tkx-bg);outline-offset:2px;top:0}.tkx-sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@keyframes tkx-fade-in{0%{opacity:0}to{opacity:1}}@keyframes tkx-slide-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes tkx-pulse{0%,to{opacity:1}50%{opacity:.4}}@keyframes tkx-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes tkx-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}@keyframes tkx-ripple{0%{opacity:.6;transform:scale(0)}to{opacity:0;transform:scale(4)}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (prefers-contrast:more){:root{--tkx-border:currentColor}.tkx-focus-ring:focus-visible{outline-width:3px}}@media (forced-colors:active){.tkx-button,.tkx-badge,.tkx-toggle,.tkx-input,.tkx-card{forced-color-adjust:none}}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
import { createContext as e, createElement as t, useContext as n, useEffect as r, useLayoutEffect as i } from "react";
|
|
2
|
+
//#region src/engine/quantum.ts
|
|
3
|
+
var a = 2166136261, o = 16777619;
|
|
4
|
+
function s(e) {
|
|
5
|
+
let t = a;
|
|
6
|
+
for (let n = 0; n < e.length; n++) t ^= e.charCodeAt(n), t = Math.imul(t, o) >>> 0;
|
|
7
|
+
return t.toString(16).padStart(8, "0");
|
|
8
|
+
}
|
|
9
|
+
var c = class {
|
|
10
|
+
constructor(e = 512) {
|
|
11
|
+
this.cache = /* @__PURE__ */ new Map(), this.hits = 0, this.misses = 0, this.ceiling = Math.min(e, 512);
|
|
12
|
+
}
|
|
13
|
+
get(e) {
|
|
14
|
+
if (!this.cache.has(e)) {
|
|
15
|
+
this.misses++;
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
this.hits++;
|
|
19
|
+
let t = this.cache.get(e);
|
|
20
|
+
return this.cache.delete(e), this.cache.set(e, t), t;
|
|
21
|
+
}
|
|
22
|
+
set(e, t) {
|
|
23
|
+
this.cache.has(e) ? this.cache.delete(e) : this.cache.size >= this.ceiling && this.cache.delete(this.cache.keys().next().value), this.cache.set(e, t);
|
|
24
|
+
}
|
|
25
|
+
has(e) {
|
|
26
|
+
return this.cache.has(e);
|
|
27
|
+
}
|
|
28
|
+
invalidate(e) {
|
|
29
|
+
e === void 0 ? this.cache.clear() : this.cache.delete(e);
|
|
30
|
+
}
|
|
31
|
+
get size() {
|
|
32
|
+
return this.cache.size;
|
|
33
|
+
}
|
|
34
|
+
get cacheHitRate() {
|
|
35
|
+
let e = this.hits + this.misses;
|
|
36
|
+
return e === 0 ? 0 : this.hits / e * 100;
|
|
37
|
+
}
|
|
38
|
+
}, l = new c(512);
|
|
39
|
+
function u(e, t) {
|
|
40
|
+
let n = l.get(e);
|
|
41
|
+
if (n !== void 0) return n;
|
|
42
|
+
let r = t();
|
|
43
|
+
return l.set(e, r), r;
|
|
44
|
+
}
|
|
45
|
+
var d = [], f = !1, p = [], m = 0, h = 0;
|
|
46
|
+
function ee() {
|
|
47
|
+
let e = d.splice(0), t = performance.now();
|
|
48
|
+
for (let t of e) try {
|
|
49
|
+
t();
|
|
50
|
+
} catch {}
|
|
51
|
+
let n = performance.now() - t;
|
|
52
|
+
m += n, h++, p.push({
|
|
53
|
+
duration: n,
|
|
54
|
+
timestamp: Date.now()
|
|
55
|
+
}), p.length > 100 && p.shift();
|
|
56
|
+
}
|
|
57
|
+
function g(e) {
|
|
58
|
+
d.push(e), f || (f = !0, queueMicrotask(() => {
|
|
59
|
+
ee(), f = !1;
|
|
60
|
+
}));
|
|
61
|
+
}
|
|
62
|
+
function _(e) {
|
|
63
|
+
let t = e === void 0 ? p.slice() : p.slice(-e);
|
|
64
|
+
return {
|
|
65
|
+
avgRenderTime: h === 0 ? 0 : m / h,
|
|
66
|
+
cacheHitRate: l.cacheHitRate,
|
|
67
|
+
renderCount: h,
|
|
68
|
+
recent: t
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function v(e) {
|
|
72
|
+
e === void 0 ? l.invalidate() : l.invalidate(e);
|
|
73
|
+
}
|
|
74
|
+
var y = {
|
|
75
|
+
hash: s,
|
|
76
|
+
memoize: u,
|
|
77
|
+
batchUpdate: g,
|
|
78
|
+
invalidate: v,
|
|
79
|
+
get avgRenderTime() {
|
|
80
|
+
return h === 0 ? 0 : m / h;
|
|
81
|
+
},
|
|
82
|
+
get cacheHitRate() {
|
|
83
|
+
return l.cacheHitRate;
|
|
84
|
+
},
|
|
85
|
+
getMetrics: _
|
|
86
|
+
}, b = /* @__PURE__ */ new Map();
|
|
87
|
+
function x(e) {
|
|
88
|
+
return e.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
89
|
+
}
|
|
90
|
+
function te(e) {
|
|
91
|
+
return "tkx-" + s(e);
|
|
92
|
+
}
|
|
93
|
+
function S(e) {
|
|
94
|
+
let t = te(e);
|
|
95
|
+
return b.has(t) || b.set(t, e), t;
|
|
96
|
+
}
|
|
97
|
+
function C(e, ...t) {
|
|
98
|
+
let n = e.reduce((e, n, r) => e + n + (t[r] === void 0 ? "" : String(t[r])), "");
|
|
99
|
+
return {
|
|
100
|
+
className: S(n.trim()),
|
|
101
|
+
styles: n.trim()
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
function w(e) {
|
|
105
|
+
let t = Object.entries(e).map(([e, t]) => `${x(e)}: ${t};`).join(" ");
|
|
106
|
+
return {
|
|
107
|
+
className: S(t),
|
|
108
|
+
styles: t
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
var T = {
|
|
112
|
+
xs: "480px",
|
|
113
|
+
sm: "640px",
|
|
114
|
+
md: "768px",
|
|
115
|
+
lg: "1024px",
|
|
116
|
+
xl: "1280px",
|
|
117
|
+
"2xl": "1536px"
|
|
118
|
+
};
|
|
119
|
+
function E(e, t) {
|
|
120
|
+
return `@media (min-width: ${T[e]}) { ${t} }`;
|
|
121
|
+
}
|
|
122
|
+
function D(e, t) {
|
|
123
|
+
return `@keyframes ${e} { ${Object.entries(t).map(([e, t]) => `${e} { ${Object.entries(t).map(([e, t]) => `${x(e)}: ${t};`).join(" ")} }`).join(" ")} }`;
|
|
124
|
+
}
|
|
125
|
+
function O(e, t) {
|
|
126
|
+
return t === void 0 ? `var(--tkx-${e})` : `--tkx-${e}: ${t};`;
|
|
127
|
+
}
|
|
128
|
+
function k() {
|
|
129
|
+
return Array.from(b.entries()).map(([e, t]) => `.${e} { ${t} }`).join("\n");
|
|
130
|
+
}
|
|
131
|
+
function A() {
|
|
132
|
+
b.clear();
|
|
133
|
+
}
|
|
134
|
+
function j() {
|
|
135
|
+
if (typeof document > "u") return;
|
|
136
|
+
let e = document.getElementById("tkx-styles");
|
|
137
|
+
e || (e = document.createElement("style"), e.id = "tkx-styles", document.head.appendChild(e)), e.textContent = k();
|
|
138
|
+
}
|
|
139
|
+
var M = {
|
|
140
|
+
css: C,
|
|
141
|
+
fromObject: w,
|
|
142
|
+
responsive: E,
|
|
143
|
+
keyframes: D,
|
|
144
|
+
cssVar: O,
|
|
145
|
+
extractCSS: k,
|
|
146
|
+
injectStyles: j,
|
|
147
|
+
resetStyles: A
|
|
148
|
+
};
|
|
149
|
+
//#endregion
|
|
150
|
+
//#region src/engine/wcag.ts
|
|
151
|
+
function N(e) {
|
|
152
|
+
if (!e || typeof e != "string") return [
|
|
153
|
+
0,
|
|
154
|
+
0,
|
|
155
|
+
0
|
|
156
|
+
];
|
|
157
|
+
let t = e.replace("#", ""), n = t.length === 3 ? t.split("").map((e) => e + e).join("") : t, r = parseInt(n.slice(0, 2), 16), i = parseInt(n.slice(2, 4), 16), a = parseInt(n.slice(4, 6), 16);
|
|
158
|
+
return [
|
|
159
|
+
isNaN(r) ? 0 : r,
|
|
160
|
+
isNaN(i) ? 0 : i,
|
|
161
|
+
isNaN(a) ? 0 : a
|
|
162
|
+
];
|
|
163
|
+
}
|
|
164
|
+
function P(e) {
|
|
165
|
+
let [t, n, r] = N(e).map((e) => {
|
|
166
|
+
let t = e / 255;
|
|
167
|
+
return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
168
|
+
});
|
|
169
|
+
return .2126 * t + .7152 * n + .0722 * r;
|
|
170
|
+
}
|
|
171
|
+
function F(e, t) {
|
|
172
|
+
let n = P(e), r = P(t), i = Math.max(n, r), a = Math.min(n, r);
|
|
173
|
+
return (i + .05) / (a + .05);
|
|
174
|
+
}
|
|
175
|
+
function I(e, t, n = !1) {
|
|
176
|
+
return F(e, t) >= (n ? 3 : 4.5);
|
|
177
|
+
}
|
|
178
|
+
function L(e, t, n = !1) {
|
|
179
|
+
return F(e, t) >= (n ? 4.5 : 7);
|
|
180
|
+
}
|
|
181
|
+
function R(e, t) {
|
|
182
|
+
let n = t ?? ["#ffffff", "#000000"];
|
|
183
|
+
return n.reduce((t, n) => F(n, e) > F(t, e) ? n : t, n[0]);
|
|
184
|
+
}
|
|
185
|
+
function z() {
|
|
186
|
+
let e = document.createElement("div"), t = document.createElement("div");
|
|
187
|
+
for (let n of [e, t]) n.setAttribute("aria-atomic", "true"), n.style.cssText = "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;", document.body.appendChild(n);
|
|
188
|
+
return e.setAttribute("aria-live", "polite"), t.setAttribute("aria-live", "assertive"), {
|
|
189
|
+
announce(n, r = "polite") {
|
|
190
|
+
let i = r === "assertive" ? t : e;
|
|
191
|
+
i.textContent = "", setTimeout(() => {
|
|
192
|
+
i.textContent = n;
|
|
193
|
+
}, 0);
|
|
194
|
+
},
|
|
195
|
+
destroy() {
|
|
196
|
+
e.remove(), t.remove();
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
var B = [
|
|
201
|
+
"a[href]",
|
|
202
|
+
"button:not([disabled])",
|
|
203
|
+
"input:not([disabled])",
|
|
204
|
+
"select:not([disabled])",
|
|
205
|
+
"textarea:not([disabled])",
|
|
206
|
+
"[tabindex]:not([tabindex=\"-1\"])",
|
|
207
|
+
"details > summary"
|
|
208
|
+
].join(", ");
|
|
209
|
+
function V(e) {
|
|
210
|
+
let t = null, n = null;
|
|
211
|
+
function r() {
|
|
212
|
+
return Array.from(e.querySelectorAll(B)).filter((e) => !e.closest("[hidden]") && !e.closest("[aria-hidden=\"true\"]"));
|
|
213
|
+
}
|
|
214
|
+
return {
|
|
215
|
+
activate() {
|
|
216
|
+
t = document.activeElement;
|
|
217
|
+
let i = r();
|
|
218
|
+
i.length > 0 && i[0].focus(), n = (e) => {
|
|
219
|
+
if (e.key !== "Tab") return;
|
|
220
|
+
let t = r();
|
|
221
|
+
if (t.length === 0) return;
|
|
222
|
+
let n = t[0], i = t[t.length - 1];
|
|
223
|
+
e.shiftKey ? document.activeElement === n && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), n.focus());
|
|
224
|
+
}, e.addEventListener("keydown", n);
|
|
225
|
+
},
|
|
226
|
+
deactivate() {
|
|
227
|
+
n && e.removeEventListener("keydown", n), t instanceof HTMLElement && t.focus(), t = null, n = null;
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
function H(e, t, n, r) {
|
|
232
|
+
let i = t;
|
|
233
|
+
switch (e.key) {
|
|
234
|
+
case "ArrowLeft":
|
|
235
|
+
case "ArrowUp":
|
|
236
|
+
e.preventDefault(), i = t === 0 ? n - 1 : t - 1;
|
|
237
|
+
break;
|
|
238
|
+
case "ArrowRight":
|
|
239
|
+
case "ArrowDown":
|
|
240
|
+
e.preventDefault(), i = t === n - 1 ? 0 : t + 1;
|
|
241
|
+
break;
|
|
242
|
+
case "Home":
|
|
243
|
+
e.preventDefault(), i = 0;
|
|
244
|
+
break;
|
|
245
|
+
case "End":
|
|
246
|
+
e.preventDefault(), i = n - 1;
|
|
247
|
+
break;
|
|
248
|
+
case "Enter":
|
|
249
|
+
case " ":
|
|
250
|
+
e.preventDefault(), r(t);
|
|
251
|
+
return;
|
|
252
|
+
default: return;
|
|
253
|
+
}
|
|
254
|
+
r(i);
|
|
255
|
+
}
|
|
256
|
+
function U(e, t, n, r, i) {
|
|
257
|
+
let a = t;
|
|
258
|
+
switch (e.key) {
|
|
259
|
+
case "ArrowUp":
|
|
260
|
+
e.preventDefault(), a = t === 0 ? n - 1 : t - 1;
|
|
261
|
+
break;
|
|
262
|
+
case "ArrowDown":
|
|
263
|
+
e.preventDefault(), a = t === n - 1 ? 0 : t + 1;
|
|
264
|
+
break;
|
|
265
|
+
case "Home":
|
|
266
|
+
e.preventDefault(), a = 0;
|
|
267
|
+
break;
|
|
268
|
+
case "End":
|
|
269
|
+
e.preventDefault(), a = n - 1;
|
|
270
|
+
break;
|
|
271
|
+
case "Enter":
|
|
272
|
+
case " ":
|
|
273
|
+
e.preventDefault(), r(t);
|
|
274
|
+
return;
|
|
275
|
+
case "Escape":
|
|
276
|
+
e.preventDefault(), i?.();
|
|
277
|
+
return;
|
|
278
|
+
default: return;
|
|
279
|
+
}
|
|
280
|
+
r(a);
|
|
281
|
+
}
|
|
282
|
+
function W() {
|
|
283
|
+
return typeof window > "u" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
284
|
+
}
|
|
285
|
+
function G() {
|
|
286
|
+
return typeof window > "u" ? !1 : window.matchMedia("(forced-colors: active)").matches;
|
|
287
|
+
}
|
|
288
|
+
function K(e, t = "polite") {
|
|
289
|
+
if (typeof document > "u") return;
|
|
290
|
+
let n = document.getElementById("tkx-live-region");
|
|
291
|
+
n || (n = document.createElement("div"), n.id = "tkx-live-region", n.setAttribute("aria-live", t), n.setAttribute("aria-atomic", "true"), n.style.cssText = "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;", document.body.appendChild(n)), n.textContent = "", setTimeout(() => {
|
|
292
|
+
n && (n.textContent = e);
|
|
293
|
+
}, 0);
|
|
294
|
+
}
|
|
295
|
+
var q = {
|
|
296
|
+
contrastRatio: F,
|
|
297
|
+
meetsAA: I,
|
|
298
|
+
meetsAAA: L,
|
|
299
|
+
getAccessibleForeground: R,
|
|
300
|
+
createAnnouncer: z,
|
|
301
|
+
createFocusTrap: V,
|
|
302
|
+
handleTabsKeyboard: H,
|
|
303
|
+
handleMenuKeyboard: U,
|
|
304
|
+
prefersReducedMotion: W,
|
|
305
|
+
prefersHighContrast: G,
|
|
306
|
+
announce: K
|
|
307
|
+
}, J = typeof window < "u" ? i : r, Y = {
|
|
308
|
+
bg: "#0a0a0f",
|
|
309
|
+
surface: "#12121a",
|
|
310
|
+
surfaceAlt: "#1a1a2e",
|
|
311
|
+
border: "#2a2a3e",
|
|
312
|
+
text: "#e8e8f4",
|
|
313
|
+
textMuted: "#8888aa",
|
|
314
|
+
primary: "#00f5d4",
|
|
315
|
+
secondary: "#7b2ff7",
|
|
316
|
+
danger: "#f72585",
|
|
317
|
+
warning: "#ffbe0b",
|
|
318
|
+
success: "#06d6a0",
|
|
319
|
+
info: "#3a86ff"
|
|
320
|
+
}, X = {
|
|
321
|
+
bg: "#f8f6f1",
|
|
322
|
+
surface: "#ffffff",
|
|
323
|
+
surfaceAlt: "#f0ede6",
|
|
324
|
+
border: "#ddd8cc",
|
|
325
|
+
text: "#1a1815",
|
|
326
|
+
textMuted: "#6b6560",
|
|
327
|
+
primary: "#0d7c5f",
|
|
328
|
+
secondary: "#6930c3",
|
|
329
|
+
danger: "#c1121f",
|
|
330
|
+
warning: "#d4a017",
|
|
331
|
+
success: "#0d7c5f",
|
|
332
|
+
info: "#1d4ed8"
|
|
333
|
+
}, Z = /^#[0-9a-fA-F]{3,8}$/;
|
|
334
|
+
function ne(e, t) {
|
|
335
|
+
let n = {
|
|
336
|
+
...e,
|
|
337
|
+
...t
|
|
338
|
+
};
|
|
339
|
+
for (let [e, t] of Object.entries(n)) if (!Z.test(t)) throw Error(`Invalid hex color for theme token '${e}': ${t}`);
|
|
340
|
+
return I(n.text, n.bg) || console.warn(`[TekiVex] Theme contrast warning: text (${n.text}) vs bg (${n.bg}) does not meet WCAG AA minimum (4.5:1)`), I(n.primary, n.bg) || console.warn(`[TekiVex] Theme contrast warning: primary (${n.primary}) vs bg (${n.bg}) does not meet WCAG AA minimum`), L(n.text, n.bg) || console.warn(`[TekiVex] Theme contrast warning: text (${n.text}) vs bg (${n.bg}) does not meet WCAG AAA minimum (7:1)`), n;
|
|
341
|
+
}
|
|
342
|
+
var Q = e(Y);
|
|
343
|
+
function re({ theme: e = Y, children: n }) {
|
|
344
|
+
J(() => {
|
|
345
|
+
let t = Object.entries(e).map(([e, t]) => O(e, t)).join(" "), n = document.getElementById("tkx-theme");
|
|
346
|
+
if (!n) {
|
|
347
|
+
n = document.createElement("style"), n.id = "tkx-theme";
|
|
348
|
+
let e = document.head.querySelector("style");
|
|
349
|
+
e ? document.head.insertBefore(n, e) : document.head.appendChild(n);
|
|
350
|
+
}
|
|
351
|
+
n.textContent = `:root { ${t} }`;
|
|
352
|
+
}, [e]);
|
|
353
|
+
let r = Object.fromEntries(Object.entries(e).map(([e, t]) => [`--tkx-${e}`, t]));
|
|
354
|
+
return t(Q.Provider, { value: e }, t("div", { style: {
|
|
355
|
+
display: "contents",
|
|
356
|
+
...r
|
|
357
|
+
} }, n));
|
|
358
|
+
}
|
|
359
|
+
function ie() {
|
|
360
|
+
return n(Q);
|
|
361
|
+
}
|
|
362
|
+
function ae(e) {
|
|
363
|
+
let t = e.replace("#", ""), n = parseInt(t.slice(0, 2), 16) / 255, r = parseInt(t.slice(2, 4), 16) / 255, i = parseInt(t.slice(4, 6), 16) / 255, a = Math.max(n, r, i), o = Math.min(n, r, i), s = 0, c = 0, l = (a + o) / 2;
|
|
364
|
+
if (a !== o) {
|
|
365
|
+
let e = a - o;
|
|
366
|
+
switch (c = l > .5 ? e / (2 - a - o) : e / (a + o), a) {
|
|
367
|
+
case n:
|
|
368
|
+
s = ((r - i) / e + (r < i ? 6 : 0)) / 6;
|
|
369
|
+
break;
|
|
370
|
+
case r:
|
|
371
|
+
s = ((i - n) / e + 2) / 6;
|
|
372
|
+
break;
|
|
373
|
+
case i:
|
|
374
|
+
s = ((n - r) / e + 4) / 6;
|
|
375
|
+
break;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
return [
|
|
379
|
+
Math.round(s * 360),
|
|
380
|
+
Math.round(c * 100),
|
|
381
|
+
Math.round(l * 100)
|
|
382
|
+
];
|
|
383
|
+
}
|
|
384
|
+
function $(e, t, n) {
|
|
385
|
+
t /= 100, n /= 100;
|
|
386
|
+
let r = t * Math.min(n, 1 - n), i = (t) => {
|
|
387
|
+
let i = (t + e / 30) % 12, a = n - r * Math.max(Math.min(i - 3, 9 - i, 1), -1);
|
|
388
|
+
return Math.round(255 * a).toString(16).padStart(2, "0");
|
|
389
|
+
};
|
|
390
|
+
return `#${i(0)}${i(8)}${i(4)}`;
|
|
391
|
+
}
|
|
392
|
+
function oe(e) {
|
|
393
|
+
let [t, n] = ae(e);
|
|
394
|
+
return {
|
|
395
|
+
50: $(t, Math.min(n, 30), 96),
|
|
396
|
+
100: $(t, Math.min(n, 40), 90),
|
|
397
|
+
200: $(t, Math.min(n, 50), 80),
|
|
398
|
+
300: $(t, n, 70),
|
|
399
|
+
400: $(t, n, 60),
|
|
400
|
+
500: e,
|
|
401
|
+
600: $(t, n, 45),
|
|
402
|
+
700: $(t, n, 35),
|
|
403
|
+
800: $(t, n, 25),
|
|
404
|
+
900: $(t, n, 15)
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
var se = {
|
|
408
|
+
xs: {
|
|
409
|
+
fontSize: "0.75rem",
|
|
410
|
+
lineHeight: "1rem"
|
|
411
|
+
},
|
|
412
|
+
sm: {
|
|
413
|
+
fontSize: "0.875rem",
|
|
414
|
+
lineHeight: "1.25rem"
|
|
415
|
+
},
|
|
416
|
+
base: {
|
|
417
|
+
fontSize: "1rem",
|
|
418
|
+
lineHeight: "1.5rem"
|
|
419
|
+
},
|
|
420
|
+
lg: {
|
|
421
|
+
fontSize: "1.125rem",
|
|
422
|
+
lineHeight: "1.75rem"
|
|
423
|
+
},
|
|
424
|
+
xl: {
|
|
425
|
+
fontSize: "1.25rem",
|
|
426
|
+
lineHeight: "1.75rem"
|
|
427
|
+
},
|
|
428
|
+
"2xl": {
|
|
429
|
+
fontSize: "1.5rem",
|
|
430
|
+
lineHeight: "2rem"
|
|
431
|
+
},
|
|
432
|
+
"3xl": {
|
|
433
|
+
fontSize: "1.875rem",
|
|
434
|
+
lineHeight: "2.25rem"
|
|
435
|
+
},
|
|
436
|
+
"4xl": {
|
|
437
|
+
fontSize: "2.25rem",
|
|
438
|
+
lineHeight: "2.5rem"
|
|
439
|
+
},
|
|
440
|
+
"5xl": {
|
|
441
|
+
fontSize: "3rem",
|
|
442
|
+
lineHeight: "1.15"
|
|
443
|
+
}
|
|
444
|
+
}, ce = {
|
|
445
|
+
0: "0px",
|
|
446
|
+
.5: "2px",
|
|
447
|
+
1: "4px",
|
|
448
|
+
1.5: "6px",
|
|
449
|
+
2: "8px",
|
|
450
|
+
2.5: "10px",
|
|
451
|
+
3: "12px",
|
|
452
|
+
4: "16px",
|
|
453
|
+
5: "20px",
|
|
454
|
+
6: "24px",
|
|
455
|
+
8: "32px",
|
|
456
|
+
10: "40px",
|
|
457
|
+
12: "48px",
|
|
458
|
+
16: "64px",
|
|
459
|
+
20: "80px",
|
|
460
|
+
24: "96px"
|
|
461
|
+
}, le = {
|
|
462
|
+
sm: 640,
|
|
463
|
+
md: 768,
|
|
464
|
+
lg: 1024,
|
|
465
|
+
xl: 1280,
|
|
466
|
+
"2xl": 1536
|
|
467
|
+
}, ue = {
|
|
468
|
+
none: "none",
|
|
469
|
+
xs: "0 1px 2px 0 rgba(0,0,0,0.05)",
|
|
470
|
+
sm: "0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",
|
|
471
|
+
md: "0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",
|
|
472
|
+
lg: "0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",
|
|
473
|
+
xl: "0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)",
|
|
474
|
+
"2xl": "0 25px 50px -12px rgba(0,0,0,0.25)",
|
|
475
|
+
inner: "inset 0 2px 4px 0 rgba(0,0,0,0.06)"
|
|
476
|
+
}, de = {
|
|
477
|
+
hide: -1,
|
|
478
|
+
base: 0,
|
|
479
|
+
dropdown: 1e3,
|
|
480
|
+
sticky: 1100,
|
|
481
|
+
fixed: 1200,
|
|
482
|
+
overlay: 1300,
|
|
483
|
+
modal: 1400,
|
|
484
|
+
popover: 1500,
|
|
485
|
+
tooltip: 1600,
|
|
486
|
+
toast: 1700,
|
|
487
|
+
max: 9999
|
|
488
|
+
}, fe = {
|
|
489
|
+
none: "0",
|
|
490
|
+
sm: "4px",
|
|
491
|
+
md: "6px",
|
|
492
|
+
lg: "8px",
|
|
493
|
+
xl: "12px",
|
|
494
|
+
"2xl": "16px",
|
|
495
|
+
full: "9999px"
|
|
496
|
+
};
|
|
497
|
+
//#endregion
|
|
498
|
+
export { D as A, W as C, k as D, O as E, g as F, s as I, u as L, E as M, c as N, w as O, y as P, G as S, C as T, V as _, ne as a, I as b, fe as c, se as d, ie as f, z as g, F as h, le as i, A as j, j as k, ue as l, q as m, re as n, oe as o, de as p, X as r, Y as s, Q as t, ce as u, R as v, M as w, L as x, H as y };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require(`./chunk-Bmb41Sf3.cjs`);let e=require(`react`);var t=2166136261,n=16777619;function r(e){let r=t;for(let t=0;t<e.length;t++)r^=e.charCodeAt(t),r=Math.imul(r,n)>>>0;return r.toString(16).padStart(8,`0`)}var i=class{constructor(e=512){this.cache=new Map,this.hits=0,this.misses=0,this.ceiling=Math.min(e,512)}get(e){if(!this.cache.has(e)){this.misses++;return}this.hits++;let t=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,t),t}set(e,t){this.cache.has(e)?this.cache.delete(e):this.cache.size>=this.ceiling&&this.cache.delete(this.cache.keys().next().value),this.cache.set(e,t)}has(e){return this.cache.has(e)}invalidate(e){e===void 0?this.cache.clear():this.cache.delete(e)}get size(){return this.cache.size}get cacheHitRate(){let e=this.hits+this.misses;return e===0?0:this.hits/e*100}},a=new i(512);function o(e,t){let n=a.get(e);if(n!==void 0)return n;let r=t();return a.set(e,r),r}var s=[],c=!1,l=[],u=0,d=0;function f(){let e=s.splice(0),t=performance.now();for(let t of e)try{t()}catch{}let n=performance.now()-t;u+=n,d++,l.push({duration:n,timestamp:Date.now()}),l.length>100&&l.shift()}function p(e){s.push(e),c||(c=!0,queueMicrotask(()=>{f(),c=!1}))}function m(e){let t=e===void 0?l.slice():l.slice(-e);return{avgRenderTime:d===0?0:u/d,cacheHitRate:a.cacheHitRate,renderCount:d,recent:t}}function h(e){e===void 0?a.invalidate():a.invalidate(e)}var g={hash:r,memoize:o,batchUpdate:p,invalidate:h,get avgRenderTime(){return d===0?0:u/d},get cacheHitRate(){return a.cacheHitRate},getMetrics:m},_=new Map;function v(e){return e.replace(/([A-Z])/g,`-$1`).toLowerCase()}function y(e){return`tkx-`+r(e)}function b(e){let t=y(e);return _.has(t)||_.set(t,e),t}function x(e,...t){let n=e.reduce((e,n,r)=>e+n+(t[r]===void 0?``:String(t[r])),``);return{className:b(n.trim()),styles:n.trim()}}function S(e){let t=Object.entries(e).map(([e,t])=>`${v(e)}: ${t};`).join(` `);return{className:b(t),styles:t}}var C={xs:`480px`,sm:`640px`,md:`768px`,lg:`1024px`,xl:`1280px`,"2xl":`1536px`};function w(e,t){return`@media (min-width: ${C[e]}) { ${t} }`}function T(e,t){return`@keyframes ${e} { ${Object.entries(t).map(([e,t])=>`${e} { ${Object.entries(t).map(([e,t])=>`${v(e)}: ${t};`).join(` `)} }`).join(` `)} }`}function E(e,t){return t===void 0?`var(--tkx-${e})`:`--tkx-${e}: ${t};`}function D(){return Array.from(_.entries()).map(([e,t])=>`.${e} { ${t} }`).join(`
|
|
2
|
+
`)}function O(){_.clear()}function k(){if(typeof document>`u`)return;let e=document.getElementById(`tkx-styles`);e||(e=document.createElement(`style`),e.id=`tkx-styles`,document.head.appendChild(e)),e.textContent=D()}var A={css:x,fromObject:S,responsive:w,keyframes:T,cssVar:E,extractCSS:D,injectStyles:k,resetStyles:O};function ee(e){if(!e||typeof e!=`string`)return[0,0,0];let t=e.replace(`#`,``),n=t.length===3?t.split(``).map(e=>e+e).join(``):t,r=parseInt(n.slice(0,2),16),i=parseInt(n.slice(2,4),16),a=parseInt(n.slice(4,6),16);return[isNaN(r)?0:r,isNaN(i)?0:i,isNaN(a)?0:a]}function j(e){let[t,n,r]=ee(e).map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*t+.7152*n+.0722*r}function M(e,t){let n=j(e),r=j(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function N(e,t,n=!1){return M(e,t)>=(n?3:4.5)}function P(e,t,n=!1){return M(e,t)>=(n?4.5:7)}function F(e,t){let n=t??[`#ffffff`,`#000000`];return n.reduce((t,n)=>M(n,e)>M(t,e)?n:t,n[0])}function I(){let e=document.createElement(`div`),t=document.createElement(`div`);for(let n of[e,t])n.setAttribute(`aria-atomic`,`true`),n.style.cssText=`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;`,document.body.appendChild(n);return e.setAttribute(`aria-live`,`polite`),t.setAttribute(`aria-live`,`assertive`),{announce(n,r=`polite`){let i=r===`assertive`?t:e;i.textContent=``,setTimeout(()=>{i.textContent=n},0)},destroy(){e.remove(),t.remove()}}}var L=[`a[href]`,`button:not([disabled])`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`,`details > summary`].join(`, `);function R(e){let t=null,n=null;function r(){return Array.from(e.querySelectorAll(L)).filter(e=>!e.closest(`[hidden]`)&&!e.closest(`[aria-hidden="true"]`))}return{activate(){t=document.activeElement;let i=r();i.length>0&&i[0].focus(),n=e=>{if(e.key!==`Tab`)return;let t=r();if(t.length===0)return;let n=t[0],i=t[t.length-1];e.shiftKey?document.activeElement===n&&(e.preventDefault(),i.focus()):document.activeElement===i&&(e.preventDefault(),n.focus())},e.addEventListener(`keydown`,n)},deactivate(){n&&e.removeEventListener(`keydown`,n),t instanceof HTMLElement&&t.focus(),t=null,n=null}}}function z(e,t,n,r){let i=t;switch(e.key){case`ArrowLeft`:case`ArrowUp`:e.preventDefault(),i=t===0?n-1:t-1;break;case`ArrowRight`:case`ArrowDown`:e.preventDefault(),i=t===n-1?0:t+1;break;case`Home`:e.preventDefault(),i=0;break;case`End`:e.preventDefault(),i=n-1;break;case`Enter`:case` `:e.preventDefault(),r(t);return;default:return}r(i)}function B(e,t,n,r,i){let a=t;switch(e.key){case`ArrowUp`:e.preventDefault(),a=t===0?n-1:t-1;break;case`ArrowDown`:e.preventDefault(),a=t===n-1?0:t+1;break;case`Home`:e.preventDefault(),a=0;break;case`End`:e.preventDefault(),a=n-1;break;case`Enter`:case` `:e.preventDefault(),r(t);return;case`Escape`:e.preventDefault(),i?.();return;default:return}r(a)}function V(){return typeof window>`u`?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function H(){return typeof window>`u`?!1:window.matchMedia(`(forced-colors: active)`).matches}function U(e,t=`polite`){if(typeof document>`u`)return;let n=document.getElementById(`tkx-live-region`);n||(n=document.createElement(`div`),n.id=`tkx-live-region`,n.setAttribute(`aria-live`,t),n.setAttribute(`aria-atomic`,`true`),n.style.cssText=`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;`,document.body.appendChild(n)),n.textContent=``,setTimeout(()=>{n&&(n.textContent=e)},0)}var W={contrastRatio:M,meetsAA:N,meetsAAA:P,getAccessibleForeground:F,createAnnouncer:I,createFocusTrap:R,handleTabsKeyboard:z,handleMenuKeyboard:B,prefersReducedMotion:V,prefersHighContrast:H,announce:U},G=typeof window<`u`?e.useLayoutEffect:e.useEffect,K={bg:`#0a0a0f`,surface:`#12121a`,surfaceAlt:`#1a1a2e`,border:`#2a2a3e`,text:`#e8e8f4`,textMuted:`#8888aa`,primary:`#00f5d4`,secondary:`#7b2ff7`,danger:`#f72585`,warning:`#ffbe0b`,success:`#06d6a0`,info:`#3a86ff`},q={bg:`#f8f6f1`,surface:`#ffffff`,surfaceAlt:`#f0ede6`,border:`#ddd8cc`,text:`#1a1815`,textMuted:`#6b6560`,primary:`#0d7c5f`,secondary:`#6930c3`,danger:`#c1121f`,warning:`#d4a017`,success:`#0d7c5f`,info:`#1d4ed8`},J=/^#[0-9a-fA-F]{3,8}$/;function Y(e,t){let n={...e,...t};for(let[e,t]of Object.entries(n))if(!J.test(t))throw Error(`Invalid hex color for theme token '${e}': ${t}`);return N(n.text,n.bg)||console.warn(`[TekiVex] Theme contrast warning: text (${n.text}) vs bg (${n.bg}) does not meet WCAG AA minimum (4.5:1)`),N(n.primary,n.bg)||console.warn(`[TekiVex] Theme contrast warning: primary (${n.primary}) vs bg (${n.bg}) does not meet WCAG AA minimum`),P(n.text,n.bg)||console.warn(`[TekiVex] Theme contrast warning: text (${n.text}) vs bg (${n.bg}) does not meet WCAG AAA minimum (7:1)`),n}var X=(0,e.createContext)(K);function Z({theme:t=K,children:n}){G(()=>{let e=Object.entries(t).map(([e,t])=>E(e,t)).join(` `),n=document.getElementById(`tkx-theme`);if(!n){n=document.createElement(`style`),n.id=`tkx-theme`;let e=document.head.querySelector(`style`);e?document.head.insertBefore(n,e):document.head.appendChild(n)}n.textContent=`:root { ${e} }`},[t]);let r=Object.fromEntries(Object.entries(t).map(([e,t])=>[`--tkx-${e}`,t]));return(0,e.createElement)(X.Provider,{value:t},(0,e.createElement)(`div`,{style:{display:`contents`,...r}},n))}function Q(){return(0,e.useContext)(X)}function te(e){let t=e.replace(`#`,``),n=parseInt(t.slice(0,2),16)/255,r=parseInt(t.slice(2,4),16)/255,i=parseInt(t.slice(4,6),16)/255,a=Math.max(n,r,i),o=Math.min(n,r,i),s=0,c=0,l=(a+o)/2;if(a!==o){let e=a-o;switch(c=l>.5?e/(2-a-o):e/(a+o),a){case n:s=((r-i)/e+(r<i?6:0))/6;break;case r:s=((i-n)/e+2)/6;break;case i:s=((n-r)/e+4)/6;break}}return[Math.round(s*360),Math.round(c*100),Math.round(l*100)]}function $(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),i=t=>{let i=(t+e/30)%12,a=n-r*Math.max(Math.min(i-3,9-i,1),-1);return Math.round(255*a).toString(16).padStart(2,`0`)};return`#${i(0)}${i(8)}${i(4)}`}function ne(e){let[t,n]=te(e);return{50:$(t,Math.min(n,30),96),100:$(t,Math.min(n,40),90),200:$(t,Math.min(n,50),80),300:$(t,n,70),400:$(t,n,60),500:e,600:$(t,n,45),700:$(t,n,35),800:$(t,n,25),900:$(t,n,15)}}var re={xs:{fontSize:`0.75rem`,lineHeight:`1rem`},sm:{fontSize:`0.875rem`,lineHeight:`1.25rem`},base:{fontSize:`1rem`,lineHeight:`1.5rem`},lg:{fontSize:`1.125rem`,lineHeight:`1.75rem`},xl:{fontSize:`1.25rem`,lineHeight:`1.75rem`},"2xl":{fontSize:`1.5rem`,lineHeight:`2rem`},"3xl":{fontSize:`1.875rem`,lineHeight:`2.25rem`},"4xl":{fontSize:`2.25rem`,lineHeight:`2.5rem`},"5xl":{fontSize:`3rem`,lineHeight:`1.15`}},ie={0:`0px`,.5:`2px`,1:`4px`,1.5:`6px`,2:`8px`,2.5:`10px`,3:`12px`,4:`16px`,5:`20px`,6:`24px`,8:`32px`,10:`40px`,12:`48px`,16:`64px`,20:`80px`,24:`96px`},ae={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},oe={none:`none`,xs:`0 1px 2px 0 rgba(0,0,0,0.05)`,sm:`0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)`,md:`0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)`,lg:`0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)`,xl:`0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)`,"2xl":`0 25px 50px -12px rgba(0,0,0,0.25)`,inner:`inset 0 2px 4px 0 rgba(0,0,0,0.06)`},se={hide:-1,base:0,dropdown:1e3,sticky:1100,fixed:1200,overlay:1300,modal:1400,popover:1500,tooltip:1600,toast:1700,max:9999},ce={none:`0`,sm:`4px`,md:`6px`,lg:`8px`,xl:`12px`,"2xl":`16px`,full:`9999px`};Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return z}});
|