Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into breakpoint-ultra-…
Browse files Browse the repository at this point in the history
…wide-pigment-css
  • Loading branch information
AlexJSully committed Aug 2, 2024
2 parents 169badd + 69a550a commit 2e5864f
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 17 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,26 @@
> @pigment-css/monorepo@0.0.15 release:changelog /Users/siriwatknp/Personal-Repos/pigment-css
> node scripts/releaseChangelog.mjs
## 0.0.18

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

_Jul 25, 2024_

A big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:

## `@pigment-css/[email protected]`

- &#8203;<!-- 4 -->Replace global JSX (#183) @DiegoAndai
- &#8203;<!-- 3 -->Normalize rest / other to match the most common used @oliviertassinari
- &#8203;<!-- 2 -->Normalize rest / other to match the most common used @oliviertassinari

## `@pigment-css/[email protected]`

- &#8203;<!-- 1 -->[webpack] Fix support for webpack and add example app (#174) @brijeshb42

All contributors of this release in alphabetical order: @brijeshb42, @DiegoAndai, @oliviertassinari

## v0.0.17

<!-- generated comparing v0.0.16..master -->
Expand Down
12 changes: 6 additions & 6 deletions apps/pigment-css-next-app/src/app/stack/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ export default function InteractiveStack() {
const [direction, setDirection] = React.useState<StackProps['direction']>('column');
const [spacing, setSpacing] = React.useState<string | number>(2);

const handleChange = React.useCallback((ev: React.ChangeEvent<HTMLInputElement>) => {
switch (ev.target.name) {
const handleChange = React.useCallback((event: React.ChangeEvent<HTMLInputElement>) => {
switch (event.target.name) {
case 'direction': {
setDirection(ev.target.value as StackProps['direction']);
setDirection(event.target.value as StackProps['direction']);
break;
}
case 'spacing': {
setSpacing(
ev.target.value.match(/^[0-9]+\.?[0-9]*$/)
? parseFloat(ev.target.value)
: ev.target.value,
event.target.value.match(/^[0-9]+\.?[0-9]*$/)
? parseFloat(event.target.value)
: event.target.value,
);
break;
}
Expand Down
12 changes: 6 additions & 6 deletions apps/pigment-css-vite-app/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ export default function InteractiveStack() {
const [direction, setDirection] = React.useState<StackProps['direction']>('column');
const [spacing, setSpacing] = React.useState<string | number>(2);

const handleChange = React.useCallback((ev: React.ChangeEvent<HTMLInputElement>) => {
switch (ev.target.name) {
const handleChange = React.useCallback((event: React.ChangeEvent<HTMLInputElement>) => {
switch (event.target.name) {
case 'direction': {
setDirection(ev.target.value as StackProps['direction']);
setDirection(event.target.value as StackProps['direction']);
break;
}
case 'spacing': {
setSpacing(
ev.target.value.match(/^[0-9]+\.?[0-9]*$/)
? parseFloat(ev.target.value)
: ev.target.value,
event.target.value.match(/^[0-9]+\.?[0-9]*$/)
? parseFloat(event.target.value)
: event.target.value,
);
break;
}
Expand Down
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.17",
"version": "0.0.18",
"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.17",
"version": "0.0.18",
"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.17",
"version": "0.0.18",
"main": "build/index.js",
"module": "build/index.mjs",
"types": "build/index.d.ts",
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.17",
"version": "0.0.18",
"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.17",
"version": "0.0.18",
"main": "build/index.js",
"module": "build/index.mjs",
"types": "build/index.d.ts",
Expand Down

0 comments on commit 2e5864f

Please sign in to comment.