From 6b18eaecbd99f81f92b2dd654b771c85b53f365b Mon Sep 17 00:00:00 2001 From: Gregor Martynus <39992+gr2m@users.noreply.github.com> Date: Fri, 13 Oct 2023 11:01:50 -0700 Subject: [PATCH] export `SelectPanel` draft from `@primer/react/drafts` (#3809) * export `SelectPanel` draft from `@primer/react/drafts` * changeset * test: export `SelectPanel` from `@primer/react/drafts` --- .changeset/happy-moles-judge.md | 7 +++++++ src/__tests__/__snapshots__/exports.test.ts.snap | 2 ++ src/drafts/SelectPanel2/index.tsx | 1 + src/drafts/index.ts | 2 ++ 4 files changed, 12 insertions(+) create mode 100644 .changeset/happy-moles-judge.md create mode 100644 src/drafts/SelectPanel2/index.tsx diff --git a/.changeset/happy-moles-judge.md b/.changeset/happy-moles-judge.md new file mode 100644 index 00000000000..752c7ab7c79 --- /dev/null +++ b/.changeset/happy-moles-judge.md @@ -0,0 +1,7 @@ +--- +'@primer/react': patch +--- + +export `SelectPanel` from `@primer/react/drafts` + + diff --git a/src/__tests__/__snapshots__/exports.test.ts.snap b/src/__tests__/__snapshots__/exports.test.ts.snap index 44dc3a0e7c6..66a67c6633a 100644 --- a/src/__tests__/__snapshots__/exports.test.ts.snap +++ b/src/__tests__/__snapshots__/exports.test.ts.snap @@ -343,6 +343,7 @@ exports[`@primer/react/drafts should not update exports without a semver change "Root", "type SavedReply", "SegmentedControl", + "SelectPanel", "type ShowSuggestionsEvent", "type SlotConfig", "SplitPageLayout", @@ -444,6 +445,7 @@ exports[`@primer/react/experimental should not update exports without a semver c "Root", "type SavedReply", "SegmentedControl", + "SelectPanel", "type ShowSuggestionsEvent", "type SlotConfig", "SplitPageLayout", diff --git a/src/drafts/SelectPanel2/index.tsx b/src/drafts/SelectPanel2/index.tsx new file mode 100644 index 00000000000..6512e8048d5 --- /dev/null +++ b/src/drafts/SelectPanel2/index.tsx @@ -0,0 +1 @@ +export {SelectPanel} from './SelectPanel' diff --git a/src/drafts/index.ts b/src/drafts/index.ts index 54e66cbd629..46c1ad7c5bc 100644 --- a/src/drafts/index.ts +++ b/src/drafts/index.ts @@ -50,6 +50,8 @@ export * from '../Hidden' export * from './hooks' +export * from './SelectPanel2' + // TODO: Remove these components from the drafts bundle in the next major release export * from '../TreeView' export * from '../NavList'