diff --git a/.changeset/tidy-showers-sort.md b/.changeset/tidy-showers-sort.md new file mode 100644 index 00000000000..35cd22b1779 --- /dev/null +++ b/.changeset/tidy-showers-sort.md @@ -0,0 +1,5 @@ +--- +'@primer/react': minor +--- + +SelectPanel2: Deprecate `SelectPanel2` diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-dark-colorblind-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-dark-colorblind-linux.png new file mode 100644 index 00000000000..53df30a8de2 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-dark-dimmed-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-dark-dimmed-linux.png new file mode 100644 index 00000000000..9bcc9f127af Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-dark-high-contrast-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-dark-high-contrast-linux.png new file mode 100644 index 00000000000..e7544b32617 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-dark-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-dark-linux.png new file mode 100644 index 00000000000..54baf4e458e Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-dark-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-dark-tritanopia-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-dark-tritanopia-linux.png new file mode 100644 index 00000000000..53df30a8de2 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-light-colorblind-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-light-colorblind-linux.png new file mode 100644 index 00000000000..ee5881e1586 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-light-high-contrast-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-light-high-contrast-linux.png new file mode 100644 index 00000000000..43e900005a6 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-light-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-light-linux.png new file mode 100644 index 00000000000..3deca453cb0 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-light-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-light-tritanopia-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-light-tritanopia-linux.png new file mode 100644 index 00000000000..ee5881e1586 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-As-Modal-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-dark-colorblind-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-dark-colorblind-linux.png new file mode 100644 index 00000000000..793d9b550c7 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-dark-dimmed-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-dark-dimmed-linux.png new file mode 100644 index 00000000000..3d1566fa3c2 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-dark-high-contrast-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-dark-high-contrast-linux.png new file mode 100644 index 00000000000..372cff7cf0a Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-dark-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-dark-linux.png new file mode 100644 index 00000000000..66d35183d4e Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-dark-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-dark-tritanopia-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-dark-tritanopia-linux.png new file mode 100644 index 00000000000..793d9b550c7 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-light-colorblind-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-light-colorblind-linux.png new file mode 100644 index 00000000000..abe94837690 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-light-high-contrast-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-light-high-contrast-linux.png new file mode 100644 index 00000000000..e9cb03643d5 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-light-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-light-linux.png new file mode 100644 index 00000000000..d1876b390ab Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-light-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-light-tritanopia-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-light-tritanopia-linux.png new file mode 100644 index 00000000000..abe94837690 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Default-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-dark-colorblind-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-dark-colorblind-linux.png new file mode 100644 index 00000000000..26efe7b92d3 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-dark-dimmed-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-dark-dimmed-linux.png new file mode 100644 index 00000000000..b081a37c973 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-dark-high-contrast-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-dark-high-contrast-linux.png new file mode 100644 index 00000000000..45116b86748 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-dark-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-dark-linux.png new file mode 100644 index 00000000000..29c32991357 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-dark-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-dark-tritanopia-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-dark-tritanopia-linux.png new file mode 100644 index 00000000000..26efe7b92d3 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-light-colorblind-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-light-colorblind-linux.png new file mode 100644 index 00000000000..5c51625bf50 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-light-high-contrast-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-light-high-contrast-linux.png new file mode 100644 index 00000000000..f5f6f4b58c2 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-light-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-light-linux.png new file mode 100644 index 00000000000..6b53a62be39 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-light-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-light-tritanopia-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-light-tritanopia-linux.png new file mode 100644 index 00000000000..5c51625bf50 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-External-Anchor-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-dark-colorblind-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-dark-colorblind-linux.png new file mode 100644 index 00000000000..b19386e2a64 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-dark-dimmed-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-dark-dimmed-linux.png new file mode 100644 index 00000000000..0497100e845 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-dark-high-contrast-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-dark-high-contrast-linux.png new file mode 100644 index 00000000000..0ee43e0f963 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-dark-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-dark-linux.png new file mode 100644 index 00000000000..b19386e2a64 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-dark-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-dark-tritanopia-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-dark-tritanopia-linux.png new file mode 100644 index 00000000000..b19386e2a64 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-light-colorblind-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-light-colorblind-linux.png new file mode 100644 index 00000000000..6aeed32b935 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-light-high-contrast-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-light-high-contrast-linux.png new file mode 100644 index 00000000000..466dfe5773c Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-light-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-light-linux.png new file mode 100644 index 00000000000..6aeed32b935 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-light-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-light-tritanopia-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-light-tritanopia-linux.png new file mode 100644 index 00000000000..6aeed32b935 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-Instant-Selection-Variant-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-dark-colorblind-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-dark-colorblind-linux.png new file mode 100644 index 00000000000..aa2ca8ef073 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-dark-dimmed-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-dark-dimmed-linux.png new file mode 100644 index 00000000000..a4803adc375 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-dark-high-contrast-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-dark-high-contrast-linux.png new file mode 100644 index 00000000000..7b022f8c509 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-dark-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-dark-linux.png new file mode 100644 index 00000000000..f96506de0ca Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-dark-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-dark-tritanopia-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-dark-tritanopia-linux.png new file mode 100644 index 00000000000..e6c821a7d55 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-light-colorblind-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-light-colorblind-linux.png new file mode 100644 index 00000000000..7af676f4e84 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-light-high-contrast-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-light-high-contrast-linux.png new file mode 100644 index 00000000000..b13a6838847 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-light-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-light-linux.png new file mode 100644 index 00000000000..1f4a127e126 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-light-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-light-tritanopia-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-light-tritanopia-linux.png new file mode 100644 index 00000000000..d2a7066947c Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Errors-light-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-dark-colorblind-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-dark-colorblind-linux.png new file mode 100644 index 00000000000..831bd6af573 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-dark-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-dark-dimmed-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-dark-dimmed-linux.png new file mode 100644 index 00000000000..b62ae50d4ac Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-dark-dimmed-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-dark-high-contrast-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-dark-high-contrast-linux.png new file mode 100644 index 00000000000..257b1e1ce2a Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-dark-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-dark-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-dark-linux.png new file mode 100644 index 00000000000..4ba1e81bc21 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-dark-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-dark-tritanopia-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-dark-tritanopia-linux.png new file mode 100644 index 00000000000..cf15237d7c5 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-dark-tritanopia-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-light-colorblind-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-light-colorblind-linux.png new file mode 100644 index 00000000000..bd88ff35677 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-light-colorblind-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-light-high-contrast-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-light-high-contrast-linux.png new file mode 100644 index 00000000000..20f0ec3e2cf Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-light-high-contrast-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-light-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-light-linux.png new file mode 100644 index 00000000000..989c7a0d30f Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-light-linux.png differ diff --git a/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-light-tritanopia-linux.png b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-light-tritanopia-linux.png new file mode 100644 index 00000000000..bd88ff35677 Binary files /dev/null and b/.playwright/snapshots/components/SelectPanel2.test.ts-snapshots/deprecated-SelectPanel-With-Warning-light-tritanopia-linux.png differ diff --git a/e2e/components/drafts/SelectPanel.test.ts b/e2e/components/SelectPanel2.test.ts similarity index 71% rename from e2e/components/drafts/SelectPanel.test.ts rename to e2e/components/SelectPanel2.test.ts index 301dc3b81f2..b08675fa15c 100644 --- a/e2e/components/drafts/SelectPanel.test.ts +++ b/e2e/components/SelectPanel2.test.ts @@ -1,7 +1,7 @@ import {test, expect} from '@playwright/test' -import {visit} from '../../test-helpers/storybook' -import {themes} from '../../test-helpers/themes' -import {waitForImages} from '../../test-helpers/waitForImages' +import {visit} from '../test-helpers/storybook' +import {themes} from '../test-helpers/themes' +import {waitForImages} from '../test-helpers/waitForImages' const stories: Array<{ title: string @@ -10,28 +10,28 @@ const stories: Array<{ }> = [ { title: 'Default', - id: 'experimental-components-selectpanel--default', + id: 'deprecated-components-selectpanel--default', }, { - id: 'experimental-components-selectpanel-features--as-modal', + id: 'deprecated-components-selectpanel-features--as-modal', title: 'As Modal', }, { - id: 'experimental-components-selectpanel-features--external-anchor', + id: 'deprecated-components-selectpanel-features--external-anchor', title: 'External Anchor', }, { - id: 'experimental-components-selectpanel-features--instant-selection-variant', + id: 'deprecated-components-selectpanel-features--instant-selection-variant', title: 'Instant Selection Variant', buttonText: 'Choose a tag', }, { - id: 'experimental-components-selectpanel-features--with-warning', + id: 'deprecated-components-selectpanel-features--with-warning', title: 'With Warning', buttonText: 'Assignees', }, { - id: 'experimental-components-selectpanel-features--with-errors', + id: 'deprecated-components-selectpanel-features--with-errors', title: 'With Errors', buttonText: 'Assignees', }, @@ -55,7 +55,7 @@ test.describe('SelectPanel', () => { await page.getByText(buttonText).click() await waitForImages(page) expect(await page.screenshot({animations: 'disabled'})).toMatchSnapshot( - `drafts.SelectPanel.${story.title}.${theme}.png`, + `deprecated.SelectPanel.${story.title}.${theme}.png`, ) }) diff --git a/packages/react/src/ActionBar/ActionBar.examples.stories.tsx b/packages/react/src/ActionBar/ActionBar.examples.stories.tsx index 23be81dd12f..e96a4823434 100644 --- a/packages/react/src/ActionBar/ActionBar.examples.stories.tsx +++ b/packages/react/src/ActionBar/ActionBar.examples.stories.tsx @@ -21,7 +21,7 @@ import { import {Box, Button, Avatar, ActionMenu, IconButton, ActionList, Textarea} from '..' import {Dialog} from '../DialogV1' import {Divider} from '../deprecated/ActionList/Divider' -import mockData from '../experimental/SelectPanel2/mock-story-data' +import mockData from '../SelectPanel2/mock-story-data' export default { title: 'Experimental/Components/ActionBar/Examples', diff --git a/packages/react/src/experimental/SelectPanel2/SelectPanel.docs.json b/packages/react/src/SelectPanel2/SelectPanel.docs.json similarity index 87% rename from packages/react/src/experimental/SelectPanel2/SelectPanel.docs.json rename to packages/react/src/SelectPanel2/SelectPanel.docs.json index 078eab817bd..db14ec2bfda 100644 --- a/packages/react/src/experimental/SelectPanel2/SelectPanel.docs.json +++ b/packages/react/src/SelectPanel2/SelectPanel.docs.json @@ -2,20 +2,20 @@ "id": "select_panel_v2", "docsId": "select_panel", "name": "SelectPanel", - "status": "draft", + "status": "deprecated", "a11yReviewed": false, "stories": [ - {"id": "experimental-components-selectpanel-examples--minimal"}, - {"id": "experimental-components-selectpanel-examples--short-select-panel"}, - {"id": "experimental-components-selectpanel-features--instant-selection-variant"}, - {"id": "experimental-components-selectpanel-features--with-warning"}, - {"id": "experimental-components-selectpanel-examples--open-from-menu"}, - {"id": "experimental-components-selectpanel-examples--with-groups"}, - {"id": "experimental-components-selectpanel-examples--async-search-with-use-transition"}, - {"id": "experimental-components-selectpanel-examples--async-with-suspended-list"}, - {"id": "experimental-components-selectpanel-examples--with-filter-buttons"} + {"id": "deprecated-components-selectpanel-examples--minimal"}, + {"id": "deprecated-components-selectpanel-examples--short-select-panel"}, + {"id": "deprecated-components-selectpanel-features--instant-selection-variant"}, + {"id": "deprecated-components-selectpanel-features--with-warning"}, + {"id": "deprecated-components-selectpanel-examples--open-from-menu"}, + {"id": "deprecated-components-selectpanel-examples--with-groups"}, + {"id": "deprecated-components-selectpanel-examples--async-search-with-use-transition"}, + {"id": "deprecated-components-selectpanel-examples--async-with-suspended-list"}, + {"id": "deprecated-components-selectpanel-examples--with-filter-buttons"} ], - "importPath": "@primer/react/experimental", + "importPath": "@primer/react/deprecated", "props": [ { "name": "title", diff --git a/packages/react/src/experimental/SelectPanel2/SelectPanel.examples.stories.tsx b/packages/react/src/SelectPanel2/SelectPanel.examples.stories.tsx similarity index 99% rename from packages/react/src/experimental/SelectPanel2/SelectPanel.examples.stories.tsx rename to packages/react/src/SelectPanel2/SelectPanel.examples.stories.tsx index de74f8dda2f..167e4939ccf 100644 --- a/packages/react/src/experimental/SelectPanel2/SelectPanel.examples.stories.tsx +++ b/packages/react/src/SelectPanel2/SelectPanel.examples.stories.tsx @@ -1,8 +1,8 @@ import React from 'react' import {SelectPanel} from './SelectPanel' -import {ActionList, ActionMenu, Avatar, Box, Button, Text, Flash, FormControl, TextInput} from '../../index' -import Octicon from '../../Octicon' -import {Dialog} from '../../experimental' +import {ActionList, ActionMenu, Avatar, Box, Button, Text, Flash, FormControl, TextInput} from '../index' +import Octicon from '../Octicon' +import {Dialog} from '../experimental' import { ArrowRightIcon, EyeIcon, @@ -18,7 +18,7 @@ import { import data from './mock-story-data' export default { - title: 'Experimental/Components/SelectPanel/Examples', + title: 'Deprecated/Components/SelectPanel/Examples', component: SelectPanel, } @@ -298,8 +298,8 @@ const SuspendedActionList: React.FC<{query: string}> = ({query}) => { ) } -/* - `data` is already pre-fetched with the issue +/* + `data` is already pre-fetched with the issue `users` are fetched async on search */ const SearchableUserList: React.FC<{ @@ -347,8 +347,8 @@ const SearchableUserList: React.FC<{ ) } -/* - `data` is already pre-fetched with the issue +/* + `data` is already pre-fetched with the issue `users` are fetched async on search */ export const AsyncSearchWithUseTransition = () => { @@ -931,8 +931,8 @@ export const CreateNewRow = () => { const itemsToShow = query ? filteredLabels : data.labels.sort(sortingFn) - /* - Controlled state + Create new label Dialog + /* + Controlled state + Create new label Dialog We only have to do this until https://github.com/primer/react/pull/3840 is merged */ const [panelOpen, setPanelOpen] = React.useState(false) diff --git a/packages/react/src/experimental/SelectPanel2/SelectPanel.features.stories.tsx b/packages/react/src/SelectPanel2/SelectPanel.features.stories.tsx similarity index 99% rename from packages/react/src/experimental/SelectPanel2/SelectPanel.features.stories.tsx rename to packages/react/src/SelectPanel2/SelectPanel.features.stories.tsx index 824695cd9e8..3be3684f5bf 100644 --- a/packages/react/src/experimental/SelectPanel2/SelectPanel.features.stories.tsx +++ b/packages/react/src/SelectPanel2/SelectPanel.features.stories.tsx @@ -1,21 +1,11 @@ import React from 'react' import {SelectPanel} from './SelectPanel' -import { - ActionList, - Avatar, - Box, - Button, - Link, - SegmentedControl, - Text, - ToggleSwitch, - useResponsiveValue, -} from '../../index' +import {ActionList, Avatar, Box, Button, Link, SegmentedControl, Text, ToggleSwitch, useResponsiveValue} from '../index' import {TagIcon, GearIcon, ArrowBothIcon} from '@primer/octicons-react' import data from './mock-story-data' export default { - title: 'Experimental/Components/SelectPanel/Features', + title: 'Deprecated/Components/SelectPanel/Features', component: SelectPanel, } diff --git a/packages/react/src/experimental/SelectPanel2/SelectPanel.module.css b/packages/react/src/SelectPanel2/SelectPanel.module.css similarity index 100% rename from packages/react/src/experimental/SelectPanel2/SelectPanel.module.css rename to packages/react/src/SelectPanel2/SelectPanel.module.css diff --git a/packages/react/src/experimental/SelectPanel2/SelectPanel.playground.stories.tsx b/packages/react/src/SelectPanel2/SelectPanel.playground.stories.tsx similarity index 97% rename from packages/react/src/experimental/SelectPanel2/SelectPanel.playground.stories.tsx rename to packages/react/src/SelectPanel2/SelectPanel.playground.stories.tsx index f99ac8e2a4b..2bdba6b37cf 100644 --- a/packages/react/src/experimental/SelectPanel2/SelectPanel.playground.stories.tsx +++ b/packages/react/src/SelectPanel2/SelectPanel.playground.stories.tsx @@ -2,11 +2,11 @@ import React from 'react' import type {Meta, StoryFn} from '@storybook/react' import type {SelectPanelProps} from './SelectPanel' import {SelectPanel} from './SelectPanel' -import {ActionList, Box} from '../../index' +import {ActionList, Box} from '../index' import data from './mock-story-data' export default { - title: 'Experimental/Components/SelectPanel/Playground', + title: 'Deprecated/Components/SelectPanel/Playground', component: SelectPanel, args: { diff --git a/packages/react/src/experimental/SelectPanel2/SelectPanel.stories.tsx b/packages/react/src/SelectPanel2/SelectPanel.stories.tsx similarity index 97% rename from packages/react/src/experimental/SelectPanel2/SelectPanel.stories.tsx rename to packages/react/src/SelectPanel2/SelectPanel.stories.tsx index fa5b08f0e46..c88441d8e69 100644 --- a/packages/react/src/experimental/SelectPanel2/SelectPanel.stories.tsx +++ b/packages/react/src/SelectPanel2/SelectPanel.stories.tsx @@ -1,10 +1,10 @@ import React from 'react' import {SelectPanel} from './SelectPanel' -import {ActionList, Box} from '../../index' +import {ActionList, Box} from '../index' import data from './mock-story-data' export default { - title: 'Experimental/Components/SelectPanel', + title: 'Deprecated/Components/SelectPanel', component: SelectPanel, } diff --git a/packages/react/src/experimental/SelectPanel2/SelectPanel.test.tsx b/packages/react/src/SelectPanel2/SelectPanel.test.tsx similarity index 99% rename from packages/react/src/experimental/SelectPanel2/SelectPanel.test.tsx rename to packages/react/src/SelectPanel2/SelectPanel.test.tsx index 5e54e4c6b3b..3763ff32f99 100644 --- a/packages/react/src/experimental/SelectPanel2/SelectPanel.test.tsx +++ b/packages/react/src/SelectPanel2/SelectPanel.test.tsx @@ -1,5 +1,5 @@ import React from 'react' -import {ThemeProvider, ActionList, FormControl} from '../../' +import {ThemeProvider, ActionList, FormControl} from '../' import type {RenderResult} from '@testing-library/react' import {render} from '@testing-library/react' import type {UserEvent} from '@testing-library/user-event' diff --git a/packages/react/src/experimental/SelectPanel2/SelectPanel.tsx b/packages/react/src/SelectPanel2/SelectPanel.tsx similarity index 97% rename from packages/react/src/experimental/SelectPanel2/SelectPanel.tsx rename to packages/react/src/SelectPanel2/SelectPanel.tsx index 47d44d4235f..cb9573806a9 100644 --- a/packages/react/src/experimental/SelectPanel2/SelectPanel.tsx +++ b/packages/react/src/SelectPanel2/SelectPanel.tsx @@ -1,7 +1,7 @@ import React, {useEffect, useState, type MutableRefObject} from 'react' import {SearchIcon, XCircleFillIcon, XIcon, FilterRemoveIcon, AlertIcon, ArrowLeftIcon} from '@primer/octicons-react' -import type {ButtonProps, TextInputProps, ActionListProps, LinkProps, CheckboxProps} from '../../index' +import type {ButtonProps, TextInputProps, ActionListProps, LinkProps, CheckboxProps} from '../index' import { Button, IconButton, @@ -13,20 +13,20 @@ import { Link, Checkbox, useFormControlForwardedProps, -} from '../../index' -import Octicon from '../../Octicon' -import {ActionListContainerContext} from '../../ActionList/ActionListContainerContext' -import {useSlots} from '../../hooks/useSlots' -import {useProvidedRefOrCreate, useId, useAnchoredPosition} from '../../hooks' -import type {OverlayProps} from '../../Overlay/Overlay' -import {BaseOverlay, heightMap} from '../../Overlay/Overlay' -import {InputLabel} from '../../internal/components/InputLabel' -import {invariant} from '../../utils/invariant' -import {AriaStatus} from '../../live-region' -import {useResponsiveValue} from '../../hooks/useResponsiveValue' -import type {ResponsiveValue} from '../../hooks/useResponsiveValue' +} from '../index' +import Octicon from '../Octicon' +import {ActionListContainerContext} from '../ActionList/ActionListContainerContext' +import {useSlots} from '../hooks/useSlots' +import {useProvidedRefOrCreate, useId, useAnchoredPosition} from '../hooks' +import type {OverlayProps} from '../Overlay/Overlay' +import {BaseOverlay, heightMap} from '../Overlay/Overlay' +import {InputLabel} from '../internal/components/InputLabel' +import {invariant} from '../utils/invariant' +import {AriaStatus} from '../live-region' +import {useResponsiveValue} from '../hooks/useResponsiveValue' +import type {ResponsiveValue} from '../hooks/useResponsiveValue' import {clsx} from 'clsx' -import {useFeatureFlag} from '../../FeatureFlags' +import {useFeatureFlag} from '../FeatureFlags' import classes from './SelectPanel.module.css' import type {PositionSettings} from '@primer/behaviors' diff --git a/packages/react/src/experimental/SelectPanel2/__tests__/SelectPanelLoading.test.tsx b/packages/react/src/SelectPanel2/__tests__/SelectPanelLoading.test.tsx similarity index 100% rename from packages/react/src/experimental/SelectPanel2/__tests__/SelectPanelLoading.test.tsx rename to packages/react/src/SelectPanel2/__tests__/SelectPanelLoading.test.tsx diff --git a/packages/react/src/experimental/SelectPanel2/index.tsx b/packages/react/src/SelectPanel2/index.tsx similarity index 100% rename from packages/react/src/experimental/SelectPanel2/index.tsx rename to packages/react/src/SelectPanel2/index.tsx diff --git a/packages/react/src/experimental/SelectPanel2/mock-story-data.ts b/packages/react/src/SelectPanel2/mock-story-data.ts similarity index 100% rename from packages/react/src/experimental/SelectPanel2/mock-story-data.ts rename to packages/react/src/SelectPanel2/mock-story-data.ts diff --git a/packages/react/src/experimental/SelectPanel2/work-log.md b/packages/react/src/SelectPanel2/work-log.md similarity index 100% rename from packages/react/src/experimental/SelectPanel2/work-log.md rename to packages/react/src/SelectPanel2/work-log.md diff --git a/packages/react/src/__tests__/__snapshots__/exports.test.ts.snap b/packages/react/src/__tests__/__snapshots__/exports.test.ts.snap index 546b1b187d1..bd43a859951 100644 --- a/packages/react/src/__tests__/__snapshots__/exports.test.ts.snap +++ b/packages/react/src/__tests__/__snapshots__/exports.test.ts.snap @@ -236,6 +236,10 @@ exports[`@primer/react/deprecated should not update exports without a semver cha "type OcticonProps", "Pagehead", "type PageheadProps", + "SelectPanel", + "type SelectPanelMessageProps", + "type SelectPanelProps", + "type SelectPanelSecondaryActionProps", "TabNav", "type TabNavLinkProps", "type TabNavProps", @@ -307,10 +311,6 @@ exports[`@primer/react/experimental should not update exports without a semver c "type ParentLinkProps", "ScrollableRegion", "type ScrollableRegionProps", - "SelectPanel", - "type SelectPanelMessageProps", - "type SelectPanelProps", - "type SelectPanelSecondaryActionProps", "SkeletonAvatar", "SkeletonBox", "SkeletonText", diff --git a/packages/react/src/deprecated/index.ts b/packages/react/src/deprecated/index.ts index c0df1270469..8eb4d3710ac 100644 --- a/packages/react/src/deprecated/index.ts +++ b/packages/react/src/deprecated/index.ts @@ -42,3 +42,5 @@ export type {TabNavProps, TabNavLinkProps} from '../TabNav' export {default as Tooltip} from '../Tooltip/Tooltip' export type {TooltipProps} from '../Tooltip/Tooltip' // end of v37.0.0 + +export * from '../SelectPanel2' diff --git a/packages/react/src/experimental/index.ts b/packages/react/src/experimental/index.ts index 9346c8c39a6..3e9896c7353 100644 --- a/packages/react/src/experimental/index.ts +++ b/packages/react/src/experimental/index.ts @@ -58,7 +58,7 @@ export type { NavListTrailingVisualProps, NavListDividerProps, } from '../NavList' -export * from './SelectPanel2' + export {Tooltip} from '../TooltipV2' export type {TooltipProps} from '../TooltipV2' export * from '../ActionBar'