@fwkui/x-css 1.0.22 → 1.0.23
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 +239 -36
- package/dist/index-auto.d.mts +1 -1
- package/dist/index-auto.d.ts +1 -1
- package/dist/index-auto.js +17 -18
- package/dist/index-auto.js.map +1 -1
- package/dist/index-auto.mjs +17 -18
- package/dist/index-auto.mjs.map +1 -1
- package/dist/index.d.mts +60 -1
- package/dist/index.d.ts +60 -1
- package/dist/index.js +17 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -4
package/dist/index.d.mts
CHANGED
|
@@ -43,6 +43,65 @@ type BootloaderScriptOptions = {
|
|
|
43
43
|
};
|
|
44
44
|
declare const getBootloaderScript: (styleIdInput?: string, version?: string, options?: BootloaderScriptOptions) => string;
|
|
45
45
|
|
|
46
|
+
type TailwindConversionStatus = 'converted' | 'passthrough' | 'unsupported';
|
|
47
|
+
type TailwindTokenClassification = 'tailwind' | 'xcss' | 'ambiguous' | 'unknown';
|
|
48
|
+
type TailwindConversionMode = 'legacy' | 'safe' | 'strict';
|
|
49
|
+
interface TailwindConversionWarning {
|
|
50
|
+
token: string;
|
|
51
|
+
message: string;
|
|
52
|
+
}
|
|
53
|
+
interface TailwindTokenConversion {
|
|
54
|
+
input: string;
|
|
55
|
+
outputs: string[];
|
|
56
|
+
status: TailwindConversionStatus;
|
|
57
|
+
classification: TailwindTokenClassification;
|
|
58
|
+
exact: boolean;
|
|
59
|
+
warnings: TailwindConversionWarning[];
|
|
60
|
+
}
|
|
61
|
+
interface TailwindConversionResult {
|
|
62
|
+
input: string;
|
|
63
|
+
output: string;
|
|
64
|
+
details: TailwindTokenConversion[];
|
|
65
|
+
converted: string[];
|
|
66
|
+
passthrough: string[];
|
|
67
|
+
unsupported: string[];
|
|
68
|
+
ambiguous: string[];
|
|
69
|
+
warnings: TailwindConversionWarning[];
|
|
70
|
+
}
|
|
71
|
+
interface TailwindConversionOptions {
|
|
72
|
+
preserveUnknown?: boolean;
|
|
73
|
+
mode?: TailwindConversionMode;
|
|
74
|
+
}
|
|
75
|
+
declare const classifyTailwindToken: (token: string) => TailwindTokenClassification;
|
|
76
|
+
declare const convertTailwindToken: (token: string, options?: TailwindConversionOptions) => TailwindTokenConversion;
|
|
77
|
+
declare const convertTailwindClasses: (input: string, options?: TailwindConversionOptions) => TailwindConversionResult;
|
|
78
|
+
declare const tailwindToXcss: (input: string, options?: TailwindConversionOptions) => TailwindConversionResult;
|
|
79
|
+
|
|
80
|
+
type TailwindCoverageSupport = 'exact' | 'partial' | 'manual';
|
|
81
|
+
interface TailwindCoverageEntry {
|
|
82
|
+
group: string;
|
|
83
|
+
support: TailwindCoverageSupport;
|
|
84
|
+
examples: string[];
|
|
85
|
+
notes: string;
|
|
86
|
+
}
|
|
87
|
+
interface TailwindMigrationReadinessOptions extends TailwindConversionOptions {
|
|
88
|
+
}
|
|
89
|
+
interface TailwindMigrationReadinessReport {
|
|
90
|
+
input: string;
|
|
91
|
+
conversion: TailwindConversionResult;
|
|
92
|
+
autoApplyOutput: string;
|
|
93
|
+
exactConverted: string[];
|
|
94
|
+
approximateConverted: string[];
|
|
95
|
+
passthroughXcss: string[];
|
|
96
|
+
reviewRequired: string[];
|
|
97
|
+
blocked: string[];
|
|
98
|
+
safeToAutoApply: boolean;
|
|
99
|
+
releaseDecision: 'safe' | 'review' | 'blocked';
|
|
100
|
+
}
|
|
101
|
+
declare const TAILWIND_COVERAGE_MATRIX: readonly TailwindCoverageEntry[];
|
|
102
|
+
declare const getTailwindCoverageMatrix: () => readonly TailwindCoverageEntry[];
|
|
103
|
+
declare const assessTailwindMigrationReadiness: (input: string, options?: TailwindMigrationReadinessOptions) => TailwindMigrationReadinessReport;
|
|
104
|
+
|
|
46
105
|
type CssRoot = Document | ShadowRoot;
|
|
47
106
|
interface SharedXCSSInstance {
|
|
48
107
|
clsx: (...args: any[]) => string;
|
|
@@ -59,4 +118,4 @@ declare const setClsxRoot: (root: CssRoot) => void;
|
|
|
59
118
|
declare const getCss: (root?: CssRoot | null) => string;
|
|
60
119
|
declare const ready: (root?: CssRoot | null) => Promise<void>;
|
|
61
120
|
|
|
62
|
-
export { type BootloaderScriptOptions, type SharedXCSSInstance, type XCSSConfig, clsx, createSharedClsx, createSharedInstance, _default as default, getBootloaderScript, getCss, observe, ready, setClsxRoot };
|
|
121
|
+
export { type BootloaderScriptOptions, type SharedXCSSInstance, TAILWIND_COVERAGE_MATRIX, type TailwindConversionMode, type TailwindConversionOptions, type TailwindConversionResult, type TailwindConversionStatus, type TailwindConversionWarning, type TailwindCoverageEntry, type TailwindCoverageSupport, type TailwindMigrationReadinessOptions, type TailwindMigrationReadinessReport, type TailwindTokenClassification, type TailwindTokenConversion, type XCSSConfig, assessTailwindMigrationReadiness, classifyTailwindToken, clsx, convertTailwindClasses, convertTailwindToken, createSharedClsx, createSharedInstance, _default as default, getBootloaderScript, getCss, getTailwindCoverageMatrix, observe, ready, setClsxRoot, tailwindToXcss };
|
package/dist/index.d.ts
CHANGED
|
@@ -43,6 +43,65 @@ type BootloaderScriptOptions = {
|
|
|
43
43
|
};
|
|
44
44
|
declare const getBootloaderScript: (styleIdInput?: string, version?: string, options?: BootloaderScriptOptions) => string;
|
|
45
45
|
|
|
46
|
+
type TailwindConversionStatus = 'converted' | 'passthrough' | 'unsupported';
|
|
47
|
+
type TailwindTokenClassification = 'tailwind' | 'xcss' | 'ambiguous' | 'unknown';
|
|
48
|
+
type TailwindConversionMode = 'legacy' | 'safe' | 'strict';
|
|
49
|
+
interface TailwindConversionWarning {
|
|
50
|
+
token: string;
|
|
51
|
+
message: string;
|
|
52
|
+
}
|
|
53
|
+
interface TailwindTokenConversion {
|
|
54
|
+
input: string;
|
|
55
|
+
outputs: string[];
|
|
56
|
+
status: TailwindConversionStatus;
|
|
57
|
+
classification: TailwindTokenClassification;
|
|
58
|
+
exact: boolean;
|
|
59
|
+
warnings: TailwindConversionWarning[];
|
|
60
|
+
}
|
|
61
|
+
interface TailwindConversionResult {
|
|
62
|
+
input: string;
|
|
63
|
+
output: string;
|
|
64
|
+
details: TailwindTokenConversion[];
|
|
65
|
+
converted: string[];
|
|
66
|
+
passthrough: string[];
|
|
67
|
+
unsupported: string[];
|
|
68
|
+
ambiguous: string[];
|
|
69
|
+
warnings: TailwindConversionWarning[];
|
|
70
|
+
}
|
|
71
|
+
interface TailwindConversionOptions {
|
|
72
|
+
preserveUnknown?: boolean;
|
|
73
|
+
mode?: TailwindConversionMode;
|
|
74
|
+
}
|
|
75
|
+
declare const classifyTailwindToken: (token: string) => TailwindTokenClassification;
|
|
76
|
+
declare const convertTailwindToken: (token: string, options?: TailwindConversionOptions) => TailwindTokenConversion;
|
|
77
|
+
declare const convertTailwindClasses: (input: string, options?: TailwindConversionOptions) => TailwindConversionResult;
|
|
78
|
+
declare const tailwindToXcss: (input: string, options?: TailwindConversionOptions) => TailwindConversionResult;
|
|
79
|
+
|
|
80
|
+
type TailwindCoverageSupport = 'exact' | 'partial' | 'manual';
|
|
81
|
+
interface TailwindCoverageEntry {
|
|
82
|
+
group: string;
|
|
83
|
+
support: TailwindCoverageSupport;
|
|
84
|
+
examples: string[];
|
|
85
|
+
notes: string;
|
|
86
|
+
}
|
|
87
|
+
interface TailwindMigrationReadinessOptions extends TailwindConversionOptions {
|
|
88
|
+
}
|
|
89
|
+
interface TailwindMigrationReadinessReport {
|
|
90
|
+
input: string;
|
|
91
|
+
conversion: TailwindConversionResult;
|
|
92
|
+
autoApplyOutput: string;
|
|
93
|
+
exactConverted: string[];
|
|
94
|
+
approximateConverted: string[];
|
|
95
|
+
passthroughXcss: string[];
|
|
96
|
+
reviewRequired: string[];
|
|
97
|
+
blocked: string[];
|
|
98
|
+
safeToAutoApply: boolean;
|
|
99
|
+
releaseDecision: 'safe' | 'review' | 'blocked';
|
|
100
|
+
}
|
|
101
|
+
declare const TAILWIND_COVERAGE_MATRIX: readonly TailwindCoverageEntry[];
|
|
102
|
+
declare const getTailwindCoverageMatrix: () => readonly TailwindCoverageEntry[];
|
|
103
|
+
declare const assessTailwindMigrationReadiness: (input: string, options?: TailwindMigrationReadinessOptions) => TailwindMigrationReadinessReport;
|
|
104
|
+
|
|
46
105
|
type CssRoot = Document | ShadowRoot;
|
|
47
106
|
interface SharedXCSSInstance {
|
|
48
107
|
clsx: (...args: any[]) => string;
|
|
@@ -59,4 +118,4 @@ declare const setClsxRoot: (root: CssRoot) => void;
|
|
|
59
118
|
declare const getCss: (root?: CssRoot | null) => string;
|
|
60
119
|
declare const ready: (root?: CssRoot | null) => Promise<void>;
|
|
61
120
|
|
|
62
|
-
export { type BootloaderScriptOptions, type SharedXCSSInstance, type XCSSConfig, clsx, createSharedClsx, createSharedInstance, _default as default, getBootloaderScript, getCss, observe, ready, setClsxRoot };
|
|
121
|
+
export { type BootloaderScriptOptions, type SharedXCSSInstance, TAILWIND_COVERAGE_MATRIX, type TailwindConversionMode, type TailwindConversionOptions, type TailwindConversionResult, type TailwindConversionStatus, type TailwindConversionWarning, type TailwindCoverageEntry, type TailwindCoverageSupport, type TailwindMigrationReadinessOptions, type TailwindMigrationReadinessReport, type TailwindTokenClassification, type TailwindTokenConversion, type XCSSConfig, assessTailwindMigrationReadiness, classifyTailwindToken, clsx, convertTailwindClasses, convertTailwindToken, createSharedClsx, createSharedInstance, _default as default, getBootloaderScript, getCss, getTailwindCoverageMatrix, observe, ready, setClsxRoot, tailwindToXcss };
|