-
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.
Merge pull request #28 from sudoaugustin/alpha
fix: portal
- Loading branch information
Showing
5 changed files
with
33 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn test && yarn build && cd tests-ssr && yarn build | ||
yarn build && yarn test && cd tests-ssr |
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,23 @@ | ||
import { CProps } from '../types'; | ||
import { CSSProperties } from 'react'; | ||
|
||
type Key = keyof CSSProperties | (string & {}); | ||
|
||
type CSS = { [K in Key]?: string }; | ||
|
||
type Props = CProps & { | ||
children: CSS; | ||
}; | ||
|
||
const CSS = ( | ||
<StyleSheet> | ||
{{ | ||
color: '', | ||
'@media': '', | ||
}} | ||
</StyleSheet> | ||
); | ||
|
||
export default function StyleSheet(props: Props) { | ||
return <div>Helloworld</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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import { HTMLProps, ReactHTML } from 'react'; | ||
|
||
type StateConsumer<TState, TChild> = (state: TState, setState: (newState: TState | ((oldState: TState) => TState)) => void) => TChild; | ||
export type StateConsumer<TState, TChild> = ( | ||
state: TState, | ||
setState: (newState: TState | ((oldState: TState) => TState)) => void, | ||
) => TChild; | ||
|
||
type CProps = { as?: keyof ReactHTML } & Omit<HTMLProps<HTMLElement>, 'ref' | 'children'>; | ||
export type CProps = { as?: keyof ReactHTML } & Omit<HTMLProps<HTMLElement>, 'ref' | 'children'>; |