diff --git a/CHANGELOG.md b/CHANGELOG.md index 894e25a3..62a16435 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,30 @@ # [Versions](https://mui.com/versions/) +## 0.0.29 + + + +_Dec 20, 2024_ + +A big thanks to the 3 contributors who made this release possible. + +### `@pigment-css/react@0.0.29` + +- Use the correct serializer based on the direction value (#350) @brijeshb42 +- Fix `useTheme` return type (#338) @mnajdova +- Add react 19 as a peer dependency (#347) @brijeshb42 + +### `@pigment-css/theme@0.0.29` + +- Implement @pigment-css/theme package (#341) @brijeshb42 + +### Core + +- [docs]: fix quickstart command (#351) @yash49 +- [examples] Fix vite example & add dark mode support (#340) @mnajdova + +All contributors of this release in alphabetical order: @brijeshb42, @mnajdova, @yash49 + ## 0.0.28 diff --git a/docs/README.md b/docs/README.md index f717cd73..a8d86773 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,4 +1,4 @@ # Pigment CSS Docs app -This is the Pigment CSS docs application bootstrapped with Next.js 15. It uses app router and -Pigment CSS for styling. +This is the Pigment CSS docs application bootstrapped with Next.js 15. It uses App Router and +Pigment CSS for styling. diff --git a/package.json b/package.json index 798d215a..7f48d2e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pigment-css/monorepo", - "version": "0.0.28", + "version": "0.0.29", "private": true, "scripts": { "preinstall": "npx only-allow pnpm", diff --git a/packages/pigment-css-nextjs-plugin/package.json b/packages/pigment-css-nextjs-plugin/package.json index 7ccd6f82..f1865d4d 100644 --- a/packages/pigment-css-nextjs-plugin/package.json +++ b/packages/pigment-css-nextjs-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@pigment-css/nextjs-plugin", - "version": "0.0.28", + "version": "0.0.29", "main": "build/index.js", "module": "build/index.mjs", "types": "build/index.d.ts", diff --git a/packages/pigment-css-react/package.json b/packages/pigment-css-react/package.json index 071c6e4a..43b21b9a 100644 --- a/packages/pigment-css-react/package.json +++ b/packages/pigment-css-react/package.json @@ -1,6 +1,6 @@ { "name": "@pigment-css/react", - "version": "0.0.28", + "version": "0.0.29", "main": "build/index.js", "module": "build/index.mjs", "types": "build/index.d.ts", diff --git a/packages/pigment-css-react/src/styled.d.ts b/packages/pigment-css-react/src/styled.d.ts index 70c02784..4844c542 100644 --- a/packages/pigment-css-react/src/styled.d.ts +++ b/packages/pigment-css-react/src/styled.d.ts @@ -33,9 +33,15 @@ export interface CreateStyledComponent< Component extends React.ElementType, OuterProps extends object, > { + // Template Literal case ( styles: TemplateStringsArray, - ...args: Array<((options: ThemeArgs) => Primitve) | Primitve | React.ComponentClass> + ...args: Array< + | ((options: ThemeArgs) => Primitve) + | Primitve + | React.ComponentClass + | StyledArgument + > ): StyledComponent & (Component extends string ? BaseDefaultProps : Component); /** diff --git a/packages/pigment-css-theme/package.json b/packages/pigment-css-theme/package.json index f293b7ad..e69c3941 100644 --- a/packages/pigment-css-theme/package.json +++ b/packages/pigment-css-theme/package.json @@ -1,6 +1,6 @@ { "name": "@pigment-css/theme", - "version": "0.0.27", + "version": "0.0.29", "main": "build/index.js", "module": "build/index.mjs", "types": "build/index.d.ts", @@ -30,7 +30,6 @@ "test:ci": "cd ../../ && cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=lcov --report-dir=./coverage/pigment-css-theme mocha 'packages/pigment-css-theme/**/*.test.{js,ts,tsx}'", "typescript": "tsc --noEmit -p ." }, - "dependencies": {}, "devDependencies": { "@types/chai": "^4.3.14", "chai": "^4.4.1" diff --git a/packages/pigment-css-unplugin/package.json b/packages/pigment-css-unplugin/package.json index 846d08ec..a20dc3c0 100644 --- a/packages/pigment-css-unplugin/package.json +++ b/packages/pigment-css-unplugin/package.json @@ -1,6 +1,6 @@ { "name": "@pigment-css/unplugin", - "version": "0.0.28", + "version": "0.0.29", "main": "build/index.js", "module": "build/index.mjs", "types": "build/index.d.ts", diff --git a/packages/pigment-css-vite-plugin/package.json b/packages/pigment-css-vite-plugin/package.json index d4f423ef..5fe8e2f8 100644 --- a/packages/pigment-css-vite-plugin/package.json +++ b/packages/pigment-css-vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@pigment-css/vite-plugin", - "version": "0.0.28", + "version": "0.0.29", "main": "build/index.js", "module": "build/index.mjs", "types": "build/index.d.ts",