-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Export all components to allow usage without dot-notation (#146)
- Loading branch information
Showing
20 changed files
with
43 additions
and
49 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
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
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
2 changes: 1 addition & 1 deletion
2
...ts/dropdown/dropdownContainer.stories.tsx → ...wnContainer/dropdownContainer.stories.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
4 changes: 2 additions & 2 deletions
4
...nents/dropdown/dropdownContainer.test.tsx → ...pdownContainer/dropdownContainer.test.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
4 changes: 2 additions & 2 deletions
4
...components/dropdown/dropdownContainer.tsx → ...n/dropdownContainer/dropdownContainer.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
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,4 @@ | ||
:root { | ||
/* Z-index property of the content insdie the dropdown container */ | ||
--ods-dropdown-container-content-z-index: auto; | ||
} |
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 @@ | ||
export { DropdownContainer, type IDropdownContainerProps } from './dropdownContainer'; |
2 changes: 1 addition & 1 deletion
2
...ponents/dropdown/dropdownItem.stories.tsx → ...own/dropdownItem/dropdownItem.stories.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
4 changes: 2 additions & 2 deletions
4
...components/dropdown/dropdownItem.test.tsx → ...opdown/dropdownItem/dropdownItem.test.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
2 changes: 1 addition & 1 deletion
2
...core/components/dropdown/dropdownItem.tsx → ...ts/dropdown/dropdownItem/dropdownItem.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
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 @@ | ||
export { DropdownItem, type IDropdownItemProps } from './dropdownItem'; |
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,4 +1 @@ | ||
:root { | ||
/* Z-index property of the content insdie the dropdown container */ | ||
--ods-dropdown-container-content-z-index: auto; | ||
} | ||
@import "./dropdownContainer"; |
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,10 +1,10 @@ | ||
import { DropdownContainer } from './dropdownContainer'; | ||
import { DropdownItem } from './dropdownItem'; | ||
|
||
export type { IDropdownContainerProps } from './dropdownContainer'; | ||
export type { IDropdownItemProps } from './dropdownItem'; | ||
|
||
export const Dropdown = { | ||
Container: DropdownContainer, | ||
Item: DropdownItem, | ||
}; | ||
|
||
export * from './dropdownContainer'; | ||
export * from './dropdownItem'; |
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
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
12 changes: 3 additions & 9 deletions
12
src/modules/components/proposal/proposalDataListItem/index.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 |
---|---|---|
@@ -1,13 +1,7 @@ | ||
import { ProposalDataListItemStructure as Structure } from './proposalDataListItemStructure'; | ||
import { ProposalDataListItemStructure } from './proposalDataListItemStructure'; | ||
|
||
export const ProposalDataListItem = { | ||
Structure, | ||
Structure: ProposalDataListItemStructure, | ||
}; | ||
|
||
export type { | ||
IApprovalThresholdResult, | ||
IMajorityVotingResult, | ||
IProposalDataListItemStructureProps, | ||
ProposalStatus, | ||
ProposalType, | ||
} from './proposalDataListItemStructure'; | ||
export * from './proposalDataListItemStructure'; |
10 changes: 3 additions & 7 deletions
10
src/modules/components/transaction/transactionDataListItem/index.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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import { TransactionDataListItemStructure as Structure } from './transactionDataListItemStructure'; | ||
import { TransactionDataListItemStructure } from './transactionDataListItemStructure'; | ||
|
||
export const TransactionDataListItem = { | ||
Structure, | ||
Structure: TransactionDataListItemStructure, | ||
}; | ||
|
||
export { | ||
TransactionStatus, | ||
TransactionType, | ||
type ITransactionDataListItemProps, | ||
} from './transactionDataListItemStructure'; | ||
export * from './transactionDataListItemStructure'; |