Skip to content

Commit

Permalink
Version Packages (#2251)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Feb 27, 2024
1 parent 8feeb95 commit 0f945e6
Show file tree
Hide file tree
Showing 48 changed files with 12,755 additions and 1,997 deletions.
33 changes: 0 additions & 33 deletions .changeset/bright-stingrays-drum.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/dull-donkeys-obey.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/friendly-eggs-live.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hot-stingrays-admire.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/poor-lamps-look.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/red-comics-itch.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/silly-olives-unite.md

This file was deleted.

35 changes: 0 additions & 35 deletions .changeset/witty-pans-add.md

This file was deleted.

13 changes: 10 additions & 3 deletions packages/astro-plugin-studio/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @pandacss/astro-plugin-studio

## 0.33.0

### Patch Changes

- Updated dependencies [1968da5]
- @pandacss/node@0.33.0

## 0.32.1

### Patch Changes
Expand Down Expand Up @@ -53,11 +60,11 @@
```js
module.exports = {
plugins: {
'@pandacss/dev/postcss': {
logfile: './logs/panda.log',
"@pandacss/dev/postcss": {
logfile: "./logs/panda.log",
},
},
}
};
```

- Updated dependencies [05686b9d]
Expand Down
2 changes: 1 addition & 1 deletion packages/astro-plugin-studio/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pandacss/astro-plugin-studio",
"version": "0.32.1",
"version": "0.33.0",
"description": "Vite plugin for Pandacss Studio",
"author": "Segun Adebayo <joseshegs@gmail.com>",
"main": "dist/index.js",
Expand Down
89 changes: 63 additions & 26 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# @pandacss/dev

## 0.33.0

### Patch Changes

- 1968da5: Allow dynamically recording profiling session by pressing the `p` key in your terminal when using the `--cpu-prof` flag
for long-running sessions (with `-w` or `--watch` for `panda` / `panda cssgen` / `panda codegen`).
- 8feeb95: Add `definePlugin` config functions for type-safety around plugins, add missing `plugins` in config dependencies to trigger a config reload on `plugins` change
- Updated dependencies [34d94cf]
- Updated dependencies [1968da5]
- Updated dependencies [e855c64]
- Updated dependencies [8feeb95]
- Updated dependencies [cca50d5]
- Updated dependencies [fde37d8]
- @pandacss/token-dictionary@0.33.0
- @pandacss/node@0.33.0
- @pandacss/config@0.33.0
- @pandacss/types@0.33.0
- @pandacss/postcss@0.33.0
- @pandacss/logger@0.33.0
- @pandacss/preset-panda@0.33.0
- @pandacss/shared@0.33.0

## 0.32.1

### Patch Changes
Expand Down Expand Up @@ -107,11 +129,11 @@
```js
module.exports = {
plugins: {
'@pandacss/dev/postcss': {
logfile: './logs/panda.log',
"@pandacss/dev/postcss": {
logfile: "./logs/panda.log",
},
},
}
};
```

- Updated dependencies [0dd45b6a]
Expand Down Expand Up @@ -158,8 +180,8 @@
```ts
export default defineConfig({
// ...
dependencies: ['path/to/files/**.ts'],
})
dependencies: ["path/to/files/**.ts"],
});
```

- Invoke `config:change` hook in more situations (when the `--watch` flag is passed to `panda codegen`,
Expand Down Expand Up @@ -208,39 +230,54 @@
* Called when the config is resolved, after all the presets are loaded and merged.
* This is the first hook called, you can use it to tweak the config before the context is created.
*/
'config:resolved': (args: { conf: LoadConfigResult }) => MaybeAsyncReturn
"config:resolved": (args: { conf: LoadConfigResult }) => MaybeAsyncReturn;
/**
* Called when the Panda context has been created and the API is ready to be used.
*/
'context:created': (args: { ctx: ApiInterface; logger: LoggerInterface }) => void
"context:created": (args: {
ctx: ApiInterface;
logger: LoggerInterface;
}) => void;
/**
* Called when the config file or one of its dependencies (imports) has changed.
*/
'config:change': (args: { config: UserConfig }) => MaybeAsyncReturn
"config:change": (args: { config: UserConfig }) => MaybeAsyncReturn;
/**
* Called after reading the file content but before parsing it.
* You can use this hook to transform the file content to a tsx-friendly syntax so that Panda's parser can parse it.
* You can also use this hook to parse the file's content on your side using a custom parser, in this case you don't have to return anything.
*/
'parser:before': (args: { filePath: string; content: string }) => string | void
"parser:before": (args: {
filePath: string;
content: string;
}) => string | void;
/**
* Called after the file styles are extracted and processed into the resulting ParserResult object.
* You can also use this hook to add your own extraction results from your custom parser to the ParserResult object.
*/
'parser:after': (args: { filePath: string; result: ParserResultInterface | undefined }) => void
"parser:after": (args: {
filePath: string;
result: ParserResultInterface | undefined;
}) => void;
/**
* Called after the codegen is completed
*/
'codegen:done': () => MaybeAsyncReturn
"codegen:done": () => MaybeAsyncReturn;
/**
* Called right before adding the design-system CSS (global, static, preflight, tokens, keyframes) to the final CSS
* Called right before writing/injecting the final CSS (styles.css) that contains the design-system CSS and the parser CSS
* You can use it to tweak the CSS content before it's written to disk or injected through the postcss plugin.
*/
'cssgen:done': (args: {
artifact: 'global' | 'static' | 'reset' | 'tokens' | 'keyframes' | 'styles.css'
content: string
}) => string | void
"cssgen:done": (args: {
artifact:
| "global"
| "static"
| "reset"
| "tokens"
| "keyframes"
| "styles.css";
content: string;
}) => string | void;
}
```
Expand Down Expand Up @@ -1138,46 +1175,46 @@
**Definition**

```jsx
import { sva } from 'styled-system/css'
import { sva } from "styled-system/css";
const button = sva({
slots: ['label', 'icon'],
slots: ["label", "icon"],
base: {
label: { color: 'red', textDecoration: 'underline' },
label: { color: "red", textDecoration: "underline" },
},
variants: {
rounded: {
true: {},
},
size: {
sm: {
label: { fontSize: 'sm' },
icon: { fontSize: 'sm' },
label: { fontSize: "sm" },
icon: { fontSize: "sm" },
},
lg: {
label: { fontSize: 'lg' },
icon: { fontSize: 'lg', color: 'pink' },
label: { fontSize: "lg" },
icon: { fontSize: "lg", color: "pink" },
},
},
},
defaultVariants: {
size: 'sm',
size: "sm",
},
})
});
```
**Usage**
```jsx
export function App() {
const btnClass = button({ size: 'lg', rounded: true })
const btnClass = button({ size: "lg", rounded: true });
return (
<button>
<p class={btnClass.label}> Label</p>
<p class={btnClass.icon}> Icon</p>
</button>
)
);
}
```
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pandacss/dev",
"version": "0.32.1",
"version": "0.33.0",
"description": "The user facing package for panda css",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
Loading

0 comments on commit 0f945e6

Please sign in to comment.