@fluencypassdevs/cycle 0.5.0 → 0.5.1

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.
@@ -48,9 +48,33 @@ import { cn } from "@fluencypassdevs/cycle/lib/utils"
48
48
  ### Regras de Codigo
49
49
 
50
50
  11. **Usar TypeScript strict** — tipar todas as props, nunca usar `any`
51
- 12. **Icones via CycleIcon** — `import { CycleIcon } from "@fluencypassdevs/cycle"` + `import { Home } from "@fluencypassdevs/cycle/icons/lucide"` + `<CycleIcon icon={Home} size="sm" />`
51
+ 12. **NUNCA importar de `lucide-react` direto** — icones Lucide SEMPRE de `@fluencypassdevs/cycle/icons/lucide`. O pacote `lucide-react` e uma dependencia interna do Cycle, nao deve ser importado diretamente no projeto.
52
52
  13. **Imports com alias `@/`** — para codigo do projeto. Componentes do DS sempre de `@fluencypassdevs/cycle`
53
53
 
54
+ ## Icones (IMPORTANTE)
55
+
56
+ O Cycle tem duas fontes de icones. **NUNCA importar de `lucide-react` diretamente.**
57
+
58
+ ```tsx
59
+ // Icones Lucide — SEMPRE deste path, NUNCA de "lucide-react"
60
+ import { CycleIcon } from "@fluencypassdevs/cycle"
61
+ import { Home, Search, Settings } from "@fluencypassdevs/cycle/icons/lucide"
62
+
63
+ <CycleIcon icon={Home} size="sm" decorative />
64
+ <CycleIcon icon={Search} size="sm" aria-label="Buscar" />
65
+
66
+ // Icones custom Cycle (EdTech) — sem wrapper CycleIcon
67
+ import { Flashcard, Quiz, Course } from "@fluencypassdevs/cycle"
68
+
69
+ <Flashcard size="sm" decorative />
70
+ ```
71
+
72
+ **ERRADO:**
73
+ ```tsx
74
+ // NUNCA fazer isso:
75
+ import { Home } from "lucide-react" // ❌ PROIBIDO
76
+ ```
77
+
54
78
  ## Componentes Disponiveis
55
79
 
56
80
  Todos importados de `@fluencypassdevs/cycle`:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluencypassdevs/cycle",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Cycle Design System — UI component library by Fluencypass",
5
5
  "license": "MIT",
6
6
  "repository": {