From 6428e078bde4b2e532de805be65952bf46b80e15 Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Thu, 16 Nov 2023 08:36:34 -0500 Subject: [PATCH] fix(Slug): add slug to index.ts --- .../__snapshots__/PublicAPI-test.js.snap | 109 ++++++++++++++++++ packages/react/src/__tests__/index-test.js | 3 + packages/react/src/index.ts | 5 + 3 files changed, 117 insertions(+) diff --git a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap index 1ca356b34d0d..c7b1baa3af8a 100644 --- a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap +++ b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap @@ -10103,6 +10103,115 @@ Map { }, }, }, + "unstable__Slug" => Object { + "$$typeof": Symbol(react.forward_ref), + "propTypes": Object { + "aiText": Object { + "type": "string", + }, + "aiTextLabel": Object { + "type": "string", + }, + "align": Object { + "args": Array [ + Array [ + "top", + "top-left", + "top-right", + "bottom", + "bottom-left", + "bottom-right", + "left", + "left-bottom", + "left-top", + "right", + "right-bottom", + "right-top", + ], + ], + "type": "oneOf", + }, + "autoAlign": Object { + "type": "bool", + }, + "children": Object { + "type": "node", + }, + "className": Object { + "type": "string", + }, + "dotType": Object { + "args": Array [ + Array [ + "default", + "hollow", + ], + ], + "type": "oneOf", + }, + "kind": Object { + "args": Array [ + Array [ + "default", + "hollow", + "inline", + ], + ], + "type": "oneOf", + }, + "onRevertClick": Object { + "type": "func", + }, + "revertActive": Object { + "type": "bool", + }, + "revertLabel": Object { + "type": "string", + }, + "size": Object { + "args": Array [ + Array [ + "mini", + "2xs", + "xs", + "sm", + "md", + "lg", + "xl", + ], + ], + "type": "oneOf", + }, + "slugContent": Object { + "type": "node", + }, + }, + "render": [Function], + }, + "unstable__SlugActions" => Object { + "$$typeof": Symbol(react.forward_ref), + "propTypes": Object { + "children": Object { + "type": "node", + }, + "className": Object { + "type": "string", + }, + }, + "render": [Function], + }, + "unstable__SlugContent" => Object { + "$$typeof": Symbol(react.forward_ref), + "propTypes": Object { + "children": Object { + "type": "node", + }, + "className": Object { + "type": "string", + }, + }, + "render": [Function], + }, "unstable_useFeatureFlag" => Object {}, "unstable_useFeatureFlags" => Object {}, "unstable_useLayoutDirection" => Object {}, diff --git a/packages/react/src/__tests__/index-test.js b/packages/react/src/__tests__/index-test.js index bfd9a98818d6..29c76a85e43e 100644 --- a/packages/react/src/__tests__/index-test.js +++ b/packages/react/src/__tests__/index-test.js @@ -262,6 +262,9 @@ describe('Carbon Components React', () => { "unstable__FluidTimePicker", "unstable__FluidTimePickerSelect", "unstable__FluidTimePickerSkeleton", + "unstable__Slug", + "unstable__SlugActions", + "unstable__SlugContent", "unstable_useFeatureFlag", "unstable_useFeatureFlags", "unstable_useLayoutDirection", diff --git a/packages/react/src/index.ts b/packages/react/src/index.ts index c5b7f6a97768..d7d6d1094655 100644 --- a/packages/react/src/index.ts +++ b/packages/react/src/index.ts @@ -152,6 +152,11 @@ export { } from './components/Pagination/experimental'; export * from './components/Popover'; export * from './components/ProgressBar'; +export { + Slug as unstable__Slug, + SlugContent as unstable__SlugContent, + SlugActions as unstable__SlugActions, +} from './components/Slug'; export * from './components/Stack'; export * from './components/Tooltip'; export {