-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plasma-new-hope): temp commit, vertical tabs blueprint
- Loading branch information
1 parent
ada9bfe
commit cc061ef
Showing
33 changed files
with
110 additions
and
38 deletions.
There are no files selected for viewing
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,14 @@ | ||
import React from 'react'; | ||
|
||
import { TabItemComponentVariation, TabItemProps } from './TabItem.types'; | ||
|
||
export const boundTabItem = ({ | ||
horizontal: HorizontalTabItem, | ||
vertical: VerticalTabItem, | ||
}: TabItemComponentVariation) => (rest: TabItemProps) => { | ||
if (rest.orientation === 'vertical') { | ||
return <VerticalTabItem {...rest} />; | ||
} | ||
|
||
return <HorizontalTabItem {...rest} />; | ||
}; |
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,13 @@ | ||
import React from 'react'; | ||
|
||
import { TabsComponentVariation, TabsProps } from './Tabs.types'; | ||
|
||
export const boundTabs = ({ horizontal: HorizontalTabs, vertical: VerticalTabs }: TabsComponentVariation) => ( | ||
rest: TabsProps, | ||
) => { | ||
if (rest.orientation === 'vertical') { | ||
return <VerticalTabs {...rest} />; | ||
} | ||
|
||
return <HorizontalTabs {...rest} />; | ||
}; |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
export { tabsRoot, tabsConfig } from './ui/Tabs/Tabs'; | ||
export { tabItemRoot, tabItemConfig } from './ui/TabItem/TabItem'; | ||
export { tabsRoot, tabsConfig } from './ui/HorizontalTabs/HorizontalTabs'; | ||
export { tabItemRoot, tabItemConfig } from './ui/HorizontalTabItem/HorizontalTabItem'; | ||
export { tokens as tabsTokens } from './tokens'; | ||
export { TabItemRefs, TabsContext } from './TabsContext'; | ||
export { createTabsController } from './createTabsController'; | ||
export type { TabsControllerProps } from './createTabsController'; | ||
export type { TabsProps } from './ui/Tabs/Tabs.types'; | ||
export type { TabItemProps } from './ui/TabItem/TabItem.types'; | ||
export type { TabsProps } from './ui/HorizontalTabs/Tabs.types'; | ||
export type { TabItemProps } from './ui/HorizontalTabItem/TabItem.types'; |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../Tabs/ui/TabItem/variations/_view/base.ts → ...orizontalTabItem/variations/_view/base.ts
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../Tabs/ui/Tabs/variations/_stretch/base.ts → ...orizontalTabs/variations/_stretch/base.ts
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
packages/plasma-new-hope/src/components/Tabs/ui/VerticalTabItem/VerticalTabItem.styles.ts
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 @@ | ||
// to be implemented |
1 change: 1 addition & 0 deletions
1
packages/plasma-new-hope/src/components/Tabs/ui/VerticalTabItem/VerticalTabItem.tsx
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 @@ | ||
// to be implemented |
Empty file.
1 change: 1 addition & 0 deletions
1
packages/plasma-new-hope/src/components/Tabs/ui/VerticalTabs/VerticalTabs.styles.ts
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 @@ | ||
// to be implemented |
1 change: 1 addition & 0 deletions
1
packages/plasma-new-hope/src/components/Tabs/ui/VerticalTabs/VerticalTabs.tsx
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 @@ | ||
// to be implemented |
Empty file.