init 3
This commit is contained in:
31
node_modules/@emotion/styled/README.md
generated
vendored
Normal file
31
node_modules/@emotion/styled/README.md
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
# @emotion/styled
|
||||
|
||||
> The styled API for @emotion/react
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
yarn add @emotion/react @emotion/styled
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```jsx
|
||||
import styled from '@emotion/styled'
|
||||
|
||||
let SomeComp = styled.div({
|
||||
color: 'hotpink'
|
||||
})
|
||||
|
||||
let AnotherComp = styled.div`
|
||||
color: ${props => props.color};
|
||||
`
|
||||
|
||||
render(
|
||||
<SomeComp>
|
||||
<AnotherComp color="green" />
|
||||
</SomeComp>
|
||||
)
|
||||
```
|
||||
|
||||
More documentation is available at [https://emotion.sh/docs/styled](https://emotion.sh/docs/styled).
|
||||
1
node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.cjs.default.js
generated
vendored
Normal file
1
node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-styled-base.browser.cjs.js").default;
|
||||
3
node_modules/@emotion/styled/dist/emotion-styled.cjs.d.ts
generated
vendored
Normal file
3
node_modules/@emotion/styled/dist/emotion-styled.cjs.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "./declarations/src/index";
|
||||
export { default } from "./declarations/src/index";
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1vdGlvbi1zdHlsZWQuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuL2RlY2xhcmF0aW9ucy9zcmMvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
|
||||
1
node_modules/@emotion/styled/dist/emotion-styled.cjs.default.d.ts
generated
vendored
Normal file
1
node_modules/@emotion/styled/dist/emotion-styled.cjs.default.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export { default as _default } from "./declarations/src/index.js"
|
||||
19
node_modules/@emotion/styled/dist/emotion-styled.development.edge-light.esm.js
generated
vendored
Normal file
19
node_modules/@emotion/styled/dist/emotion-styled.development.edge-light.esm.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import createStyled from '../base/dist/emotion-styled-base.development.edge-light.esm.js';
|
||||
import '@babel/runtime/helpers/extends';
|
||||
import '@emotion/react';
|
||||
import '@emotion/serialize';
|
||||
import '@emotion/use-insertion-effect-with-fallbacks';
|
||||
import '@emotion/utils';
|
||||
import 'react';
|
||||
import '@emotion/is-prop-valid';
|
||||
|
||||
var tags = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr', // SVG
|
||||
'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];
|
||||
|
||||
// bind it to avoid mutating the original function
|
||||
var styled = createStyled.bind(null);
|
||||
tags.forEach(function (tagName) {
|
||||
styled[tagName] = styled(tagName);
|
||||
});
|
||||
|
||||
export { styled as default };
|
||||
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
|
||||
Reference in New Issue
Block a user