@promptui-lib/codegen 0.1.18 → 0.1.19

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.
@@ -11,7 +11,7 @@ export function generateDefaultVariables() {
11
11
  // Run 'promptui sync tokens' to update from Figma
12
12
 
13
13
  // Import fonts (if _fonts.scss exists)
14
- @import 'fonts';
14
+ @use 'fonts';
15
15
 
16
16
  // =============================================================================
17
17
  // COLORS
@@ -57,9 +57,9 @@ async function ensureVariablesFile(basePath) {
57
57
  // Verifica se tem o import de fonts
58
58
  try {
59
59
  const content = await readFile(variablesPath, 'utf-8');
60
- if (!content.includes("@import 'fonts'") && !content.includes('@import "fonts"')) {
60
+ if (!content.includes("@use 'fonts'") && !content.includes('@use "fonts"')) {
61
61
  // Adiciona o import de fonts no início
62
- const updatedContent = content.replace(/(\/\/ PromptUI - Design Tokens.*?\n)/s, "$1\n// Import fonts\n@import 'fonts';\n");
62
+ const updatedContent = content.replace(/(\/\/ PromptUI - Design Tokens.*?\n)/s, "$1\n// Import fonts\n@use 'fonts';\n");
63
63
  if (updatedContent !== content) {
64
64
  await writeFile(variablesPath, updatedContent, 'utf-8');
65
65
  return variablesPath; // Foi atualizado
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptui-lib/codegen",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "private": false,
5
5
  "description": "Code generator for PromptUI - generates React TSX and SCSS",
6
6
  "license": "UNLICENSED",
@@ -30,7 +30,7 @@
30
30
  "dist"
31
31
  ],
32
32
  "dependencies": {
33
- "@promptui-lib/core": "0.1.18"
33
+ "@promptui-lib/core": "0.1.19"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^20.0.0",