xertica-ui 2.0.4 → 2.0.5

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/CHANGELOG.md CHANGED
@@ -7,6 +7,29 @@ Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ---
9
9
 
10
+ ## [2.0.5] — 2026-05-12
11
+
12
+ ### Added
13
+
14
+ - **`llms-compact.txt`** — novo arquivo de referência compacto para LLMs, sintetizando todos os componentes em formato reduzido ideal para contextos de tokens limitados.
15
+ - **`docs/decision-tree.md`** — guia de árvore de decisão para agentes de IA selecionarem o componente correto com base nos requisitos da UI.
16
+ - **`templates/CLAUDE.md`** — `CLAUDE.md` agora é scaffolded automaticamente em projetos criados via `npx xertica-ui@latest init`, fornecendo contexto arquitetural (FSD/FDA, subpath imports, tokens semânticos) para Claude Code e outros assistentes de IA.
17
+ - **Storybook stories** — adicionadas stories interativas para Accordion, AlertDialog, Button, Checkbox, Dialog, Input, Switch, Tabs, HomePage e TemplatePage.
18
+ - **`components/pages/home-page/home-page.mdx`** e **`template-page.mdx`** — novas entradas de documentação MDX para as page components.
19
+
20
+ ### Changed
21
+
22
+ - **`guidelines/Guidelines.md`** — reescrita completa do guia de arquitetura FSD/FDA: maior detalhamento de responsabilidades por camada, convenções de import e fluxo de adição de novas rotas.
23
+ - **`components.json`** — atualização completa do registro de componentes, cobrindo todos os 97 componentes com metadados de subpath, props e variantes.
24
+ - **`llms.txt`** — seção de subpath imports e mapeamento de camadas FSD/FDA atualizados.
25
+ - **`vite.config.ts`** — ajustes no build multi-entry para garantir correta emissão dos arquivos CJS/ESM.
26
+
27
+ ### Fixed
28
+
29
+ - **`npx xertica-ui init` usa versão em cache** — documentado que o npx armazena pacotes em cache localmente sem TTL curto. Sempre use `npx xertica-ui@latest init` para garantir a versão mais recente. O `templates/CLAUDE.md` scaffolded no projeto gerado inclui essa orientação.
30
+
31
+ ---
32
+
10
33
  ## [2.0.3] — 2026-05-11
11
34
 
12
35
  ### Added
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > **Enterprise-grade React design system** built on Tailwind CSS v4, Radix UI, and Lucide Icons — with a robust AI-first documentation layer for precise LLM-driven composition and autonomous agent interaction.
4
4
 
