Spaces:
Sleeping
Sleeping
Download frontend/node_modules/@emotion/styled/src/index.ts from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40emotion/styled/src/index.ts
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/@emotion/styled/src/index.ts
-
curl -L -o index.ts https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40emotion/styled/src/index.ts
1.01 kB
| import { Theme } from '@emotion/react' | |
| import styled 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 newStyled = styled.bind(null) as CreateStyled | |
| tags.forEach(tagName => { | |
| ;(newStyled as any)[tagName] = newStyled(tagName as keyof typeof newStyled) | |
| }) | |
| export default newStyled | |