@csszyx/cli 0.9.0 → 0.9.2
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 +3 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +720 -120
- package/package.json +17 -16
package/README.md
CHANGED
|
@@ -61,6 +61,9 @@ npx csszyx generate-types --output ./src/csszyx.d.ts
|
|
|
61
61
|
### `migrate`
|
|
62
62
|
|
|
63
63
|
Convert Tailwind `className="..."` to CSSzyx `sz={...}` props. Phase 1 supports static string classNames.
|
|
64
|
+
Display utilities migrate to canonical `display` props (`flex` →
|
|
65
|
+
`{ display: 'flex' }`) instead of boolean sugar, and conflicting display
|
|
66
|
+
utilities in the same variant scope stay unresolved for manual review.
|
|
64
67
|
|
|
65
68
|
```bash
|
|
66
69
|
npx csszyx migrate src/
|
package/dist/index.d.mts
CHANGED
|
@@ -210,6 +210,8 @@ interface TransformResult {
|
|
|
210
210
|
stats: {
|
|
211
211
|
classNamesTransformed: number;
|
|
212
212
|
classNamesSkipped: number;
|
|
213
|
+
/** className kept on capitalized components (they do not accept sz). */
|
|
214
|
+
classNamesSkippedComponent: number;
|
|
213
215
|
classesUnrecognized: string[];
|
|
214
216
|
};
|
|
215
217
|
/** Imports that may be unused after migration (e.g., clsx, cn). */
|