Skip to content

Commit

Permalink
Merge branch 'master' into bump-vite-to-v6
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanyluk authored Dec 30, 2024
2 parents 43d0ec4 + 9989784 commit 3a99680
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 10 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# [Versions](https://mui.com/versions/)

## 0.0.29

<!-- generated comparing v0.0.28..master -->

_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

<!-- generated comparing v0.0.27..master -->
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pigment-css/monorepo",
"version": "0.0.28",
"version": "0.0.29",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
Expand Down
2 changes: 1 addition & 1 deletion packages/pigment-css-nextjs-plugin/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/pigment-css-react/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 7 additions & 1 deletion packages/pigment-css-react/src/styled.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<OuterProps>
>
): StyledComponent<OuterProps> & (Component extends string ? BaseDefaultProps : Component);

/**
Expand Down
3 changes: 1 addition & 2 deletions packages/pigment-css-theme/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/pigment-css-unplugin/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/pigment-css-vite-plugin/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 3a99680

Please sign in to comment.