-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
193 changed files
with
723 additions
and
356 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Consumer test | ||
on: | ||
push: {branches: main} | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
consumer-test: | ||
name: Consumer test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
cache: npm | ||
- run: npm i -g npm@^10.5.1 | ||
- name: Remove "prepare" script | ||
run: npm pkg delete scripts.prepare | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build @primer/react | ||
run: npm run build -w rollup-plugin-import-css -w @primer/react | ||
# Output the artifact as a tarball in `consumer-test`. Write the | ||
# information for this package in `consumer-test/pack.json` so we can read | ||
# from it later to install the package | ||
- name: Create a tarball for the package | ||
run: npm pack --pack-destination ../../examples/consumer-test --json > ../../examples/consumer-test/pack.json | ||
working-directory: packages/react | ||
- name: Clean package directory | ||
run: npm run clean:all | ||
- name: Test | ||
id: test | ||
working-directory: examples/consumer-test | ||
run: | | ||
# Read the filename for the tarball from `pack.json` | ||
npm install $(jq -r '.[0].filename' pack.json) | ||
npm install | ||
npm run check | ||
- name: Add annotation | ||
if: failure() && steps.test.conclusion == 'failure' | ||
run: | | ||
echo "::error file=tsconfig.build.json::Test package could not build. See https://github.com/primer/react/blob/main/examples/consumer-test" |
Binary file modified
BIN
+1.48 KB
(110%)
...ActionList.test.ts-snapshots/ActionList-Disabled-Item-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.39 KB
(110%)
...nts/ActionList.test.ts-snapshots/ActionList-Disabled-Item-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.43 KB
(110%)
...ionList.test.ts-snapshots/ActionList-Disabled-Item-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.48 KB
(110%)
...components/ActionList.test.ts-snapshots/ActionList-Disabled-Item-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.48 KB
(110%)
...ActionList.test.ts-snapshots/ActionList-Disabled-Item-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.29 KB
(110%)
...ctionList.test.ts-snapshots/ActionList-Disabled-Item-light-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.42 KB
(110%)
...onList.test.ts-snapshots/ActionList-Disabled-Item-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.26 KB
(110%)
...omponents/ActionList.test.ts-snapshots/ActionList-Disabled-Item-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.29 KB
(110%)
...ctionList.test.ts-snapshots/ActionList-Disabled-Item-light-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.27 KB
(110%)
...tionList.test.ts-snapshots/ActionList-Full-Variant-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.29 KB
(110%)
...ionList.test.ts-snapshots/ActionList-Full-Variant-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.52 KB
(110%)
.../ActionList.test.ts-snapshots/ActionList-Loading-Item-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.31 KB
(110%)
...ents/ActionList.test.ts-snapshots/ActionList-Loading-Item-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.45 KB
(110%)
...tionList.test.ts-snapshots/ActionList-Loading-Item-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.38 KB
(110%)
.../components/ActionList.test.ts-snapshots/ActionList-Loading-Item-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.52 KB
(110%)
.../ActionList.test.ts-snapshots/ActionList-Loading-Item-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.51 KB
(110%)
...ActionList.test.ts-snapshots/ActionList-Loading-Item-light-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.49 KB
(110%)
...ionList.test.ts-snapshots/ActionList-Loading-Item-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.48 KB
(110%)
...components/ActionList.test.ts-snapshots/ActionList-Loading-Item-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.51 KB
(110%)
...ActionList.test.ts-snapshots/ActionList-Loading-Item-light-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.54 KB
(110%)
.../ActionList.test.ts-snapshots/ActionList-Multi-Select-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.42 KB
(110%)
...ents/ActionList.test.ts-snapshots/ActionList-Multi-Select-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.41 KB
(110%)
...tionList.test.ts-snapshots/ActionList-Multi-Select-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.54 KB
(110%)
.../components/ActionList.test.ts-snapshots/ActionList-Multi-Select-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.54 KB
(110%)
.../ActionList.test.ts-snapshots/ActionList-Multi-Select-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.4 KB
(110%)
...ActionList.test.ts-snapshots/ActionList-Multi-Select-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.45 KB
(110%)
...ionList.test.ts-snapshots/ActionList-Multi-Select-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.37 KB
(110%)
...components/ActionList.test.ts-snapshots/ActionList-Multi-Select-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.4 KB
(110%)
...ActionList.test.ts-snapshots/ActionList-Multi-Select-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.28 KB
(110%)
...ctionList.test.ts-snapshots/ActionList-Simple-List-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.28 KB
(110%)
...tionList.test.ts-snapshots/ActionList-Simple-List-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.28 KB
(110%)
...onList.test.ts-snapshots/ActionList-Single-Divider-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.28 KB
(110%)
...nList.test.ts-snapshots/ActionList-Single-Divider-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.37 KB
(110%)
...ActionList.test.ts-snapshots/ActionList-Single-Select-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.4 KB
(110%)
...nts/ActionList.test.ts-snapshots/ActionList-Single-Select-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.4 KB
(110%)
...ionList.test.ts-snapshots/ActionList-Single-Select-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.37 KB
(110%)
...components/ActionList.test.ts-snapshots/ActionList-Single-Select-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.37 KB
(110%)
...ActionList.test.ts-snapshots/ActionList-Single-Select-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.26 KB
(110%)
...ctionList.test.ts-snapshots/ActionList-Single-Select-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.43 KB
(110%)
...onList.test.ts-snapshots/ActionList-Single-Select-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.24 KB
(110%)
...omponents/ActionList.test.ts-snapshots/ActionList-Single-Select-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.26 KB
(110%)
...ctionList.test.ts-snapshots/ActionList-Single-Select-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+44.9 KB
...ist.test.ts-snapshots/ActionList-With-Trailing-Action-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+44.6 KB
...ionList.test.ts-snapshots/ActionList-With-Trailing-Action-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+45.1 KB
....test.ts-snapshots/ActionList-With-Trailing-Action-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+44.9 KB
...nts/ActionList.test.ts-snapshots/ActionList-With-Trailing-Action-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+44.9 KB
...ist.test.ts-snapshots/ActionList-With-Trailing-Action-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+45.1 KB
...st.test.ts-snapshots/ActionList-With-Trailing-Action-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+45.3 KB
...test.ts-snapshots/ActionList-With-Trailing-Action-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+45.1 KB
...ts/ActionList.test.ts-snapshots/ActionList-With-Trailing-Action-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+45.1 KB
...st.test.ts-snapshots/ActionList-With-Trailing-Action-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.9 KB
(110%)
....test.ts-snapshots/ActionMenu-Groups-And-Descriptions-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.69 KB
(110%)
...Menu.test.ts-snapshots/ActionMenu-Groups-And-Descriptions-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.95 KB
(110%)
...st.ts-snapshots/ActionMenu-Groups-And-Descriptions-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.9 KB
(110%)
.../ActionMenu.test.ts-snapshots/ActionMenu-Groups-And-Descriptions-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.9 KB
(110%)
....test.ts-snapshots/ActionMenu-Groups-And-Descriptions-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.95 KB
(110%)
...test.ts-snapshots/ActionMenu-Groups-And-Descriptions-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.26 KB
(110%)
...t.ts-snapshots/ActionMenu-Groups-And-Descriptions-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.95 KB
(110%)
...ActionMenu.test.ts-snapshots/ActionMenu-Groups-And-Descriptions-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.95 KB
(110%)
...test.ts-snapshots/ActionMenu-Groups-And-Descriptions-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.48 KB
(110%)
.../ActionMenu.test.ts-snapshots/ActionMenu-Multi-Select-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.63 KB
(110%)
...ents/ActionMenu.test.ts-snapshots/ActionMenu-Multi-Select-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.49 KB
(110%)
...tionMenu.test.ts-snapshots/ActionMenu-Multi-Select-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.48 KB
(110%)
.../components/ActionMenu.test.ts-snapshots/ActionMenu-Multi-Select-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.48 KB
(110%)
.../ActionMenu.test.ts-snapshots/ActionMenu-Multi-Select-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.91 KB
(110%)
...ActionMenu.test.ts-snapshots/ActionMenu-Multi-Select-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.61 KB
(110%)
...ionMenu.test.ts-snapshots/ActionMenu-Multi-Select-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.91 KB
(110%)
...components/ActionMenu.test.ts-snapshots/ActionMenu-Multi-Select-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.91 KB
(110%)
...ActionMenu.test.ts-snapshots/ActionMenu-Multi-Select-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.38 KB
(110%)
...ActionMenu.test.ts-snapshots/ActionMenu-Single-Select-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.56 KB
(110%)
...nts/ActionMenu.test.ts-snapshots/ActionMenu-Single-Select-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.45 KB
(110%)
...ionMenu.test.ts-snapshots/ActionMenu-Single-Select-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.38 KB
(110%)
...components/ActionMenu.test.ts-snapshots/ActionMenu-Single-Select-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.38 KB
(110%)
...ActionMenu.test.ts-snapshots/ActionMenu-Single-Select-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.86 KB
(110%)
...ctionMenu.test.ts-snapshots/ActionMenu-Single-Select-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.58 KB
(110%)
...onMenu.test.ts-snapshots/ActionMenu-Single-Select-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.86 KB
(110%)
...omponents/ActionMenu.test.ts-snapshots/ActionMenu-Single-Select-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.86 KB
(110%)
...ctionMenu.test.ts-snapshots/ActionMenu-Single-Select-light-tritanopia-linux.png
Oops, something went wrong.
Binary file removed
BIN
-6.72 KB
...nts/ButtonGroup.test.ts-snapshots/ButtonGroup-SX-Prop-dark-colorblind-linux.png
Diff not rendered.
Binary file removed
BIN
-6.76 KB
...ponents/ButtonGroup.test.ts-snapshots/ButtonGroup-SX-Prop-dark-dimmed-linux.png
Diff not rendered.
Binary file removed
BIN
-6.74 KB
.../ButtonGroup.test.ts-snapshots/ButtonGroup-SX-Prop-dark-high-contrast-linux.png
Diff not rendered.
Binary file removed
BIN
-6.72 KB
...ots/components/ButtonGroup.test.ts-snapshots/ButtonGroup-SX-Prop-dark-linux.png
Diff not rendered.
Binary file removed
BIN
-6.72 KB
...nts/ButtonGroup.test.ts-snapshots/ButtonGroup-SX-Prop-dark-tritanopia-linux.png
Diff not rendered.
Binary file removed
BIN
-6.82 KB
...ts/ButtonGroup.test.ts-snapshots/ButtonGroup-SX-Prop-light-colorblind-linux.png
Diff not rendered.
Binary file removed
BIN
-6.92 KB
...ButtonGroup.test.ts-snapshots/ButtonGroup-SX-Prop-light-high-contrast-linux.png
Diff not rendered.
Binary file removed
BIN
-6.82 KB
...ts/components/ButtonGroup.test.ts-snapshots/ButtonGroup-SX-Prop-light-linux.png
Diff not rendered.
Binary file removed
BIN
-6.82 KB
...ts/ButtonGroup.test.ts-snapshots/ButtonGroup-SX-Prop-light-tritanopia-linux.png
Diff not rendered.
Binary file added
BIN
+7.75 KB
...NavList-With-Bad-Example-of-SubNav-and-TrailingAction-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.73 KB
...ots/NavList-With-Bad-Example-of-SubNav-and-TrailingAction-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.7 KB
...List-With-Bad-Example-of-SubNav-and-TrailingAction-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.75 KB
...-snapshots/NavList-With-Bad-Example-of-SubNav-and-TrailingAction-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.75 KB
...NavList-With-Bad-Example-of-SubNav-and-TrailingAction-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.7 KB
...avList-With-Bad-Example-of-SubNav-and-TrailingAction-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.7 KB
...ist-With-Bad-Example-of-SubNav-and-TrailingAction-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.7 KB
...snapshots/NavList-With-Bad-Example-of-SubNav-and-TrailingAction-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.7 KB
...avList-With-Bad-Example-of-SubNav-and-TrailingAction-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.99 KB
(110%)
.../SelectPanel-Above-Tall-Body-dark-colorblind-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.32 KB
(110%)
...hots/SelectPanel-Above-Tall-Body-dark-dimmed-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.86 KB
(110%)
...lectPanel-Above-Tall-Body-dark-high-contrast-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.99 KB
(110%)
...s-snapshots/SelectPanel-Above-Tall-Body-dark-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.99 KB
(110%)
.../SelectPanel-Above-Tall-Body-dark-tritanopia-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.9 KB
(110%)
...SelectPanel-Above-Tall-Body-light-colorblind-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.04 KB
(110%)
...ectPanel-Above-Tall-Body-light-high-contrast-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.9 KB
(110%)
...-snapshots/SelectPanel-Above-Tall-Body-light-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.9 KB
(110%)
...SelectPanel-Above-Tall-Body-light-tritanopia-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.94 KB
(110%)
.../SelectPanel-External-Anchor-dark-colorblind-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.17 KB
(110%)
...hots/SelectPanel-External-Anchor-dark-dimmed-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.02 KB
(110%)
...lectPanel-External-Anchor-dark-high-contrast-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.94 KB
(110%)
...s-snapshots/SelectPanel-External-Anchor-dark-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.94 KB
(110%)
.../SelectPanel-External-Anchor-dark-tritanopia-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.16 KB
(110%)
...SelectPanel-External-Anchor-light-colorblind-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.1 KB
(110%)
...ectPanel-External-Anchor-light-high-contrast-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.16 KB
(110%)
...-snapshots/SelectPanel-External-Anchor-light-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.16 KB
(110%)
...SelectPanel-External-Anchor-light-tritanopia-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3 KB
(110%)
...itial-with-Overflowing-Items-dark-colorblind-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.18 KB
(110%)
...t-Initial-with-Overflowing-Items-dark-dimmed-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.02 KB
(110%)
...al-with-Overflowing-Items-dark-high-contrast-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3 KB
(110%)
...l-Height-Initial-with-Overflowing-Items-dark-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3 KB
(110%)
...itial-with-Overflowing-Items-dark-tritanopia-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.27 KB
(110%)
...tial-with-Overflowing-Items-light-colorblind-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.29 KB
(110%)
...l-with-Overflowing-Items-light-high-contrast-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.27 KB
(110%)
...-Height-Initial-with-Overflowing-Items-light-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.27 KB
(110%)
...tial-with-Overflowing-Items-light-tritanopia-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.82 KB
(110%)
...tial-with-Underflowing-Items-dark-colorblind-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.01 KB
(110%)
...-Initial-with-Underflowing-Items-dark-dimmed-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.83 KB
(110%)
...l-with-Underflowing-Items-dark-high-contrast-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.82 KB
(110%)
...-Height-Initial-with-Underflowing-Items-dark-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.82 KB
(110%)
...tial-with-Underflowing-Items-dark-tritanopia-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.08 KB
(110%)
...ial-with-Underflowing-Items-light-colorblind-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.07 KB
(110%)
...-with-Underflowing-Items-light-high-contrast-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.08 KB
(110%)
...Height-Initial-with-Underflowing-Items-light-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.08 KB
(110%)
...ial-with-Underflowing-Items-light-tritanopia-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.77 KB
(110%)
...eight-Variantions-and-Scroll-dark-colorblind-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.85 KB
(110%)
...el-Height-Variantions-and-Scroll-dark-dimmed-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.86 KB
(110%)
...ht-Variantions-and-Scroll-dark-high-contrast-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.77 KB
(110%)
...lectPanel-Height-Variantions-and-Scroll-dark-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.77 KB
(110%)
...eight-Variantions-and-Scroll-dark-tritanopia-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.93 KB
(110%)
...ight-Variantions-and-Scroll-light-colorblind-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.04 KB
(110%)
...t-Variantions-and-Scroll-light-high-contrast-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.93 KB
(110%)
...ectPanel-Height-Variantions-and-Scroll-light-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.93 KB
(110%)
...ight-Variantions-and-Scroll-light-tritanopia-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3 KB
(110%)
...ts/SelectPanel-Single-Select-dark-colorblind-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.18 KB
(110%)
...pshots/SelectPanel-Single-Select-dark-dimmed-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.02 KB
(110%)
...SelectPanel-Single-Select-dark-high-contrast-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3 KB
(110%)
....ts-snapshots/SelectPanel-Single-Select-dark-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3 KB
(110%)
...ts/SelectPanel-Single-Select-dark-tritanopia-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.27 KB
(110%)
...s/SelectPanel-Single-Select-light-colorblind-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.29 KB
(110%)
...electPanel-Single-Select-light-high-contrast-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.27 KB
(110%)
...ts-snapshots/SelectPanel-Single-Select-light-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.27 KB
(110%)
...s/SelectPanel-Single-Select-light-tritanopia-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.82 KB
(110%)
...hots/SelectPanel-With-Footer-dark-colorblind-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.86 KB
(110%)
...napshots/SelectPanel-With-Footer-dark-dimmed-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.9 KB
(110%)
...s/SelectPanel-With-Footer-dark-high-contrast-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.82 KB
(110%)
...st.ts-snapshots/SelectPanel-With-Footer-dark-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.82 KB
(110%)
...hots/SelectPanel-With-Footer-dark-tritanopia-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.96 KB
(110%)
...ots/SelectPanel-With-Footer-light-colorblind-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3.12 KB
(110%)
.../SelectPanel-With-Footer-light-high-contrast-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.96 KB
(110%)
...t.ts-snapshots/SelectPanel-With-Footer-light-modern-action-list--true-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.96 KB
(110%)
...ots/SelectPanel-With-Footer-light-tritanopia-modern-action-list--true-linux.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import React from 'react' | ||
import {Box} from '@primer/react' | ||
|
||
export default function App() { | ||
return <Box /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Primer React Consumer Test | ||
|
||
This directory is used to run a simple test that asserts that a consumer of | ||
Primer React can build their own project with strict TypeScript options enabled, | ||
including `"skipLibCheck": false`. | ||
|
||
During Primer React's build process, we run the TypeScript compiler and output | ||
`.d.ts` declaration files for consumers of Primer React that are using | ||
TypeScript. If the build script runs with a TypeScript configuration that has | ||
any files in its `types` or `typeRoots` that import any of our development | ||
dependencies, it's possible for our build output to be polluted by interface | ||
augmentations in those dependencies, or in transitive dependencies. | ||
|
||
The best way to avoid this is to ensure that any files that import development | ||
dependencies are excluded in our `tsconfig.build.json` file we use to build | ||
Primer React. | ||
|
||
If a mistake is made and a file is omitted, we will catch those when we attempt | ||
to build this consumer library, which has `"skipLibCheck": false` in its | ||
TypeScript configuration. | ||
|
||
For historical context, see these issues: | ||
|
||
- [v27.0.0 breaks TypeScript typings](https://github.com/primer/react/issues/1163) | ||
- [Storybook dependency changes types in build output](https://github.com/primer/react/issues/1849) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "example-consumer-test", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"check": "tsc --noEmit" | ||
}, | ||
"dependencies": { | ||
"@types/react": "^18.3.11", | ||
"@types/react-dom": "^18.2.19", | ||
"@types/styled-components": "^5.1.11", | ||
"@primer/react": "37.6.0", | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0", | ||
"styled-components": "^5.3.11", | ||
"typescript": "~4.7.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"compilerOptions": { | ||
"skipLibCheck": false, // IMPORTANT: Validates our type outputs | ||
"target": "esnext", | ||
"module": "commonjs", | ||
"allowJs": true, | ||
"checkJs": false, | ||
"jsx": "preserve", | ||
"declaration": true, | ||
"noEmit": true, | ||
"strict": true, | ||
"moduleResolution": "node", | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true | ||
}, | ||
"include": ["./*.tsx"] | ||
} |
Oops, something went wrong.