-
-
Notifications
You must be signed in to change notification settings - Fork 628
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Ink to ESM and update React (#546)
- Loading branch information
Showing
138 changed files
with
1,835 additions
and
1,750 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 was deleted.
Oops, something went wrong.
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 @@ | ||
import './simple.js'; |
This file was deleted.
Oops, something went wrong.
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,45 @@ | ||
import React from 'react'; | ||
import {render, Box, Text} from '../../src/index.js'; | ||
|
||
function App() { | ||
return ( | ||
<Box flexDirection="column" padding={1}> | ||
<Text underline bold color="red"> | ||
{/* eslint-disable-next-line react/jsx-curly-brace-presence */} | ||
{'Hello'} {'World'} | ||
</Text> | ||
|
||
<Box marginTop={1} width={60}> | ||
<Text> | ||
Cupcake ipsum dolor sit amet candy candy. Sesame snaps cookie I love | ||
tootsie roll apple pie bonbon wafer. Caramels sesame snaps icing | ||
cotton candy I love cookie sweet roll. I love bonbon sweet. | ||
</Text> | ||
</Box> | ||
|
||
<Box marginTop={1} flexDirection="column"> | ||
<Text backgroundColor="white" color="black"> | ||
Colors: | ||
</Text> | ||
|
||
<Box flexDirection="column" paddingLeft={1}> | ||
<Text> | ||
- <Text color="red">Red</Text> | ||
</Text> | ||
<Text> | ||
- <Text color="blue">Blue</Text> | ||
</Text> | ||
<Text> | ||
- <Text color="green">Green</Text> | ||
</Text> | ||
</Box> | ||
</Box> | ||
</Box> | ||
); | ||
} | ||
|
||
const {rerender} = render(<App />); | ||
|
||
for (let index = 0; index < 100_000; index++) { | ||
rerender(<App />); | ||
} |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
import './static.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 was deleted.
Oops, something went wrong.
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,42 @@ | ||
import React from 'react'; | ||
import {render, Box, Text} from '../../src/index.js'; | ||
|
||
function Borders() { | ||
return ( | ||
<Box flexDirection="column" padding={2}> | ||
<Box> | ||
<Box borderStyle="single" marginRight={2}> | ||
<Text>single</Text> | ||
</Box> | ||
|
||
<Box borderStyle="double" marginRight={2}> | ||
<Text>double</Text> | ||
</Box> | ||
|
||
<Box borderStyle="round" marginRight={2}> | ||
<Text>round</Text> | ||
</Box> | ||
|
||
<Box borderStyle="bold"> | ||
<Text>bold</Text> | ||
</Box> | ||
</Box> | ||
|
||
<Box marginTop={1}> | ||
<Box borderStyle="singleDouble" marginRight={2}> | ||
<Text>singleDouble</Text> | ||
</Box> | ||
|
||
<Box borderStyle="doubleSingle" marginRight={2}> | ||
<Text>doubleSingle</Text> | ||
</Box> | ||
|
||
<Box borderStyle="classic"> | ||
<Text>classic</Text> | ||
</Box> | ||
</Box> | ||
</Box> | ||
); | ||
} | ||
|
||
render(<Borders />); |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
import './borders.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 was deleted.
Oops, something went wrong.
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 @@ | ||
import './counter.js'; |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
import './jest.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 was deleted.
Oops, something went wrong.
Oops, something went wrong.