-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize files and add more READMEs
- Loading branch information
1 parent
93e5902
commit 0edc7d0
Showing
15 changed files
with
87 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# FlexBlock | ||
|
||
A layout component to contain items of a fixed width within `Flex`. | ||
|
||
## Usage | ||
|
||
See [`flex/README.md#usage`](../flex/README.md#usage) for how to use `FlexBlock`. | ||
|
||
## Props | ||
|
||
### display | ||
|
||
**Type**: `[CSSProperties['display']]` | ||
|
||
The CSS display property of `FlexBlock`. |
4 changes: 2 additions & 2 deletions
4
packages/components/src/flex/flex-block.js → ...mponents/src/flex/flex-block/component.js
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
6 changes: 3 additions & 3 deletions
6
...ges/components/src/flex/use-flex-block.js → ...es/components/src/flex/flex-block/hook.js
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,2 @@ | ||
export { default } from './component'; | ||
export { useFlexBlock } from './hook'; |
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,21 @@ | ||
# FlexItem | ||
|
||
A layout component to contain items of a fixed width within `Flex`. | ||
|
||
## Usage | ||
|
||
See [`flex/README.md#usage`](../flex/README.md#usage) for how to use `FlexItem`. | ||
|
||
## Props | ||
|
||
### display | ||
|
||
**Type**: `[CSSProperties['display']]` | ||
|
||
The CSS display property of `FlexItem`. | ||
|
||
### isBlock | ||
|
||
**Type**: `[boolean]` | ||
|
||
Determins if `FlexItem` should render as an adaptive full-width block. |
4 changes: 2 additions & 2 deletions
4
packages/components/src/flex/flex-item.js → ...omponents/src/flex/flex-item/component.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default } from './component'; | ||
export { useFlexItem } from './hook'; |
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
10 changes: 5 additions & 5 deletions
10
packages/components/src/flex/flex.js → ...ges/components/src/flex/flex/component.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default } from './component'; | ||
export { useFlex } from './hook'; |
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,7 +1,3 @@ | ||
export { default as Flex } from './flex'; | ||
export { default as FlexItem } from './flex-item'; | ||
export { default as FlexBlock } from './flex-block'; | ||
|
||
export * from './use-flex'; | ||
export * from './use-flex-item'; | ||
export * from './use-flex-block'; | ||
export { default as Flex, useFlex } from './flex'; | ||
export { default as FlexItem, useFlexItem } from './flex-item'; | ||
export { default as FlexBlock, useFlexBlock } from './flex-block'; |
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