Skip to content

Commit

Permalink
chore: Merge master into prerelease/minor
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasBoll committed Nov 7, 2024
2 parents 2fa9149 + 173a7d3 commit bd3f34f
Show file tree
Hide file tree
Showing 17 changed files with 66 additions and 34 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,34 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [v12.0.10](https://github.com/Workday/canvas-kit/releases/tag/v12.0.10) (2024-11-06)

### Components

- fix: SystemIcon supports rem by default ([#3031](https://github.com/Workday/canvas-kit/pull/3031)) ([@NicholasBoll](https://github.com/NicholasBoll))

### Dependencies

- chore: SNYK Security upgrade jscodeshift from 0.14.0 to 17.1.0 ([#3016](https://github.com/Workday/canvas-kit/pull/3016)) ([@mannycarrera4](https://github.com/mannycarrera4), [@snyk-bot](https://github.com/snyk-bot), manuel.carrera)

### Infrastructure

- ci: Update node version in our github actions ([#3009](https://github.com/Workday/canvas-kit/pull/3009)) ([@mannycarrera4](https://github.com/mannycarrera4), manuel.carrera)
- fix: Fix Style transform stencil variable lookup ([#3038](https://github.com/Workday/canvas-kit/pull/3038)) ([@NicholasBoll](https://github.com/NicholasBoll))


## [v11.1.23](https://github.com/Workday/canvas-kit/releases/tag/v11.1.23) (2024-11-06)

### Infrastructure

- fix: Fix Style transform stencil variable lookup ([#3038](https://github.com/Workday/canvas-kit/pull/3038)) ([@NicholasBoll](https://github.com/NicholasBoll))


## [v11.1.22](https://github.com/Workday/canvas-kit/releases/tag/v11.1.22) (2024-11-05)

### Components

- fix: SystemIcon supports rem by default ([#3031](https://github.com/Workday/canvas-kit/pull/3031)) ([@NicholasBoll](https://github.com/NicholasBoll))
## [v12.0.9](https://github.com/Workday/canvas-kit/releases/tag/v12.0.9) (2024-11-04)

### Components
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"packages": [
"modules/**"
],
"version": "12.0.9",
"version": "12.0.10",
"npmClient": "yarn",
"useWorkspaces": true,
"command": {
Expand Down
2 changes: 1 addition & 1 deletion modules/codemod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@workday/canvas-kit-codemod",
"author": "Workday, Inc. (https://www.workday.com)",
"license": "Apache-2.0",
"version": "12.0.9",
"version": "12.0.10",
"description": "A collection of codemods for use on Workday Canvas Kit packages.",
"main": "dist/es6/index.js",
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion modules/css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workday/canvas-kit-css",
"version": "12.0.9",
"version": "12.0.10",
"description": "The parent module that contains all Workday Canvas Kit CSS components",
"author": "Workday, Inc. (https://www.workday.com)",
"license": "Apache-2.0",
Expand Down
10 changes: 5 additions & 5 deletions modules/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workday/canvas-kit-docs",
"version": "12.0.9",
"version": "12.0.10",
"description": "Documentation components of Canvas Kit components",
"author": "Workday, Inc. (https://www.workday.com)",
"license": "Apache-2.0",
Expand Down Expand Up @@ -44,10 +44,10 @@
"dependencies": {
"@emotion/styled": "^11.6.0",
"@storybook/csf": "0.0.1",
"@workday/canvas-kit-labs-react": "^12.0.9",
"@workday/canvas-kit-preview-react": "^12.0.9",
"@workday/canvas-kit-react": "^12.0.9",
"@workday/canvas-kit-styling": "^12.0.9",
"@workday/canvas-kit-labs-react": "^12.0.10",
"@workday/canvas-kit-preview-react": "^12.0.10",
"@workday/canvas-kit-react": "^12.0.10",
"@workday/canvas-kit-styling": "^12.0.10",
"@workday/canvas-system-icons-web": "^3.0.0",
"@workday/canvas-tokens-web": "^2.0.1",
"markdown-to-jsx": "^7.2.0",
Expand Down
2 changes: 1 addition & 1 deletion modules/labs-css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workday/canvas-kit-labs-css",
"version": "12.0.9",
"version": "12.0.10",
"description": "The parent module that contains all Workday Canvas Kit Labs CSS components",
"author": "Workday, Inc. (https://www.workday.com)",
"license": "Apache-2.0",
Expand Down
6 changes: 3 additions & 3 deletions modules/labs-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workday/canvas-kit-labs-react",
"version": "12.0.9",
"version": "12.0.10",
"description": "Canvas Kit Labs is an incubator for new and experimental components. Since we have a rather rigorous process for getting components in at a production level, it can be valuable to make them available earlier while we continuously iterate on the API/functionality. The Labs modules allow us to do that as needed.",
"author": "Workday, Inc. (https://www.workday.com)",
"license": "Apache-2.0",
Expand Down Expand Up @@ -46,8 +46,8 @@
"dependencies": {
"@emotion/react": "^11.7.1",
"@emotion/styled": "^11.6.0",
"@workday/canvas-kit-react": "^12.0.9",
"@workday/canvas-kit-styling": "^12.0.9",
"@workday/canvas-kit-react": "^12.0.10",
"@workday/canvas-kit-styling": "^12.0.10",
"@workday/canvas-system-icons-web": "^3.0.0",
"@workday/canvas-tokens-web": "^2.0.1",
"@workday/design-assets-types": "^0.2.8",
Expand Down
2 changes: 1 addition & 1 deletion modules/popup-stack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workday/canvas-kit-popup-stack",
"version": "12.0.9",
"version": "12.0.10",
"description": "Stack for managing popup UIs to coordinate global concerns like escape key handling and rendering order",
"author": "Workday, Inc. (https://www.workday.com)",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion modules/preview-css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workday/canvas-kit-preview-css",
"version": "12.0.9",
"version": "12.0.10",
"description": "The parent module that contains all Workday Canvas Kit Preview CSS components",
"author": "Workday, Inc. (https://www.workday.com)",
"license": "Apache-2.0",
Expand Down
6 changes: 3 additions & 3 deletions modules/preview-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workday/canvas-kit-preview-react",
"version": "12.0.9",
"version": "12.0.10",
"description": "Canvas Kit Preview is made up of components that have the full design and a11y review, are part of the DS ecosystem and are approved for use in product. The API's could be subject to change, but not without strong communication and migration strategies.",
"author": "Workday, Inc. (https://www.workday.com)",
"license": "Apache-2.0",
Expand Down Expand Up @@ -46,8 +46,8 @@
"dependencies": {
"@emotion/react": "^11.7.1",
"@emotion/styled": "^11.6.0",
"@workday/canvas-kit-react": "^12.0.9",
"@workday/canvas-kit-styling": "^12.0.9",
"@workday/canvas-kit-react": "^12.0.10",
"@workday/canvas-kit-styling": "^12.0.10",
"@workday/canvas-system-icons-web": "^3.0.0",
"@workday/canvas-tokens-web": "^2.0.1",
"@workday/design-assets-types": "^0.2.8"
Expand Down
2 changes: 1 addition & 1 deletion modules/react-fonts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workday/canvas-kit-react-fonts",
"version": "12.0.9",
"version": "12.0.10",
"description": "Fonts for canvas-kit-react",
"author": "Workday, Inc. (https://www.workday.com)",
"license": "Apache-2.0",
Expand Down
8 changes: 6 additions & 2 deletions modules/react/icon/lib/SystemIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {CanvasSystemIcon, CanvasIconTypes} from '@workday/design-assets-types';
import {CSSObject} from '@emotion/styled';
import {createComponent, getColor} from '@workday/canvas-kit-react/common';
import {cssVar, createStencil, handleCsProp, px2rem, createVars} from '@workday/canvas-kit-styling';
import {base} from '@workday/canvas-tokens-web';
import {base, system} from '@workday/canvas-tokens-web';
import {Svg, SvgProps, svgStencil, transformColorNameToToken} from './Svg';

/**
Expand Down Expand Up @@ -154,7 +154,11 @@ export const systemIconStencil = createStencil({
accentColor: '',
backgroundColor: '',
},
base: ({accentColor, backgroundColor, color}) => ({
base: ({size, width, height, accentColor, backgroundColor, color}) => ({
'& svg': {
width: cssVar(width, cssVar(size, system.space.x6)),
height: cssVar(height, cssVar(size, system.space.x6)),
},
'& .wd-icon-fill': {
fill: cssVar(color, base.licorice200),
},
Expand Down
6 changes: 3 additions & 3 deletions modules/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workday/canvas-kit-react",
"version": "12.0.9",
"version": "12.0.10",
"description": "The parent module that contains all Workday Canvas Kit React components",
"author": "Workday, Inc. (https://www.workday.com)",
"license": "Apache-2.0",
Expand Down Expand Up @@ -49,8 +49,8 @@
"@emotion/styled": "^11.6.0",
"@popperjs/core": "^2.5.4",
"@workday/canvas-colors-web": "^2.0.0",
"@workday/canvas-kit-popup-stack": "^12.0.9",
"@workday/canvas-kit-styling": "^12.0.9",
"@workday/canvas-kit-popup-stack": "^12.0.10",
"@workday/canvas-kit-styling": "^12.0.10",
"@workday/canvas-system-icons-web": "^3.0.0",
"@workday/canvas-tokens-web": "^2.0.1",
"@workday/design-assets-types": "^0.2.8",
Expand Down
6 changes: 3 additions & 3 deletions modules/styling-transform/lib/utils/handleCreateStencil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ function parseStyleBlock(
if (ts.isObjectLiteralExpression(property.initializer)) {
styleObj = parseObjectToStaticValue(property.initializer, {
...context,
nameScope: `${stencilName}.`,
nameScope: `${stencilName}.vars.`,
});
}

Expand All @@ -350,7 +350,7 @@ function parseStyleBlock(
if (returnNode) {
styleObj = parseObjectToStaticValue(returnNode, {
...context,
nameScope: `${stencilName}.`,
nameScope: `${stencilName}.vars.`,
});
}
}
Expand All @@ -361,7 +361,7 @@ function parseStyleBlock(
if (returnNode) {
styleObj = parseObjectToStaticValue(returnNode, {
...context,
nameScope: `${stencilName}.`,
nameScope: `${stencilName}.vars.`,
});
}
}
Expand Down
8 changes: 4 additions & 4 deletions modules/styling-transform/lib/utils/parseNodeToStaticValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,13 @@ export function getValueFromAliasedSymbol(
function getValueFromProcessedNodes(varName: string, context: TransformerContext): string | void {
const {names} = context;

if (names[varName]) {
return names[varName];
}

if (context.nameScope && names[`${context.nameScope}${varName}`]) {
return names[`${context.nameScope}${varName}`];
}

if (names[varName]) {
return names[varName];
}
}

function hasExpression(node: ts.Node): node is ts.Node & {initializer: ts.Expression} {
Expand Down
4 changes: 2 additions & 2 deletions modules/styling-transform/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workday/canvas-kit-styling-transform",
"version": "12.0.9",
"version": "12.0.10",
"description": "The custom CSS in JS solution that takes JS styles and turns them into static CSS",
"author": "Workday, Inc. (https://www.workday.com)",
"license": "Apache-2.0",
Expand Down Expand Up @@ -34,7 +34,7 @@
],
"dependencies": {
"@emotion/serialize": "^1.0.2",
"@workday/canvas-kit-styling": "^12.0.9",
"@workday/canvas-kit-styling": "^12.0.10",
"@workday/canvas-tokens-web": "^2.0.1",
"stylis": "4.0.13",
"ts-node": "^10.9.1",
Expand Down
4 changes: 2 additions & 2 deletions modules/styling/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workday/canvas-kit-styling",
"version": "12.0.9",
"version": "12.0.10",
"description": "The custom CSS in JS solution that takes JS styles and turns them into static CSS",
"author": "Workday, Inc. (https://www.workday.com)",
"license": "Apache-2.0",
Expand Down Expand Up @@ -53,7 +53,7 @@
"@emotion/react": "^11.7.1",
"@emotion/serialize": "^1.0.2",
"@emotion/styled": "^11.6.0",
"@workday/canvas-kit-react": "^12.0.9",
"@workday/canvas-kit-react": "^12.0.10",
"@workday/canvas-system-icons-web": "^3.0.0",
"@workday/canvas-tokens-web": "^2.0.1",
"typescript": "5.0"
Expand Down

0 comments on commit bd3f34f

Please sign in to comment.