tekivex-ui 2.5.7 → 2.5.9
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 +15 -1
- package/dist/TkxForm-2tGLCPH6.js +326 -0
- package/dist/TkxForm-C2VqR2wC.cjs +12 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.js +264 -251
- package/dist/headless.cjs +1 -1
- package/dist/headless.js +21 -20
- package/dist/index-BgHMZe4Z.js +66 -0
- package/dist/index-Bt5y50Qa.cjs +1 -0
- package/dist/index-DnqXtpwV.cjs +2 -0
- package/dist/{index-CAXjeKoK.js → index-iUUHRxqJ.js} +77 -75
- package/dist/index.cjs +21 -21
- package/dist/index.js +24 -25
- package/dist/quantum.cjs +2 -2
- package/dist/quantum.js +4 -4
- package/dist/realtime.cjs +8 -4
- package/dist/realtime.js +391 -377
- package/dist/{security-loRa1HyV.js → security-C-ZPGoyG.js} +1 -1
- package/dist/{security-DMqZVW5d.cjs → security-Uf0mjv8o.cjs} +1 -1
- package/dist/src/charts/TkxDonutChart.d.ts.map +1 -1
- package/dist/src/charts/TkxPieChart.d.ts.map +1 -1
- package/dist/src/components/TkxForm.d.ts +17 -16
- package/dist/src/components/TkxForm.d.ts.map +1 -1
- package/dist/src/components/TkxLiveMetrics.d.ts.map +1 -1
- package/dist/src/components/TkxPlayground.d.ts.map +1 -1
- package/dist/src/components/TkxProgress.d.ts.map +1 -1
- package/dist/src/themes/index.d.ts.map +1 -1
- package/dist/{tkx-C_AlpMt4.js → tkx-BtHzWKTl.js} +1 -1
- package/dist/{tkx-69KQ0myA.cjs → tkx-C7GvVUE9.cjs} +1 -1
- package/package.json +5 -5
- package/src/charts/TkxDonutChart.tsx +6 -2
- package/src/charts/TkxPieChart.tsx +7 -3
- package/src/charts/shared.ts +4 -4
- package/src/components/TkxForm.tsx +35 -32
- package/src/components/TkxLiveMetrics.tsx +24 -2
- package/src/components/TkxPlayground.tsx +40 -5
- package/src/components/TkxProgress.tsx +0 -2
- package/src/themes/index.ts +8 -1
- package/dist/TkxForm-BK5Sq7oj.cjs +0 -12
- package/dist/TkxForm-br3i_vo8.js +0 -388
- package/dist/index-DB_m7X7e.cjs +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./index-
|
|
1
|
+
"use strict";const a=require("./index-DnqXtpwV.cjs"),g={"<":"<",">":">","&":"&","'":"'",'"':"""};function u(t){return String(t).replace(/[<>&'"]/g,n=>g[n]??n)}function p(t){const n={};for(const e of Object.keys(t))n[e]=f(t[e]);return n}function f(t){return typeof t=="string"?u(t):Array.isArray(t)?t.map(f):t!==null&&typeof t=="object"&&!$(t)?p(t):t}function $(t){return typeof t=="object"&&t!==null&&"$$typeof"in t}function h(t,n){const e=[];for(const[s,i]of Object.entries(n)){const o=t[s],c=o==null;if(i.required&&c){e.push(`prop '${s}' is required`);continue}if(!c){if(typeof o!==i.type){e.push(`prop '${s}' must be of type ${i.type}, got ${typeof o}`);continue}i.type==="number"&&typeof o=="number"&&(i.min!==void 0&&o<i.min&&e.push(`prop '${s}' must be >= ${i.min}`),i.max!==void 0&&o>i.max&&e.push(`prop '${s}' must be <= ${i.max}`)),i.type==="string"&&typeof o=="string"&&i.pattern&&!i.pattern.test(o)&&e.push(`prop '${s}' does not match pattern ${i.pattern}`),i.enum&&!i.enum.includes(o)&&e.push(`prop '${s}' must be one of: ${i.enum.join(", ")}`)}}return{valid:e.length===0,errors:e}}const l=new Map;function b(t,n){const e={"default-src":["'self'"],"style-src":n.allowInlineStyles?["'self'","'unsafe-inline'"]:["'self'"],"img-src":n.allowDataUrls?["'self'","data:"]:n.allowExternalSrc?["'self'","*"]:["'self'"],"script-src":n.allowScripts?["'self'"]:["'none'"]},s={componentId:t,permissions:n,directives:e};return l.set(t,s),s}function H(t,n){const e=l.get(t);return(e==null?void 0:e.permissions[n])===!0}let r=[];function y(t,n,e){const s=a.fnv1aHash(JSON.stringify(e??{})),i=r.length>0?r[r.length-1].chainHash:"00000000",o=a.fnv1aHash(i+s+n+t),c=Object.freeze({timestamp:Date.now(),component:n,action:t,propsHash:s,chainHash:o});return r=Object.freeze([...r,c]),c}function m(t){let n=r;return t!=null&&t.component&&(n=n.filter(e=>e.component===t.component)),t!=null&&t.action&&(n=n.filter(e=>e.action===t.action)),t!=null&&t.limit&&(n=n.slice(-t.limit)),n}function d(){let t="00000000";for(const n of r){if(a.fnv1aHash(t+n.propsHash+n.component+n.action)!==n.chainHash)return!1;t=n.chainHash}return!0}const S={sanitize:u,sanitizeProps:p,validateProps:h,createCSP:b,hasPermission:H,audit:y,getAuditLog:m,verifyAuditIntegrity:d};exports.Shield=S;exports.audit=y;exports.getAuditLog=m;exports.sanitizeProps=p;exports.sanitizeString=u;exports.validateProps=h;exports.verifyAuditIntegrity=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TkxDonutChart.d.ts","sourceRoot":"","sources":["../../../src/charts/TkxDonutChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TkxDonutChart.d.ts","sourceRoot":"","sources":["../../../src/charts/TkxDonutChart.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qDAAqD;IACrD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA4BD,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,MAAY,EACZ,UAAiB,EACjB,WAAkB,EAClB,WAAW,EACX,cAAc,EACd,WAAmB,EACnB,WAAmB,EACnB,UAAe,EACf,SAAyB,GAC1B,EAAE,kBAAkB,2CAwFpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TkxPieChart.d.ts","sourceRoot":"","sources":["../../../src/charts/TkxPieChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TkxPieChart.d.ts","sourceRoot":"","sources":["../../../src/charts/TkxPieChart.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,gBAAgB,EAAE,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yEAAyE;IACzE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,MAAY,EACZ,UAAiB,EACjB,WAAkB,EAClB,UAAkB,EAClB,WAAmB,EACnB,UAAe,EACf,SAAuB,GACxB,EAAE,gBAAgB,2CA2DlB"}
|
|
@@ -4,13 +4,14 @@ export interface ValidationRule {
|
|
|
4
4
|
min?: number;
|
|
5
5
|
max?: number;
|
|
6
6
|
pattern?: RegExp;
|
|
7
|
-
validator
|
|
7
|
+
/** Custom validator. Receives the field value and all form values for cross-field validation (e.g. "confirm password" patterns). */
|
|
8
|
+
validator?: (value: unknown, allValues?: Record<string, unknown>) => string | null | Promise<string | null>;
|
|
8
9
|
message?: string;
|
|
9
10
|
}
|
|
10
|
-
export interface TkxFormProps {
|
|
11
|
-
onSubmit?: (values:
|
|
12
|
-
onValuesChange?: (changed:
|
|
13
|
-
initialValues?:
|
|
11
|
+
export interface TkxFormProps<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
12
|
+
onSubmit?: (values: T) => void | Promise<void>;
|
|
13
|
+
onValuesChange?: (changed: Partial<T>, all: T) => void;
|
|
14
|
+
initialValues?: Partial<T>;
|
|
14
15
|
layout?: 'vertical' | 'horizontal' | 'inline';
|
|
15
16
|
disabled?: boolean;
|
|
16
17
|
children: ReactNode;
|
|
@@ -21,7 +22,7 @@ export interface TkxFormProps {
|
|
|
21
22
|
* When provided, the form exposes its internal instance through this reference,
|
|
22
23
|
* enabling programmatic control from outside the component tree.
|
|
23
24
|
*/
|
|
24
|
-
form?: FormInstance
|
|
25
|
+
form?: FormInstance<T>;
|
|
25
26
|
}
|
|
26
27
|
export interface TkxFormFieldProps {
|
|
27
28
|
name: string;
|
|
@@ -33,16 +34,16 @@ export interface TkxFormFieldProps {
|
|
|
33
34
|
className?: string;
|
|
34
35
|
style?: CSSProperties;
|
|
35
36
|
}
|
|
36
|
-
export interface FormInstance {
|
|
37
|
-
getFieldValue: (name:
|
|
38
|
-
setFieldValue: (name:
|
|
39
|
-
getFieldsValue: () =>
|
|
40
|
-
setFieldsValue: (values:
|
|
41
|
-
validateFields: () => Promise<
|
|
42
|
-
validateField: (name: string) => Promise<boolean>;
|
|
37
|
+
export interface FormInstance<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
38
|
+
getFieldValue: <K extends keyof T>(name: K) => T[K] | undefined;
|
|
39
|
+
setFieldValue: <K extends keyof T>(name: K, value: T[K]) => void;
|
|
40
|
+
getFieldsValue: () => Partial<T>;
|
|
41
|
+
setFieldsValue: (values: Partial<T>) => void;
|
|
42
|
+
validateFields: () => Promise<T>;
|
|
43
|
+
validateField: (name: keyof T & string) => Promise<boolean>;
|
|
43
44
|
resetFields: () => void;
|
|
44
|
-
getFieldError: (name: string) => string | null;
|
|
45
|
-
isFieldTouched: (name: string) => boolean;
|
|
45
|
+
getFieldError: (name: keyof T & string) => string | null;
|
|
46
|
+
isFieldTouched: (name: keyof T & string) => boolean;
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
48
49
|
* Returns a FormInstance for programmatic access to form state.
|
|
@@ -73,7 +74,7 @@ export interface FormInstance {
|
|
|
73
74
|
* ```
|
|
74
75
|
*/
|
|
75
76
|
export declare function useTkxForm(): FormInstance;
|
|
76
|
-
export declare function TkxForm({ onSubmit, onValuesChange, initialValues, layout, disabled, children, className, style, form: externalInstance, }: TkxFormProps): import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
export declare function TkxForm<T extends Record<string, unknown> = Record<string, unknown>>({ onSubmit, onValuesChange, initialValues, layout, disabled, children, className, style, form: externalInstance, }: TkxFormProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
77
78
|
export declare namespace TkxForm {
|
|
78
79
|
var displayName: string;
|
|
79
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TkxForm.d.ts","sourceRoot":"","sources":["../../../src/components/TkxForm.tsx"],"names":[],"mappings":"AAMA,OAAO,EAQL,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,aAAa,EAEnB,MAAM,OAAO,CAAC;AAOf,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"TkxForm.d.ts","sourceRoot":"","sources":["../../../src/components/TkxForm.tsx"],"names":[],"mappings":"AAMA,OAAO,EAQL,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,aAAa,EAEnB,MAAM,OAAO,CAAC;AAOf,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oIAAoI;IACpI,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5G,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAID,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACvF,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;IACvD,aAAa,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,QAAQ,CAAC;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;CACxB;AAID,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAID,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACvF,aAAa,EAAE,CAAC,CAAC,SAAS,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IAChE,aAAa,EAAE,CAAC,CAAC,SAAS,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACjE,cAAc,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC;IACjC,cAAc,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC7C,cAAc,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC;IACjC,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5D,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;IACzD,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,MAAM,KAAK,OAAO,CAAC;CACrD;AAkHD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,UAAU,IAAI,YAAY,CA8BzC;AAID,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EACnF,QAAQ,EACR,cAAc,EACd,aAAgC,EAChC,MAAmB,EACnB,QAAgB,EAChB,QAAQ,EACR,SAAS,EACT,KAAK,EACL,IAAI,EAAE,gBAAgB,GACvB,EAAE,YAAY,CAAC,CAAC,CAAC,2CAwLjB;yBAlMe,OAAO;;;AAwMvB,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,KAAK,EACL,KAAK,EAAE,SAAS,EAChB,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,KAAK,GACN,EAAE,iBAAiB,2CAsKnB;yBA/Ke,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TkxLiveMetrics.d.ts","sourceRoot":"","sources":["../../../src/components/TkxLiveMetrics.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AAOf,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;CAC5C;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;CAC9C;
|
|
1
|
+
{"version":3,"file":"TkxLiveMetrics.d.ts","sourceRoot":"","sources":["../../../src/components/TkxLiveMetrics.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AAOf,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;CAC5C;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;CAC9C;AAwPD,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,OAAW,EACX,OAAc,EACd,aAAa,GACd,EAAE,mBAAmB;;gBAuBrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TkxPlayground.d.ts","sourceRoot":"","sources":["../../../src/components/TkxPlayground.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TkxPlayground.d.ts","sourceRoot":"","sources":["../../../src/components/TkxPlayground.tsx"],"names":[],"mappings":"AAmCA,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AA+RD,wBAAgB,aAAa,CAAC,EAC5B,WAAW,EACX,QAAQ,EAAE,YAAY,EACtB,MAAY,EACZ,OAAY,GACb,EAAE,kBAAkB,2CA+apB;yBApbe,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TkxProgress.d.ts","sourceRoot":"","sources":["../../../src/components/TkxProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAMxD,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,UAAU,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAKD,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"TkxProgress.d.ts","sourceRoot":"","sources":["../../../src/components/TkxProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAMxD,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,UAAU,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAKD,eAAO,MAAM,WAAW,6GAwFvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyD,KAAK,SAAS,EAAiB,MAAM,OAAO,CAAC;AAU7G,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAID,eAAO,MAAM,WAAW,EAAE,WAazB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAazB,CAAC;AAMF,wBAAgB,WAAW,CAAC,IAAI,EAAE,WAAW,EAAE,SAAS,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyD,KAAK,SAAS,EAAiB,MAAM,OAAO,CAAC;AAU7G,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAID,eAAO,MAAM,WAAW,EAAE,WAazB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAazB,CAAC;AAMF,wBAAgB,WAAW,CAAC,IAAI,EAAE,WAAW,EAAE,SAAS,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,WAAW,CA8B5F;AAID,eAAO,MAAM,YAAY,sCAA0C,CAAC;AAEpE,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAmB,EAAE,QAAQ,EAAE,EAAE,kBAAkB,wFAsClF;AAED,wBAAgB,QAAQ,IAAI,WAAW,CAEtC;AAoCD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAczD;AAID,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUb,CAAC;AAIX,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;CAiBV,CAAC;AAIX,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AAIX,eAAO,MAAM,OAAO;;;;;;;;;CASV,CAAC;AAIX,eAAO,MAAM,MAAM;;;;;;;;;;;;CAYT,CAAC;AAIX,eAAO,MAAM,KAAK;;;;;;;;CAQR,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const Q=require("./index-DB_m7X7e.cjs"),l={0:"0",px:"1px","0.5":"2px",1:"4px","1.5":"6px",2:"8px","2.5":"10px",3:"12px","3.5":"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px",auto:"auto",full:"100%",screen:"100vw",svh:"100svh",dvh:"100dvh",fit:"fit-content",max:"max-content",min:"min-content"},D={...l,screen:"100vh"},x={"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","5/6":"83.333333%","1/12":"8.333333%","5/12":"41.666667%","7/12":"58.333333%","11/12":"91.666667%"},y={none:"0",sm:"2px","":"4px",md:"6px",lg:"8px",xl:"12px","2xl":"16px","3xl":"24px",full:"9999px"},H={sm:"0 1px 2px 0 rgba(0,0,0,.05)","":"0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)",md:"0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)",lg:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1)",xl:"0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1)","2xl":"0 25px 50px -12px rgba(0,0,0,.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,.05)",none:"none"},tt={xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},et={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},rt={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},nt={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},k={none:"0",sm:"4px","":"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},it=Object.fromEntries([0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100].map(t=>[String(t),String(t/100)])),Y=new Set(["bg","surface","surfaceAlt","border","text","textMuted","primary","secondary","danger","warning","success","info"]),ot={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},st=/javascript\s*:|vbscript\s*:|data\s*:\s*text\/html|data\s*:\s*text\/javascript|expression\s*\(|[\r\n\x00]/i,at=new Set(["behavior","-moz-binding","-webkit-binding","src"]),lt=new Set(["width","min-width","max-width","height","min-height","max-height","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","position","top","right","bottom","left","z-index","inset","flex","flex-grow","flex-shrink","flex-basis","flex-direction","flex-wrap","align-items","align-self","align-content","justify-content","justify-items","justify-self","gap","row-gap","column-gap","grid-template-columns","grid-template-rows","grid-column","grid-row","grid-area","grid-template-areas","font-size","font-weight","font-family","font-style","line-height","letter-spacing","text-align","text-decoration","text-transform","text-overflow","white-space","word-break","word-wrap","overflow-wrap","color","background","background-color","background-image","background-position","background-size","background-repeat","opacity","border","border-top","border-right","border-bottom","border-left","border-width","border-style","border-color","border-radius","outline","outline-offset","box-shadow","text-shadow","filter","backdrop-filter","transform","transition","animation","display","overflow","overflow-x","overflow-y","visibility","pointer-events","cursor","user-select","aspect-ratio","object-fit","object-position","list-style","vertical-align","float","clear","resize","scroll-behavior","content"]);function q(t){return st.test(t)||t.includes("}")||t.includes("{")||t.includes("<")||t.includes(">")?null:t}function ct(t){const o=t.toLowerCase().trim();return at.has(o)||!lt.has(o)?null:o}function i(t){const o=t.match(/^\[(.+)]$/);return o?q(o[1]):null}function h(t){if(Y.has(t))return`var(--tkx-${t})`;if(t==="transparent")return"transparent";if(t==="current")return"currentColor";if(t==="white")return"#ffffff";if(t==="black")return"#000000";if(t==="inherit")return"inherit";const o=i(t);return o||(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t),t)}function ft(t){const o=t.match(/^\[([a-zA-Z-]+):(.+)]$/);if(o){const r=ct(o[1]),n=q(o[2]);return r&&n?{[r]:n}:null}const s={flex:"flex","inline-flex":"inline-flex",grid:"grid","inline-grid":"inline-grid",block:"block","inline-block":"inline-block",inline:"inline",hidden:"none",contents:"contents","flow-root":"flow-root",table:"table","table-row":"table-row","table-cell":"table-cell","table-caption":"table-caption","list-item":"list-item"};if(s[t])return{display:s[t]};const a={"flex-row":"row","flex-col":"column","flex-row-reverse":"row-reverse","flex-col-reverse":"column-reverse"};if(a[t])return{"flex-direction":a[t]};const f={"flex-wrap":"wrap","flex-nowrap":"nowrap","flex-wrap-reverse":"wrap-reverse"};if(f[t])return{"flex-wrap":f[t]};const b={"flex-1":"1 1 0%","flex-auto":"1 1 auto","flex-none":"none","flex-initial":"0 1 auto"};if(b[t])return{flex:b[t]};if(t==="grow"||t==="flex-grow")return{"flex-grow":"1"};if(t==="grow-0")return{"flex-grow":"0"};if(t==="shrink"||t==="flex-shrink")return{"flex-shrink":"1"};if(t==="shrink-0"||t==="flex-shrink-0")return{"flex-shrink":"0"};const $={"items-start":"flex-start","items-end":"flex-end","items-center":"center","items-stretch":"stretch","items-baseline":"baseline"};if($[t])return{"align-items":$[t]};const d={"justify-start":"flex-start","justify-end":"flex-end","justify-center":"center","justify-between":"space-between","justify-around":"space-around","justify-evenly":"space-evenly","justify-stretch":"stretch","justify-normal":"normal"};if(d[t])return{"justify-content":d[t]};const c={"self-auto":"auto","self-start":"flex-start","self-end":"flex-end","self-center":"center","self-stretch":"stretch","self-baseline":"baseline"};if(c[t])return{"align-self":c[t]};const m={"content-start":"flex-start","content-end":"flex-end","content-center":"center","content-between":"space-between","content-around":"space-around","content-evenly":"space-evenly","content-stretch":"stretch"};if(m[t])return{"align-content":m[t]};let e;if(e=t.match(/^grid-cols-(\d+|none|subgrid)$/))return{"grid-template-columns":e[1]==="none"?"none":e[1]==="subgrid"?"subgrid":`repeat(${e[1]},minmax(0,1fr))`};if(e=t.match(/^grid-rows-(\d+|none|subgrid)$/))return{"grid-template-rows":e[1]==="none"?"none":e[1]==="subgrid"?"subgrid":`repeat(${e[1]},minmax(0,1fr))`};if(e=t.match(/^col-span-(full|\d+)$/))return{"grid-column":e[1]==="full"?"1 / -1":`span ${e[1]} / span ${e[1]}`};if(e=t.match(/^col-start-(\d+|auto)$/))return{"grid-column-start":e[1]};if(e=t.match(/^col-end-(\d+|auto)$/))return{"grid-column-end":e[1]};if(e=t.match(/^row-span-(full|\d+)$/))return{"grid-row":e[1]==="full"?"1 / -1":`span ${e[1]} / span ${e[1]}`};if(e=t.match(/^row-start-(\d+|auto)$/))return{"grid-row-start":e[1]};if(e=t.match(/^row-end-(\d+|auto)$/))return{"grid-row-end":e[1]};if(t==="grid-flow-row")return{"grid-auto-flow":"row"};if(t==="grid-flow-col")return{"grid-auto-flow":"column"};if(t==="grid-flow-dense")return{"grid-auto-flow":"dense"};if(t==="grid-flow-row-dense")return{"grid-auto-flow":"row dense"};if(t==="grid-flow-col-dense")return{"grid-auto-flow":"column dense"};if(e=t.match(/^p-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{padding:r}}if(e=t.match(/^px-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-left":r,"padding-right":r}}if(e=t.match(/^py-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-top":r,"padding-bottom":r}}if(e=t.match(/^pt-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-top":r}}if(e=t.match(/^pr-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-right":r}}if(e=t.match(/^pb-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-bottom":r}}if(e=t.match(/^pl-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-left":r}}if(e=t.match(/^-?m-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n)return{margin:r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?mx-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n){const p=r&&n!=="0"?`-${n}`:n;return{"margin-left":p,"margin-right":p}}}if(e=t.match(/^-?my-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n){const p=r&&n!=="0"?`-${n}`:n;return{"margin-top":p,"margin-bottom":p}}}if(e=t.match(/^-?mt-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n)return{"margin-top":r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?mr-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n)return{"margin-right":r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?mb-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n)return{"margin-bottom":r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?ml-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n)return{"margin-left":r&&n!=="0"?`-${n}`:n}}if(t==="mx-auto")return{"margin-left":"auto","margin-right":"auto"};if(t==="my-auto")return{"margin-top":"auto","margin-bottom":"auto"};if(e=t.match(/^gap-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{gap:r}}if(e=t.match(/^gap-x-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"column-gap":r}}if(e=t.match(/^gap-y-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"row-gap":r}}if(e=t.match(/^w-(.+)$/)){const r=e[1],n=l[r]??x[r]??i(r);if(n)return{width:n}}if(e=t.match(/^min-w-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"min-width":r}}if(e=t.match(/^max-w-(.+)$/)){const n={none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}[e[1]]??l[e[1]]??i(e[1]);if(n)return{"max-width":n}}if(e=t.match(/^h-(.+)$/)){const r=e[1],n=D[r]??x[r]??i(r);if(n)return{height:n}}if(e=t.match(/^min-h-(.+)$/)){const n={0:"0",full:"100%",screen:"100vh",svh:"100svh",dvh:"100dvh"}[e[1]]??l[e[1]]??i(e[1]);if(n)return{"min-height":n}}if(e=t.match(/^max-h-(.+)$/)){const r=D[e[1]]??i(e[1]);if(r)return{"max-height":r}}if(e=t.match(/^size-(.+)$/)){const r=l[e[1]]??x[e[1]]??i(e[1]);if(r)return{width:r,height:r}}if(e=t.match(/^text-(xs|sm|base|lg|[2-9]xl|\d+xl)$/)){const[r,n]=tt[e[1]]??["1rem","1.5rem"];return{"font-size":r,"line-height":n}}if(e=t.match(/^font-(thin|extralight|light|normal|medium|semibold|bold|extrabold|black|\d+)$/))return{"font-weight":et[e[1]]??e[1]};if(e=t.match(/^leading-(.+)$/)){const r=rt[e[1]]??i(e[1]);if(r)return{"line-height":r}}if(e=t.match(/^tracking-(.+)$/)){const r=nt[e[1]]??i(e[1]);if(r)return{"letter-spacing":r}}const u={"text-left":"left","text-center":"center","text-right":"right","text-justify":"justify","text-start":"start","text-end":"end"};if(u[t])return{"text-align":u[t]};if(t==="italic")return{"font-style":"italic"};if(t==="not-italic")return{"font-style":"normal"};if(t==="uppercase")return{"text-transform":"uppercase"};if(t==="lowercase")return{"text-transform":"lowercase"};if(t==="capitalize")return{"text-transform":"capitalize"};if(t==="normal-case")return{"text-transform":"none"};if(t==="underline")return{"text-decoration-line":"underline"};if(t==="overline")return{"text-decoration-line":"overline"};if(t==="line-through")return{"text-decoration-line":"line-through"};if(t==="no-underline")return{"text-decoration-line":"none"};if(t==="truncate")return{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"};if(t==="text-ellipsis")return{"text-overflow":"ellipsis"};if(t==="text-clip")return{"text-overflow":"clip"};if(t==="whitespace-normal")return{"white-space":"normal"};if(t==="whitespace-nowrap")return{"white-space":"nowrap"};if(t==="whitespace-pre")return{"white-space":"pre"};if(t==="whitespace-pre-wrap")return{"white-space":"pre-wrap"};if(t==="whitespace-pre-line")return{"white-space":"pre-line"};if(t==="break-words")return{"overflow-wrap":"break-word"};if(t==="break-all")return{"word-break":"break-all"};if(t==="break-keep")return{"word-break":"keep-all"};if(t==="font-mono")return{"font-family":"var(--tkx-font-mono,monospace)"};if(t==="font-sans")return{"font-family":"var(--tkx-font-family,system-ui,sans-serif)"};if(t==="font-serif")return{"font-family":"ui-serif,Georgia,serif"};if(t==="antialiased")return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"};if(e=t.match(/^indent-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"text-indent":r}}if(e=t.match(/^line-clamp-(\d+)$/))return{overflow:"hidden",display:"-webkit-box","-webkit-line-clamp":e[1],"-webkit-box-orient":"vertical"};if(e=t.match(/^text-(.+)$/)){const[r,n]=e[1].split("/"),p=h(r);if(!["left","center","right","justify","start","end","xs","sm","base","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl"].includes(r)){if(n){const J=parseInt(n)/100;return{color:p,opacity:String(J)}}return{color:p}}}if(e=t.match(/^bg-(.+)$/)){const[r,n]=e[1].split("/"),p=h(r);return n?{"background-color":p,opacity:String(parseInt(n)/100)}:r==="none"?{background:"none"}:{"background-color":p}}if(e=t.match(/^border-color-(.+)$/))return{"border-color":h(e[1])};if(e=t.match(/^fill-(.+)$/))return{fill:h(e[1])};if(e=t.match(/^stroke-(.+)$/))return{stroke:h(e[1])};if(e=t.match(/^shadow-color-(.+)$/))return{"--tkx-shadow-color":h(e[1])};if(e=t.match(/^ring-color-(.+)$/))return{"--tkx-ring-color":h(e[1])};if(e=t.match(/^accent-(.+)$/))return{"accent-color":h(e[1])};if(e=t.match(/^caret-(.+)$/))return{"caret-color":h(e[1])};if(e=t.match(/^outline-color-(.+)$/))return{"outline-color":h(e[1])};if(t==="border")return{"border-width":"1px"};if(e=t.match(/^border-(\d+)$/))return{"border-width":`${e[1]}px`};if(t==="border-t")return{"border-top-width":"1px"};if(e=t.match(/^border-t-(\d+)$/))return{"border-top-width":`${e[1]}px`};if(t==="border-r")return{"border-right-width":"1px"};if(e=t.match(/^border-r-(\d+)$/))return{"border-right-width":`${e[1]}px`};if(t==="border-b")return{"border-bottom-width":"1px"};if(e=t.match(/^border-b-(\d+)$/))return{"border-bottom-width":`${e[1]}px`};if(t==="border-l")return{"border-left-width":"1px"};if(e=t.match(/^border-l-(\d+)$/))return{"border-left-width":`${e[1]}px`};if(t==="border-x")return{"border-left-width":"1px","border-right-width":"1px"};if(t==="border-y")return{"border-top-width":"1px","border-bottom-width":"1px"};if(t==="border-none")return{"border-style":"none"};if(t==="border-solid")return{"border-style":"solid"};if(t==="border-dashed")return{"border-style":"dashed"};if(t==="border-dotted")return{"border-style":"dotted"};if(t==="border-double")return{"border-style":"double"};if((e=t.match(/^border-([a-zA-Z].*)$/))&&Y.has(e[1]))return{"border-color":`var(--tkx-${e[1]})`};if(e=t.match(/^border-\[(.+)]$/))return{"border-color":e[1]};if(t==="border-0")return{"border-width":"0"};if(t==="rounded")return{"border-radius":y[""]};if(e=t.match(/^rounded-(none|sm|md|lg|xl|2xl|3xl|full|\[.+])$/))return{"border-radius":y[e[1]]??i(e[1])??e[1]};if(e=t.match(/^rounded-(t|r|b|l|tl|tr|br|bl)(?:-(none|sm|md|lg|xl|2xl|3xl|full))?$/)){const r=e[1],n=y[e[2]??""]??y[""];return{t:{"border-top-left-radius":n,"border-top-right-radius":n},r:{"border-top-right-radius":n,"border-bottom-right-radius":n},b:{"border-bottom-left-radius":n,"border-bottom-right-radius":n},l:{"border-top-left-radius":n,"border-bottom-left-radius":n},tl:{"border-top-left-radius":n},tr:{"border-top-right-radius":n},br:{"border-bottom-right-radius":n},bl:{"border-bottom-left-radius":n}}[r]??{}}const w={0:"0",1:"1px",2:"2px",ring:"3px",4:"4px",8:"8px"};if(t==="ring")return{"box-shadow":"0 0 0 3px var(--tkx-ring-color,var(--tkx-primary))"};if((e=t.match(/^ring-(\d+)$/))&&w[e[1]])return{"box-shadow":`0 0 0 ${w[e[1]]} var(--tkx-ring-color,var(--tkx-primary))`};if(t==="ring-inset")return{"--tkx-ring-offset":"inset"};if(e=t.match(/^ring-offset-(\d+)$/))return{"--tkx-ring-offset-width":`${e[1]}px`,"box-shadow":`0 0 0 ${e[1]}px var(--tkx-bg)`};if(t==="shadow")return{"box-shadow":H[""]};if(e=t.match(/^shadow-(sm|md|lg|xl|2xl|inner|none)$/))return{"box-shadow":H[e[1]]};if(e=t.match(/^opacity-(\d+)$/)){const r=it[e[1]];if(r!==void 0)return{opacity:r}}if(t==="bg-none")return{background:"none"};const M={"bg-auto":"auto","bg-cover":"cover","bg-contain":"contain"};if(M[t])return{"background-size":M[t]};const C={"bg-center":"center","bg-top":"top","bg-bottom":"bottom","bg-left":"left","bg-right":"right"};if(C[t])return{"background-position":C[t]};const W={"bg-repeat":"repeat","bg-no-repeat":"no-repeat","bg-repeat-x":"repeat-x","bg-repeat-y":"repeat-y"};if(W[t])return{"background-repeat":W[t]};if(t==="backdrop-blur")return{"backdrop-filter":`blur(${k[""]})`};if(e=t.match(/^backdrop-blur-(none|sm|md|lg|xl|2xl|3xl)$/))return{"backdrop-filter":`blur(${k[e[1]]})`};if(t==="blur")return{filter:`blur(${k[""]})`};if(e=t.match(/^blur-(none|sm|md|lg|xl|2xl|3xl)$/))return{filter:`blur(${k[e[1]]})`};if(t==="grayscale")return{filter:"grayscale(100%)"};if(t==="grayscale-0")return{filter:"grayscale(0)"};if(t==="invert")return{filter:"invert(100%)"};if(t==="invert-0")return{filter:"invert(0)"};const E={static:"static",relative:"relative",absolute:"absolute",fixed:"fixed",sticky:"sticky"};if(E[t])return{position:E[t]};if(t==="inset-0")return{top:"0",right:"0",bottom:"0",left:"0"};if(t==="inset-auto")return{top:"auto",right:"auto",bottom:"auto",left:"auto"};if(t==="inset-full")return{top:"100%",right:"100%",bottom:"100%",left:"100%"};if(t==="inset-x-0")return{left:"0",right:"0"};if(t==="inset-y-0")return{top:"0",bottom:"0"};if(e=t.match(/^-?top-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{top:r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?right-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{right:r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?bottom-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{bottom:r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?left-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{left:r&&n!=="0"?`-${n}`:n}}const K={0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",100:"100",1e3:"1000",9e3:"9000",auto:"auto"};if(e=t.match(/^z-(.+)$/)){const r=K[e[1]]??i(e[1]);if(r)return{"z-index":r}}const P={"overflow-auto":"auto","overflow-hidden":"hidden","overflow-visible":"visible","overflow-scroll":"scroll","overflow-clip":"clip"};if(P[t])return{overflow:P[t]};if(e=t.match(/^overflow-(x|y)-(auto|hidden|visible|scroll|clip)$/))return{[`overflow-${e[1]}`]:e[2]};if(t==="scrollbar-hide")return{"-ms-overflow-style":"none","scrollbar-width":"none"};if(t==="visible")return{visibility:"visible"};if(t==="invisible")return{visibility:"hidden"};if(t==="collapse")return{visibility:"collapse"};const O={"cursor-auto":"auto","cursor-default":"default","cursor-pointer":"pointer","cursor-wait":"wait","cursor-text":"text","cursor-move":"move","cursor-help":"help","cursor-not-allowed":"not-allowed","cursor-none":"none","cursor-grab":"grab","cursor-grabbing":"grabbing","cursor-zoom-in":"zoom-in","cursor-zoom-out":"zoom-out","cursor-crosshair":"crosshair"};if(O[t])return{cursor:O[t]};if(t==="select-none")return{"user-select":"none"};if(t==="select-text")return{"user-select":"text"};if(t==="select-all")return{"user-select":"all"};if(t==="select-auto")return{"user-select":"auto"};if(t==="pointer-events-none")return{"pointer-events":"none"};if(t==="pointer-events-auto")return{"pointer-events":"auto"};const j={0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"};if(e=t.match(/^scale-(.+)$/)){const r=j[e[1]]??i(e[1]);if(r)return{transform:`scale(${r})`}}if(e=t.match(/^scale-x-(.+)$/)){const r=j[e[1]]??i(e[1]);if(r)return{transform:`scaleX(${r})`}}if(e=t.match(/^scale-y-(.+)$/)){const r=j[e[1]]??i(e[1]);if(r)return{transform:`scaleY(${r})`}}const V={0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"};if(e=t.match(/^-?rotate-(.+)$/)){const r=t.startsWith("-"),n=V[e[1]]??i(e[1]);if(n)return{transform:r?`rotate(-${n})`:`rotate(${n})`}}if(e=t.match(/^-?translate-x-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{transform:`translateX(${r&&n!=="0"?`-${n}`:n})`}}if(e=t.match(/^-?translate-y-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{transform:`translateY(${r&&n!=="0"?`-${n}`:n})`}}if(e=t.match(/^-?skew-x-(.+)$/)){const r=t.startsWith("-"),n=i(e[1])??`${e[1]}deg`;return{transform:r?`skewX(-${n})`:`skewX(${n})`}}if(e=t.match(/^-?skew-y-(.+)$/)){const r=t.startsWith("-"),n=i(e[1])??`${e[1]}deg`;return{transform:r?`skewY(-${n})`:`skewY(${n})`}}const R={"origin-center":"center","origin-top":"top","origin-top-right":"top right","origin-right":"right","origin-bottom-right":"bottom right","origin-bottom":"bottom","origin-bottom-left":"bottom left","origin-left":"left","origin-top-left":"top left"};if(R[t])return{"transform-origin":R[t]};const I={transition:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter","transition-all":"all","transition-colors":"color,background-color,border-color,text-decoration-color,fill,stroke","transition-opacity":"opacity","transition-shadow":"box-shadow","transition-transform":"transform","transition-none":"none"};if(I[t])return{"transition-property":I[t],"transition-timing-function":"cubic-bezier(0.4,0,0.2,1)","transition-duration":"150ms"};const T={75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"};if(e=t.match(/^duration-(.+)$/)){const r=T[e[1]]??i(e[1]);if(r)return{"transition-duration":r}}if(e=t.match(/^delay-(.+)$/)){const r=T[e[1]]??i(e[1]);if(r)return{"transition-delay":r}}const N={"ease-linear":"linear","ease-in":"cubic-bezier(0.4,0,1,1)","ease-out":"cubic-bezier(0,0,0.2,1)","ease-in-out":"cubic-bezier(0.4,0,0.2,1)"};if(N[t])return{"transition-timing-function":N[t]};const _={"animate-none":"none","animate-spin":"tkx-spin 1s linear infinite","animate-ping":"tkx-ping 1s cubic-bezier(0,0,0.2,1) infinite","animate-pulse":"tkx-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite","animate-bounce":"tkx-bounce 1s infinite","animate-fade-in":"tkx-fade-in 200ms ease both","animate-slide-up":"tkx-slide-up 200ms ease both","animate-shimmer":"tkx-shimmer 1.5s infinite"};if(_[t])return{animation:_[t]};const F={"object-contain":"contain","object-cover":"cover","object-fill":"fill","object-none":"none","object-scale-down":"scale-down"};if(F[t])return{"object-fit":F[t]};if(t==="aspect-square")return{"aspect-ratio":"1 / 1"};if(t==="aspect-video")return{"aspect-ratio":"16 / 9"};if(t==="aspect-auto")return{"aspect-ratio":"auto"};if(e=t.match(/^aspect-\[(.+)]$/))return{"aspect-ratio":e[1]};if(t==="list-none")return{"list-style-type":"none"};if(t==="list-disc")return{"list-style-type":"disc"};if(t==="list-decimal")return{"list-style-type":"decimal"};if(t==="list-inside")return{"list-style-position":"inside"};if(t==="list-outside")return{"list-style-position":"outside"};if(e=t.match(/^columns-(\d+)$/))return{columns:e[1]};if(t==="resize")return{resize:"both"};if(t==="resize-none")return{resize:"none"};if(t==="resize-x")return{resize:"horizontal"};if(t==="resize-y")return{resize:"vertical"};if(t==="sr-only")return{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap",border:"0"};if(t==="not-sr-only")return{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"};if(t==="focus-ring")return{outline:"2px solid var(--tkx-primary)","outline-offset":"2px","border-radius":"2px"};if(t==="appearance-none")return{appearance:"none"};if(t==="outline-none")return{outline:"none"};if(t==="outline")return{outline:"2px solid currentColor","outline-offset":"2px"};if(t==="float-left")return{float:"left"};if(t==="float-right")return{float:"right"};if(t==="float-none")return{float:"none"};if(t==="clear-both")return{clear:"both"};if(t==="isolate")return{isolation:"isolate"};if(t==="isolation-auto")return{isolation:"auto"};if(e=t.match(/^will-change-(.+)$/))return{"will-change":e[1]};if(t==="touch-manipulation")return{"touch-action":"manipulation"};if(t==="touch-none")return{"touch-action":"none"};if(t==="touch-pan-x")return{"touch-action":"pan-x"};if(t==="touch-pan-y")return{"touch-action":"pan-y"};if(t==="scroll-smooth")return{"scroll-behavior":"smooth"};if(t==="scroll-auto")return{"scroll-behavior":"auto"};if(e=t.match(/^\[(--[a-zA-Z0-9-]+):(.+)]$/))return{[e[1]]:e[2]};const U=Z(t);return U||null}function dt(t){let o=0,s=-1;for(let a=0;a<t.length;a++)if(t[a]==="[")o++;else if(t[a]==="]")o--;else if(t[a]===":"&&o===0){s=a;break}return s===-1?{variant:null,utility:t}:{variant:t.slice(0,s),utility:t.slice(s+1)}}function G(t,o){for(const[s,a]of Object.entries(o))t[s]=a}function A(t){return Object.entries(t).map(([o,s])=>`${o}:${s}`).join(";")}const S=new Map;let g=null,v=null;function L(){return(!g||!g.isConnected)&&(g=document.getElementById("tkx-atomic"),g||(g=document.createElement("style"),g.id="tkx-atomic",document.head.appendChild(g))),g}function pt(){if(v)return v;try{const t=new CSSStyleSheet;return document.adoptedStyleSheets=[...document.adoptedStyleSheets,t],v=t,t}catch{return null}}function mt(t,o){if(S.has(t)||(S.set(t,o),typeof document>"u"))return;const s=pt();if(s){const a=ht(o);for(const f of a)try{s.insertRule(f,s.cssRules.length)}catch{L().textContent+=f+`
|
|
1
|
+
"use strict";const Q=require("./index-DnqXtpwV.cjs"),l={0:"0",px:"1px","0.5":"2px",1:"4px","1.5":"6px",2:"8px","2.5":"10px",3:"12px","3.5":"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px",auto:"auto",full:"100%",screen:"100vw",svh:"100svh",dvh:"100dvh",fit:"fit-content",max:"max-content",min:"min-content"},D={...l,screen:"100vh"},x={"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","5/6":"83.333333%","1/12":"8.333333%","5/12":"41.666667%","7/12":"58.333333%","11/12":"91.666667%"},y={none:"0",sm:"2px","":"4px",md:"6px",lg:"8px",xl:"12px","2xl":"16px","3xl":"24px",full:"9999px"},H={sm:"0 1px 2px 0 rgba(0,0,0,.05)","":"0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)",md:"0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)",lg:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1)",xl:"0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1)","2xl":"0 25px 50px -12px rgba(0,0,0,.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,.05)",none:"none"},tt={xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},et={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},rt={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},nt={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},k={none:"0",sm:"4px","":"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},it=Object.fromEntries([0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100].map(t=>[String(t),String(t/100)])),Y=new Set(["bg","surface","surfaceAlt","border","text","textMuted","primary","secondary","danger","warning","success","info"]),ot={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},st=/javascript\s*:|vbscript\s*:|data\s*:\s*text\/html|data\s*:\s*text\/javascript|expression\s*\(|[\r\n\x00]/i,at=new Set(["behavior","-moz-binding","-webkit-binding","src"]),lt=new Set(["width","min-width","max-width","height","min-height","max-height","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","position","top","right","bottom","left","z-index","inset","flex","flex-grow","flex-shrink","flex-basis","flex-direction","flex-wrap","align-items","align-self","align-content","justify-content","justify-items","justify-self","gap","row-gap","column-gap","grid-template-columns","grid-template-rows","grid-column","grid-row","grid-area","grid-template-areas","font-size","font-weight","font-family","font-style","line-height","letter-spacing","text-align","text-decoration","text-transform","text-overflow","white-space","word-break","word-wrap","overflow-wrap","color","background","background-color","background-image","background-position","background-size","background-repeat","opacity","border","border-top","border-right","border-bottom","border-left","border-width","border-style","border-color","border-radius","outline","outline-offset","box-shadow","text-shadow","filter","backdrop-filter","transform","transition","animation","display","overflow","overflow-x","overflow-y","visibility","pointer-events","cursor","user-select","aspect-ratio","object-fit","object-position","list-style","vertical-align","float","clear","resize","scroll-behavior","content"]);function q(t){return st.test(t)||t.includes("}")||t.includes("{")||t.includes("<")||t.includes(">")?null:t}function ct(t){const o=t.toLowerCase().trim();return at.has(o)||!lt.has(o)?null:o}function i(t){const o=t.match(/^\[(.+)]$/);return o?q(o[1]):null}function h(t){if(Y.has(t))return`var(--tkx-${t})`;if(t==="transparent")return"transparent";if(t==="current")return"currentColor";if(t==="white")return"#ffffff";if(t==="black")return"#000000";if(t==="inherit")return"inherit";const o=i(t);return o||(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t),t)}function ft(t){const o=t.match(/^\[([a-zA-Z-]+):(.+)]$/);if(o){const r=ct(o[1]),n=q(o[2]);return r&&n?{[r]:n}:null}const s={flex:"flex","inline-flex":"inline-flex",grid:"grid","inline-grid":"inline-grid",block:"block","inline-block":"inline-block",inline:"inline",hidden:"none",contents:"contents","flow-root":"flow-root",table:"table","table-row":"table-row","table-cell":"table-cell","table-caption":"table-caption","list-item":"list-item"};if(s[t])return{display:s[t]};const a={"flex-row":"row","flex-col":"column","flex-row-reverse":"row-reverse","flex-col-reverse":"column-reverse"};if(a[t])return{"flex-direction":a[t]};const f={"flex-wrap":"wrap","flex-nowrap":"nowrap","flex-wrap-reverse":"wrap-reverse"};if(f[t])return{"flex-wrap":f[t]};const b={"flex-1":"1 1 0%","flex-auto":"1 1 auto","flex-none":"none","flex-initial":"0 1 auto"};if(b[t])return{flex:b[t]};if(t==="grow"||t==="flex-grow")return{"flex-grow":"1"};if(t==="grow-0")return{"flex-grow":"0"};if(t==="shrink"||t==="flex-shrink")return{"flex-shrink":"1"};if(t==="shrink-0"||t==="flex-shrink-0")return{"flex-shrink":"0"};const $={"items-start":"flex-start","items-end":"flex-end","items-center":"center","items-stretch":"stretch","items-baseline":"baseline"};if($[t])return{"align-items":$[t]};const d={"justify-start":"flex-start","justify-end":"flex-end","justify-center":"center","justify-between":"space-between","justify-around":"space-around","justify-evenly":"space-evenly","justify-stretch":"stretch","justify-normal":"normal"};if(d[t])return{"justify-content":d[t]};const c={"self-auto":"auto","self-start":"flex-start","self-end":"flex-end","self-center":"center","self-stretch":"stretch","self-baseline":"baseline"};if(c[t])return{"align-self":c[t]};const m={"content-start":"flex-start","content-end":"flex-end","content-center":"center","content-between":"space-between","content-around":"space-around","content-evenly":"space-evenly","content-stretch":"stretch"};if(m[t])return{"align-content":m[t]};let e;if(e=t.match(/^grid-cols-(\d+|none|subgrid)$/))return{"grid-template-columns":e[1]==="none"?"none":e[1]==="subgrid"?"subgrid":`repeat(${e[1]},minmax(0,1fr))`};if(e=t.match(/^grid-rows-(\d+|none|subgrid)$/))return{"grid-template-rows":e[1]==="none"?"none":e[1]==="subgrid"?"subgrid":`repeat(${e[1]},minmax(0,1fr))`};if(e=t.match(/^col-span-(full|\d+)$/))return{"grid-column":e[1]==="full"?"1 / -1":`span ${e[1]} / span ${e[1]}`};if(e=t.match(/^col-start-(\d+|auto)$/))return{"grid-column-start":e[1]};if(e=t.match(/^col-end-(\d+|auto)$/))return{"grid-column-end":e[1]};if(e=t.match(/^row-span-(full|\d+)$/))return{"grid-row":e[1]==="full"?"1 / -1":`span ${e[1]} / span ${e[1]}`};if(e=t.match(/^row-start-(\d+|auto)$/))return{"grid-row-start":e[1]};if(e=t.match(/^row-end-(\d+|auto)$/))return{"grid-row-end":e[1]};if(t==="grid-flow-row")return{"grid-auto-flow":"row"};if(t==="grid-flow-col")return{"grid-auto-flow":"column"};if(t==="grid-flow-dense")return{"grid-auto-flow":"dense"};if(t==="grid-flow-row-dense")return{"grid-auto-flow":"row dense"};if(t==="grid-flow-col-dense")return{"grid-auto-flow":"column dense"};if(e=t.match(/^p-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{padding:r}}if(e=t.match(/^px-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-left":r,"padding-right":r}}if(e=t.match(/^py-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-top":r,"padding-bottom":r}}if(e=t.match(/^pt-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-top":r}}if(e=t.match(/^pr-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-right":r}}if(e=t.match(/^pb-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-bottom":r}}if(e=t.match(/^pl-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"padding-left":r}}if(e=t.match(/^-?m-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n)return{margin:r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?mx-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n){const p=r&&n!=="0"?`-${n}`:n;return{"margin-left":p,"margin-right":p}}}if(e=t.match(/^-?my-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n){const p=r&&n!=="0"?`-${n}`:n;return{"margin-top":p,"margin-bottom":p}}}if(e=t.match(/^-?mt-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n)return{"margin-top":r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?mr-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n)return{"margin-right":r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?mb-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n)return{"margin-bottom":r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?ml-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??i(e[1]);if(n)return{"margin-left":r&&n!=="0"?`-${n}`:n}}if(t==="mx-auto")return{"margin-left":"auto","margin-right":"auto"};if(t==="my-auto")return{"margin-top":"auto","margin-bottom":"auto"};if(e=t.match(/^gap-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{gap:r}}if(e=t.match(/^gap-x-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"column-gap":r}}if(e=t.match(/^gap-y-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"row-gap":r}}if(e=t.match(/^w-(.+)$/)){const r=e[1],n=l[r]??x[r]??i(r);if(n)return{width:n}}if(e=t.match(/^min-w-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"min-width":r}}if(e=t.match(/^max-w-(.+)$/)){const n={none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}[e[1]]??l[e[1]]??i(e[1]);if(n)return{"max-width":n}}if(e=t.match(/^h-(.+)$/)){const r=e[1],n=D[r]??x[r]??i(r);if(n)return{height:n}}if(e=t.match(/^min-h-(.+)$/)){const n={0:"0",full:"100%",screen:"100vh",svh:"100svh",dvh:"100dvh"}[e[1]]??l[e[1]]??i(e[1]);if(n)return{"min-height":n}}if(e=t.match(/^max-h-(.+)$/)){const r=D[e[1]]??i(e[1]);if(r)return{"max-height":r}}if(e=t.match(/^size-(.+)$/)){const r=l[e[1]]??x[e[1]]??i(e[1]);if(r)return{width:r,height:r}}if(e=t.match(/^text-(xs|sm|base|lg|[2-9]xl|\d+xl)$/)){const[r,n]=tt[e[1]]??["1rem","1.5rem"];return{"font-size":r,"line-height":n}}if(e=t.match(/^font-(thin|extralight|light|normal|medium|semibold|bold|extrabold|black|\d+)$/))return{"font-weight":et[e[1]]??e[1]};if(e=t.match(/^leading-(.+)$/)){const r=rt[e[1]]??i(e[1]);if(r)return{"line-height":r}}if(e=t.match(/^tracking-(.+)$/)){const r=nt[e[1]]??i(e[1]);if(r)return{"letter-spacing":r}}const u={"text-left":"left","text-center":"center","text-right":"right","text-justify":"justify","text-start":"start","text-end":"end"};if(u[t])return{"text-align":u[t]};if(t==="italic")return{"font-style":"italic"};if(t==="not-italic")return{"font-style":"normal"};if(t==="uppercase")return{"text-transform":"uppercase"};if(t==="lowercase")return{"text-transform":"lowercase"};if(t==="capitalize")return{"text-transform":"capitalize"};if(t==="normal-case")return{"text-transform":"none"};if(t==="underline")return{"text-decoration-line":"underline"};if(t==="overline")return{"text-decoration-line":"overline"};if(t==="line-through")return{"text-decoration-line":"line-through"};if(t==="no-underline")return{"text-decoration-line":"none"};if(t==="truncate")return{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"};if(t==="text-ellipsis")return{"text-overflow":"ellipsis"};if(t==="text-clip")return{"text-overflow":"clip"};if(t==="whitespace-normal")return{"white-space":"normal"};if(t==="whitespace-nowrap")return{"white-space":"nowrap"};if(t==="whitespace-pre")return{"white-space":"pre"};if(t==="whitespace-pre-wrap")return{"white-space":"pre-wrap"};if(t==="whitespace-pre-line")return{"white-space":"pre-line"};if(t==="break-words")return{"overflow-wrap":"break-word"};if(t==="break-all")return{"word-break":"break-all"};if(t==="break-keep")return{"word-break":"keep-all"};if(t==="font-mono")return{"font-family":"var(--tkx-font-mono,monospace)"};if(t==="font-sans")return{"font-family":"var(--tkx-font-family,system-ui,sans-serif)"};if(t==="font-serif")return{"font-family":"ui-serif,Georgia,serif"};if(t==="antialiased")return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"};if(e=t.match(/^indent-(.+)$/)){const r=l[e[1]]??i(e[1]);if(r)return{"text-indent":r}}if(e=t.match(/^line-clamp-(\d+)$/))return{overflow:"hidden",display:"-webkit-box","-webkit-line-clamp":e[1],"-webkit-box-orient":"vertical"};if(e=t.match(/^text-(.+)$/)){const[r,n]=e[1].split("/"),p=h(r);if(!["left","center","right","justify","start","end","xs","sm","base","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl"].includes(r)){if(n){const J=parseInt(n)/100;return{color:p,opacity:String(J)}}return{color:p}}}if(e=t.match(/^bg-(.+)$/)){const[r,n]=e[1].split("/"),p=h(r);return n?{"background-color":p,opacity:String(parseInt(n)/100)}:r==="none"?{background:"none"}:{"background-color":p}}if(e=t.match(/^border-color-(.+)$/))return{"border-color":h(e[1])};if(e=t.match(/^fill-(.+)$/))return{fill:h(e[1])};if(e=t.match(/^stroke-(.+)$/))return{stroke:h(e[1])};if(e=t.match(/^shadow-color-(.+)$/))return{"--tkx-shadow-color":h(e[1])};if(e=t.match(/^ring-color-(.+)$/))return{"--tkx-ring-color":h(e[1])};if(e=t.match(/^accent-(.+)$/))return{"accent-color":h(e[1])};if(e=t.match(/^caret-(.+)$/))return{"caret-color":h(e[1])};if(e=t.match(/^outline-color-(.+)$/))return{"outline-color":h(e[1])};if(t==="border")return{"border-width":"1px"};if(e=t.match(/^border-(\d+)$/))return{"border-width":`${e[1]}px`};if(t==="border-t")return{"border-top-width":"1px"};if(e=t.match(/^border-t-(\d+)$/))return{"border-top-width":`${e[1]}px`};if(t==="border-r")return{"border-right-width":"1px"};if(e=t.match(/^border-r-(\d+)$/))return{"border-right-width":`${e[1]}px`};if(t==="border-b")return{"border-bottom-width":"1px"};if(e=t.match(/^border-b-(\d+)$/))return{"border-bottom-width":`${e[1]}px`};if(t==="border-l")return{"border-left-width":"1px"};if(e=t.match(/^border-l-(\d+)$/))return{"border-left-width":`${e[1]}px`};if(t==="border-x")return{"border-left-width":"1px","border-right-width":"1px"};if(t==="border-y")return{"border-top-width":"1px","border-bottom-width":"1px"};if(t==="border-none")return{"border-style":"none"};if(t==="border-solid")return{"border-style":"solid"};if(t==="border-dashed")return{"border-style":"dashed"};if(t==="border-dotted")return{"border-style":"dotted"};if(t==="border-double")return{"border-style":"double"};if((e=t.match(/^border-([a-zA-Z].*)$/))&&Y.has(e[1]))return{"border-color":`var(--tkx-${e[1]})`};if(e=t.match(/^border-\[(.+)]$/))return{"border-color":e[1]};if(t==="border-0")return{"border-width":"0"};if(t==="rounded")return{"border-radius":y[""]};if(e=t.match(/^rounded-(none|sm|md|lg|xl|2xl|3xl|full|\[.+])$/))return{"border-radius":y[e[1]]??i(e[1])??e[1]};if(e=t.match(/^rounded-(t|r|b|l|tl|tr|br|bl)(?:-(none|sm|md|lg|xl|2xl|3xl|full))?$/)){const r=e[1],n=y[e[2]??""]??y[""];return{t:{"border-top-left-radius":n,"border-top-right-radius":n},r:{"border-top-right-radius":n,"border-bottom-right-radius":n},b:{"border-bottom-left-radius":n,"border-bottom-right-radius":n},l:{"border-top-left-radius":n,"border-bottom-left-radius":n},tl:{"border-top-left-radius":n},tr:{"border-top-right-radius":n},br:{"border-bottom-right-radius":n},bl:{"border-bottom-left-radius":n}}[r]??{}}const w={0:"0",1:"1px",2:"2px",ring:"3px",4:"4px",8:"8px"};if(t==="ring")return{"box-shadow":"0 0 0 3px var(--tkx-ring-color,var(--tkx-primary))"};if((e=t.match(/^ring-(\d+)$/))&&w[e[1]])return{"box-shadow":`0 0 0 ${w[e[1]]} var(--tkx-ring-color,var(--tkx-primary))`};if(t==="ring-inset")return{"--tkx-ring-offset":"inset"};if(e=t.match(/^ring-offset-(\d+)$/))return{"--tkx-ring-offset-width":`${e[1]}px`,"box-shadow":`0 0 0 ${e[1]}px var(--tkx-bg)`};if(t==="shadow")return{"box-shadow":H[""]};if(e=t.match(/^shadow-(sm|md|lg|xl|2xl|inner|none)$/))return{"box-shadow":H[e[1]]};if(e=t.match(/^opacity-(\d+)$/)){const r=it[e[1]];if(r!==void 0)return{opacity:r}}if(t==="bg-none")return{background:"none"};const M={"bg-auto":"auto","bg-cover":"cover","bg-contain":"contain"};if(M[t])return{"background-size":M[t]};const C={"bg-center":"center","bg-top":"top","bg-bottom":"bottom","bg-left":"left","bg-right":"right"};if(C[t])return{"background-position":C[t]};const W={"bg-repeat":"repeat","bg-no-repeat":"no-repeat","bg-repeat-x":"repeat-x","bg-repeat-y":"repeat-y"};if(W[t])return{"background-repeat":W[t]};if(t==="backdrop-blur")return{"backdrop-filter":`blur(${k[""]})`};if(e=t.match(/^backdrop-blur-(none|sm|md|lg|xl|2xl|3xl)$/))return{"backdrop-filter":`blur(${k[e[1]]})`};if(t==="blur")return{filter:`blur(${k[""]})`};if(e=t.match(/^blur-(none|sm|md|lg|xl|2xl|3xl)$/))return{filter:`blur(${k[e[1]]})`};if(t==="grayscale")return{filter:"grayscale(100%)"};if(t==="grayscale-0")return{filter:"grayscale(0)"};if(t==="invert")return{filter:"invert(100%)"};if(t==="invert-0")return{filter:"invert(0)"};const E={static:"static",relative:"relative",absolute:"absolute",fixed:"fixed",sticky:"sticky"};if(E[t])return{position:E[t]};if(t==="inset-0")return{top:"0",right:"0",bottom:"0",left:"0"};if(t==="inset-auto")return{top:"auto",right:"auto",bottom:"auto",left:"auto"};if(t==="inset-full")return{top:"100%",right:"100%",bottom:"100%",left:"100%"};if(t==="inset-x-0")return{left:"0",right:"0"};if(t==="inset-y-0")return{top:"0",bottom:"0"};if(e=t.match(/^-?top-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{top:r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?right-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{right:r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?bottom-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{bottom:r&&n!=="0"?`-${n}`:n}}if(e=t.match(/^-?left-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{left:r&&n!=="0"?`-${n}`:n}}const K={0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",100:"100",1e3:"1000",9e3:"9000",auto:"auto"};if(e=t.match(/^z-(.+)$/)){const r=K[e[1]]??i(e[1]);if(r)return{"z-index":r}}const P={"overflow-auto":"auto","overflow-hidden":"hidden","overflow-visible":"visible","overflow-scroll":"scroll","overflow-clip":"clip"};if(P[t])return{overflow:P[t]};if(e=t.match(/^overflow-(x|y)-(auto|hidden|visible|scroll|clip)$/))return{[`overflow-${e[1]}`]:e[2]};if(t==="scrollbar-hide")return{"-ms-overflow-style":"none","scrollbar-width":"none"};if(t==="visible")return{visibility:"visible"};if(t==="invisible")return{visibility:"hidden"};if(t==="collapse")return{visibility:"collapse"};const O={"cursor-auto":"auto","cursor-default":"default","cursor-pointer":"pointer","cursor-wait":"wait","cursor-text":"text","cursor-move":"move","cursor-help":"help","cursor-not-allowed":"not-allowed","cursor-none":"none","cursor-grab":"grab","cursor-grabbing":"grabbing","cursor-zoom-in":"zoom-in","cursor-zoom-out":"zoom-out","cursor-crosshair":"crosshair"};if(O[t])return{cursor:O[t]};if(t==="select-none")return{"user-select":"none"};if(t==="select-text")return{"user-select":"text"};if(t==="select-all")return{"user-select":"all"};if(t==="select-auto")return{"user-select":"auto"};if(t==="pointer-events-none")return{"pointer-events":"none"};if(t==="pointer-events-auto")return{"pointer-events":"auto"};const j={0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"};if(e=t.match(/^scale-(.+)$/)){const r=j[e[1]]??i(e[1]);if(r)return{transform:`scale(${r})`}}if(e=t.match(/^scale-x-(.+)$/)){const r=j[e[1]]??i(e[1]);if(r)return{transform:`scaleX(${r})`}}if(e=t.match(/^scale-y-(.+)$/)){const r=j[e[1]]??i(e[1]);if(r)return{transform:`scaleY(${r})`}}const V={0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"};if(e=t.match(/^-?rotate-(.+)$/)){const r=t.startsWith("-"),n=V[e[1]]??i(e[1]);if(n)return{transform:r?`rotate(-${n})`:`rotate(${n})`}}if(e=t.match(/^-?translate-x-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{transform:`translateX(${r&&n!=="0"?`-${n}`:n})`}}if(e=t.match(/^-?translate-y-(.+)$/)){const r=t.startsWith("-"),n=l[e[1]]??x[e[1]]??i(e[1]);if(n)return{transform:`translateY(${r&&n!=="0"?`-${n}`:n})`}}if(e=t.match(/^-?skew-x-(.+)$/)){const r=t.startsWith("-"),n=i(e[1])??`${e[1]}deg`;return{transform:r?`skewX(-${n})`:`skewX(${n})`}}if(e=t.match(/^-?skew-y-(.+)$/)){const r=t.startsWith("-"),n=i(e[1])??`${e[1]}deg`;return{transform:r?`skewY(-${n})`:`skewY(${n})`}}const R={"origin-center":"center","origin-top":"top","origin-top-right":"top right","origin-right":"right","origin-bottom-right":"bottom right","origin-bottom":"bottom","origin-bottom-left":"bottom left","origin-left":"left","origin-top-left":"top left"};if(R[t])return{"transform-origin":R[t]};const I={transition:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter","transition-all":"all","transition-colors":"color,background-color,border-color,text-decoration-color,fill,stroke","transition-opacity":"opacity","transition-shadow":"box-shadow","transition-transform":"transform","transition-none":"none"};if(I[t])return{"transition-property":I[t],"transition-timing-function":"cubic-bezier(0.4,0,0.2,1)","transition-duration":"150ms"};const T={75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"};if(e=t.match(/^duration-(.+)$/)){const r=T[e[1]]??i(e[1]);if(r)return{"transition-duration":r}}if(e=t.match(/^delay-(.+)$/)){const r=T[e[1]]??i(e[1]);if(r)return{"transition-delay":r}}const N={"ease-linear":"linear","ease-in":"cubic-bezier(0.4,0,1,1)","ease-out":"cubic-bezier(0,0,0.2,1)","ease-in-out":"cubic-bezier(0.4,0,0.2,1)"};if(N[t])return{"transition-timing-function":N[t]};const _={"animate-none":"none","animate-spin":"tkx-spin 1s linear infinite","animate-ping":"tkx-ping 1s cubic-bezier(0,0,0.2,1) infinite","animate-pulse":"tkx-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite","animate-bounce":"tkx-bounce 1s infinite","animate-fade-in":"tkx-fade-in 200ms ease both","animate-slide-up":"tkx-slide-up 200ms ease both","animate-shimmer":"tkx-shimmer 1.5s infinite"};if(_[t])return{animation:_[t]};const F={"object-contain":"contain","object-cover":"cover","object-fill":"fill","object-none":"none","object-scale-down":"scale-down"};if(F[t])return{"object-fit":F[t]};if(t==="aspect-square")return{"aspect-ratio":"1 / 1"};if(t==="aspect-video")return{"aspect-ratio":"16 / 9"};if(t==="aspect-auto")return{"aspect-ratio":"auto"};if(e=t.match(/^aspect-\[(.+)]$/))return{"aspect-ratio":e[1]};if(t==="list-none")return{"list-style-type":"none"};if(t==="list-disc")return{"list-style-type":"disc"};if(t==="list-decimal")return{"list-style-type":"decimal"};if(t==="list-inside")return{"list-style-position":"inside"};if(t==="list-outside")return{"list-style-position":"outside"};if(e=t.match(/^columns-(\d+)$/))return{columns:e[1]};if(t==="resize")return{resize:"both"};if(t==="resize-none")return{resize:"none"};if(t==="resize-x")return{resize:"horizontal"};if(t==="resize-y")return{resize:"vertical"};if(t==="sr-only")return{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap",border:"0"};if(t==="not-sr-only")return{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"};if(t==="focus-ring")return{outline:"2px solid var(--tkx-primary)","outline-offset":"2px","border-radius":"2px"};if(t==="appearance-none")return{appearance:"none"};if(t==="outline-none")return{outline:"none"};if(t==="outline")return{outline:"2px solid currentColor","outline-offset":"2px"};if(t==="float-left")return{float:"left"};if(t==="float-right")return{float:"right"};if(t==="float-none")return{float:"none"};if(t==="clear-both")return{clear:"both"};if(t==="isolate")return{isolation:"isolate"};if(t==="isolation-auto")return{isolation:"auto"};if(e=t.match(/^will-change-(.+)$/))return{"will-change":e[1]};if(t==="touch-manipulation")return{"touch-action":"manipulation"};if(t==="touch-none")return{"touch-action":"none"};if(t==="touch-pan-x")return{"touch-action":"pan-x"};if(t==="touch-pan-y")return{"touch-action":"pan-y"};if(t==="scroll-smooth")return{"scroll-behavior":"smooth"};if(t==="scroll-auto")return{"scroll-behavior":"auto"};if(e=t.match(/^\[(--[a-zA-Z0-9-]+):(.+)]$/))return{[e[1]]:e[2]};const U=Z(t);return U||null}function dt(t){let o=0,s=-1;for(let a=0;a<t.length;a++)if(t[a]==="[")o++;else if(t[a]==="]")o--;else if(t[a]===":"&&o===0){s=a;break}return s===-1?{variant:null,utility:t}:{variant:t.slice(0,s),utility:t.slice(s+1)}}function G(t,o){for(const[s,a]of Object.entries(o))t[s]=a}function A(t){return Object.entries(t).map(([o,s])=>`${o}:${s}`).join(";")}const S=new Map;let g=null,v=null;function L(){return(!g||!g.isConnected)&&(g=document.getElementById("tkx-atomic"),g||(g=document.createElement("style"),g.id="tkx-atomic",document.head.appendChild(g))),g}function pt(){if(v)return v;try{const t=new CSSStyleSheet;return document.adoptedStyleSheets=[...document.adoptedStyleSheets,t],v=t,t}catch{return null}}function mt(t,o){if(S.has(t)||(S.set(t,o),typeof document>"u"))return;const s=pt();if(s){const a=ht(o);for(const f of a)try{s.insertRule(f,s.cssRules.length)}catch{L().textContent+=f+`
|
|
2
2
|
`}}else L().textContent+=o+`
|
|
3
3
|
`}function ht(t){const o=[];let s=0,a=0;for(let f=0;f<t.length;f++)if(t[f]==="{")s++;else if(t[f]==="}"&&(s--,s===0)){const b=t.slice(a,f+1).trim();b&&o.push(b),a=f+1}return o}function B(t){const o=[];for(const s of t)if(s){if(typeof s=="string")o.push(...s.split(/\s+/).filter(Boolean));else if(Array.isArray(s))o.push(...B(s));else if(typeof s=="object")for(const[a,f]of Object.entries(s))f&&o.push(a)}return o}function X(...t){const o=B(t);if(o.length===0)return"";const s={base:{},variants:{}};for(const c of o){const{variant:m,utility:e}=dt(c),u=ft(e);u&&(m?(s.variants[m]||(s.variants[m]={}),G(s.variants[m],u)):G(s.base,u))}const a=[],f=A(s.base),b=[f,...Object.entries(s.variants).map(([c,m])=>`${c}{${A(m)}}`)].join("|"),$=Q.fnv1aHash(b),d=`tkx-${$}`;f&&a.push(`.${d}{${f}}`);for(const[c,m]of Object.entries(s.variants)){const e=A(m);if(e)if(c.startsWith("@")){const u=c.slice(1),w=ot[u];w&&a.push(`@media(min-width:${w}){.${d}{${e}}}`)}else if(c==="motion-safe")a.push(`@media(prefers-reduced-motion:no-preference){.${d}{${e}}}`);else if(c==="motion-reduce")a.push(`@media(prefers-reduced-motion:reduce){.${d}{${e}}}`);else if(c==="contrast-more")a.push(`@media(prefers-contrast:more){.${d}{${e}}}`);else if(c==="forced-colors")a.push(`@media(forced-colors:active){.${d}{${e}}}`);else if(c==="dark")a.push(`@media(prefers-color-scheme:dark){.${d}{${e}}}`);else if(c==="print")a.push(`@media print{.${d}{${e}}}`);else if(c==="group-hover")a.push(`.group:hover .${d}{${e}}`);else if(c==="group-focus")a.push(`.group:focus-within .${d}{${e}}`);else if(c==="peer-hover")a.push(`.peer:hover~.${d}{${e}}`);else{const w={hover:":hover",focus:":focus","focus-visible":":focus-visible","focus-within":":focus-within",active:":active",disabled:":disabled",checked:":checked",required:":required",valid:":valid",invalid:":invalid",first:":first-child",last:":last-child",odd:":nth-child(odd)",even:":nth-child(even)","first-of-type":":first-of-type","last-of-type":":last-of-type","only-child":":only-child","only-of-type":":only-of-type",empty:":empty",visited:":visited",target:":target","placeholder-shown":":placeholder-shown","read-only":":read-only",before:"::before",after:"::after",placeholder:"::placeholder",selection:"::selection","file-selector":"::file-selector-button",marker:"::marker"}[c]??`:${c}`;a.push(`.${d}${w}{${e}}`)}}return a.length>0&&mt($,a.join("")),d}const ut=X;function xt(){return Array.from(S.values()).join(`
|
|
4
4
|
`)}function gt(){S.clear(),g=null,v&&typeof document<"u"&&(document.adoptedStyleSheets=document.adoptedStyleSheets.filter(t=>t!==v),v=null)}function bt(...t){return t.filter(Boolean).join(" ")}const z=new Map;function wt(t){z.set(t.name,t.utilities)}function vt(t){z.delete(t)}function $t(){return Array.from(z.keys())}function Z(t){for(const o of z.values())if(o[t])return o[t];return null}exports.cx=bt;exports.extractAtomicCSS=xt;exports.resetAtomicCSS=gt;exports.resolvePluginUtility=Z;exports.tkx=X;exports.tkxListPlugins=$t;exports.tkxPlugin=wt;exports.tkxRemovePlugin=vt;exports.tx=ut;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tekivex-ui",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.9",
|
|
4
4
|
"description": "Production-grade React component library — 70+ components, WCAG 2.1 AAA, WAI-ARIA 1.2, built-in charts, headless primitives, zero-runtime CSS engine, TypeScript-first.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -69,16 +69,15 @@
|
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"react": ">=18.0.0",
|
|
72
|
-
"react-dom": ">=18.0.0"
|
|
72
|
+
"react-dom": ">=18.0.0",
|
|
73
|
+
"recharts": ">=2.0.0"
|
|
73
74
|
},
|
|
74
75
|
"peerDependenciesMeta": {
|
|
75
76
|
"recharts": {
|
|
76
77
|
"optional": true
|
|
77
78
|
}
|
|
78
79
|
},
|
|
79
|
-
"dependencies": {
|
|
80
|
-
"recharts": "^2.15.4"
|
|
81
|
-
},
|
|
80
|
+
"dependencies": {},
|
|
82
81
|
"devDependencies": {
|
|
83
82
|
"@testing-library/jest-dom": "^6.6.3",
|
|
84
83
|
"@testing-library/react": "^16.1.0",
|
|
@@ -95,6 +94,7 @@
|
|
|
95
94
|
"prettier": "^3.3.3",
|
|
96
95
|
"react": "^18.3.1",
|
|
97
96
|
"react-dom": "^18.3.1",
|
|
97
|
+
"recharts": "^2.15.4",
|
|
98
98
|
"typescript": "^5.6.3",
|
|
99
99
|
"vite": "^5.4.11",
|
|
100
100
|
"vitest": "^2.1.6"
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
Legend,
|
|
9
9
|
} from 'recharts';
|
|
10
10
|
import { useTheme } from '../themes';
|
|
11
|
+
import { useReducedMotion } from '../hooks';
|
|
11
12
|
import { getDefaultColors, tooltipStyle } from './shared';
|
|
12
13
|
|
|
13
14
|
export interface TkxDonutChartSlice {
|
|
@@ -72,14 +73,17 @@ export function TkxDonutChart({
|
|
|
72
73
|
ariaLabel = 'Donut chart',
|
|
73
74
|
}: TkxDonutChartProps) {
|
|
74
75
|
const theme = useTheme();
|
|
76
|
+
const reduced = useReducedMotion();
|
|
75
77
|
const colors = getDefaultColors(theme);
|
|
76
78
|
const tt = tooltipStyle(theme);
|
|
77
79
|
// Force ResponsiveContainer to re-measure after the parent layout settles.
|
|
78
|
-
|
|
80
|
+
// When reduced motion is preferred, skip the animation and mount immediately.
|
|
81
|
+
const [mounted, setMounted] = useState(reduced);
|
|
79
82
|
useEffect(() => {
|
|
83
|
+
if (reduced) { setMounted(true); return; }
|
|
80
84
|
const id = requestAnimationFrame(() => setMounted(true));
|
|
81
85
|
return () => cancelAnimationFrame(id);
|
|
82
|
-
}, []);
|
|
86
|
+
}, [reduced]);
|
|
83
87
|
|
|
84
88
|
return (
|
|
85
89
|
<div
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
Legend,
|
|
9
9
|
} from 'recharts';
|
|
10
10
|
import { useTheme } from '../themes';
|
|
11
|
+
import { useReducedMotion } from '../hooks';
|
|
11
12
|
import { getDefaultColors, tooltipStyle } from './shared';
|
|
12
13
|
|
|
13
14
|
export interface TkxPieChartSlice {
|
|
@@ -40,16 +41,19 @@ export function TkxPieChart({
|
|
|
40
41
|
ariaLabel = 'Pie chart',
|
|
41
42
|
}: TkxPieChartProps) {
|
|
42
43
|
const theme = useTheme();
|
|
44
|
+
const reduced = useReducedMotion();
|
|
43
45
|
const colors = getDefaultColors(theme);
|
|
44
46
|
const tt = tooltipStyle(theme);
|
|
45
47
|
// Force ResponsiveContainer to re-measure after the parent layout settles.
|
|
46
|
-
// Without this, recharts can compute
|
|
48
|
+
// Without this, recharts can compute 0x0 on first paint inside CSS grids/flex
|
|
47
49
|
// and the chart silently disappears.
|
|
48
|
-
|
|
50
|
+
// When reduced motion is preferred, skip the animation and mount immediately.
|
|
51
|
+
const [mounted, setMounted] = useState(reduced);
|
|
49
52
|
useEffect(() => {
|
|
53
|
+
if (reduced) { setMounted(true); return; }
|
|
50
54
|
const id = requestAnimationFrame(() => setMounted(true));
|
|
51
55
|
return () => cancelAnimationFrame(id);
|
|
52
|
-
}, []);
|
|
56
|
+
}, [reduced]);
|
|
53
57
|
|
|
54
58
|
return (
|
|
55
59
|
<div
|
package/src/charts/shared.ts
CHANGED
|
@@ -11,10 +11,10 @@ export function getDefaultColors(theme: ThemeTokens): string[] {
|
|
|
11
11
|
theme.success,
|
|
12
12
|
theme.warning,
|
|
13
13
|
theme.danger,
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
14
|
+
theme.primary + 'aa', // primary at 67% opacity
|
|
15
|
+
theme.secondary + 'aa', // secondary at 67% opacity
|
|
16
|
+
theme.info + 'aa', // info at 67% opacity
|
|
17
|
+
theme.success + 'aa', // success at 67% opacity
|
|
18
18
|
];
|
|
19
19
|
}
|
|
20
20
|
|