5
- [![npm version](https://img.shields.io/badge/npm-2.0.3-blue)](https://www.npmjs.com/package/xertica-ui)
5
+ [![npm version](https://img.shields.io/badge/npm-2.0.5-blue)](https://www.npmjs.com/package/xertica-ui)
6
6
  [![license](https://img.shields.io/badge/license-proprietary-red)](./LICENSE)
7
7
 
8
8
  ---
@@ -31,6 +31,8 @@ npm run dev
31
31
 
32
32
  The CLI scaffolds a complete Vite + React + TypeScript project with Portuguese UI localization and English AI-ready documentation.
33
33
 
34
+ > **Note:** Always use `@latest` with npx. Without it, npx may execute a locally cached older version instead of fetching the latest from the registry.
35
+
34
36
  ---
35
37
 
36
38
  ## 📦 Installation as a Library
package/bin/cli.ts CHANGED
@@ -18,7 +18,7 @@ const program = new Command();
18
18
  program
19
19
  .name('xertica-ui')
20
20
  .description('CLI to initialize Xertica UI projects')
21
- .version('2.0.4');
21
+ .version('2.0.5');
22
22
 
23
23
  program
24
24
  .command('init')
package/dist/cli.js CHANGED
@@ -528,7 +528,7 @@ var generateTokensCss = (theme) => {
528
528
  var __filename = fileURLToPath(import.meta.url);
529
529
  var __dirname = path.dirname(__filename);
530
530
  var program = new Command();
531
- program.name("xertica-ui").description("CLI to initialize Xertica UI projects").version("2.0.4");
531
+ program.name("xertica-ui").description("CLI to initialize Xertica UI projects").version("2.0.5");
532
532
  program.command("init").description("Initialize a new Xertica UI project").argument("[directory]", "Directory to initialize in", ".").action(async (directory) => {
533
533
  const targetDir = path.resolve(process.cwd(), directory);
534
534
  const templatesDir = path.resolve(__dirname, "../templates");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xertica-ui",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "Xertica UI — Enterprise-grade React design system with Tailwind CSS v4, Radix UI, and AI-first documentation.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
@@ -190,4 +190,4 @@
190
190
  "vite": "^6.0.5",
191
191
  "vitest": "^4.1.5"
192
192
  }
193
- }
193
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xertica-ui-template",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -17,7 +17,7 @@
17
17
  "react-dom": "^18.3.1",
18
18
  "react-router-dom": "^7.1.3",
19
19
  "sonner": "^1.7.3",
20
- "xertica-ui": "^2.0.4"
20
+ "xertica-ui": "^2.0.5"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@eslint/js": "^9.18.0",
@@ -39,5 +39,22 @@
39
39
  "typescript": "^5.7.2",
40
40
  "typescript-eslint": "^8.19.1",
41
41
  "vite": "6.4.2"
42
+ },
43
+ "peerDependencies": {
44
+ "react": "18.3.1",
45
+ "react-dom": "18.3.1"
46
+ },
47
+ "peerDependenciesMeta": {
48
+ "react": {
49
+ "optional": true
50
+ },
51
+ "react-dom": {
52
+ "optional": true
53
+ }
54
+ },
55
+ "pnpm": {
56
+ "overrides": {
57
+ "vite": "6.3.5"
58
+ }
42
59
  }
43
60
  }
@@ -1,6 +1,22 @@
1
- import { defineConfig } from 'vite';
2
- import react from '@vitejs/plugin-react';
3
- // https://vite.dev/config/
1
+ import { defineConfig } from 'vite'
2
+ import path from 'path'
3
+ import tailwindcss from '@tailwindcss/vite'
4
+ import react from '@vitejs/plugin-react'
5
+
4
6
  export default defineConfig({
5
- plugins: [react()],
6
- });
7
+ plugins: [
8
+ // The React and Tailwind plugins are both required for Make, even if
9
+ // Tailwind is not being actively used – do not remove them
10
+ react(),
11
+ tailwindcss(),
12
+ ],
13
+ resolve: {
14
+ alias: {
15
+ // Alias @ to the src directory
16
+ '@': path.resolve(__dirname, './src'),
17
+ },
18
+ },
19
+
20
+ // File types to support raw imports. Never add .css, .tsx, or .ts files to this.
21
+ assetsInclude: ['**/*.svg', '**/*.csv'],
22
+ })
@@ -1,7 +1,22 @@
1
- import { defineConfig } from 'vite';
2
- import react from '@vitejs/plugin-react';
1
+ import { defineConfig } from 'vite'
2
+ import path from 'path'
3
+ import tailwindcss from '@tailwindcss/vite'
4
+ import react from '@vitejs/plugin-react'
3
5
 
4
- // https://vite.dev/config/
5
6
  export default defineConfig({
6
- plugins: [react()],
7
- });
7
+ plugins: [
8
+ // The React and Tailwind plugins are both required for Make, even if
9
+ // Tailwind is not being actively used – do not remove them
10
+ react(),
11
+ tailwindcss(),
12
+ ],
13
+ resolve: {
14
+ alias: {
15
+ // Alias @ to the src directory
16
+ '@': path.resolve(__dirname, './src'),
17
+ },
18
+ },
19
+
20
+ // File types to support raw imports. Never add .css, .tsx, or .ts files to this.
21
+ assetsInclude: ['**/*.svg', '**/*.csv'],
22
+ })