worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
42
node_modules/@emotion/styled/src/index.ts
generated
vendored
Normal file
42
node_modules/@emotion/styled/src/index.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
import { Theme } from '@emotion/react'
|
||||
import baseStyled from './base'
|
||||
import { ReactJSXIntrinsicElements } from './jsx-namespace'
|
||||
import { tags } from './tags'
|
||||
import {
|
||||
CreateStyledComponent,
|
||||
CreateStyled as BaseCreateStyled
|
||||
} from './types'
|
||||
export type {
|
||||
ArrayInterpolation,
|
||||
ComponentSelector,
|
||||
CSSObject,
|
||||
FunctionInterpolation,
|
||||
Interpolation
|
||||
} from '@emotion/serialize'
|
||||
export type {
|
||||
CreateStyledComponent,
|
||||
FilteringStyledOptions,
|
||||
StyledComponent,
|
||||
StyledOptions
|
||||
} from './types'
|
||||
|
||||
export type StyledTags = {
|
||||
[Tag in keyof ReactJSXIntrinsicElements]: CreateStyledComponent<
|
||||
{
|
||||
theme?: Theme
|
||||
as?: React.ElementType
|
||||
},
|
||||
ReactJSXIntrinsicElements[Tag]
|
||||
>
|
||||
}
|
||||
|
||||
export interface CreateStyled extends BaseCreateStyled, StyledTags {}
|
||||
|
||||
// bind it to avoid mutating the original function
|
||||
const styled = baseStyled.bind(null) as CreateStyled
|
||||
|
||||
tags.forEach(tagName => {
|
||||
;(styled as any)[tagName] = styled(tagName as keyof typeof styled)
|
||||
})
|
||||
|
||||
export default styled
|
||||
Loading…
Add table
Add a link
Reference in a new issue