Skip to content

Commit

Permalink
Merge branch 'main' into nikkimk/fix-a11y-action-menu
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkimk authored Jan 16, 2025
2 parents 7ce405c + cee6892 commit fd44c0c
Show file tree
Hide file tree
Showing 178 changed files with 56,847 additions and 44,628 deletions.
54 changes: 27 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,26 @@ parameters:
# 3. Commit this change to the PR branch where the changes exist.
current_golden_images_hash:
type: string
default: a095ed1ef88686fdb24936dad763598ac7981193
default: 93ad92a2fc031db0277fee635434955e438e94a9
wireit_cache_name:
type: string
default: wireit
commands:
downstream:
steps:
- checkout
# - restore_cache:
# keys:
# - v4c-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}
# - restore_cache:
# keys:
# - v4b-<< pipeline.parameters.wireit_cache_name >>-{{ arch }}-{{ checksum "package.json" }}-
- restore_cache:
keys:
- v4c-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}
- restore_cache:
keys:
- v4b-<< pipeline.parameters.wireit_cache_name >>-{{ arch }}-{{ checksum "package.json" }}-
- run:
name: Installing Dependencies
command: yarn --frozen-lockfile --cache-folder ~/.cache/yarn
command: |
corepack enable
yarn --immutable
- save_cache:
paths:
- ~/.cache/yarn
Expand Down Expand Up @@ -85,14 +88,14 @@ commands:
if [[ $(cat count_start.txt) -eq $(cat count_end.txt) ]]; then exit 0; else exit 1; fi
# build diff review site
- run:
when: on_fail
when: always
name: Create review site
command: |
branch=$(git symbolic-ref --short HEAD)
node test/visual/review.js --branch=$branch --commit=<< pipeline.git.revision >> --system="<< parameters.regression_system >> << parameters.regression_color >> << parameters.regression_scale >> << parameters.regression_dir >>"
yarn rollup -c test/visual/rollup.config.js
- run:
when: on_fail
when: always
name: Publish review site
command: |
cp projects/documentation/content/favicon.ico test/visual
Expand Down Expand Up @@ -123,18 +126,7 @@ jobs:
executor: node

steps:
- checkout
- restore_cache:
keys:
- v3b-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}
- run:
name: Installing Dependencies
command: yarn --ignore-scripts --frozen-lockfile --cache-folder ~/.cache/yarn
- save_cache:
paths:
- ~/.cache/yarn
- .wireit
key: v3b-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}
- downstream
- run:
name: Define environment variable with lastest commit's message
command: |
Expand Down Expand Up @@ -211,12 +203,20 @@ jobs:

preview-docs:
executor: node

steps:
- downstream
- run:
name: Generate Docs
command: yarn docs:preview
name: Generate Custom Elements Manifest
command: yarn docs:analyze
- run:
name: Move CEM to Storybook directory
command: cp projects/documentation/custom-elements.json storybook/
- run:
name: Build documentation
command: yarn docs:build
- run:
name: Build Storybook
command: yarn storybook:build
- run: echo '/* /index.html 200' > projects/documentation/dist/_redirects
- run: |
branch=$(git symbolic-ref --short HEAD)
Expand Down Expand Up @@ -272,14 +272,14 @@ jobs:
if [[ $(cat count_start.txt) -eq $(cat count_end.txt) ]]; then exit 0; else exit 1; fi
# build diff review site
- run:
when: on_fail
when: always
name: Create review site
command: |
branch=$(git symbolic-ref --short HEAD)
node test/visual/review.js --branch=$branch --commit=<< pipeline.git.revision >> --system="hcm"
yarn rollup -c test/visual/rollup.config.js
- run:
when: on_fail
when: always
name: Publish review site
command: |
cp projects/documentation/content/favicon.ico test/visual
Expand Down
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
README.md merge=ours

# Treat yarn assets as binaries for diffing
/.yarn/releases/** binary
/.yarn/plugins/** binary
6 changes: 5 additions & 1 deletion .github/actions/setup-job/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ description: Common setup for all jobs
runs:
using: 'composite'
steps:
- name: Enable Corepack
shell: bash
run: corepack enable

- name: Setup Node 20
uses: actions/setup-node@v4
with:
Expand All @@ -12,4 +16,4 @@ runs:

- name: Install dependencies
shell: bash
run: yarn --frozen-lockfile
run: yarn --immutable
6 changes: 3 additions & 3 deletions .github/workflows/chromatic-vrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ jobs:
with:
fetch-depth: 0

- name: Setup Node 18
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: yarn --frozen-lockfile
run: yarn --immutable

- name: Publish to Chromatic
id: chromatic
Expand Down
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,12 @@ chromatic.log
chromatic-build-*.xml
chromatic-diagnostics*.json
chromatic.config.json

# yarn
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versio;/
934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.6.0.cjs

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cacheFolder: ~/.cache/yarn
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.6.0.cjs
# @todo: Remove enableScripts once pre/post install commands are migrated to the new Yarn 4 recommended pattern.
enableScripts: true
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"engines": {
"node": ">=20",
"yarn": ">=1.16.0"
"yarn": ">=4.6.0"
},
"scripts": {
"analyze": "lit-analyzer \"{packages,tools}/*/src/**/!(*.css).ts\"",
Expand Down Expand Up @@ -143,9 +143,9 @@
"@webcomponents/webcomponentsjs": "^2.8.0",
"alex": "^11.0.1",
"cem-plugin-module-file-extensions": "^0.0.5",
"chalk": "^5.0.1",
"chromatic": "^11.20.0",
"chromedriver": "^130.0.1",
"colors": "^1.4.0",
"common-tags": "^1.8.2",
"custom-elements-manifest": "^2.0.0",
"debounce": "^2.0.0",
Expand Down Expand Up @@ -433,5 +433,5 @@
"tools/*",
"react/*"
],
"packageManager": "yarn@1.22.22"
"packageManager": "yarn@4.6.0"
}
2 changes: 1 addition & 1 deletion packages/accordion/src/accordion-item-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/accordion/src/accordion-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/action-bar/src/action-bar-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/action-button/src/action-button-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/action-group/src/action-group-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/alert-banner/src/alert-banner-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/alert-dialog/src/alert-dialog-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/asset/src/asset-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/avatar/src/avatar-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/badge/src/badge-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/breadcrumbs/src/breadcrumbs-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/button-group/src/button-group-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/button/src/button-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/card/src/card-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/checkbox/src/checkbox-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/clear-button/src/clear-button-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/close-button/src/close-button-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/coachmark/src/coach-indicator-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/coachmark/src/coachmark-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/color-area/src/color-area-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
2 changes: 1 addition & 1 deletion packages/color-handle/src/color-handle-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
Loading

0 comments on commit fd44c0c

Please sign in to comment.