Skip to content

Commit

Permalink
feat(CSS)!: support per-component CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
mfal committed Oct 21, 2024
1 parent deb5a87 commit 2894394
Show file tree
Hide file tree
Showing 24 changed files with 444 additions and 295 deletions.
12 changes: 12 additions & 0 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"namedInputs": {},
"targetDefaults": {
"build": {
"dependsOn": ["^build", "build:icons", "build:imports"],
"dependsOn": ["^build", "build:icons", "build:imports", "build:css"],
"cache": true
},
"start": {
Expand All @@ -32,9 +32,18 @@
"{projectRoot}/src/components/Icon/tablerMappings.yaml"
]
},
"build:css": {
"dependsOn": ["^build", "build:base"],
"cache": true,
"inputs": ["default"]
},
"build:imports": {
"cache": true,
"inputs": ["default", "{projectRoot}/src/content/**/*.mdx"]
},
"build:base": {
"cache": true,
"inputs": ["default"]
}
}
}
14 changes: 14 additions & 0 deletions packages/components/MIGRATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## From version 0.1.0-alpha.291 to 0.1.0-alpha.292

### Renamed CSS export

The CSS export `@mittwald/flow-react-components/styles` has renamed to the more
precise name `@mittwald/flow-react-components/all.css`, because the file
contains the CSS of all components, and now there are CSS exports per component
as well. A documentation on how to use them is planned.

```diff
// main.js
- import "@mittwald/flow-react-components/styles";
+ import "@mittwald/flow-react-components/all.css";
```
Loading

0 comments on commit 2894394

Please sign in to comment.