@paragrav/rhf-utils 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{devtool → esm/devtool}/LazyDevTool.mjs +4 -4
- package/dist/{errors → esm/errors}/orphan/useOrphanFormErrorsToConsoleError.mjs +2 -2
- package/dist/{errors → esm/errors}/useFormErrorsEffect.mjs +2 -2
- package/dist/esm/errors/useFormErrorsOnChange.mjs +9 -0
- package/dist/esm/submit/useFormOnSubmitSuccessful.mjs +11 -0
- package/dist/esm/submit/useFormOnSubmitSuccessfulAndReset.mjs +14 -0
- package/package.json +39 -39
- package/dist/_virtual/_commonjsHelpers.mjs +0 -8
- package/dist/_virtual/index.mjs +0 -4
- package/dist/errors/useFormErrorsOnChange.mjs +0 -9
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.mjs +0 -13
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.mjs +0 -305
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.mjs +0 -22
- package/dist/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.mjs +0 -10
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.mjs +0 -9
- package/dist/node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.mjs +0 -57
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.mjs +0 -167
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.mjs +0 -49
- package/dist/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.mjs +0 -82
- package/dist/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.mjs +0 -146
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.mjs +0 -52
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.mjs +0 -7
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.mjs +0 -34
- package/dist/node_modules/@hookform/devtools/dist/index.esm.mjs +0 -1402
- package/dist/node_modules/dequal/dist/index.mjs +0 -64
- package/dist/node_modules/little-state-machine/dist/little-state-machine.es.mjs +0 -67
- package/dist/node_modules/lodash/_Hash.mjs +0 -22
- package/dist/node_modules/lodash/_ListCache.mjs +0 -22
- package/dist/node_modules/lodash/_Map.mjs +0 -6
- package/dist/node_modules/lodash/_MapCache.mjs +0 -22
- package/dist/node_modules/lodash/_Symbol.mjs +0 -5
- package/dist/node_modules/lodash/_arrayMap.mjs +0 -9
- package/dist/node_modules/lodash/_assocIndexOf.mjs +0 -12
- package/dist/node_modules/lodash/_baseGet.mjs +0 -13
- package/dist/node_modules/lodash/_baseGetTag.mjs +0 -11
- package/dist/node_modules/lodash/_baseIsNative.mjs +0 -17
- package/dist/node_modules/lodash/_baseToString.mjs +0 -19
- package/dist/node_modules/lodash/_castPath.mjs +0 -12
- package/dist/node_modules/lodash/_coreJsData.mjs +0 -5
- package/dist/node_modules/lodash/_freeGlobal.mjs +0 -5
- package/dist/node_modules/lodash/_getMapData.mjs +0 -10
- package/dist/node_modules/lodash/_getNative.mjs +0 -11
- package/dist/node_modules/lodash/_getRawTag.mjs +0 -16
- package/dist/node_modules/lodash/_getValue.mjs +0 -7
- package/dist/node_modules/lodash/_hashClear.mjs +0 -9
- package/dist/node_modules/lodash/_hashDelete.mjs +0 -8
- package/dist/node_modules/lodash/_hashGet.mjs +0 -14
- package/dist/node_modules/lodash/_hashHas.mjs +0 -10
- package/dist/node_modules/lodash/_hashSet.mjs +0 -10
- package/dist/node_modules/lodash/_isKey.mjs +0 -13
- package/dist/node_modules/lodash/_isKeyable.mjs +0 -8
- package/dist/node_modules/lodash/_isMasked.mjs +0 -12
- package/dist/node_modules/lodash/_listCacheClear.mjs +0 -7
- package/dist/node_modules/lodash/_listCacheDelete.mjs +0 -13
- package/dist/node_modules/lodash/_listCacheGet.mjs +0 -10
- package/dist/node_modules/lodash/_listCacheHas.mjs +0 -9
- package/dist/node_modules/lodash/_listCacheSet.mjs +0 -10
- package/dist/node_modules/lodash/_mapCacheClear.mjs +0 -15
- package/dist/node_modules/lodash/_mapCacheDelete.mjs +0 -10
- package/dist/node_modules/lodash/_mapCacheGet.mjs +0 -9
- package/dist/node_modules/lodash/_mapCacheHas.mjs +0 -9
- package/dist/node_modules/lodash/_mapCacheSet.mjs +0 -10
- package/dist/node_modules/lodash/_memoizeCapped.mjs +0 -12
- package/dist/node_modules/lodash/_nativeCreate.mjs +0 -5
- package/dist/node_modules/lodash/_objectToString.mjs +0 -8
- package/dist/node_modules/lodash/_root.mjs +0 -5
- package/dist/node_modules/lodash/_stringToPath.mjs +0 -10
- package/dist/node_modules/lodash/_toKey.mjs +0 -12
- package/dist/node_modules/lodash/_toSource.mjs +0 -18
- package/dist/node_modules/lodash/eq.mjs +0 -7
- package/dist/node_modules/lodash/get.mjs +0 -12
- package/dist/node_modules/lodash/isArray.mjs +0 -4
- package/dist/node_modules/lodash/isFunction.mjs +0 -13
- package/dist/node_modules/lodash/isObject.mjs +0 -11
- package/dist/node_modules/lodash/isObjectLike.mjs +0 -7
- package/dist/node_modules/lodash/isSymbol.mjs +0 -10
- package/dist/node_modules/lodash/isUndefined.mjs +0 -9
- package/dist/node_modules/lodash/memoize.mjs +0 -19
- package/dist/node_modules/lodash/toString.mjs +0 -9
- package/dist/node_modules/react-simple-animate/dist/index.mjs +0 -257
- package/dist/node_modules/stylis/src/Enum.mjs +0 -12
- package/dist/node_modules/stylis/src/Middleware.mjs +0 -18
- package/dist/node_modules/stylis/src/Parser.mjs +0 -114
- package/dist/node_modules/stylis/src/Serializer.mjs +0 -28
- package/dist/node_modules/stylis/src/Tokenizer.mjs +0 -131
- package/dist/node_modules/stylis/src/Utility.mjs +0 -50
- package/dist/node_modules/use-deep-compare-effect/dist/use-deep-compare-effect.esm.mjs +0 -24
- package/dist/node_modules/uuid/dist/esm-browser/regex.mjs +0 -4
- package/dist/node_modules/uuid/dist/esm-browser/rng.mjs +0 -9
- package/dist/node_modules/uuid/dist/esm-browser/stringify.mjs +0 -13
- package/dist/node_modules/uuid/dist/esm-browser/v4.mjs +0 -16
- package/dist/node_modules/uuid/dist/esm-browser/validate.mjs +0 -7
- package/dist/submit/useFormOnSubmitSuccessful.mjs +0 -11
- package/dist/submit/useFormOnSubmitSuccessfulAndReset.mjs +0 -14
- /package/dist/{errors → esm/errors}/flattenFieldErrors.mjs +0 -0
- /package/dist/{errors → esm/errors}/getFlatFieldErrors.mjs +0 -0
- /package/dist/{errors → esm/errors}/isFieldError.mjs +0 -0
- /package/dist/{errors → esm/errors}/message/FormErrorMessage.mjs +0 -0
- /package/dist/{errors → esm/errors}/message/FormErrorMessageByPath.mjs +0 -0
- /package/dist/{errors → esm/errors}/nonfield/FormNonFieldErrorMarker.mjs +0 -0
- /package/dist/{errors → esm/errors}/nonfield/FormNonFieldErrorMarker.utils.mjs +0 -0
- /package/dist/{errors → esm/errors}/nonfield/isNonFieldError.mjs +0 -0
- /package/dist/{errors → esm/errors}/orphan/getOrphanFlatFieldErrors.mjs +0 -0
- /package/dist/{errors → esm/errors}/orphan/useFormHasOrphanAndNoFieldErrors.mjs +0 -0
- /package/dist/{errors → esm/errors}/orphan/useOrphanFormErrors.mjs +0 -0
- /package/dist/{errors → esm/errors}/root/useRootFormFieldErrors.mjs +0 -0
- /package/dist/{errors → esm/errors}/root/utils.mjs +0 -0
- /package/dist/{errors → esm/errors}/useFormErrorConsoleDebug.mjs +0 -0
- /package/dist/{errors → esm/errors}/useFormErrorsIfAny.mjs +0 -0
- /package/dist/{errors → esm/errors}/useFormFieldErrors.mjs +0 -0
- /package/dist/{errors → esm/errors}/useFormRequestSubmit.mjs +0 -0
- /package/dist/{isEmptyObject.mjs → esm/isEmptyObject.mjs} +0 -0
- /package/dist/{main.mjs → esm/main.mjs} +0 -0
- /package/dist/{submit → esm/submit}/useResetFormOnSubmitSuccessful.mjs +0 -0
- /package/dist/{devtool → types/devtool}/LazyDevTool.d.ts +0 -0
- /package/dist/{errors → types/errors}/flattenFieldErrors.d.ts +0 -0
- /package/dist/{errors → types/errors}/getFlatFieldErrors.d.ts +0 -0
- /package/dist/{errors → types/errors}/isFieldError.d.ts +0 -0
- /package/dist/{errors → types/errors}/message/FormErrorMessage.d.ts +0 -0
- /package/dist/{errors → types/errors}/message/FormErrorMessageByPath.d.ts +0 -0
- /package/dist/{errors → types/errors}/nonfield/FormNonFieldErrorMarker.d.ts +0 -0
- /package/dist/{errors → types/errors}/nonfield/FormNonFieldErrorMarker.spec.d.ts +0 -0
- /package/dist/{errors → types/errors}/nonfield/FormNonFieldErrorMarker.utils.d.ts +0 -0
- /package/dist/{errors → types/errors}/nonfield/isNonFieldError.d.ts +0 -0
- /package/dist/{errors → types/errors}/orphan/getOrphanFlatFieldErrors.d.ts +0 -0
- /package/dist/{errors → types/errors}/orphan/useFormHasOrphanAndNoFieldErrors.d.ts +0 -0
- /package/dist/{errors → types/errors}/orphan/useOrphanFormErrors.d.ts +0 -0
- /package/dist/{errors → types/errors}/orphan/useOrphanFormErrorsToConsoleError.d.ts +0 -0
- /package/dist/{errors → types/errors}/root/useRootFormFieldErrors.d.ts +0 -0
- /package/dist/{errors → types/errors}/root/utils.d.ts +0 -0
- /package/dist/{errors → types/errors}/useFormErrorConsoleDebug.d.ts +0 -0
- /package/dist/{errors → types/errors}/useFormErrorsEffect.d.ts +0 -0
- /package/dist/{errors → types/errors}/useFormErrorsIfAny.d.ts +0 -0
- /package/dist/{errors → types/errors}/useFormErrorsOnChange.d.ts +0 -0
- /package/dist/{errors → types/errors}/useFormFieldErrors.d.ts +0 -0
- /package/dist/{errors → types/errors}/useFormFlatFieldErrors.d.ts +0 -0
- /package/dist/{errors → types/errors}/useFormRequestSubmit.d.ts +0 -0
- /package/dist/{isEmptyObject.d.ts → types/isEmptyObject.d.ts} +0 -0
- /package/dist/{main.d.ts → types/main.d.ts} +0 -0
- /package/dist/{submit → types/submit}/useFormOnSubmitSuccessful.d.ts +0 -0
- /package/dist/{submit → types/submit}/useFormOnSubmitSuccessfulAndReset.d.ts +0 -0
- /package/dist/{submit → types/submit}/useResetFormOnSubmitSuccessful.d.ts +0 -0
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import * as a from "react";
|
|
2
|
-
import { forwardRef as _, useContext as g } from "react";
|
|
3
|
-
import p from "../../cache/dist/emotion-cache.browser.esm.mjs";
|
|
4
|
-
import { getRegisteredStyles as O, registerStyles as C, insertStyles as h } from "../../utils/dist/emotion-utils.browser.esm.mjs";
|
|
5
|
-
import { serializeStyles as d } from "../../serialize/dist/emotion-serialize.browser.esm.mjs";
|
|
6
|
-
import { useInsertionEffectAlwaysWithSyncFallback as y } from "../../use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.mjs";
|
|
7
|
-
var S = {}.hasOwnProperty, m = /* @__PURE__ */ a.createContext(
|
|
8
|
-
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
9
|
-
// because this module is primarily intended for the browser and node
|
|
10
|
-
// but it's also required in react native and similar environments sometimes
|
|
11
|
-
// and we could have a special build just for that
|
|
12
|
-
// but this is much easier and the native packages
|
|
13
|
-
// might use a different theme context in the future anyway
|
|
14
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */ p({
|
|
15
|
-
key: "css"
|
|
16
|
-
}) : null
|
|
17
|
-
);
|
|
18
|
-
process.env.NODE_ENV !== "production" && (m.displayName = "EmotionCacheContext");
|
|
19
|
-
m.Provider;
|
|
20
|
-
var T = function(t) {
|
|
21
|
-
return /* @__PURE__ */ _(function(i, r) {
|
|
22
|
-
var n = g(m);
|
|
23
|
-
return t(i, n, r);
|
|
24
|
-
});
|
|
25
|
-
}, v = /* @__PURE__ */ a.createContext({});
|
|
26
|
-
process.env.NODE_ENV !== "production" && (v.displayName = "EmotionThemeContext");
|
|
27
|
-
var u = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", N = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", x = function(t) {
|
|
28
|
-
var i = t.cache, r = t.serialized, n = t.isStringTag;
|
|
29
|
-
return C(i, r, n), y(function() {
|
|
30
|
-
return h(i, r, n);
|
|
31
|
-
}), null;
|
|
32
|
-
}, P = /* @__PURE__ */ T(function(e, t, i) {
|
|
33
|
-
var r = e.css;
|
|
34
|
-
typeof r == "string" && t.registered[r] !== void 0 && (r = t.registered[r]);
|
|
35
|
-
var n = e[u], f = [r], c = "";
|
|
36
|
-
typeof e.className == "string" ? c = O(t.registered, f, e.className) : e.className != null && (c = e.className + " ");
|
|
37
|
-
var o = d(f, void 0, a.useContext(v));
|
|
38
|
-
if (process.env.NODE_ENV !== "production" && o.name.indexOf("-") === -1) {
|
|
39
|
-
var E = e[N];
|
|
40
|
-
E && (o = d([o, "label:" + E + ";"]));
|
|
41
|
-
}
|
|
42
|
-
c += t.key + "-" + o.name;
|
|
43
|
-
var l = {};
|
|
44
|
-
for (var s in e)
|
|
45
|
-
S.call(e, s) && s !== "css" && s !== u && (process.env.NODE_ENV === "production" || s !== N) && (l[s] = e[s]);
|
|
46
|
-
return l.ref = i, l.className = c, /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(x, {
|
|
47
|
-
cache: t,
|
|
48
|
-
serialized: o,
|
|
49
|
-
isStringTag: typeof n == "string"
|
|
50
|
-
}), /* @__PURE__ */ a.createElement(n, l));
|
|
51
|
-
});
|
|
52
|
-
process.env.NODE_ENV !== "production" && (P.displayName = "EmotionCssPropInternal");
|
|
53
|
-
export {
|
|
54
|
-
v as T,
|
|
55
|
-
S as h,
|
|
56
|
-
T as w
|
|
57
|
-
};
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import V from "../../hash/dist/emotion-hash.esm.mjs";
|
|
2
|
-
import C from "../../unitless/dist/emotion-unitless.esm.mjs";
|
|
3
|
-
import D from "../../memoize/dist/emotion-memoize.esm.mjs";
|
|
4
|
-
var N = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
5
|
-
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
6
|
-
You can read more about this here:
|
|
7
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, x = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", A = /[A-Z]|^ms/g, S = /_EMO_([^_]+?)_([^]*?)_EMO_/g, v = function(n) {
|
|
8
|
-
return n.charCodeAt(1) === 45;
|
|
9
|
-
}, b = function(n) {
|
|
10
|
-
return n != null && typeof n != "boolean";
|
|
11
|
-
}, E = /* @__PURE__ */ D(function(s) {
|
|
12
|
-
return v(s) ? s : s.replace(A, "-$&").toLowerCase();
|
|
13
|
-
}), d = function(n, e) {
|
|
14
|
-
switch (n) {
|
|
15
|
-
case "animation":
|
|
16
|
-
case "animationName":
|
|
17
|
-
if (typeof e == "string")
|
|
18
|
-
return e.replace(S, function(o, i, r) {
|
|
19
|
-
return c = {
|
|
20
|
-
name: i,
|
|
21
|
-
styles: r,
|
|
22
|
-
next: c
|
|
23
|
-
}, i;
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
return C[n] !== 1 && !v(n) && typeof e == "number" && e !== 0 ? e + "px" : e;
|
|
27
|
-
};
|
|
28
|
-
if (process.env.NODE_ENV !== "production") {
|
|
29
|
-
var R = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, M = ["normal", "none", "initial", "inherit", "unset"], I = d, L = /^-ms-/, Y = /-(.)/g, w = {};
|
|
30
|
-
d = function(n, e) {
|
|
31
|
-
if (n === "content" && (typeof e != "string" || M.indexOf(e) === -1 && !R.test(e) && (e.charAt(0) !== e.charAt(e.length - 1) || e.charAt(0) !== '"' && e.charAt(0) !== "'")))
|
|
32
|
-
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + e + "\"'`");
|
|
33
|
-
var o = I(n, e);
|
|
34
|
-
return o !== "" && !v(n) && n.indexOf("-") !== -1 && w[n] === void 0 && (w[n] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + n.replace(L, "ms-").replace(Y, function(i, r) {
|
|
35
|
-
return r.toUpperCase();
|
|
36
|
-
}) + "?")), o;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
var _ = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
|
40
|
-
function f(s, n, e) {
|
|
41
|
-
if (e == null)
|
|
42
|
-
return "";
|
|
43
|
-
if (e.__emotion_styles !== void 0) {
|
|
44
|
-
if (process.env.NODE_ENV !== "production" && e.toString() === "NO_COMPONENT_SELECTOR")
|
|
45
|
-
throw new Error(_);
|
|
46
|
-
return e;
|
|
47
|
-
}
|
|
48
|
-
switch (typeof e) {
|
|
49
|
-
case "boolean":
|
|
50
|
-
return "";
|
|
51
|
-
case "object": {
|
|
52
|
-
if (e.anim === 1)
|
|
53
|
-
return c = {
|
|
54
|
-
name: e.name,
|
|
55
|
-
styles: e.styles,
|
|
56
|
-
next: c
|
|
57
|
-
}, e.name;
|
|
58
|
-
if (e.styles !== void 0) {
|
|
59
|
-
var o = e.next;
|
|
60
|
-
if (o !== void 0)
|
|
61
|
-
for (; o !== void 0; )
|
|
62
|
-
c = {
|
|
63
|
-
name: o.name,
|
|
64
|
-
styles: o.styles,
|
|
65
|
-
next: c
|
|
66
|
-
}, o = o.next;
|
|
67
|
-
var i = e.styles + ";";
|
|
68
|
-
return process.env.NODE_ENV !== "production" && e.map !== void 0 && (i += e.map), i;
|
|
69
|
-
}
|
|
70
|
-
return j(s, n, e);
|
|
71
|
-
}
|
|
72
|
-
case "function": {
|
|
73
|
-
if (s !== void 0) {
|
|
74
|
-
var r = c, t = e(s);
|
|
75
|
-
return c = r, f(s, n, t);
|
|
76
|
-
} else
|
|
77
|
-
process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
case "string":
|
|
81
|
-
if (process.env.NODE_ENV !== "production") {
|
|
82
|
-
var a = [], u = e.replace(S, function(m, h, p) {
|
|
83
|
-
var y = "animation" + a.length;
|
|
84
|
-
return a.push("const " + y + " = keyframes`" + p.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + y + "}";
|
|
85
|
-
});
|
|
86
|
-
a.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(a, ["`" + u + "`"]).join(`
|
|
87
|
-
`) + `
|
|
88
|
-
|
|
89
|
-
You should wrap it with \`css\` like this:
|
|
90
|
-
|
|
91
|
-
` + ("css`" + u + "`"));
|
|
92
|
-
}
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
if (n == null)
|
|
96
|
-
return e;
|
|
97
|
-
var l = n[e];
|
|
98
|
-
return l !== void 0 ? l : e;
|
|
99
|
-
}
|
|
100
|
-
function j(s, n, e) {
|
|
101
|
-
var o = "";
|
|
102
|
-
if (Array.isArray(e))
|
|
103
|
-
for (var i = 0; i < e.length; i++)
|
|
104
|
-
o += f(s, n, e[i]) + ";";
|
|
105
|
-
else
|
|
106
|
-
for (var r in e) {
|
|
107
|
-
var t = e[r];
|
|
108
|
-
if (typeof t != "object")
|
|
109
|
-
n != null && n[t] !== void 0 ? o += r + "{" + n[t] + "}" : b(t) && (o += E(r) + ":" + d(r, t) + ";");
|
|
110
|
-
else {
|
|
111
|
-
if (r === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
|
|
112
|
-
throw new Error(_);
|
|
113
|
-
if (Array.isArray(t) && typeof t[0] == "string" && (n == null || n[t[0]] === void 0))
|
|
114
|
-
for (var a = 0; a < t.length; a++)
|
|
115
|
-
b(t[a]) && (o += E(r) + ":" + d(r, t[a]) + ";");
|
|
116
|
-
else {
|
|
117
|
-
var u = f(s, n, t);
|
|
118
|
-
switch (r) {
|
|
119
|
-
case "animation":
|
|
120
|
-
case "animationName": {
|
|
121
|
-
o += E(r) + ":" + u + ";";
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
default:
|
|
125
|
-
process.env.NODE_ENV !== "production" && r === "undefined" && console.error(x), o += r + "{" + u + "}";
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
return o;
|
|
131
|
-
}
|
|
132
|
-
var O = /label:\s*([^\s;\n{]+)\s*(;|$)/g, g;
|
|
133
|
-
process.env.NODE_ENV !== "production" && (g = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
|
|
134
|
-
var c, q = function(n, e, o) {
|
|
135
|
-
if (n.length === 1 && typeof n[0] == "object" && n[0] !== null && n[0].styles !== void 0)
|
|
136
|
-
return n[0];
|
|
137
|
-
var i = !0, r = "";
|
|
138
|
-
c = void 0;
|
|
139
|
-
var t = n[0];
|
|
140
|
-
t == null || t.raw === void 0 ? (i = !1, r += f(o, e, t)) : (process.env.NODE_ENV !== "production" && t[0] === void 0 && console.error(N), r += t[0]);
|
|
141
|
-
for (var a = 1; a < n.length; a++)
|
|
142
|
-
r += f(o, e, n[a]), i && (process.env.NODE_ENV !== "production" && t[a] === void 0 && console.error(N), r += t[a]);
|
|
143
|
-
var u;
|
|
144
|
-
process.env.NODE_ENV !== "production" && (r = r.replace(g, function(p) {
|
|
145
|
-
return u = p, "";
|
|
146
|
-
})), O.lastIndex = 0;
|
|
147
|
-
for (var l = "", m; (m = O.exec(r)) !== null; )
|
|
148
|
-
l += "-" + // $FlowFixMe we know it's not null
|
|
149
|
-
m[1];
|
|
150
|
-
var h = V(r) + l;
|
|
151
|
-
return process.env.NODE_ENV !== "production" ? {
|
|
152
|
-
name: h,
|
|
153
|
-
styles: r,
|
|
154
|
-
map: u,
|
|
155
|
-
next: c,
|
|
156
|
-
toString: function() {
|
|
157
|
-
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
158
|
-
}
|
|
159
|
-
} : {
|
|
160
|
-
name: h,
|
|
161
|
-
styles: r,
|
|
162
|
-
next: c
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
export {
|
|
166
|
-
q as serializeStyles
|
|
167
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
function h(n) {
|
|
2
|
-
if (n.sheet)
|
|
3
|
-
return n.sheet;
|
|
4
|
-
for (var t = 0; t < document.styleSheets.length; t++)
|
|
5
|
-
if (document.styleSheets[t].ownerNode === n)
|
|
6
|
-
return document.styleSheets[t];
|
|
7
|
-
}
|
|
8
|
-
function l(n) {
|
|
9
|
-
var t = document.createElement("style");
|
|
10
|
-
return t.setAttribute("data-emotion", n.key), n.nonce !== void 0 && t.setAttribute("nonce", n.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
|
|
11
|
-
}
|
|
12
|
-
var d = /* @__PURE__ */ function() {
|
|
13
|
-
function n(r) {
|
|
14
|
-
var e = this;
|
|
15
|
-
this._insertTag = function(i) {
|
|
16
|
-
var s;
|
|
17
|
-
e.tags.length === 0 ? e.insertionPoint ? s = e.insertionPoint.nextSibling : e.prepend ? s = e.container.firstChild : s = e.before : s = e.tags[e.tags.length - 1].nextSibling, e.container.insertBefore(i, s), e.tags.push(i);
|
|
18
|
-
}, this.isSpeedy = r.speedy === void 0 ? process.env.NODE_ENV === "production" : r.speedy, this.tags = [], this.ctr = 0, this.nonce = r.nonce, this.key = r.key, this.container = r.container, this.prepend = r.prepend, this.insertionPoint = r.insertionPoint, this.before = null;
|
|
19
|
-
}
|
|
20
|
-
var t = n.prototype;
|
|
21
|
-
return t.hydrate = function(e) {
|
|
22
|
-
e.forEach(this._insertTag);
|
|
23
|
-
}, t.insert = function(e) {
|
|
24
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(l(this));
|
|
25
|
-
var i = this.tags[this.tags.length - 1];
|
|
26
|
-
if (process.env.NODE_ENV !== "production") {
|
|
27
|
-
var s = e.charCodeAt(0) === 64 && e.charCodeAt(1) === 105;
|
|
28
|
-
s && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule:
|
|
29
|
-
` + e + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !s;
|
|
30
|
-
}
|
|
31
|
-
if (this.isSpeedy) {
|
|
32
|
-
var o = h(i);
|
|
33
|
-
try {
|
|
34
|
-
o.insertRule(e, o.cssRules.length);
|
|
35
|
-
} catch (a) {
|
|
36
|
-
process.env.NODE_ENV !== "production" && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e) && console.error('There was a problem inserting the following rule: "' + e + '"', a);
|
|
37
|
-
}
|
|
38
|
-
} else
|
|
39
|
-
i.appendChild(document.createTextNode(e));
|
|
40
|
-
this.ctr++;
|
|
41
|
-
}, t.flush = function() {
|
|
42
|
-
this.tags.forEach(function(e) {
|
|
43
|
-
return e.parentNode && e.parentNode.removeChild(e);
|
|
44
|
-
}), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
|
|
45
|
-
}, n;
|
|
46
|
-
}();
|
|
47
|
-
export {
|
|
48
|
-
d as StyleSheet
|
|
49
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import z from "../../../../@babel/runtime/helpers/esm/extends.mjs";
|
|
2
|
-
import * as v from "react";
|
|
3
|
-
import D from "../../../is-prop-valid/dist/emotion-is-prop-valid.esm.mjs";
|
|
4
|
-
import { getRegisteredStyles as A, registerStyles as I, insertStyles as V } from "../../../utils/dist/emotion-utils.browser.esm.mjs";
|
|
5
|
-
import { serializeStyles as x } from "../../../serialize/dist/emotion-serialize.browser.esm.mjs";
|
|
6
|
-
import { useInsertionEffectAlwaysWithSyncFallback as L } from "../../../use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.mjs";
|
|
7
|
-
import { w as Y, T as U } from "../../../react/dist/emotion-element-43c6fea0.browser.esm.mjs";
|
|
8
|
-
var q = D, J = function(e) {
|
|
9
|
-
return e !== "theme";
|
|
10
|
-
}, O = function(e) {
|
|
11
|
-
return typeof e == "string" && // 96 is one less than the char code
|
|
12
|
-
// for "a" so this is checking that
|
|
13
|
-
// it's a lowercase character
|
|
14
|
-
e.charCodeAt(0) > 96 ? q : J;
|
|
15
|
-
}, C = function(e, n, s) {
|
|
16
|
-
var r;
|
|
17
|
-
if (n) {
|
|
18
|
-
var a = n.shouldForwardProp;
|
|
19
|
-
r = e.__emotion_forwardProp && a ? function(l) {
|
|
20
|
-
return e.__emotion_forwardProp(l) && a(l);
|
|
21
|
-
} : a;
|
|
22
|
-
}
|
|
23
|
-
return typeof r != "function" && s && (r = e.__emotion_forwardProp), r;
|
|
24
|
-
}, b = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
25
|
-
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
26
|
-
You can read more about this here:
|
|
27
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, W = function(e) {
|
|
28
|
-
var n = e.cache, s = e.serialized, r = e.isStringTag;
|
|
29
|
-
return I(n, s, r), L(function() {
|
|
30
|
-
return V(n, s, r);
|
|
31
|
-
}), null;
|
|
32
|
-
}, K = function f(e, n) {
|
|
33
|
-
if (process.env.NODE_ENV !== "production" && e === void 0)
|
|
34
|
-
throw new Error(`You are trying to create a styled element with an undefined component.
|
|
35
|
-
You may have forgotten to import it.`);
|
|
36
|
-
var s = e.__emotion_real === e, r = s && e.__emotion_base || e, a, l;
|
|
37
|
-
n !== void 0 && (a = n.label, l = n.target);
|
|
38
|
-
var y = C(e, n, s), E = y || O(r), S = !E("as");
|
|
39
|
-
return function() {
|
|
40
|
-
var i = arguments, u = s && e.__emotion_styles !== void 0 ? e.__emotion_styles.slice(0) : [];
|
|
41
|
-
if (a !== void 0 && u.push("label:" + a + ";"), i[0] == null || i[0].raw === void 0)
|
|
42
|
-
u.push.apply(u, i);
|
|
43
|
-
else {
|
|
44
|
-
process.env.NODE_ENV !== "production" && i[0][0] === void 0 && console.error(b), u.push(i[0][0]);
|
|
45
|
-
for (var F = i.length, m = 1; m < F; m++)
|
|
46
|
-
process.env.NODE_ENV !== "production" && i[0][m] === void 0 && console.error(b), u.push(i[m], i[0][m]);
|
|
47
|
-
}
|
|
48
|
-
var o = Y(function(t, d, T) {
|
|
49
|
-
var g = S && t.as || r, c = "", P = [], _ = t;
|
|
50
|
-
if (t.theme == null) {
|
|
51
|
-
_ = {};
|
|
52
|
-
for (var w in t)
|
|
53
|
-
_[w] = t[w];
|
|
54
|
-
_.theme = v.useContext(U);
|
|
55
|
-
}
|
|
56
|
-
typeof t.className == "string" ? c = A(d.registered, P, t.className) : t.className != null && (c = t.className + " ");
|
|
57
|
-
var N = x(u.concat(P), d.registered, _);
|
|
58
|
-
c += d.key + "-" + N.name, l !== void 0 && (c += " " + l);
|
|
59
|
-
var R = S && y === void 0 ? O(g) : E, p = {};
|
|
60
|
-
for (var h in t)
|
|
61
|
-
S && h === "as" || // $FlowFixMe
|
|
62
|
-
R(h) && (p[h] = t[h]);
|
|
63
|
-
return p.className = c, p.ref = T, /* @__PURE__ */ v.createElement(v.Fragment, null, /* @__PURE__ */ v.createElement(W, {
|
|
64
|
-
cache: d,
|
|
65
|
-
serialized: N,
|
|
66
|
-
isStringTag: typeof g == "string"
|
|
67
|
-
}), /* @__PURE__ */ v.createElement(g, p));
|
|
68
|
-
});
|
|
69
|
-
return o.displayName = a !== void 0 ? a : "Styled(" + (typeof r == "string" ? r : r.displayName || r.name || "Component") + ")", o.defaultProps = e.defaultProps, o.__emotion_real = o, o.__emotion_base = r, o.__emotion_styles = u, o.__emotion_forwardProp = y, Object.defineProperty(o, "toString", {
|
|
70
|
-
value: function() {
|
|
71
|
-
return l === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + l;
|
|
72
|
-
}
|
|
73
|
-
}), o.withComponent = function(t, d) {
|
|
74
|
-
return f(t, z({}, n, d, {
|
|
75
|
-
shouldForwardProp: C(o, d, !0)
|
|
76
|
-
})).apply(void 0, u);
|
|
77
|
-
}, o;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
export {
|
|
81
|
-
K as default
|
|
82
|
-
};
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import a from "../base/dist/emotion-styled-base.browser.esm.mjs";
|
|
2
|
-
import "react";
|
|
3
|
-
import "../../serialize/dist/emotion-serialize.browser.esm.mjs";
|
|
4
|
-
var r = [
|
|
5
|
-
"a",
|
|
6
|
-
"abbr",
|
|
7
|
-
"address",
|
|
8
|
-
"area",
|
|
9
|
-
"article",
|
|
10
|
-
"aside",
|
|
11
|
-
"audio",
|
|
12
|
-
"b",
|
|
13
|
-
"base",
|
|
14
|
-
"bdi",
|
|
15
|
-
"bdo",
|
|
16
|
-
"big",
|
|
17
|
-
"blockquote",
|
|
18
|
-
"body",
|
|
19
|
-
"br",
|
|
20
|
-
"button",
|
|
21
|
-
"canvas",
|
|
22
|
-
"caption",
|
|
23
|
-
"cite",
|
|
24
|
-
"code",
|
|
25
|
-
"col",
|
|
26
|
-
"colgroup",
|
|
27
|
-
"data",
|
|
28
|
-
"datalist",
|
|
29
|
-
"dd",
|
|
30
|
-
"del",
|
|
31
|
-
"details",
|
|
32
|
-
"dfn",
|
|
33
|
-
"dialog",
|
|
34
|
-
"div",
|
|
35
|
-
"dl",
|
|
36
|
-
"dt",
|
|
37
|
-
"em",
|
|
38
|
-
"embed",
|
|
39
|
-
"fieldset",
|
|
40
|
-
"figcaption",
|
|
41
|
-
"figure",
|
|
42
|
-
"footer",
|
|
43
|
-
"form",
|
|
44
|
-
"h1",
|
|
45
|
-
"h2",
|
|
46
|
-
"h3",
|
|
47
|
-
"h4",
|
|
48
|
-
"h5",
|
|
49
|
-
"h6",
|
|
50
|
-
"head",
|
|
51
|
-
"header",
|
|
52
|
-
"hgroup",
|
|
53
|
-
"hr",
|
|
54
|
-
"html",
|
|
55
|
-
"i",
|
|
56
|
-
"iframe",
|
|
57
|
-
"img",
|
|
58
|
-
"input",
|
|
59
|
-
"ins",
|
|
60
|
-
"kbd",
|
|
61
|
-
"keygen",
|
|
62
|
-
"label",
|
|
63
|
-
"legend",
|
|
64
|
-
"li",
|
|
65
|
-
"link",
|
|
66
|
-
"main",
|
|
67
|
-
"map",
|
|
68
|
-
"mark",
|
|
69
|
-
"marquee",
|
|
70
|
-
"menu",
|
|
71
|
-
"menuitem",
|
|
72
|
-
"meta",
|
|
73
|
-
"meter",
|
|
74
|
-
"nav",
|
|
75
|
-
"noscript",
|
|
76
|
-
"object",
|
|
77
|
-
"ol",
|
|
78
|
-
"optgroup",
|
|
79
|
-
"option",
|
|
80
|
-
"output",
|
|
81
|
-
"p",
|
|
82
|
-
"param",
|
|
83
|
-
"picture",
|
|
84
|
-
"pre",
|
|
85
|
-
"progress",
|
|
86
|
-
"q",
|
|
87
|
-
"rp",
|
|
88
|
-
"rt",
|
|
89
|
-
"ruby",
|
|
90
|
-
"s",
|
|
91
|
-
"samp",
|
|
92
|
-
"script",
|
|
93
|
-
"section",
|
|
94
|
-
"select",
|
|
95
|
-
"small",
|
|
96
|
-
"source",
|
|
97
|
-
"span",
|
|
98
|
-
"strong",
|
|
99
|
-
"style",
|
|
100
|
-
"sub",
|
|
101
|
-
"summary",
|
|
102
|
-
"sup",
|
|
103
|
-
"table",
|
|
104
|
-
"tbody",
|
|
105
|
-
"td",
|
|
106
|
-
"textarea",
|
|
107
|
-
"tfoot",
|
|
108
|
-
"th",
|
|
109
|
-
"thead",
|
|
110
|
-
"time",
|
|
111
|
-
"title",
|
|
112
|
-
"tr",
|
|
113
|
-
"track",
|
|
114
|
-
"u",
|
|
115
|
-
"ul",
|
|
116
|
-
"var",
|
|
117
|
-
"video",
|
|
118
|
-
"wbr",
|
|
119
|
-
// SVG
|
|
120
|
-
"circle",
|
|
121
|
-
"clipPath",
|
|
122
|
-
"defs",
|
|
123
|
-
"ellipse",
|
|
124
|
-
"foreignObject",
|
|
125
|
-
"g",
|
|
126
|
-
"image",
|
|
127
|
-
"line",
|
|
128
|
-
"linearGradient",
|
|
129
|
-
"mask",
|
|
130
|
-
"path",
|
|
131
|
-
"pattern",
|
|
132
|
-
"polygon",
|
|
133
|
-
"polyline",
|
|
134
|
-
"radialGradient",
|
|
135
|
-
"rect",
|
|
136
|
-
"stop",
|
|
137
|
-
"svg",
|
|
138
|
-
"text",
|
|
139
|
-
"tspan"
|
|
140
|
-
], t = a.bind();
|
|
141
|
-
r.forEach(function(e) {
|
|
142
|
-
t[e] = t(e);
|
|
143
|
-
});
|
|
144
|
-
export {
|
|
145
|
-
t as default
|
|
146
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
var o = {
|
|
2
|
-
animationIterationCount: 1,
|
|
3
|
-
aspectRatio: 1,
|
|
4
|
-
borderImageOutset: 1,
|
|
5
|
-
borderImageSlice: 1,
|
|
6
|
-
borderImageWidth: 1,
|
|
7
|
-
boxFlex: 1,
|
|
8
|
-
boxFlexGroup: 1,
|
|
9
|
-
boxOrdinalGroup: 1,
|
|
10
|
-
columnCount: 1,
|
|
11
|
-
columns: 1,
|
|
12
|
-
flex: 1,
|
|
13
|
-
flexGrow: 1,
|
|
14
|
-
flexPositive: 1,
|
|
15
|
-
flexShrink: 1,
|
|
16
|
-
flexNegative: 1,
|
|
17
|
-
flexOrder: 1,
|
|
18
|
-
gridRow: 1,
|
|
19
|
-
gridRowEnd: 1,
|
|
20
|
-
gridRowSpan: 1,
|
|
21
|
-
gridRowStart: 1,
|
|
22
|
-
gridColumn: 1,
|
|
23
|
-
gridColumnEnd: 1,
|
|
24
|
-
gridColumnSpan: 1,
|
|
25
|
-
gridColumnStart: 1,
|
|
26
|
-
msGridRow: 1,
|
|
27
|
-
msGridRowSpan: 1,
|
|
28
|
-
msGridColumn: 1,
|
|
29
|
-
msGridColumnSpan: 1,
|
|
30
|
-
fontWeight: 1,
|
|
31
|
-
lineHeight: 1,
|
|
32
|
-
opacity: 1,
|
|
33
|
-
order: 1,
|
|
34
|
-
orphans: 1,
|
|
35
|
-
tabSize: 1,
|
|
36
|
-
widows: 1,
|
|
37
|
-
zIndex: 1,
|
|
38
|
-
zoom: 1,
|
|
39
|
-
WebkitLineClamp: 1,
|
|
40
|
-
// SVG-related properties
|
|
41
|
-
fillOpacity: 1,
|
|
42
|
-
floodOpacity: 1,
|
|
43
|
-
stopOpacity: 1,
|
|
44
|
-
strokeDasharray: 1,
|
|
45
|
-
strokeDashoffset: 1,
|
|
46
|
-
strokeMiterlimit: 1,
|
|
47
|
-
strokeOpacity: 1,
|
|
48
|
-
strokeWidth: 1
|
|
49
|
-
};
|
|
50
|
-
export {
|
|
51
|
-
o as default
|
|
52
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var r = !0;
|
|
2
|
-
function o(i, e, n) {
|
|
3
|
-
var s = "";
|
|
4
|
-
return n.split(" ").forEach(function(t) {
|
|
5
|
-
i[t] !== void 0 ? e.push(i[t] + ";") : s += t + " ";
|
|
6
|
-
}), s;
|
|
7
|
-
}
|
|
8
|
-
var d = function(e, n, s) {
|
|
9
|
-
var t = e.key + "-" + n.name;
|
|
10
|
-
// we only need to add the styles to the registered cache if the
|
|
11
|
-
// class name could be used further down
|
|
12
|
-
// the tree but if it's a string tag, we know it won't
|
|
13
|
-
// so we don't have to add it to registered cache.
|
|
14
|
-
// this improves memory usage since we can avoid storing the whole style string
|
|
15
|
-
(s === !1 || // we need to always store it if we're in compat mode and
|
|
16
|
-
// in node since emotion-server relies on whether a style is in
|
|
17
|
-
// the registered cache to know whether a style is global or not
|
|
18
|
-
// also, note that this check will be dead code eliminated in the browser
|
|
19
|
-
r === !1) && e.registered[t] === void 0 && (e.registered[t] = n.styles);
|
|
20
|
-
}, u = function(e, n, s) {
|
|
21
|
-
d(e, n, s);
|
|
22
|
-
var t = e.key + "-" + n.name;
|
|
23
|
-
if (e.inserted[n.name] === void 0) {
|
|
24
|
-
var f = n;
|
|
25
|
-
do
|
|
26
|
-
e.insert(n === f ? "." + t : "", f, e.sheet, !0), f = f.next;
|
|
27
|
-
while (f !== void 0);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
export {
|
|
31
|
-
o as getRegisteredStyles,
|
|
32
|
-
u as insertStyles,
|
|
33
|
-
d as registerStyles
|
|
34
|
-
};
|