Skip to content

Commit

Permalink
fix(tabs-vertical): missing exports (#16950)
Browse files Browse the repository at this point in the history
* fix(tabs-vertical): missing exports

* fix(tab): update snapshot
  • Loading branch information
ariellalgilmore authored Jul 15, 2024
1 parent ae2b029 commit 5eec54e
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 1 deletion.
42 changes: 42 additions & 0 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7692,6 +7692,29 @@ Map {
},
},
},
"TabListVertical" => Object {
"propTypes": Object {
"activation": Object {
"args": Array [
Array [
"automatic",
"manual",
],
],
"type": "oneOf",
},
"aria-label": Object {
"isRequired": true,
"type": "string",
},
"children": Object {
"type": "node",
},
"className": Object {
"type": "string",
},
},
},
"TabPanel" => Object {
"$$typeof": Symbol(react.forward_ref),
"propTypes": Object {
Expand Down Expand Up @@ -8277,6 +8300,25 @@ Map {
},
},
},
"TabsVertical" => Object {
"propTypes": Object {
"children": Object {
"type": "node",
},
"defaultSelectedIndex": Object {
"type": "number",
},
"height": Object {
"type": "string",
},
"onChange": Object {
"type": "func",
},
"selectedIndex": Object {
"type": "number",
},
},
},
"Tag" => Object {
"$$typeof": Symbol(react.forward_ref),
"propTypes": Object {
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/__tests__/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ describe('Carbon Components React', () => {
"Tab",
"TabContent",
"TabList",
"TabListVertical",
"TabPanel",
"TabPanels",
"Table",
Expand All @@ -213,6 +214,7 @@ describe('Carbon Components React', () => {
"TableToolbarSearch",
"Tabs",
"TabsSkeleton",
"TabsVertical",
"Tag",
"TagSkeleton",
"TextArea",
Expand Down
4 changes: 4 additions & 0 deletions packages/react/src/components/Tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ export {
type TabPanelProps,
TabList,
type TabListProps,
TabListVertical,
type TabListVerticalProps,
IconTab,
type IconTabProps,
Tabs,
type TabsProps,
TabsVertical,
type TabsVerticalProps,
} from './Tabs';
9 changes: 8 additions & 1 deletion packages/react/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,14 @@ export {
export Tab from './components/Tab';
export TabContent from './components/TabContent';
export Tabs from './components/Tabs';
export { TabPanel, TabPanels, TabList, IconTab } from './components/Tabs';
export {
TabsVertical,
TabPanel,
TabPanels,
TabList,
TabListVertical,
IconTab,
} from './components/Tabs';
export Tag from './components/Tag';
export DismissibleTag from './components/Tag/DismissibleTag.tsx';
export OperationalTag from './components/Tag/OperationalTag.tsx';
Expand Down

0 comments on commit 5eec54e

Please sign in to comment.