From 0c786a21c71117d11c73bc24a791b6109134f278 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 3 May 2024 13:37:51 -0500 Subject: [PATCH 1/5] Version Packages (#2544) Co-authored-by: github-actions[bot] --- .changeset/chilled-masks-explain.md | 44 - .changeset/flat-crews-mix.md | 6 - .changeset/fluffy-dingos-appear.md | 5 - .changeset/fresh-eggs-kneel.md | 7 - .changeset/new-brooms-impress.md | 9 - .changeset/stale-phones-tease.md | 22 - packages/astro-plugin-studio/CHANGELOG.md | 12 +- packages/astro-plugin-studio/package.json | 2 +- packages/cli/CHANGELOG.md | 189 +- packages/cli/package.json | 2 +- packages/config/CHANGELOG.md | 304 ++- packages/config/package.json | 2 +- packages/core/CHANGELOG.md | 1798 +++++++------- packages/core/package.json | 2 +- packages/extractor/CHANGELOG.md | 112 +- packages/extractor/package.json | 2 +- packages/generator/CHANGELOG.md | 2732 +++++++++++---------- packages/generator/package.json | 2 +- packages/is-valid-prop/CHANGELOG.md | 10 +- packages/is-valid-prop/package.json | 2 +- packages/logger/CHANGELOG.md | 14 +- packages/logger/package.json | 2 +- packages/node/CHANGELOG.md | 156 +- packages/node/package.json | 2 +- packages/parser/CHANGELOG.md | 467 ++-- packages/parser/package.json | 2 +- packages/postcss/CHANGELOG.md | 22 +- packages/postcss/package.json | 2 +- packages/preset-atlaskit/CHANGELOG.md | 8 + packages/preset-atlaskit/package.json | 2 +- packages/preset-base/CHANGELOG.md | 188 +- packages/preset-base/package.json | 2 +- packages/preset-open-props/CHANGELOG.md | 8 + packages/preset-open-props/package.json | 2 +- packages/preset-panda/CHANGELOG.md | 14 +- packages/preset-panda/package.json | 2 +- packages/shared/CHANGELOG.md | 212 +- packages/shared/package.json | 2 +- packages/studio/CHANGELOG.md | 175 +- packages/studio/package.json | 2 +- packages/token-dictionary/CHANGELOG.md | 509 ++-- packages/token-dictionary/package.json | 2 +- packages/types/CHANGELOG.md | 773 +++--- packages/types/package.json | 2 +- 44 files changed, 4316 insertions(+), 3518 deletions(-) delete mode 100644 .changeset/chilled-masks-explain.md delete mode 100644 .changeset/flat-crews-mix.md delete mode 100644 .changeset/fluffy-dingos-appear.md delete mode 100644 .changeset/fresh-eggs-kneel.md delete mode 100644 .changeset/new-brooms-impress.md delete mode 100644 .changeset/stale-phones-tease.md diff --git a/.changeset/chilled-masks-explain.md b/.changeset/chilled-masks-explain.md deleted file mode 100644 index cac3d8277..000000000 --- a/.changeset/chilled-masks-explain.md +++ /dev/null @@ -1,44 +0,0 @@ ---- -'@pandacss/preset-base': minor -'@pandacss/generator': minor -'@pandacss/parser': minor ---- - -**BREAKING 💥** - -Remove `linkBox` pattern in favor of using adding `position: relative` when using the `linkOverlay` pattern. - -**Before** - -```jsx -import { linkBox, linkOverlay } from 'styled-system/patterns' - -const App = () => { - return ( -
- placeholder - - Link - -
- ) -} -``` - -**After** - -```jsx -import { css } from 'styled-system/css' -import { linkOverlay } from 'styled-system/patterns' - -const App = () => { - return ( -
- placeholder - - Link - -
- ) -} -``` diff --git a/.changeset/flat-crews-mix.md b/.changeset/flat-crews-mix.md deleted file mode 100644 index bdfbc7111..000000000 --- a/.changeset/flat-crews-mix.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@pandacss/generator": minor -"@pandacss/types": minor ---- - -Add support for more typography related properties in text styles such as `fontFeatureSettings`, `fontPalette`, etc. diff --git a/.changeset/fluffy-dingos-appear.md b/.changeset/fluffy-dingos-appear.md deleted file mode 100644 index f5512795f..000000000 --- a/.changeset/fluffy-dingos-appear.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@pandacss/generator": patch ---- - -Fix issue where `mergeCss` import in `styled-system/jsx/*` could be unused. diff --git a/.changeset/fresh-eggs-kneel.md b/.changeset/fresh-eggs-kneel.md deleted file mode 100644 index 037876528..000000000 --- a/.changeset/fresh-eggs-kneel.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@pandacss/generator": patch -"@pandacss/preset-base": patch -"@pandacss/studio": patch ---- - -Fix issue where `float` property did not allow inherited values (auto, initial, none, etc.) diff --git a/.changeset/new-brooms-impress.md b/.changeset/new-brooms-impress.md deleted file mode 100644 index a2eff5fe2..000000000 --- a/.changeset/new-brooms-impress.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@pandacss/preset-base': patch -'@pandacss/generator': patch -'@pandacss/types': patch -'@pandacss/core': patch ---- - -Fix issue where `animationName` property was not connected to `theme.keyframes`, as a result, no autocompletion was -available. diff --git a/.changeset/stale-phones-tease.md b/.changeset/stale-phones-tease.md deleted file mode 100644 index 9230eafe1..000000000 --- a/.changeset/stale-phones-tease.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@pandacss/generator': patch -'@pandacss/shared': patch ---- - -Allow passing arrays of `SystemStyleObject` to the `css(xxx, [aaa, bbb, ccc], yyy)` fn - -This is useful when you are creating your own styled component and want to benefit -[from the recent `css` array property support](https://github.com/chakra-ui/panda/pull/2515). - -```diff -import { css } from 'styled-system/css' -import type { HTMLStyledProps } from 'styled-system/types' - -type ButtonProps = HTMLStyledProps<'button'> - -export const Button = ({ css: cssProp = {}, children }: ButtonProps) => { -- const className = css(...(Array.isArray(cssProp) ? cssProp : [cssProp])) -+ const className = css(cssProp) - return -} -``` diff --git a/packages/astro-plugin-studio/CHANGELOG.md b/packages/astro-plugin-studio/CHANGELOG.md index 72e005565..664ff36af 100644 --- a/packages/astro-plugin-studio/CHANGELOG.md +++ b/packages/astro-plugin-studio/CHANGELOG.md @@ -1,5 +1,11 @@ # @pandacss/astro-plugin-studio +## 0.39.0 + +### Patch Changes + +- @pandacss/node@0.39.0 + ## 0.38.0 ### Patch Changes @@ -128,11 +134,11 @@ ```js module.exports = { plugins: { - '@pandacss/dev/postcss': { - logfile: './logs/panda.log', + "@pandacss/dev/postcss": { + logfile: "./logs/panda.log", }, }, - } + }; ``` - Updated dependencies [05686b9d] diff --git a/packages/astro-plugin-studio/package.json b/packages/astro-plugin-studio/package.json index 7bfa79c0d..58fa14f69 100644 --- a/packages/astro-plugin-studio/package.json +++ b/packages/astro-plugin-studio/package.json @@ -1,6 +1,6 @@ { "name": "@pandacss/astro-plugin-studio", - "version": "0.38.0", + "version": "0.39.0", "description": "Vite plugin for Pandacss Studio", "author": "Segun Adebayo ", "main": "dist/index.js", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 336b96f5a..1bf927851 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,21 @@ # @pandacss/dev +## 0.39.0 + +### Patch Changes + +- Updated dependencies [221c9a2] +- Updated dependencies [c3e797e] +- Updated dependencies [935ec86] + - @pandacss/types@0.39.0 + - @pandacss/shared@0.39.0 + - @pandacss/config@0.39.0 + - @pandacss/node@0.39.0 + - @pandacss/logger@0.39.0 + - @pandacss/preset-panda@0.39.0 + - @pandacss/token-dictionary@0.39.0 + - @pandacss/postcss@0.39.0 + ## 0.38.0 ### Patch Changes @@ -94,7 +110,7 @@ ```ts // panda.config.ts - import { defineConfig } from '@pandacss/dev' + import { defineConfig } from "@pandacss/dev"; export default defineConfig({ // ... @@ -103,15 +119,15 @@ extend: { tokens: { colors: { - text: { value: 'blue' }, + text: { value: "blue" }, }, }, semanticTokens: { colors: { body: { value: { - base: '{colors.blue.600}', - _osDark: '{colors.blue.400}', + base: "{colors.blue.600}", + _osDark: "{colors.blue.400}", }, }, }, @@ -123,16 +139,16 @@ primary: { tokens: { colors: { - text: { value: 'red' }, + text: { value: "red" }, }, }, semanticTokens: { colors: { - muted: { value: '{colors.red.200}' }, + muted: { value: "{colors.red.200}" }, body: { value: { - base: '{colors.red.600}', - _osDark: '{colors.red.400}', + base: "{colors.red.600}", + _osDark: "{colors.red.400}", }, }, }, @@ -141,23 +157,23 @@ secondary: { tokens: { colors: { - text: { value: 'blue' }, + text: { value: "blue" }, }, }, semanticTokens: { colors: { - muted: { value: '{colors.blue.200}' }, + muted: { value: "{colors.blue.200}" }, body: { value: { - base: '{colors.blue.600}', - _osDark: '{colors.blue.400}', + base: "{colors.blue.600}", + _osDark: "{colors.blue.400}", }, }, }, }, }, }, - }) + }); ``` ### Pregenerating themes @@ -167,14 +183,14 @@ ```ts // panda.config.ts - import { defineConfig } from '@pandacss/dev' + import { defineConfig } from "@pandacss/dev"; export default defineConfig({ // ... staticCss: { - themes: ['primary', 'secondary'], + themes: ["primary", "secondary"], }, - }) + }); ``` This will generate the following CSS: @@ -186,7 +202,7 @@ --colors-body: var(--colors-blue-600); } - [data-panda-theme='primary'] { + [data-panda-theme="primary"] { --colors-text: red; --colors-muted: var(--colors-red-200); --colors-body: var(--colors-red-600); @@ -197,7 +213,7 @@ --colors-body: var(--colors-blue-400); } - [data-panda-theme='primary'] { + [data-panda-theme="primary"] { --colors-body: var(--colors-red-400); } } @@ -228,9 +244,9 @@ Dynamically import a theme using its name: ```ts - import { getTheme } from '../styled-system/themes' + import { getTheme } from "../styled-system/themes"; - const theme = await getTheme('red') + const theme = await getTheme("red"); // ^? { // name: "red"; // id: string; @@ -241,10 +257,10 @@ Inject the theme styles into the DOM: ```ts - import { injectTheme } from '../styled-system/themes' + import { injectTheme } from "../styled-system/themes"; - const theme = await getTheme('red') - injectTheme(document.documentElement, theme) // this returns the injected style element + const theme = await getTheme("red"); + injectTheme(document.documentElement, theme); // this returns the injected style element ``` *** @@ -253,54 +269,62 @@ ```tsx // app/layout.tsx - import { Inter } from 'next/font/google' - import { cookies } from 'next/headers' - import { ThemeName, getTheme } from '../../styled-system/themes' - - export default async function RootLayout({ children }: { children: React.ReactNode }) { - const store = cookies() - const themeName = store.get('theme')?.value as ThemeName - const theme = themeName && (await getTheme(themeName)) + import { Inter } from "next/font/google"; + import { cookies } from "next/headers"; + import { ThemeName, getTheme } from "../../styled-system/themes"; + + export default async function RootLayout({ + children, + }: { + children: React.ReactNode; + }) { + const store = cookies(); + const themeName = store.get("theme")?.value as ThemeName; + const theme = themeName && (await getTheme(themeName)); return ( {themeName && ( -