-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
159 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+2.6 KB
packages/fuselage/.loki/reference/chrome_iphone7_Misc_Level_Default_Story.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+88 Bytes
(120%)
...selage/.loki/reference/chrome_iphone7_Typography_Headline_Skeleton_Animated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+88 Bytes
(120%)
...e/.loki/reference/chrome_iphone7_Typography_Headline_Skeleton_Default_Story.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+124 Bytes
(120%)
...elage/.loki/reference/chrome_iphone7_Typography_Paragraph_Skeleton_Animated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+124 Bytes
(120%)
.../.loki/reference/chrome_iphone7_Typography_Paragraph_Skeleton_Default_Story.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+40 Bytes
(110%)
...selage/.loki/reference/chrome_iphone7_Typography_Subtitle_Skeleton_Animated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+40 Bytes
(110%)
...e/.loki/reference/chrome_iphone7_Typography_Subtitle_Skeleton_Default_Story.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+633 Bytes
packages/fuselage/.loki/reference/chrome_laptop_Misc_Level_Default_Story.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+60 Bytes
(120%)
...uselage/.loki/reference/chrome_laptop_Typography_Headline_Skeleton_Animated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+60 Bytes
(120%)
...ge/.loki/reference/chrome_laptop_Typography_Headline_Skeleton_Default_Story.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+92 Bytes
(120%)
...selage/.loki/reference/chrome_laptop_Typography_Paragraph_Skeleton_Animated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+92 Bytes
(120%)
...e/.loki/reference/chrome_laptop_Typography_Paragraph_Skeleton_Default_Story.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+29 Bytes
(110%)
...uselage/.loki/reference/chrome_laptop_Typography_Subtitle_Skeleton_Animated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+29 Bytes
(110%)
...ge/.loki/reference/chrome_laptop_Typography_Subtitle_Skeleton_Default_Story.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,20 @@ | ||
import React from 'react'; | ||
|
||
import { createStyledComponent } from '../../styles'; | ||
|
||
const Container = createStyledComponent('rcx-level', 'nav'); | ||
const ItemContainer = createStyledComponent('rcx-level__item', 'div'); | ||
|
||
export const Level = React.forwardRef(function Level(props, ref) { | ||
return <Container ref={ref} {...props} />; | ||
}); | ||
|
||
Level.displayName = 'Level'; | ||
|
||
export const LevelItem = React.forwardRef(function LevelItem(props, ref) { | ||
return <ItemContainer ref={ref} {...props} />; | ||
}); | ||
|
||
LevelItem.displayName = 'Level.Item'; | ||
|
||
Level.Item = LevelItem; |
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,18 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
|
||
import { Level } from '../..'; | ||
|
||
it('renders without crashing', () => { | ||
const div = document.createElement('div'); | ||
ReactDOM.render(<Level />, div); | ||
ReactDOM.unmountComponentAtNode(div); | ||
}); | ||
|
||
describe('Level.Item', () => { | ||
it('renders without crashing', () => { | ||
const div = document.createElement('div'); | ||
ReactDOM.render(<Level.Item />, div); | ||
ReactDOM.unmountComponentAtNode(div); | ||
}); | ||
}); |
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,32 @@ | ||
import { Meta, Preview, Props, Story } from '@storybook/addon-docs/blocks'; | ||
|
||
import { Headline, Level, Subtitle, Text } from '../..'; | ||
|
||
<Meta title='Misc|Level' parameters={{ jest: ['Level/spec'] }} /> | ||
|
||
# Level | ||
|
||
A multi-purpose horizontal level, which can contain almost any other element. | ||
|
||
<Preview> | ||
<Story name='Default'> | ||
<Level> | ||
<Level.Item> | ||
<Text.Skeleton headline defaultColor /> | ||
<Text.Skeleton subtitle hintColor /> | ||
</Level.Item> | ||
<Level.Item> | ||
<Text.Skeleton headline defaultColor /> | ||
<Text.Skeleton subtitle hintColor /> | ||
</Level.Item> | ||
<Level.Item> | ||
<Text.Skeleton headline defaultColor /> | ||
<Text.Skeleton subtitle hintColor /> | ||
</Level.Item> | ||
<Level.Item> | ||
<Text.Skeleton headline defaultColor /> | ||
<Text.Skeleton subtitle hintColor /> | ||
</Level.Item> | ||
</Level> | ||
</Story> | ||
</Preview> |
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 @@ | ||
.rcx-level { | ||
@include box; | ||
|
||
display: flex; | ||
flex-flow: row wrap; | ||
} | ||
|
||
.rcx-level__item { | ||
@include box; | ||
|
||
flex: 1 1 100%; | ||
|
||
max-width: 100%; | ||
padding-inline: $spaces-x8; | ||
|
||
text-align: center; | ||
|
||
@include when-breakpoint(md) { | ||
flex-basis: 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
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