From 04adcaf9ced3352c6cd4c50ebf1f5e22a338ab20 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 16 Apr 2025 14:09:28 +0000 Subject: [PATCH] chore: release --- .changeset/curly-jokes-design.md | 26 --------------------- package.json | 2 +- plugins/postcss-rgb-mapping/CHANGELOG.md | 29 ++++++++++++++++++++++++ plugins/postcss-rgb-mapping/package.json | 2 +- tokens/package.json | 2 +- yarn.lock | 6 ++--- 6 files changed, 35 insertions(+), 32 deletions(-) delete mode 100644 .changeset/curly-jokes-design.md diff --git a/.changeset/curly-jokes-design.md b/.changeset/curly-jokes-design.md deleted file mode 100644 index 5591be90510..00000000000 --- a/.changeset/curly-jokes-design.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -"@spectrum-tools/postcss-rgb-mapping": minor ---- - -Adds new functionality to better handle tokens that reference other transparent tokens. - -When a custom properties below is defined as another, specifically "transparent," variable, such as: - -```css ---disabled-static-white-background-color: var(--spectrum-transparent-white-100); -``` - -...the plugin can now convert this single custom property into its `-rgb` and `-opacity` postfixed variables, that each correspond to the `-rgb` and `-opacity` variables of the definition's transparent token. It then reassembles the original, using and referencing these newly created variables. - -```css ---disabled-static-white-background-color-rgb: var( - --spectrum-transparent-white-100-rgb -); ---disabled-static-white-background-color-opacity: var( - --spectrum-transparent-white-100-opacity -); ---disabled-static-white-background-color: rgba( - var(--disabled-static-white-background-color-rgb), - var(--disabled-static-white-background-color-opacity) -); -``` diff --git a/package.json b/package.json index f594da0847e..199db0c520d 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "@nx/devkit": "^19.8.2", "@spectrum-tools/postcss-add-theming-layer": "1.0.2", "@spectrum-tools/postcss-property-rollup": "0.0.1", - "@spectrum-tools/postcss-rgb-mapping": "1.0.0", + "@spectrum-tools/postcss-rgb-mapping": "1.1.0", "@yarnpkg/types": "^4.0.0", "at-rule-packer": "^0.4.2", "autoprefixer": "^10.4.21", diff --git a/plugins/postcss-rgb-mapping/CHANGELOG.md b/plugins/postcss-rgb-mapping/CHANGELOG.md index c582caf27af..9fd32bb6fba 100644 --- a/plugins/postcss-rgb-mapping/CHANGELOG.md +++ b/plugins/postcss-rgb-mapping/CHANGELOG.md @@ -1,5 +1,34 @@ # Change Log +## 1.1.0 + +### Minor Changes + +- [#3452](https://github.com/adobe/spectrum-css/pull/3452) [`287cff8`](https://github.com/adobe/spectrum-css/commit/287cff82b7706f0f56d6d37f48e1d9c60a6df4b9) Thanks [@marissahuysentruyt](https://github.com/marissahuysentruyt)! - Adds new functionality to better handle tokens that reference other transparent tokens. + + When a custom properties below is defined as another, specifically "transparent," variable, such as: + + ```css + --disabled-static-white-background-color: var( + --spectrum-transparent-white-100 + ); + ``` + + ...the plugin can now convert this single custom property into its `-rgb` and `-opacity` postfixed variables, that each correspond to the `-rgb` and `-opacity` variables of the definition's transparent token. It then reassembles the original, using and referencing these newly created variables. + + ```css + --disabled-static-white-background-color-rgb: var( + --spectrum-transparent-white-100-rgb + ); + --disabled-static-white-background-color-opacity: var( + --spectrum-transparent-white-100-opacity + ); + --disabled-static-white-background-color: rgba( + var(--disabled-static-white-background-color-rgb), + var(--disabled-static-white-background-color-opacity) + ); + ``` + ## 1.0.0 ### Major Changes diff --git a/plugins/postcss-rgb-mapping/package.json b/plugins/postcss-rgb-mapping/package.json index 6372dc9550d..80935f3f0ba 100644 --- a/plugins/postcss-rgb-mapping/package.json +++ b/plugins/postcss-rgb-mapping/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-tools/postcss-rgb-mapping", - "version": "1.0.0", + "version": "1.1.0", "description": "Remaps rgb(a) values to an rgb postfixed variable", "license": "Apache-2.0", "author": "Adobe", diff --git a/tokens/package.json b/tokens/package.json index 7488f81265e..c8acd2c875b 100644 --- a/tokens/package.json +++ b/tokens/package.json @@ -30,7 +30,7 @@ "@adobe/spectrum-tokens": "0.0.0-s2-foundations-20241121221506", "@adobe/token-diff-generator": "^1.3.0", "@nxkit/style-dictionary": "^6.0.0", - "@spectrum-tools/postcss-rgb-mapping": "1.0.0", + "@spectrum-tools/postcss-rgb-mapping": "1.1.0", "postcss": "^8.5.3", "postcss-sorting": "^9.1.0", "style-dictionary": "^3.9.2", diff --git a/yarn.lock b/yarn.lock index 3b8bf4584ad..d28c636c4cc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -126,7 +126,7 @@ __metadata: "@nx/devkit": "npm:^19.8.2" "@spectrum-tools/postcss-add-theming-layer": "npm:1.0.2" "@spectrum-tools/postcss-property-rollup": "npm:0.0.1" - "@spectrum-tools/postcss-rgb-mapping": "npm:1.0.0" + "@spectrum-tools/postcss-rgb-mapping": "npm:1.1.0" "@yarnpkg/types": "npm:^4.0.0" at-rule-packer: "npm:^0.4.2" autoprefixer: "npm:^10.4.21" @@ -5496,7 +5496,7 @@ __metadata: "@adobe/spectrum-tokens": "npm:0.0.0-s2-foundations-20241121221506" "@adobe/token-diff-generator": "npm:^1.3.0" "@nxkit/style-dictionary": "npm:^6.0.0" - "@spectrum-tools/postcss-rgb-mapping": "npm:1.0.0" + "@spectrum-tools/postcss-rgb-mapping": "npm:1.1.0" postcss: "npm:^8.5.3" postcss-sorting: "npm:^9.1.0" style-dictionary: "npm:^3.9.2" @@ -5666,7 +5666,7 @@ __metadata: languageName: unknown linkType: soft -"@spectrum-tools/postcss-rgb-mapping@npm:1.0.0, @spectrum-tools/postcss-rgb-mapping@workspace:plugins/postcss-rgb-mapping": +"@spectrum-tools/postcss-rgb-mapping@npm:1.1.0, @spectrum-tools/postcss-rgb-mapping@workspace:plugins/postcss-rgb-mapping": version: 0.0.0-use.local resolution: "@spectrum-tools/postcss-rgb-mapping@workspace:plugins/postcss-rgb-mapping" dependencies: