init 3
This commit is contained in:
1
node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.default.js
generated
vendored
Normal file
1
node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.default.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
exports._default = require("./emotion-react-_isolated-hnrs.edge-light.cjs.js").default;
|
||||
7
node_modules/@emotion/react/dist/declarations/src/jsx-runtime.d.ts
generated
vendored
Normal file
7
node_modules/@emotion/react/dist/declarations/src/jsx-runtime.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
||||
export type { EmotionJSX as JSX } from "./jsx-namespace.js";
|
||||
export declare const Fragment: import("react").ExoticComponent<{
|
||||
children?: import("react").ReactNode;
|
||||
}>;
|
||||
export declare const jsx: typeof ReactJSXRuntime.jsx;
|
||||
export declare const jsxs: typeof ReactJSXRuntime.jsxs;
|
||||
2
node_modules/@emotion/react/dist/emotion-react.cjs.d.ts
generated
vendored
Normal file
2
node_modules/@emotion/react/dist/emotion-react.cjs.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from "./declarations/src/index";
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1vdGlvbi1yZWFjdC5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4vZGVjbGFyYXRpb25zL3NyYy9pbmRleC5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
|
||||
47
node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.js
generated
vendored
Normal file
47
node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var ReactJSXRuntimeDev = require('react/jsx-dev-runtime');
|
||||
var emotionElement = require('../../dist/emotion-element-25f9958c.browser.cjs.js');
|
||||
require('react');
|
||||
require('@emotion/cache');
|
||||
require('@babel/runtime/helpers/extends');
|
||||
require('@emotion/weak-memoize');
|
||||
require('../../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.js');
|
||||
require('hoist-non-react-statics');
|
||||
require('@emotion/utils');
|
||||
require('@emotion/serialize');
|
||||
require('@emotion/use-insertion-effect-with-fallbacks');
|
||||
|
||||
function _interopNamespace(e) {
|
||||
if (e && e.__esModule) return e;
|
||||
var n = Object.create(null);
|
||||
if (e) {
|
||||
Object.keys(e).forEach(function (k) {
|
||||
if (k !== 'default') {
|
||||
var d = Object.getOwnPropertyDescriptor(e, k);
|
||||
Object.defineProperty(n, k, d.get ? d : {
|
||||
enumerable: true,
|
||||
get: function () { return e[k]; }
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
n["default"] = e;
|
||||
return Object.freeze(n);
|
||||
}
|
||||
|
||||
var ReactJSXRuntimeDev__namespace = /*#__PURE__*/_interopNamespace(ReactJSXRuntimeDev);
|
||||
|
||||
var Fragment = ReactJSXRuntimeDev__namespace.Fragment;
|
||||
var jsxDEV = function jsxDEV(type, props, key, isStaticChildren, source, self) {
|
||||
if (!emotionElement.hasOwn.call(props, 'css')) {
|
||||
return ReactJSXRuntimeDev__namespace.jsxDEV(type, props, key, isStaticChildren, source, self);
|
||||
}
|
||||
|
||||
return ReactJSXRuntimeDev__namespace.jsxDEV(emotionElement.Emotion, emotionElement.createEmotionProps(type, props), key, isStaticChildren, source, self);
|
||||
};
|
||||
|
||||
exports.Fragment = Fragment;
|
||||
exports.jsxDEV = jsxDEV;
|
||||
2
node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.d.ts
generated
vendored
Normal file
2
node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from "../../dist/declarations/src/jsx-dev-runtime";
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1vdGlvbi1yZWFjdC1qc3gtZGV2LXJ1bnRpbWUuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9kaXN0L2RlY2xhcmF0aW9ucy9zcmMvanN4LWRldi1ydW50aW1lLmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==
|
||||
4
node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs
generated
vendored
Normal file
4
node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export {
|
||||
Fragment,
|
||||
jsxDEV
|
||||
} from "./emotion-react-jsx-dev-runtime.cjs.js";
|
||||
4
node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs
generated
vendored
Normal file
4
node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export {
|
||||
Fragment,
|
||||
jsxDEV
|
||||
} from "./emotion-react-jsx-dev-runtime.development.edge-light.cjs.js";
|
||||
22
node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.esm.js
generated
vendored
Normal file
22
node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.esm.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import * as ReactJSXRuntimeDev from 'react/jsx-dev-runtime';
|
||||
import { h as hasOwn, E as Emotion, c as createEmotionProps } from '../../dist/emotion-element-782f682d.development.esm.js';
|
||||
import 'react';
|
||||
import '@emotion/cache';
|
||||
import '@babel/runtime/helpers/extends';
|
||||
import '@emotion/weak-memoize';
|
||||
import '../../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.esm.js';
|
||||
import 'hoist-non-react-statics';
|
||||
import '@emotion/utils';
|
||||
import '@emotion/serialize';
|
||||
import '@emotion/use-insertion-effect-with-fallbacks';
|
||||
|
||||
var Fragment = ReactJSXRuntimeDev.Fragment;
|
||||
var jsxDEV = function jsxDEV(type, props, key, isStaticChildren, source, self) {
|
||||
if (!hasOwn.call(props, 'css')) {
|
||||
return ReactJSXRuntimeDev.jsxDEV(type, props, key, isStaticChildren, source, self);
|
||||
}
|
||||
|
||||
return ReactJSXRuntimeDev.jsxDEV(Emotion, createEmotionProps(type, props), key, isStaticChildren, source, self);
|
||||
};
|
||||
|
||||
export { Fragment, jsxDEV };
|
||||
72
node_modules/@emotion/react/src/context.tsx
generated
vendored
Normal file
72
node_modules/@emotion/react/src/context.tsx
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
import * as React from 'react'
|
||||
import { useContext, forwardRef } from 'react'
|
||||
import createCache, { EmotionCache } from '@emotion/cache'
|
||||
import isDevelopment from '#is-development'
|
||||
import isBrowser from '#is-browser'
|
||||
|
||||
let EmotionCacheContext =
|
||||
/* #__PURE__ */ React.createContext<EmotionCache | null>(
|
||||
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
||||
// because this module is primarily intended for the browser and node
|
||||
// but it's also required in react native and similar environments sometimes
|
||||
// and we could have a special build just for that
|
||||
// but this is much easier and the native packages
|
||||
// might use a different theme context in the future anyway
|
||||
typeof HTMLElement !== 'undefined'
|
||||
? /* #__PURE__ */ createCache({ key: 'css' })
|
||||
: null
|
||||
)
|
||||
|
||||
if (isDevelopment) {
|
||||
EmotionCacheContext.displayName = 'EmotionCacheContext'
|
||||
}
|
||||
|
||||
export let CacheProvider = EmotionCacheContext.Provider
|
||||
|
||||
export let __unsafe_useEmotionCache = function useEmotionCache() {
|
||||
return useContext(EmotionCacheContext)
|
||||
}
|
||||
|
||||
let withEmotionCache = function withEmotionCache<Props, RefType = any>(
|
||||
func: (
|
||||
props: React.PropsWithoutRef<Props>,
|
||||
context: EmotionCache,
|
||||
ref?: React.ForwardedRef<RefType>
|
||||
) => React.ReactNode
|
||||
):
|
||||
| React.FC<React.PropsWithoutRef<Props> & React.RefAttributes<RefType>>
|
||||
| React.ForwardRefExoticComponent<
|
||||
React.PropsWithoutRef<Props> & React.RefAttributes<RefType>
|
||||
> {
|
||||
return forwardRef<RefType, Props>((props, ref) => {
|
||||
// the cache will never be null in the browser
|
||||
let cache = useContext(EmotionCacheContext)!
|
||||
|
||||
return func(props, cache, ref)
|
||||
})
|
||||
}
|
||||
|
||||
if (!isBrowser) {
|
||||
withEmotionCache = function withEmotionCache(func) {
|
||||
return (props: Parameters<typeof func>[0]) => {
|
||||
let cache = useContext(EmotionCacheContext)
|
||||
if (cache === null) {
|
||||
// yes, we're potentially creating this on every render
|
||||
// it doesn't actually matter though since it's only on the server
|
||||
// so there will only every be a single render
|
||||
// that could change in the future because of suspense and etc. but for now,
|
||||
// this works and i don't want to optimise for a future thing that we aren't sure about
|
||||
cache = createCache({ key: 'css' })
|
||||
return (
|
||||
<EmotionCacheContext.Provider value={cache}>
|
||||
{func(props, cache)}
|
||||
</EmotionCacheContext.Provider>
|
||||
)
|
||||
} else {
|
||||
return func(props, cache)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { withEmotionCache }
|
||||
Reference in New Issue
Block a user