-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace @chakra-ui/react with @chakra-v2/react
- Loading branch information
Showing
13 changed files
with
189 additions
and
1,332 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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import { chakra, forwardRef } from '@chakra-ui/system'; | ||
import { __DEV__ } from '@moblin/core'; | ||
import { chakra, forwardRef } from "@chakra-v2/react"; | ||
import { __DEV__ } from "@moblin/core"; | ||
|
||
import { ContainerProps } from './props.js'; | ||
import { ContainerProps } from "./props.js"; | ||
|
||
export interface BlockProps extends ContainerProps<'div'> {} | ||
export interface BlockProps extends ContainerProps<"div"> {} | ||
|
||
/** | ||
* Component to use when you want to use the default | ||
* [flow layout](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flow_Layout) | ||
* as in the old days. | ||
*/ | ||
export const Block = forwardRef<BlockProps, 'div'>((props, ref) => ( | ||
export const Block = forwardRef<BlockProps, "div">((props, ref) => ( | ||
<chakra.div ref={ref} {...props} display="block" overflow="hidden" /> | ||
)); | ||
|
||
if (__DEV__) { | ||
Block.displayName = 'Block'; | ||
Block.displayName = "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
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
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,4 +1,8 @@ | ||
{ | ||
"include": ["src/**/*"], | ||
"extends": "../dev/tsconfig.base.json" | ||
"extends": "../dev/tsconfig.base.json", | ||
"compilerOptions": { | ||
"module": "ES2015", | ||
"moduleResolution": "bundler" | ||
} | ||
} |
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
Oops, something went wrong.