@thecodecodex/design-system 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +11 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -64,6 +64,17 @@ Textos fixos vêm em pt-BR; passe `labels` para traduzir (ex.: `<OutputList labe
64
64
 
65
65
  Com `preact({ compat: true })` (Astro) ou o alias `react → preact/compat` no bundler, os componentes funcionam sem mudanças.
66
66
 
67
+ No Astro, empacote o pacote também no SSR/prerender, senão o Node carrega o React real (instalado como peer) e os hooks quebram:
68
+
69
+ ```js
70
+ // astro.config.mjs
71
+ const bundled = { resolve: { noExternal: ["@thecodecodex/design-system"] } }
72
+ export default defineConfig({
73
+ integrations: [preact({ compat: true })],
74
+ vite: { environments: { ssr: bundled, prerender: bundled } },
75
+ })
76
+ ```
77
+
67
78
  ## Desenvolvimento
68
79
 
69
80
  ```bash
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@thecodecodex/design-system",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Design system do thecodecodex.com: tokens e temas para Tailwind CSS v4 e componentes React",
5
5
  "license": "MIT",
6
6
  "author": "Douglas Capeletti",
7
- "homepage": "https://github.com/thecodecodex/system-design#readme",
7
+ "homepage": "https://github.com/thecodecodex/design-system#readme",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "git+https://github.com/thecodecodex/system-design.git"
10
+ "url": "git+https://github.com/thecodecodex/design-system.git"
11
11
  },
12
- "bugs": "https://github.com/thecodecodex/system-design/issues",
12
+ "bugs": "https://github.com/thecodecodex/design-system/issues",
13
13
  "keywords": ["design-system", "tailwindcss", "react", "preact", "themes"],
14
14
  "type": "module",
15
15
  "sideEffects": ["**/*.css"],