@storybook/react-native-theming 8.2.0-alpha.1 → 8.3.0-alpha.0
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/index.d.ts +87 -190
- package/dist/index.js +58 -1284
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -46,13 +46,13 @@ var require_parse = __commonJS({
|
|
|
46
46
|
var plus = "+".charCodeAt(0);
|
|
47
47
|
var isUnicodeRange = /^[a-f0-9?-]+$/i;
|
|
48
48
|
module2.exports = function(input) {
|
|
49
|
-
var
|
|
49
|
+
var tokens = [];
|
|
50
50
|
var value = input;
|
|
51
51
|
var next2, quote, prev2, token2, escape, escapePos, whitespacePos, parenthesesOpenPos;
|
|
52
52
|
var pos = 0;
|
|
53
53
|
var code = value.charCodeAt(pos);
|
|
54
54
|
var max = value.length;
|
|
55
|
-
var stack = [{ nodes:
|
|
55
|
+
var stack = [{ nodes: tokens }];
|
|
56
56
|
var balanced = 0;
|
|
57
57
|
var parent;
|
|
58
58
|
var name = "";
|
|
@@ -66,7 +66,7 @@ var require_parse = __commonJS({
|
|
|
66
66
|
code = value.charCodeAt(next2);
|
|
67
67
|
} while (code <= 32);
|
|
68
68
|
token2 = value.slice(pos, next2);
|
|
69
|
-
prev2 =
|
|
69
|
+
prev2 = tokens[tokens.length - 1];
|
|
70
70
|
if (code === closeParentheses && balanced) {
|
|
71
71
|
after = token2;
|
|
72
72
|
} else if (prev2 && prev2.type === "div") {
|
|
@@ -75,7 +75,7 @@ var require_parse = __commonJS({
|
|
|
75
75
|
} else if (code === comma || code === colon || code === slash && value.charCodeAt(next2 + 1) !== star && (!parent || parent && parent.type === "function" && parent.value !== "calc")) {
|
|
76
76
|
before = token2;
|
|
77
77
|
} else {
|
|
78
|
-
|
|
78
|
+
tokens.push({
|
|
79
79
|
type: "space",
|
|
80
80
|
sourceIndex: pos,
|
|
81
81
|
sourceEndIndex: next2,
|
|
@@ -108,7 +108,7 @@ var require_parse = __commonJS({
|
|
|
108
108
|
} while (escape);
|
|
109
109
|
token2.value = value.slice(pos + 1, next2);
|
|
110
110
|
token2.sourceEndIndex = token2.unclosed ? next2 : next2 + 1;
|
|
111
|
-
|
|
111
|
+
tokens.push(token2);
|
|
112
112
|
pos = next2 + 1;
|
|
113
113
|
code = value.charCodeAt(pos);
|
|
114
114
|
} else if (code === slash && value.charCodeAt(pos + 1) === star) {
|
|
@@ -124,12 +124,12 @@ var require_parse = __commonJS({
|
|
|
124
124
|
token2.sourceEndIndex = next2;
|
|
125
125
|
}
|
|
126
126
|
token2.value = value.slice(pos + 2, next2);
|
|
127
|
-
|
|
127
|
+
tokens.push(token2);
|
|
128
128
|
pos = next2 + 2;
|
|
129
129
|
code = value.charCodeAt(pos);
|
|
130
130
|
} else if ((code === slash || code === star) && parent && parent.type === "function" && parent.value === "calc") {
|
|
131
131
|
token2 = value[pos];
|
|
132
|
-
|
|
132
|
+
tokens.push({
|
|
133
133
|
type: "word",
|
|
134
134
|
sourceIndex: pos - before.length,
|
|
135
135
|
sourceEndIndex: pos + token2.length,
|
|
@@ -139,7 +139,7 @@ var require_parse = __commonJS({
|
|
|
139
139
|
code = value.charCodeAt(pos);
|
|
140
140
|
} else if (code === slash || code === comma || code === colon) {
|
|
141
141
|
token2 = value[pos];
|
|
142
|
-
|
|
142
|
+
tokens.push({
|
|
143
143
|
type: "div",
|
|
144
144
|
sourceIndex: pos - before.length,
|
|
145
145
|
sourceEndIndex: pos + token2.length,
|
|
@@ -218,14 +218,14 @@ var require_parse = __commonJS({
|
|
|
218
218
|
pos = next2 + 1;
|
|
219
219
|
token2.sourceEndIndex = token2.unclosed ? next2 : pos;
|
|
220
220
|
code = value.charCodeAt(pos);
|
|
221
|
-
|
|
221
|
+
tokens.push(token2);
|
|
222
222
|
} else {
|
|
223
223
|
balanced += 1;
|
|
224
224
|
token2.after = "";
|
|
225
225
|
token2.sourceEndIndex = pos + 1;
|
|
226
|
-
|
|
226
|
+
tokens.push(token2);
|
|
227
227
|
stack.push(token2);
|
|
228
|
-
|
|
228
|
+
tokens = token2.nodes = [];
|
|
229
229
|
parent = token2;
|
|
230
230
|
}
|
|
231
231
|
name = "";
|
|
@@ -239,7 +239,7 @@ var require_parse = __commonJS({
|
|
|
239
239
|
stack[stack.length - 1].sourceEndIndex = pos;
|
|
240
240
|
stack.pop();
|
|
241
241
|
parent = stack[balanced];
|
|
242
|
-
|
|
242
|
+
tokens = parent.nodes;
|
|
243
243
|
} else {
|
|
244
244
|
next2 = pos;
|
|
245
245
|
do {
|
|
@@ -253,14 +253,14 @@ var require_parse = __commonJS({
|
|
|
253
253
|
if (openParentheses === code) {
|
|
254
254
|
name = token2;
|
|
255
255
|
} else if ((uLower === token2.charCodeAt(0) || uUpper === token2.charCodeAt(0)) && plus === token2.charCodeAt(1) && isUnicodeRange.test(token2.slice(2))) {
|
|
256
|
-
|
|
256
|
+
tokens.push({
|
|
257
257
|
type: "unicode-range",
|
|
258
258
|
sourceIndex: pos,
|
|
259
259
|
sourceEndIndex: next2,
|
|
260
260
|
value: token2
|
|
261
261
|
});
|
|
262
262
|
} else {
|
|
263
|
-
|
|
263
|
+
tokens.push({
|
|
264
264
|
type: "word",
|
|
265
265
|
sourceIndex: pos,
|
|
266
266
|
sourceEndIndex: next2,
|
|
@@ -1833,7 +1833,7 @@ __export(src_exports, {
|
|
|
1833
1833
|
});
|
|
1834
1834
|
module.exports = __toCommonJS(src_exports);
|
|
1835
1835
|
|
|
1836
|
-
// src/
|
|
1836
|
+
// src/web-theme.ts
|
|
1837
1837
|
var import_polished = require("polished");
|
|
1838
1838
|
var color = {
|
|
1839
1839
|
// Official color palette
|
|
@@ -1957,62 +1957,6 @@ var dark = {
|
|
|
1957
1957
|
};
|
|
1958
1958
|
|
|
1959
1959
|
// src/theme.ts
|
|
1960
|
-
var tokens = {
|
|
1961
|
-
spacing1: 4,
|
|
1962
|
-
spacing2: 8,
|
|
1963
|
-
spacing3: 12,
|
|
1964
|
-
spacing4: 16,
|
|
1965
|
-
spacing5: 20,
|
|
1966
|
-
spacing6: 24,
|
|
1967
|
-
fontSize: {
|
|
1968
|
-
small: 12,
|
|
1969
|
-
smaller: 14,
|
|
1970
|
-
normal: 16
|
|
1971
|
-
},
|
|
1972
|
-
color: {
|
|
1973
|
-
navy: "#001a23",
|
|
1974
|
-
black: "#000",
|
|
1975
|
-
offBlack: "#222",
|
|
1976
|
-
white: "#ffffff",
|
|
1977
|
-
grey200: "#dee2e3",
|
|
1978
|
-
grey700: "#859499",
|
|
1979
|
-
grey800: "#575757",
|
|
1980
|
-
red500: "#ff4400",
|
|
1981
|
-
blue100: "#f6f9fc",
|
|
1982
|
-
blue200: "#e0eaf5",
|
|
1983
|
-
blue250: "#dcebf9",
|
|
1984
|
-
blue300: "#b2cbe6",
|
|
1985
|
-
blue400: "#a3c1e0",
|
|
1986
|
-
blue600: "#1ea7fd",
|
|
1987
|
-
green500: "#66bf3c"
|
|
1988
|
-
},
|
|
1989
|
-
borderRadius: {
|
|
1990
|
-
small: 4,
|
|
1991
|
-
medium: 6,
|
|
1992
|
-
large: 8,
|
|
1993
|
-
round: 100
|
|
1994
|
-
},
|
|
1995
|
-
borderWidthNormal: 1,
|
|
1996
|
-
elevation: {
|
|
1997
|
-
floating: {
|
|
1998
|
-
shadowColor: "#000000",
|
|
1999
|
-
shadowOpacity: 0.2,
|
|
2000
|
-
shadowOffset: { width: 0, height: 0 },
|
|
2001
|
-
shadowRadius: 16,
|
|
2002
|
-
elevation: 10
|
|
2003
|
-
}
|
|
2004
|
-
}
|
|
2005
|
-
};
|
|
2006
|
-
var text = {
|
|
2007
|
-
primaryColor: tokens.color.navy,
|
|
2008
|
-
secondaryColor: tokens.color.grey700,
|
|
2009
|
-
linkColor: "#0000ff"
|
|
2010
|
-
};
|
|
2011
|
-
var textOnDark = {
|
|
2012
|
-
primaryColor: tokens.color.white,
|
|
2013
|
-
secondaryColor: tokens.color.grey200,
|
|
2014
|
-
linkColor: tokens.color.blue600
|
|
2015
|
-
};
|
|
2016
1960
|
var typography = {
|
|
2017
1961
|
weight: {
|
|
2018
1962
|
regular: "400",
|
|
@@ -2090,9 +2034,11 @@ var theme = {
|
|
|
2090
2034
|
background: light.inputBg,
|
|
2091
2035
|
border: light.inputBorder,
|
|
2092
2036
|
borderRadius: light.inputBorderRadius,
|
|
2093
|
-
color: light.inputTextColor
|
|
2037
|
+
color: light.inputTextColor,
|
|
2038
|
+
paddingHorizontal: 10,
|
|
2039
|
+
paddingVertical: 6
|
|
2094
2040
|
},
|
|
2095
|
-
button
|
|
2041
|
+
button: {
|
|
2096
2042
|
background: light.buttonBg || light.inputBg,
|
|
2097
2043
|
border: light.buttonBorder || light.inputBorder
|
|
2098
2044
|
},
|
|
@@ -2115,136 +2061,6 @@ var theme = {
|
|
|
2115
2061
|
url: light.brandUrl,
|
|
2116
2062
|
image: light.brandImage || (light.brandTitle ? null : void 0),
|
|
2117
2063
|
target: light.brandTarget
|
|
2118
|
-
},
|
|
2119
|
-
// ONDEVICE
|
|
2120
|
-
tokens,
|
|
2121
|
-
text,
|
|
2122
|
-
backgroundColor: tokens.color.white,
|
|
2123
|
-
preview: {
|
|
2124
|
-
containerBackgroundColor: tokens.color.white,
|
|
2125
|
-
backgroundColor: tokens.color.white
|
|
2126
|
-
},
|
|
2127
|
-
navigation: {
|
|
2128
|
-
backgroundColor: tokens.color.white,
|
|
2129
|
-
borderColor: tokens.color.grey200,
|
|
2130
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2131
|
-
visibilityBorderRadius: tokens.borderRadius.small,
|
|
2132
|
-
visibilityInnerBorderColor: tokens.color.grey700,
|
|
2133
|
-
visibilityOuterBorderColor: tokens.color.white
|
|
2134
|
-
},
|
|
2135
|
-
panel: {
|
|
2136
|
-
backgroundColor: tokens.color.blue100,
|
|
2137
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2138
|
-
borderColor: tokens.color.blue200,
|
|
2139
|
-
paddingVertical: 0,
|
|
2140
|
-
paddingHorizontal: tokens.spacing2
|
|
2141
|
-
},
|
|
2142
|
-
storyList: {
|
|
2143
|
-
fontSize: tokens.fontSize.normal,
|
|
2144
|
-
headerPaddingHorizontal: tokens.spacing2,
|
|
2145
|
-
headerPaddingVertical: tokens.spacing2,
|
|
2146
|
-
headerTextColor: text.primaryColor,
|
|
2147
|
-
headerFontWeight: "500",
|
|
2148
|
-
storyPaddingHorizontal: tokens.spacing2,
|
|
2149
|
-
storyPaddingVertical: tokens.spacing1 * 1.5,
|
|
2150
|
-
storyIndent: tokens.spacing6,
|
|
2151
|
-
storyTextColor: text.primaryColor,
|
|
2152
|
-
storyFontWeight: "400",
|
|
2153
|
-
storySelectedBackgroundColor: tokens.color.blue600,
|
|
2154
|
-
storySelectedTextColor: tokens.color.white,
|
|
2155
|
-
storySelectedFontWeight: "700",
|
|
2156
|
-
sectionSpacing: tokens.spacing2,
|
|
2157
|
-
sectionActiveBackgroundColor: tokens.color.blue200,
|
|
2158
|
-
sectionBorderRadius: tokens.borderRadius.medium,
|
|
2159
|
-
search: {
|
|
2160
|
-
fontSize: tokens.fontSize.normal,
|
|
2161
|
-
textColor: text.primaryColor,
|
|
2162
|
-
placeholderTextColor: text.secondaryColor,
|
|
2163
|
-
borderRadius: tokens.borderRadius.round,
|
|
2164
|
-
borderColor: tokens.color.blue400,
|
|
2165
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2166
|
-
backgroundColor: tokens.color.white,
|
|
2167
|
-
paddingVertical: tokens.spacing2,
|
|
2168
|
-
paddingHorizontal: tokens.spacing3
|
|
2169
|
-
}
|
|
2170
|
-
},
|
|
2171
|
-
button: {
|
|
2172
|
-
fontSize: tokens.fontSize.smaller,
|
|
2173
|
-
fontWeight: "600",
|
|
2174
|
-
paddingVertical: tokens.spacing2,
|
|
2175
|
-
paddingHorizontal: tokens.spacing5,
|
|
2176
|
-
primary: {
|
|
2177
|
-
textColor: text.primaryColor,
|
|
2178
|
-
backgroundColor: tokens.color.blue250,
|
|
2179
|
-
borderColor: tokens.color.blue300,
|
|
2180
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2181
|
-
borderRadius: tokens.borderRadius.medium
|
|
2182
|
-
},
|
|
2183
|
-
secondary: {
|
|
2184
|
-
textColor: text.primaryColor,
|
|
2185
|
-
backgroundColor: "transparent",
|
|
2186
|
-
borderColor: tokens.color.blue300,
|
|
2187
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2188
|
-
borderRadius: tokens.borderRadius.medium
|
|
2189
|
-
}
|
|
2190
|
-
},
|
|
2191
|
-
tabs: {
|
|
2192
|
-
fontSize: tokens.fontSize.small,
|
|
2193
|
-
fontWeight: "500",
|
|
2194
|
-
paddingVertical: tokens.spacing2,
|
|
2195
|
-
paddingHorizontal: tokens.spacing2 * 1.25,
|
|
2196
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2197
|
-
borderRadius: tokens.borderRadius.round,
|
|
2198
|
-
activeBorderColor: tokens.color.blue300,
|
|
2199
|
-
activeBackgroundColor: tokens.color.blue250,
|
|
2200
|
-
activeTextColor: text.primaryColor,
|
|
2201
|
-
inactiveBorderColor: "transparent",
|
|
2202
|
-
inactiveBackgroundColor: "transparent",
|
|
2203
|
-
inactiveTextColor: text.secondaryColor
|
|
2204
|
-
},
|
|
2205
|
-
inputs: {
|
|
2206
|
-
errorTextColor: tokens.color.red500,
|
|
2207
|
-
labelFontSize: tokens.fontSize.smaller,
|
|
2208
|
-
labelTextColor: text.primaryColor,
|
|
2209
|
-
text: {
|
|
2210
|
-
fontSize: tokens.fontSize.smaller,
|
|
2211
|
-
textColor: text.primaryColor,
|
|
2212
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2213
|
-
borderColor: tokens.color.blue400,
|
|
2214
|
-
backgroundColor: tokens.color.white,
|
|
2215
|
-
borderRadius: tokens.borderRadius.medium,
|
|
2216
|
-
paddingVertical: tokens.spacing1 * 1.5,
|
|
2217
|
-
paddingHorizontal: tokens.spacing1 * 1.5
|
|
2218
|
-
},
|
|
2219
|
-
radio: {
|
|
2220
|
-
fontSize: tokens.fontSize.smaller,
|
|
2221
|
-
height: 20,
|
|
2222
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2223
|
-
borderColor: tokens.color.blue400,
|
|
2224
|
-
backgroundColor: tokens.color.white,
|
|
2225
|
-
paddingVertical: 3,
|
|
2226
|
-
paddingHorizontal: 3,
|
|
2227
|
-
activeBackgroundColor: tokens.color.green500,
|
|
2228
|
-
itemSpacing: tokens.spacing1,
|
|
2229
|
-
labelSpacing: tokens.spacing2
|
|
2230
|
-
},
|
|
2231
|
-
swatch: {
|
|
2232
|
-
fontSize: tokens.fontSize.smaller,
|
|
2233
|
-
height: 40,
|
|
2234
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2235
|
-
borderColor: tokens.color.blue400,
|
|
2236
|
-
backgroundColor: tokens.color.white,
|
|
2237
|
-
outerBorderRadius: tokens.borderRadius.medium,
|
|
2238
|
-
innerBorderRadius: tokens.borderRadius.small,
|
|
2239
|
-
paddingVertical: tokens.spacing1,
|
|
2240
|
-
paddingHorizontal: tokens.spacing1,
|
|
2241
|
-
nameTextWeight: "600"
|
|
2242
|
-
},
|
|
2243
|
-
slider: {
|
|
2244
|
-
fontSize: tokens.fontSize.smaller,
|
|
2245
|
-
labelTextColor: text.secondaryColor,
|
|
2246
|
-
valueTextColor: text.primaryColor
|
|
2247
|
-
}
|
|
2248
2064
|
}
|
|
2249
2065
|
};
|
|
2250
2066
|
var darkTheme = {
|
|
@@ -2306,9 +2122,11 @@ var darkTheme = {
|
|
|
2306
2122
|
background: dark.inputBg,
|
|
2307
2123
|
border: dark.inputBorder,
|
|
2308
2124
|
borderRadius: dark.inputBorderRadius,
|
|
2309
|
-
color: dark.inputTextColor
|
|
2125
|
+
color: dark.inputTextColor,
|
|
2126
|
+
paddingHorizontal: 10,
|
|
2127
|
+
paddingVertical: 6
|
|
2310
2128
|
},
|
|
2311
|
-
button
|
|
2129
|
+
button: {
|
|
2312
2130
|
background: dark.buttonBg || dark.inputBg,
|
|
2313
2131
|
border: dark.buttonBorder || dark.inputBorder
|
|
2314
2132
|
},
|
|
@@ -2331,139 +2149,6 @@ var darkTheme = {
|
|
|
2331
2149
|
url: dark.brandUrl,
|
|
2332
2150
|
image: dark.brandImage || (dark.brandTitle ? null : void 0),
|
|
2333
2151
|
target: dark.brandTarget
|
|
2334
|
-
},
|
|
2335
|
-
// ondevice
|
|
2336
|
-
tokens,
|
|
2337
|
-
text: textOnDark,
|
|
2338
|
-
backgroundColor: tokens.color.offBlack,
|
|
2339
|
-
preview: {
|
|
2340
|
-
containerBackgroundColor: tokens.color.black,
|
|
2341
|
-
backgroundColor: tokens.color.offBlack
|
|
2342
|
-
},
|
|
2343
|
-
navigation: {
|
|
2344
|
-
backgroundColor: tokens.color.offBlack,
|
|
2345
|
-
//tokens.color.black,
|
|
2346
|
-
borderColor: tokens.color.grey800,
|
|
2347
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2348
|
-
visibilityBorderRadius: tokens.borderRadius.small,
|
|
2349
|
-
visibilityInnerBorderColor: tokens.color.navy,
|
|
2350
|
-
visibilityOuterBorderColor: tokens.color.navy
|
|
2351
|
-
},
|
|
2352
|
-
panel: {
|
|
2353
|
-
backgroundColor: tokens.color.offBlack,
|
|
2354
|
-
//tokens.color.blue100,
|
|
2355
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2356
|
-
borderColor: tokens.color.grey800,
|
|
2357
|
-
paddingVertical: 0,
|
|
2358
|
-
paddingHorizontal: tokens.spacing2
|
|
2359
|
-
},
|
|
2360
|
-
storyList: {
|
|
2361
|
-
fontSize: tokens.fontSize.normal,
|
|
2362
|
-
headerPaddingHorizontal: tokens.spacing2,
|
|
2363
|
-
headerPaddingVertical: tokens.spacing2,
|
|
2364
|
-
headerTextColor: textOnDark.primaryColor,
|
|
2365
|
-
headerFontWeight: "500",
|
|
2366
|
-
storyPaddingHorizontal: tokens.spacing2,
|
|
2367
|
-
storyPaddingVertical: tokens.spacing1 * 1.5,
|
|
2368
|
-
storyIndent: tokens.spacing6,
|
|
2369
|
-
storyTextColor: textOnDark.primaryColor,
|
|
2370
|
-
storyFontWeight: "400",
|
|
2371
|
-
storySelectedBackgroundColor: tokens.color.navy,
|
|
2372
|
-
storySelectedTextColor: tokens.color.white,
|
|
2373
|
-
storySelectedFontWeight: "700",
|
|
2374
|
-
sectionSpacing: tokens.spacing2,
|
|
2375
|
-
sectionActiveBackgroundColor: tokens.color.grey800,
|
|
2376
|
-
sectionBorderRadius: tokens.borderRadius.medium,
|
|
2377
|
-
search: {
|
|
2378
|
-
fontSize: tokens.fontSize.normal,
|
|
2379
|
-
textColor: textOnDark.primaryColor,
|
|
2380
|
-
placeholderTextColor: textOnDark.secondaryColor,
|
|
2381
|
-
borderRadius: tokens.borderRadius.round,
|
|
2382
|
-
borderColor: tokens.color.grey800,
|
|
2383
|
-
//tokens.color.blue400,
|
|
2384
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2385
|
-
backgroundColor: tokens.color.grey800,
|
|
2386
|
-
paddingVertical: tokens.spacing2,
|
|
2387
|
-
paddingHorizontal: tokens.spacing3
|
|
2388
|
-
}
|
|
2389
|
-
},
|
|
2390
|
-
button: {
|
|
2391
|
-
fontSize: tokens.fontSize.smaller,
|
|
2392
|
-
fontWeight: "600",
|
|
2393
|
-
paddingVertical: tokens.spacing2,
|
|
2394
|
-
paddingHorizontal: tokens.spacing5,
|
|
2395
|
-
primary: {
|
|
2396
|
-
textColor: textOnDark.primaryColor,
|
|
2397
|
-
backgroundColor: tokens.color.black,
|
|
2398
|
-
borderColor: tokens.color.blue300,
|
|
2399
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2400
|
-
borderRadius: tokens.borderRadius.medium
|
|
2401
|
-
},
|
|
2402
|
-
secondary: {
|
|
2403
|
-
textColor: textOnDark.primaryColor,
|
|
2404
|
-
backgroundColor: "transparent",
|
|
2405
|
-
borderColor: tokens.color.blue300,
|
|
2406
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2407
|
-
borderRadius: tokens.borderRadius.medium
|
|
2408
|
-
}
|
|
2409
|
-
},
|
|
2410
|
-
tabs: {
|
|
2411
|
-
fontSize: tokens.fontSize.small,
|
|
2412
|
-
fontWeight: "500",
|
|
2413
|
-
paddingVertical: tokens.spacing2,
|
|
2414
|
-
paddingHorizontal: tokens.spacing2 * 1.25,
|
|
2415
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2416
|
-
borderRadius: tokens.borderRadius.round,
|
|
2417
|
-
activeBorderColor: tokens.color.blue300,
|
|
2418
|
-
activeBackgroundColor: tokens.color.navy,
|
|
2419
|
-
activeTextColor: textOnDark.primaryColor,
|
|
2420
|
-
inactiveBorderColor: "transparent",
|
|
2421
|
-
inactiveBackgroundColor: "transparent",
|
|
2422
|
-
inactiveTextColor: textOnDark.secondaryColor
|
|
2423
|
-
},
|
|
2424
|
-
inputs: {
|
|
2425
|
-
errorTextColor: tokens.color.red500,
|
|
2426
|
-
labelFontSize: tokens.fontSize.smaller,
|
|
2427
|
-
labelTextColor: textOnDark.primaryColor,
|
|
2428
|
-
text: {
|
|
2429
|
-
fontSize: tokens.fontSize.smaller,
|
|
2430
|
-
textColor: textOnDark.primaryColor,
|
|
2431
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2432
|
-
borderColor: tokens.color.blue400,
|
|
2433
|
-
backgroundColor: tokens.color.black,
|
|
2434
|
-
borderRadius: tokens.borderRadius.medium,
|
|
2435
|
-
paddingVertical: tokens.spacing1 * 1.5,
|
|
2436
|
-
paddingHorizontal: tokens.spacing1 * 1.5
|
|
2437
|
-
},
|
|
2438
|
-
radio: {
|
|
2439
|
-
fontSize: tokens.fontSize.smaller,
|
|
2440
|
-
height: 20,
|
|
2441
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2442
|
-
borderColor: tokens.color.blue400,
|
|
2443
|
-
backgroundColor: tokens.color.black,
|
|
2444
|
-
paddingVertical: 3,
|
|
2445
|
-
paddingHorizontal: 3,
|
|
2446
|
-
activeBackgroundColor: tokens.color.green500,
|
|
2447
|
-
itemSpacing: tokens.spacing1,
|
|
2448
|
-
labelSpacing: tokens.spacing2
|
|
2449
|
-
},
|
|
2450
|
-
swatch: {
|
|
2451
|
-
fontSize: tokens.fontSize.smaller,
|
|
2452
|
-
height: 40,
|
|
2453
|
-
borderWidth: tokens.borderWidthNormal,
|
|
2454
|
-
borderColor: tokens.color.blue400,
|
|
2455
|
-
backgroundColor: tokens.color.navy,
|
|
2456
|
-
outerBorderRadius: tokens.borderRadius.medium,
|
|
2457
|
-
innerBorderRadius: tokens.borderRadius.small,
|
|
2458
|
-
paddingVertical: tokens.spacing1,
|
|
2459
|
-
paddingHorizontal: tokens.spacing1,
|
|
2460
|
-
nameTextWeight: "600"
|
|
2461
|
-
},
|
|
2462
|
-
slider: {
|
|
2463
|
-
fontSize: tokens.fontSize.smaller,
|
|
2464
|
-
labelTextColor: textOnDark.secondaryColor,
|
|
2465
|
-
valueTextColor: textOnDark.primaryColor
|
|
2466
|
-
}
|
|
2467
2152
|
}
|
|
2468
2153
|
};
|
|
2469
2154
|
|
|
@@ -2475,11 +2160,12 @@ var import_react_native = require("react-native");
|
|
|
2475
2160
|
var import_css_to_react_native = __toESM(require_css_to_react_native());
|
|
2476
2161
|
var React4 = __toESM(require("react"));
|
|
2477
2162
|
|
|
2478
|
-
// ../../node_modules/@emotion/react/dist/emotion-element-
|
|
2163
|
+
// ../../node_modules/@emotion/react/dist/emotion-element-b4c8b265.esm.js
|
|
2479
2164
|
var React2 = __toESM(require("react"));
|
|
2480
2165
|
var import_react = require("react");
|
|
2481
2166
|
|
|
2482
2167
|
// ../../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
|
|
2168
|
+
var isDevelopment = false;
|
|
2483
2169
|
function sheetForTag(tag) {
|
|
2484
2170
|
if (tag.sheet) {
|
|
2485
2171
|
return tag.sheet;
|
|
@@ -2489,6 +2175,7 @@ function sheetForTag(tag) {
|
|
|
2489
2175
|
return document.styleSheets[i];
|
|
2490
2176
|
}
|
|
2491
2177
|
}
|
|
2178
|
+
return void 0;
|
|
2492
2179
|
}
|
|
2493
2180
|
function createStyleElement(options) {
|
|
2494
2181
|
var tag = document.createElement("style");
|
|
@@ -2519,7 +2206,7 @@ var StyleSheet = /* @__PURE__ */ function() {
|
|
|
2519
2206
|
_this.container.insertBefore(tag, before);
|
|
2520
2207
|
_this.tags.push(tag);
|
|
2521
2208
|
};
|
|
2522
|
-
this.isSpeedy = options.speedy === void 0 ?
|
|
2209
|
+
this.isSpeedy = options.speedy === void 0 ? !isDevelopment : options.speedy;
|
|
2523
2210
|
this.tags = [];
|
|
2524
2211
|
this.ctr = 0;
|
|
2525
2212
|
this.nonce = options.nonce;
|
|
@@ -2538,21 +2225,11 @@ var StyleSheet = /* @__PURE__ */ function() {
|
|
|
2538
2225
|
this._insertTag(createStyleElement(this));
|
|
2539
2226
|
}
|
|
2540
2227
|
var tag = this.tags[this.tags.length - 1];
|
|
2541
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2542
|
-
var isImportRule3 = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
|
|
2543
|
-
if (isImportRule3 && this._alreadyInsertedOrderInsensitiveRule) {
|
|
2544
|
-
console.error("You're attempting to insert the following rule:\n" + rule + "\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.");
|
|
2545
|
-
}
|
|
2546
|
-
this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule3;
|
|
2547
|
-
}
|
|
2548
2228
|
if (this.isSpeedy) {
|
|
2549
2229
|
var sheet = sheetForTag(tag);
|
|
2550
2230
|
try {
|
|
2551
2231
|
sheet.insertRule(rule, sheet.cssRules.length);
|
|
2552
2232
|
} catch (e) {
|
|
2553
|
-
if (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(rule)) {
|
|
2554
|
-
console.error('There was a problem inserting the following rule: "' + rule + '"', e);
|
|
2555
|
-
}
|
|
2556
2233
|
}
|
|
2557
2234
|
} else {
|
|
2558
2235
|
tag.appendChild(document.createTextNode(rule));
|
|
@@ -2561,13 +2238,11 @@ var StyleSheet = /* @__PURE__ */ function() {
|
|
|
2561
2238
|
};
|
|
2562
2239
|
_proto.flush = function flush() {
|
|
2563
2240
|
this.tags.forEach(function(tag) {
|
|
2564
|
-
|
|
2241
|
+
var _tag$parentNode;
|
|
2242
|
+
return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
|
|
2565
2243
|
});
|
|
2566
2244
|
this.tags = [];
|
|
2567
2245
|
this.ctr = 0;
|
|
2568
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2569
|
-
this._alreadyInsertedOrderInsensitiveRule = false;
|
|
2570
|
-
}
|
|
2571
2246
|
};
|
|
2572
2247
|
return StyleSheet4;
|
|
2573
2248
|
}();
|
|
@@ -2949,6 +2624,7 @@ function memoize(fn) {
|
|
|
2949
2624
|
}
|
|
2950
2625
|
|
|
2951
2626
|
// ../../node_modules/@emotion/cache/dist/emotion-cache.esm.js
|
|
2627
|
+
var isBrowser = typeof document !== "undefined";
|
|
2952
2628
|
var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index2) {
|
|
2953
2629
|
var previous = 0;
|
|
2954
2630
|
var character2 = 0;
|
|
@@ -3037,69 +2713,6 @@ var removeLabel = function removeLabel2(element) {
|
|
|
3037
2713
|
}
|
|
3038
2714
|
}
|
|
3039
2715
|
};
|
|
3040
|
-
var ignoreFlag = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason";
|
|
3041
|
-
var isIgnoringComment = function isIgnoringComment2(element) {
|
|
3042
|
-
return element.type === "comm" && element.children.indexOf(ignoreFlag) > -1;
|
|
3043
|
-
};
|
|
3044
|
-
var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm2(cache) {
|
|
3045
|
-
return function(element, index2, children) {
|
|
3046
|
-
if (element.type !== "rule" || cache.compat)
|
|
3047
|
-
return;
|
|
3048
|
-
var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
|
|
3049
|
-
if (unsafePseudoClasses) {
|
|
3050
|
-
var isNested = !!element.parent;
|
|
3051
|
-
var commentContainer = isNested ? element.parent.children : (
|
|
3052
|
-
// global rule at the root level
|
|
3053
|
-
children
|
|
3054
|
-
);
|
|
3055
|
-
for (var i = commentContainer.length - 1; i >= 0; i--) {
|
|
3056
|
-
var node2 = commentContainer[i];
|
|
3057
|
-
if (node2.line < element.line) {
|
|
3058
|
-
break;
|
|
3059
|
-
}
|
|
3060
|
-
if (node2.column < element.column) {
|
|
3061
|
-
if (isIgnoringComment(node2)) {
|
|
3062
|
-
return;
|
|
3063
|
-
}
|
|
3064
|
-
break;
|
|
3065
|
-
}
|
|
3066
|
-
}
|
|
3067
|
-
unsafePseudoClasses.forEach(function(unsafePseudoClass) {
|
|
3068
|
-
console.error('The pseudo class "' + unsafePseudoClass + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + unsafePseudoClass.split("-child")[0] + '-of-type".');
|
|
3069
|
-
});
|
|
3070
|
-
}
|
|
3071
|
-
};
|
|
3072
|
-
};
|
|
3073
|
-
var isImportRule = function isImportRule2(element) {
|
|
3074
|
-
return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
|
|
3075
|
-
};
|
|
3076
|
-
var isPrependedWithRegularRules = function isPrependedWithRegularRules2(index2, children) {
|
|
3077
|
-
for (var i = index2 - 1; i >= 0; i--) {
|
|
3078
|
-
if (!isImportRule(children[i])) {
|
|
3079
|
-
return true;
|
|
3080
|
-
}
|
|
3081
|
-
}
|
|
3082
|
-
return false;
|
|
3083
|
-
};
|
|
3084
|
-
var nullifyElement = function nullifyElement2(element) {
|
|
3085
|
-
element.type = "";
|
|
3086
|
-
element.value = "";
|
|
3087
|
-
element["return"] = "";
|
|
3088
|
-
element.children = "";
|
|
3089
|
-
element.props = "";
|
|
3090
|
-
};
|
|
3091
|
-
var incorrectImportAlarm = function incorrectImportAlarm2(element, index2, children) {
|
|
3092
|
-
if (!isImportRule(element)) {
|
|
3093
|
-
return;
|
|
3094
|
-
}
|
|
3095
|
-
if (element.parent) {
|
|
3096
|
-
console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");
|
|
3097
|
-
nullifyElement(element);
|
|
3098
|
-
} else if (isPrependedWithRegularRules(index2, children)) {
|
|
3099
|
-
console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
|
|
3100
|
-
nullifyElement(element);
|
|
3101
|
-
}
|
|
3102
|
-
};
|
|
3103
2716
|
function prefix(value, length2) {
|
|
3104
2717
|
switch (hash(value, length2)) {
|
|
3105
2718
|
case 5103:
|
|
@@ -3248,7 +2861,6 @@ var prefixer = function prefixer2(element, index2, children, callback) {
|
|
|
3248
2861
|
}
|
|
3249
2862
|
}
|
|
3250
2863
|
};
|
|
3251
|
-
var isBrowser = typeof document !== "undefined";
|
|
3252
2864
|
var getServerStylisCache = isBrowser ? void 0 : weakMemoize(function() {
|
|
3253
2865
|
return memoize(function() {
|
|
3254
2866
|
var cache = {};
|
|
@@ -3260,9 +2872,6 @@ var getServerStylisCache = isBrowser ? void 0 : weakMemoize(function() {
|
|
|
3260
2872
|
var defaultStylisPlugins = [prefixer];
|
|
3261
2873
|
var createCache = function createCache2(options) {
|
|
3262
2874
|
var key = options.key;
|
|
3263
|
-
if (process.env.NODE_ENV !== "production" && !key) {
|
|
3264
|
-
throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");
|
|
3265
|
-
}
|
|
3266
2875
|
if (isBrowser && key === "css") {
|
|
3267
2876
|
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
3268
2877
|
Array.prototype.forEach.call(ssrStyles, function(node2) {
|
|
@@ -3275,11 +2884,6 @@ var createCache = function createCache2(options) {
|
|
|
3275
2884
|
});
|
|
3276
2885
|
}
|
|
3277
2886
|
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
|
3278
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3279
|
-
if (/[^a-z-]/.test(key)) {
|
|
3280
|
-
throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + key + '" was passed');
|
|
3281
|
-
}
|
|
3282
|
-
}
|
|
3283
2887
|
var inserted = {};
|
|
3284
2888
|
var container;
|
|
3285
2889
|
var nodesToHydrate = [];
|
|
@@ -3300,24 +2904,9 @@ var createCache = function createCache2(options) {
|
|
|
3300
2904
|
}
|
|
3301
2905
|
var _insert;
|
|
3302
2906
|
var omnipresentPlugins = [compat, removeLabel];
|
|
3303
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3304
|
-
omnipresentPlugins.push(createUnsafeSelectorsAlarm({
|
|
3305
|
-
get compat() {
|
|
3306
|
-
return cache.compat;
|
|
3307
|
-
}
|
|
3308
|
-
}), incorrectImportAlarm);
|
|
3309
|
-
}
|
|
3310
2907
|
if (isBrowser) {
|
|
3311
2908
|
var currentSheet;
|
|
3312
|
-
var finalizingPlugins = [stringify,
|
|
3313
|
-
if (!element.root) {
|
|
3314
|
-
if (element["return"]) {
|
|
3315
|
-
currentSheet.insert(element["return"]);
|
|
3316
|
-
} else if (element.value && element.type !== COMMENT) {
|
|
3317
|
-
currentSheet.insert(element.value + "{}");
|
|
3318
|
-
}
|
|
3319
|
-
}
|
|
3320
|
-
} : rulesheet(function(rule) {
|
|
2909
|
+
var finalizingPlugins = [stringify, rulesheet(function(rule) {
|
|
3321
2910
|
currentSheet.insert(rule);
|
|
3322
2911
|
})];
|
|
3323
2912
|
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
@@ -3326,13 +2915,6 @@ var createCache = function createCache2(options) {
|
|
|
3326
2915
|
};
|
|
3327
2916
|
_insert = function insert(selector, serialized, sheet, shouldCache) {
|
|
3328
2917
|
currentSheet = sheet;
|
|
3329
|
-
if (process.env.NODE_ENV !== "production" && serialized.map !== void 0) {
|
|
3330
|
-
currentSheet = {
|
|
3331
|
-
insert: function insert2(rule) {
|
|
3332
|
-
sheet.insert(rule + serialized.map);
|
|
3333
|
-
}
|
|
3334
|
-
};
|
|
3335
|
-
}
|
|
3336
2918
|
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
|
3337
2919
|
if (shouldCache) {
|
|
3338
2920
|
cache.inserted[serialized.name] = true;
|
|
@@ -3359,13 +2941,6 @@ var createCache = function createCache2(options) {
|
|
|
3359
2941
|
if (shouldCache) {
|
|
3360
2942
|
cache.inserted[name] = true;
|
|
3361
2943
|
}
|
|
3362
|
-
if (
|
|
3363
|
-
// using === development instead of !== production
|
|
3364
|
-
// because if people do ssr in tests, the source maps showing up would be annoying
|
|
3365
|
-
process.env.NODE_ENV === "development" && serialized.map !== void 0
|
|
3366
|
-
) {
|
|
3367
|
-
return rules + serialized.map;
|
|
3368
|
-
}
|
|
3369
2944
|
return rules;
|
|
3370
2945
|
} else {
|
|
3371
2946
|
if (shouldCache) {
|
|
@@ -3413,402 +2988,11 @@ var hoistNonReactStatics = function(targetComponent, sourceComponent) {
|
|
|
3413
2988
|
return (0, import_hoist_non_react_statics.default)(targetComponent, sourceComponent);
|
|
3414
2989
|
};
|
|
3415
2990
|
|
|
3416
|
-
// ../../node_modules/@emotion/utils/dist/emotion-utils.esm.js
|
|
3417
|
-
var isBrowser2 = typeof document !== "undefined";
|
|
3418
|
-
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
3419
|
-
var rawClassName = "";
|
|
3420
|
-
classNames.split(" ").forEach(function(className) {
|
|
3421
|
-
if (registered[className] !== void 0) {
|
|
3422
|
-
registeredStyles.push(registered[className] + ";");
|
|
3423
|
-
} else {
|
|
3424
|
-
rawClassName += className + " ";
|
|
3425
|
-
}
|
|
3426
|
-
});
|
|
3427
|
-
return rawClassName;
|
|
3428
|
-
}
|
|
3429
|
-
var registerStyles = function registerStyles2(cache, serialized, isStringTag) {
|
|
3430
|
-
var className = cache.key + "-" + serialized.name;
|
|
3431
|
-
if (
|
|
3432
|
-
// we only need to add the styles to the registered cache if the
|
|
3433
|
-
// class name could be used further down
|
|
3434
|
-
// the tree but if it's a string tag, we know it won't
|
|
3435
|
-
// so we don't have to add it to registered cache.
|
|
3436
|
-
// this improves memory usage since we can avoid storing the whole style string
|
|
3437
|
-
(isStringTag === false || // we need to always store it if we're in compat mode and
|
|
3438
|
-
// in node since emotion-server relies on whether a style is in
|
|
3439
|
-
// the registered cache to know whether a style is global or not
|
|
3440
|
-
// also, note that this check will be dead code eliminated in the browser
|
|
3441
|
-
isBrowser2 === false && cache.compat !== void 0) && cache.registered[className] === void 0
|
|
3442
|
-
) {
|
|
3443
|
-
cache.registered[className] = serialized.styles;
|
|
3444
|
-
}
|
|
3445
|
-
};
|
|
3446
|
-
var insertStyles = function insertStyles2(cache, serialized, isStringTag) {
|
|
3447
|
-
registerStyles(cache, serialized, isStringTag);
|
|
3448
|
-
var className = cache.key + "-" + serialized.name;
|
|
3449
|
-
if (cache.inserted[serialized.name] === void 0) {
|
|
3450
|
-
var stylesForSSR = "";
|
|
3451
|
-
var current = serialized;
|
|
3452
|
-
do {
|
|
3453
|
-
var maybeStyles = cache.insert(serialized === current ? "." + className : "", current, cache.sheet, true);
|
|
3454
|
-
if (!isBrowser2 && maybeStyles !== void 0) {
|
|
3455
|
-
stylesForSSR += maybeStyles;
|
|
3456
|
-
}
|
|
3457
|
-
current = current.next;
|
|
3458
|
-
} while (current !== void 0);
|
|
3459
|
-
if (!isBrowser2 && stylesForSSR.length !== 0) {
|
|
3460
|
-
return stylesForSSR;
|
|
3461
|
-
}
|
|
3462
|
-
}
|
|
3463
|
-
};
|
|
3464
|
-
|
|
3465
|
-
// ../../node_modules/@emotion/hash/dist/emotion-hash.esm.js
|
|
3466
|
-
function murmur2(str) {
|
|
3467
|
-
var h = 0;
|
|
3468
|
-
var k, i = 0, len = str.length;
|
|
3469
|
-
for (; len >= 4; ++i, len -= 4) {
|
|
3470
|
-
k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;
|
|
3471
|
-
k = /* Math.imul(k, m): */
|
|
3472
|
-
(k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);
|
|
3473
|
-
k ^= /* k >>> r: */
|
|
3474
|
-
k >>> 24;
|
|
3475
|
-
h = /* Math.imul(k, m): */
|
|
3476
|
-
(k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
3477
|
-
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
3478
|
-
}
|
|
3479
|
-
switch (len) {
|
|
3480
|
-
case 3:
|
|
3481
|
-
h ^= (str.charCodeAt(i + 2) & 255) << 16;
|
|
3482
|
-
case 2:
|
|
3483
|
-
h ^= (str.charCodeAt(i + 1) & 255) << 8;
|
|
3484
|
-
case 1:
|
|
3485
|
-
h ^= str.charCodeAt(i) & 255;
|
|
3486
|
-
h = /* Math.imul(h, m): */
|
|
3487
|
-
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
3488
|
-
}
|
|
3489
|
-
h ^= h >>> 13;
|
|
3490
|
-
h = /* Math.imul(h, m): */
|
|
3491
|
-
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
3492
|
-
return ((h ^ h >>> 15) >>> 0).toString(36);
|
|
3493
|
-
}
|
|
3494
|
-
|
|
3495
|
-
// ../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
3496
|
-
var unitlessKeys = {
|
|
3497
|
-
animationIterationCount: 1,
|
|
3498
|
-
aspectRatio: 1,
|
|
3499
|
-
borderImageOutset: 1,
|
|
3500
|
-
borderImageSlice: 1,
|
|
3501
|
-
borderImageWidth: 1,
|
|
3502
|
-
boxFlex: 1,
|
|
3503
|
-
boxFlexGroup: 1,
|
|
3504
|
-
boxOrdinalGroup: 1,
|
|
3505
|
-
columnCount: 1,
|
|
3506
|
-
columns: 1,
|
|
3507
|
-
flex: 1,
|
|
3508
|
-
flexGrow: 1,
|
|
3509
|
-
flexPositive: 1,
|
|
3510
|
-
flexShrink: 1,
|
|
3511
|
-
flexNegative: 1,
|
|
3512
|
-
flexOrder: 1,
|
|
3513
|
-
gridRow: 1,
|
|
3514
|
-
gridRowEnd: 1,
|
|
3515
|
-
gridRowSpan: 1,
|
|
3516
|
-
gridRowStart: 1,
|
|
3517
|
-
gridColumn: 1,
|
|
3518
|
-
gridColumnEnd: 1,
|
|
3519
|
-
gridColumnSpan: 1,
|
|
3520
|
-
gridColumnStart: 1,
|
|
3521
|
-
msGridRow: 1,
|
|
3522
|
-
msGridRowSpan: 1,
|
|
3523
|
-
msGridColumn: 1,
|
|
3524
|
-
msGridColumnSpan: 1,
|
|
3525
|
-
fontWeight: 1,
|
|
3526
|
-
lineHeight: 1,
|
|
3527
|
-
opacity: 1,
|
|
3528
|
-
order: 1,
|
|
3529
|
-
orphans: 1,
|
|
3530
|
-
tabSize: 1,
|
|
3531
|
-
widows: 1,
|
|
3532
|
-
zIndex: 1,
|
|
3533
|
-
zoom: 1,
|
|
3534
|
-
WebkitLineClamp: 1,
|
|
3535
|
-
// SVG-related properties
|
|
3536
|
-
fillOpacity: 1,
|
|
3537
|
-
floodOpacity: 1,
|
|
3538
|
-
stopOpacity: 1,
|
|
3539
|
-
strokeDasharray: 1,
|
|
3540
|
-
strokeDashoffset: 1,
|
|
3541
|
-
strokeMiterlimit: 1,
|
|
3542
|
-
strokeOpacity: 1,
|
|
3543
|
-
strokeWidth: 1
|
|
3544
|
-
};
|
|
3545
|
-
|
|
3546
|
-
// ../../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js
|
|
3547
|
-
var ILLEGAL_ESCAPE_SEQUENCE_ERROR = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
3548
|
-
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';".
|
|
3549
|
-
You can read more about this here:
|
|
3550
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`;
|
|
3551
|
-
var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
|
|
3552
|
-
var hyphenateRegex = /[A-Z]|^ms/g;
|
|
3553
|
-
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
3554
|
-
var isCustomProperty = function isCustomProperty2(property) {
|
|
3555
|
-
return property.charCodeAt(1) === 45;
|
|
3556
|
-
};
|
|
3557
|
-
var isProcessableValue = function isProcessableValue2(value) {
|
|
3558
|
-
return value != null && typeof value !== "boolean";
|
|
3559
|
-
};
|
|
3560
|
-
var processStyleName = /* @__PURE__ */ memoize(function(styleName) {
|
|
3561
|
-
return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
|
|
3562
|
-
});
|
|
3563
|
-
var processStyleValue = function processStyleValue2(key, value) {
|
|
3564
|
-
switch (key) {
|
|
3565
|
-
case "animation":
|
|
3566
|
-
case "animationName": {
|
|
3567
|
-
if (typeof value === "string") {
|
|
3568
|
-
return value.replace(animationRegex, function(match2, p1, p2) {
|
|
3569
|
-
cursor = {
|
|
3570
|
-
name: p1,
|
|
3571
|
-
styles: p2,
|
|
3572
|
-
next: cursor
|
|
3573
|
-
};
|
|
3574
|
-
return p1;
|
|
3575
|
-
});
|
|
3576
|
-
}
|
|
3577
|
-
}
|
|
3578
|
-
}
|
|
3579
|
-
if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) {
|
|
3580
|
-
return value + "px";
|
|
3581
|
-
}
|
|
3582
|
-
return value;
|
|
3583
|
-
};
|
|
3584
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3585
|
-
contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
|
|
3586
|
-
contentValues = ["normal", "none", "initial", "inherit", "unset"];
|
|
3587
|
-
oldProcessStyleValue = processStyleValue;
|
|
3588
|
-
msPattern = /^-ms-/;
|
|
3589
|
-
hyphenPattern = /-(.)/g;
|
|
3590
|
-
hyphenatedCache = {};
|
|
3591
|
-
processStyleValue = function processStyleValue3(key, value) {
|
|
3592
|
-
if (key === "content") {
|
|
3593
|
-
if (typeof value !== "string" || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
|
|
3594
|
-
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
|
|
3595
|
-
}
|
|
3596
|
-
}
|
|
3597
|
-
var processed = oldProcessStyleValue(key, value);
|
|
3598
|
-
if (processed !== "" && !isCustomProperty(key) && key.indexOf("-") !== -1 && hyphenatedCache[key] === void 0) {
|
|
3599
|
-
hyphenatedCache[key] = true;
|
|
3600
|
-
console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, "ms-").replace(hyphenPattern, function(str, _char) {
|
|
3601
|
-
return _char.toUpperCase();
|
|
3602
|
-
}) + "?");
|
|
3603
|
-
}
|
|
3604
|
-
return processed;
|
|
3605
|
-
};
|
|
3606
|
-
}
|
|
3607
|
-
var contentValuePattern;
|
|
3608
|
-
var contentValues;
|
|
3609
|
-
var oldProcessStyleValue;
|
|
3610
|
-
var msPattern;
|
|
3611
|
-
var hyphenPattern;
|
|
3612
|
-
var hyphenatedCache;
|
|
3613
|
-
var noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
|
3614
|
-
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
3615
|
-
if (interpolation == null) {
|
|
3616
|
-
return "";
|
|
3617
|
-
}
|
|
3618
|
-
if (interpolation.__emotion_styles !== void 0) {
|
|
3619
|
-
if (process.env.NODE_ENV !== "production" && interpolation.toString() === "NO_COMPONENT_SELECTOR") {
|
|
3620
|
-
throw new Error(noComponentSelectorMessage);
|
|
3621
|
-
}
|
|
3622
|
-
return interpolation;
|
|
3623
|
-
}
|
|
3624
|
-
switch (typeof interpolation) {
|
|
3625
|
-
case "boolean": {
|
|
3626
|
-
return "";
|
|
3627
|
-
}
|
|
3628
|
-
case "object": {
|
|
3629
|
-
if (interpolation.anim === 1) {
|
|
3630
|
-
cursor = {
|
|
3631
|
-
name: interpolation.name,
|
|
3632
|
-
styles: interpolation.styles,
|
|
3633
|
-
next: cursor
|
|
3634
|
-
};
|
|
3635
|
-
return interpolation.name;
|
|
3636
|
-
}
|
|
3637
|
-
if (interpolation.styles !== void 0) {
|
|
3638
|
-
var next2 = interpolation.next;
|
|
3639
|
-
if (next2 !== void 0) {
|
|
3640
|
-
while (next2 !== void 0) {
|
|
3641
|
-
cursor = {
|
|
3642
|
-
name: next2.name,
|
|
3643
|
-
styles: next2.styles,
|
|
3644
|
-
next: cursor
|
|
3645
|
-
};
|
|
3646
|
-
next2 = next2.next;
|
|
3647
|
-
}
|
|
3648
|
-
}
|
|
3649
|
-
var styles2 = interpolation.styles + ";";
|
|
3650
|
-
if (process.env.NODE_ENV !== "production" && interpolation.map !== void 0) {
|
|
3651
|
-
styles2 += interpolation.map;
|
|
3652
|
-
}
|
|
3653
|
-
return styles2;
|
|
3654
|
-
}
|
|
3655
|
-
return createStringFromObject(mergedProps, registered, interpolation);
|
|
3656
|
-
}
|
|
3657
|
-
case "function": {
|
|
3658
|
-
if (mergedProps !== void 0) {
|
|
3659
|
-
var previousCursor = cursor;
|
|
3660
|
-
var result = interpolation(mergedProps);
|
|
3661
|
-
cursor = previousCursor;
|
|
3662
|
-
return handleInterpolation(mergedProps, registered, result);
|
|
3663
|
-
} else if (process.env.NODE_ENV !== "production") {
|
|
3664
|
-
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}`");
|
|
3665
|
-
}
|
|
3666
|
-
break;
|
|
3667
|
-
}
|
|
3668
|
-
case "string":
|
|
3669
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3670
|
-
var matched = [];
|
|
3671
|
-
var replaced = interpolation.replace(animationRegex, function(match2, p1, p2) {
|
|
3672
|
-
var fakeVarName = "animation" + matched.length;
|
|
3673
|
-
matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, "") + "`");
|
|
3674
|
-
return "${" + fakeVarName + "}";
|
|
3675
|
-
});
|
|
3676
|
-
if (matched.length) {
|
|
3677
|
-
console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(matched, ["`" + replaced + "`"]).join("\n") + "\n\nYou should wrap it with `css` like this:\n\n" + ("css`" + replaced + "`"));
|
|
3678
|
-
}
|
|
3679
|
-
}
|
|
3680
|
-
break;
|
|
3681
|
-
}
|
|
3682
|
-
if (registered == null) {
|
|
3683
|
-
return interpolation;
|
|
3684
|
-
}
|
|
3685
|
-
var cached = registered[interpolation];
|
|
3686
|
-
return cached !== void 0 ? cached : interpolation;
|
|
3687
|
-
}
|
|
3688
|
-
function createStringFromObject(mergedProps, registered, obj) {
|
|
3689
|
-
var string = "";
|
|
3690
|
-
if (Array.isArray(obj)) {
|
|
3691
|
-
for (var i = 0; i < obj.length; i++) {
|
|
3692
|
-
string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
|
|
3693
|
-
}
|
|
3694
|
-
} else {
|
|
3695
|
-
for (var _key in obj) {
|
|
3696
|
-
var value = obj[_key];
|
|
3697
|
-
if (typeof value !== "object") {
|
|
3698
|
-
if (registered != null && registered[value] !== void 0) {
|
|
3699
|
-
string += _key + "{" + registered[value] + "}";
|
|
3700
|
-
} else if (isProcessableValue(value)) {
|
|
3701
|
-
string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
|
|
3702
|
-
}
|
|
3703
|
-
} else {
|
|
3704
|
-
if (_key === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production") {
|
|
3705
|
-
throw new Error(noComponentSelectorMessage);
|
|
3706
|
-
}
|
|
3707
|
-
if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
|
|
3708
|
-
for (var _i = 0; _i < value.length; _i++) {
|
|
3709
|
-
if (isProcessableValue(value[_i])) {
|
|
3710
|
-
string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
|
|
3711
|
-
}
|
|
3712
|
-
}
|
|
3713
|
-
} else {
|
|
3714
|
-
var interpolated = handleInterpolation(mergedProps, registered, value);
|
|
3715
|
-
switch (_key) {
|
|
3716
|
-
case "animation":
|
|
3717
|
-
case "animationName": {
|
|
3718
|
-
string += processStyleName(_key) + ":" + interpolated + ";";
|
|
3719
|
-
break;
|
|
3720
|
-
}
|
|
3721
|
-
default: {
|
|
3722
|
-
if (process.env.NODE_ENV !== "production" && _key === "undefined") {
|
|
3723
|
-
console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
|
|
3724
|
-
}
|
|
3725
|
-
string += _key + "{" + interpolated + "}";
|
|
3726
|
-
}
|
|
3727
|
-
}
|
|
3728
|
-
}
|
|
3729
|
-
}
|
|
3730
|
-
}
|
|
3731
|
-
}
|
|
3732
|
-
return string;
|
|
3733
|
-
}
|
|
3734
|
-
var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
|
|
3735
|
-
var sourceMapPattern;
|
|
3736
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3737
|
-
sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
|
|
3738
|
-
}
|
|
3739
|
-
var cursor;
|
|
3740
|
-
var serializeStyles = function serializeStyles2(args, registered, mergedProps) {
|
|
3741
|
-
if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
|
|
3742
|
-
return args[0];
|
|
3743
|
-
}
|
|
3744
|
-
var stringMode = true;
|
|
3745
|
-
var styles2 = "";
|
|
3746
|
-
cursor = void 0;
|
|
3747
|
-
var strings = args[0];
|
|
3748
|
-
if (strings == null || strings.raw === void 0) {
|
|
3749
|
-
stringMode = false;
|
|
3750
|
-
styles2 += handleInterpolation(mergedProps, registered, strings);
|
|
3751
|
-
} else {
|
|
3752
|
-
if (process.env.NODE_ENV !== "production" && strings[0] === void 0) {
|
|
3753
|
-
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
3754
|
-
}
|
|
3755
|
-
styles2 += strings[0];
|
|
3756
|
-
}
|
|
3757
|
-
for (var i = 1; i < args.length; i++) {
|
|
3758
|
-
styles2 += handleInterpolation(mergedProps, registered, args[i]);
|
|
3759
|
-
if (stringMode) {
|
|
3760
|
-
if (process.env.NODE_ENV !== "production" && strings[i] === void 0) {
|
|
3761
|
-
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
3762
|
-
}
|
|
3763
|
-
styles2 += strings[i];
|
|
3764
|
-
}
|
|
3765
|
-
}
|
|
3766
|
-
var sourceMap;
|
|
3767
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3768
|
-
styles2 = styles2.replace(sourceMapPattern, function(match3) {
|
|
3769
|
-
sourceMap = match3;
|
|
3770
|
-
return "";
|
|
3771
|
-
});
|
|
3772
|
-
}
|
|
3773
|
-
labelPattern.lastIndex = 0;
|
|
3774
|
-
var identifierName = "";
|
|
3775
|
-
var match2;
|
|
3776
|
-
while ((match2 = labelPattern.exec(styles2)) !== null) {
|
|
3777
|
-
identifierName += "-" + // $FlowFixMe we know it's not null
|
|
3778
|
-
match2[1];
|
|
3779
|
-
}
|
|
3780
|
-
var name = murmur2(styles2) + identifierName;
|
|
3781
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3782
|
-
return {
|
|
3783
|
-
name,
|
|
3784
|
-
styles: styles2,
|
|
3785
|
-
map: sourceMap,
|
|
3786
|
-
next: cursor,
|
|
3787
|
-
toString: function toString() {
|
|
3788
|
-
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).";
|
|
3789
|
-
}
|
|
3790
|
-
};
|
|
3791
|
-
}
|
|
3792
|
-
return {
|
|
3793
|
-
name,
|
|
3794
|
-
styles: styles2,
|
|
3795
|
-
next: cursor
|
|
3796
|
-
};
|
|
3797
|
-
};
|
|
3798
|
-
|
|
3799
2991
|
// ../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js
|
|
3800
2992
|
var React = __toESM(require("react"));
|
|
3801
|
-
var isBrowser3 = typeof document !== "undefined";
|
|
3802
|
-
var syncFallback = function syncFallback2(create) {
|
|
3803
|
-
return create();
|
|
3804
|
-
};
|
|
3805
|
-
var useInsertionEffect2 = React["useInsertionEffect"] ? React["useInsertionEffect"] : false;
|
|
3806
|
-
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser3 ? syncFallback : useInsertionEffect2 || syncFallback;
|
|
3807
|
-
var useInsertionEffectWithLayoutFallback = useInsertionEffect2 || React.useLayoutEffect;
|
|
3808
2993
|
|
|
3809
|
-
// ../../node_modules/@emotion/react/dist/emotion-element-
|
|
3810
|
-
var
|
|
3811
|
-
var hasOwn = {}.hasOwnProperty;
|
|
2994
|
+
// ../../node_modules/@emotion/react/dist/emotion-element-b4c8b265.esm.js
|
|
2995
|
+
var isBrowser2 = typeof document !== "undefined";
|
|
3812
2996
|
var EmotionCacheContext = /* @__PURE__ */ React2.createContext(
|
|
3813
2997
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
3814
2998
|
// because this module is primarily intended for the browser and node
|
|
@@ -3820,9 +3004,6 @@ var EmotionCacheContext = /* @__PURE__ */ React2.createContext(
|
|
|
3820
3004
|
key: "css"
|
|
3821
3005
|
}) : null
|
|
3822
3006
|
);
|
|
3823
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3824
|
-
EmotionCacheContext.displayName = "EmotionCacheContext";
|
|
3825
|
-
}
|
|
3826
3007
|
var CacheProvider = EmotionCacheContext.Provider;
|
|
3827
3008
|
var withEmotionCache = function withEmotionCache2(func) {
|
|
3828
3009
|
return /* @__PURE__ */ (0, import_react.forwardRef)(function(props, ref) {
|
|
@@ -3830,7 +3011,7 @@ var withEmotionCache = function withEmotionCache2(func) {
|
|
|
3830
3011
|
return func(props, cache, ref);
|
|
3831
3012
|
});
|
|
3832
3013
|
};
|
|
3833
|
-
if (!
|
|
3014
|
+
if (!isBrowser2) {
|
|
3834
3015
|
withEmotionCache = function withEmotionCache3(func) {
|
|
3835
3016
|
return function(props) {
|
|
3836
3017
|
var cache = (0, import_react.useContext)(EmotionCacheContext);
|
|
@@ -3848,23 +3029,14 @@ if (!isBrowser4) {
|
|
|
3848
3029
|
};
|
|
3849
3030
|
}
|
|
3850
3031
|
var ThemeContext = /* @__PURE__ */ React2.createContext({});
|
|
3851
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3852
|
-
ThemeContext.displayName = "EmotionThemeContext";
|
|
3853
|
-
}
|
|
3854
3032
|
var useTheme = function useTheme2() {
|
|
3855
3033
|
return React2.useContext(ThemeContext);
|
|
3856
3034
|
};
|
|
3857
3035
|
var getTheme = function getTheme2(outerTheme, theme2) {
|
|
3858
3036
|
if (typeof theme2 === "function") {
|
|
3859
3037
|
var mergedTheme = theme2(outerTheme);
|
|
3860
|
-
if (process.env.NODE_ENV !== "production" && (mergedTheme == null || typeof mergedTheme !== "object" || Array.isArray(mergedTheme))) {
|
|
3861
|
-
throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");
|
|
3862
|
-
}
|
|
3863
3038
|
return mergedTheme;
|
|
3864
3039
|
}
|
|
3865
|
-
if (process.env.NODE_ENV !== "production" && (theme2 == null || typeof theme2 !== "object" || Array.isArray(theme2))) {
|
|
3866
|
-
throw new Error("[ThemeProvider] Please make your theme prop a plain object");
|
|
3867
|
-
}
|
|
3868
3040
|
return _extends({}, outerTheme, theme2);
|
|
3869
3041
|
};
|
|
3870
3042
|
var createCacheWithTheme = /* @__PURE__ */ weakMemoize(function(outerTheme) {
|
|
@@ -3894,410 +3066,12 @@ function withTheme(Component) {
|
|
|
3894
3066
|
WithTheme.displayName = "WithTheme(" + componentName + ")";
|
|
3895
3067
|
return hoistNonReactStatics(WithTheme, Component);
|
|
3896
3068
|
}
|
|
3897
|
-
var
|
|
3898
|
-
var labelPropName = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__";
|
|
3899
|
-
var Insertion = function Insertion2(_ref) {
|
|
3900
|
-
var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
|
|
3901
|
-
registerStyles(cache, serialized, isStringTag);
|
|
3902
|
-
var rules = useInsertionEffectAlwaysWithSyncFallback(function() {
|
|
3903
|
-
return insertStyles(cache, serialized, isStringTag);
|
|
3904
|
-
});
|
|
3905
|
-
if (!isBrowser4 && rules !== void 0) {
|
|
3906
|
-
var _ref2;
|
|
3907
|
-
var serializedNames = serialized.name;
|
|
3908
|
-
var next2 = serialized.next;
|
|
3909
|
-
while (next2 !== void 0) {
|
|
3910
|
-
serializedNames += " " + next2.name;
|
|
3911
|
-
next2 = next2.next;
|
|
3912
|
-
}
|
|
3913
|
-
return /* @__PURE__ */ React2.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
|
|
3914
|
-
__html: rules
|
|
3915
|
-
}, _ref2.nonce = cache.sheet.nonce, _ref2));
|
|
3916
|
-
}
|
|
3917
|
-
return null;
|
|
3918
|
-
};
|
|
3919
|
-
var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
|
|
3920
|
-
var cssProp = props.css;
|
|
3921
|
-
if (typeof cssProp === "string" && cache.registered[cssProp] !== void 0) {
|
|
3922
|
-
cssProp = cache.registered[cssProp];
|
|
3923
|
-
}
|
|
3924
|
-
var WrappedComponent = props[typePropName];
|
|
3925
|
-
var registeredStyles = [cssProp];
|
|
3926
|
-
var className = "";
|
|
3927
|
-
if (typeof props.className === "string") {
|
|
3928
|
-
className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
|
|
3929
|
-
} else if (props.className != null) {
|
|
3930
|
-
className = props.className + " ";
|
|
3931
|
-
}
|
|
3932
|
-
var serialized = serializeStyles(registeredStyles, void 0, React2.useContext(ThemeContext));
|
|
3933
|
-
if (process.env.NODE_ENV !== "production" && serialized.name.indexOf("-") === -1) {
|
|
3934
|
-
var labelFromStack = props[labelPropName];
|
|
3935
|
-
if (labelFromStack) {
|
|
3936
|
-
serialized = serializeStyles([serialized, "label:" + labelFromStack + ";"]);
|
|
3937
|
-
}
|
|
3938
|
-
}
|
|
3939
|
-
className += cache.key + "-" + serialized.name;
|
|
3940
|
-
var newProps = {};
|
|
3941
|
-
for (var key in props) {
|
|
3942
|
-
if (hasOwn.call(props, key) && key !== "css" && key !== typePropName && (process.env.NODE_ENV === "production" || key !== labelPropName)) {
|
|
3943
|
-
newProps[key] = props[key];
|
|
3944
|
-
}
|
|
3945
|
-
}
|
|
3946
|
-
newProps.ref = ref;
|
|
3947
|
-
newProps.className = className;
|
|
3948
|
-
return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(Insertion, {
|
|
3949
|
-
cache,
|
|
3950
|
-
serialized,
|
|
3951
|
-
isStringTag: typeof WrappedComponent === "string"
|
|
3952
|
-
}), /* @__PURE__ */ React2.createElement(WrappedComponent, newProps));
|
|
3953
|
-
});
|
|
3954
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3955
|
-
Emotion.displayName = "EmotionCssPropInternal";
|
|
3956
|
-
}
|
|
3069
|
+
var hasOwn = {}.hasOwnProperty;
|
|
3957
3070
|
|
|
3958
3071
|
// ../../node_modules/@emotion/react/dist/emotion-react.esm.js
|
|
3959
3072
|
var React3 = __toESM(require("react"));
|
|
3960
3073
|
var import_extends2 = __toESM(require_extends());
|
|
3961
3074
|
var import_hoist_non_react_statics2 = __toESM(require_hoist_non_react_statics_cjs());
|
|
3962
|
-
var pkg = {
|
|
3963
|
-
name: "@emotion/react",
|
|
3964
|
-
version: "11.11.4",
|
|
3965
|
-
main: "dist/emotion-react.cjs.js",
|
|
3966
|
-
module: "dist/emotion-react.esm.js",
|
|
3967
|
-
browser: {
|
|
3968
|
-
"./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js"
|
|
3969
|
-
},
|
|
3970
|
-
exports: {
|
|
3971
|
-
".": {
|
|
3972
|
-
module: {
|
|
3973
|
-
worker: "./dist/emotion-react.worker.esm.js",
|
|
3974
|
-
browser: "./dist/emotion-react.browser.esm.js",
|
|
3975
|
-
"default": "./dist/emotion-react.esm.js"
|
|
3976
|
-
},
|
|
3977
|
-
"import": "./dist/emotion-react.cjs.mjs",
|
|
3978
|
-
"default": "./dist/emotion-react.cjs.js"
|
|
3979
|
-
},
|
|
3980
|
-
"./jsx-runtime": {
|
|
3981
|
-
module: {
|
|
3982
|
-
worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",
|
|
3983
|
-
browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",
|
|
3984
|
-
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"
|
|
3985
|
-
},
|
|
3986
|
-
"import": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",
|
|
3987
|
-
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
|
|
3988
|
-
},
|
|
3989
|
-
"./_isolated-hnrs": {
|
|
3990
|
-
module: {
|
|
3991
|
-
worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",
|
|
3992
|
-
browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",
|
|
3993
|
-
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"
|
|
3994
|
-
},
|
|
3995
|
-
"import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",
|
|
3996
|
-
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
|
|
3997
|
-
},
|
|
3998
|
-
"./jsx-dev-runtime": {
|
|
3999
|
-
module: {
|
|
4000
|
-
worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",
|
|
4001
|
-
browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",
|
|
4002
|
-
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"
|
|
4003
|
-
},
|
|
4004
|
-
"import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",
|
|
4005
|
-
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
|
|
4006
|
-
},
|
|
4007
|
-
"./package.json": "./package.json",
|
|
4008
|
-
"./types/css-prop": "./types/css-prop.d.ts",
|
|
4009
|
-
"./macro": {
|
|
4010
|
-
types: {
|
|
4011
|
-
"import": "./macro.d.mts",
|
|
4012
|
-
"default": "./macro.d.ts"
|
|
4013
|
-
},
|
|
4014
|
-
"default": "./macro.js"
|
|
4015
|
-
}
|
|
4016
|
-
},
|
|
4017
|
-
types: "types/index.d.ts",
|
|
4018
|
-
files: [
|
|
4019
|
-
"src",
|
|
4020
|
-
"dist",
|
|
4021
|
-
"jsx-runtime",
|
|
4022
|
-
"jsx-dev-runtime",
|
|
4023
|
-
"_isolated-hnrs",
|
|
4024
|
-
"types/*.d.ts",
|
|
4025
|
-
"macro.*"
|
|
4026
|
-
],
|
|
4027
|
-
sideEffects: false,
|
|
4028
|
-
author: "Emotion Contributors",
|
|
4029
|
-
license: "MIT",
|
|
4030
|
-
scripts: {
|
|
4031
|
-
"test:typescript": "dtslint types"
|
|
4032
|
-
},
|
|
4033
|
-
dependencies: {
|
|
4034
|
-
"@babel/runtime": "^7.18.3",
|
|
4035
|
-
"@emotion/babel-plugin": "^11.11.0",
|
|
4036
|
-
"@emotion/cache": "^11.11.0",
|
|
4037
|
-
"@emotion/serialize": "^1.1.3",
|
|
4038
|
-
"@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
|
|
4039
|
-
"@emotion/utils": "^1.2.1",
|
|
4040
|
-
"@emotion/weak-memoize": "^0.3.1",
|
|
4041
|
-
"hoist-non-react-statics": "^3.3.1"
|
|
4042
|
-
},
|
|
4043
|
-
peerDependencies: {
|
|
4044
|
-
react: ">=16.8.0"
|
|
4045
|
-
},
|
|
4046
|
-
peerDependenciesMeta: {
|
|
4047
|
-
"@types/react": {
|
|
4048
|
-
optional: true
|
|
4049
|
-
}
|
|
4050
|
-
},
|
|
4051
|
-
devDependencies: {
|
|
4052
|
-
"@definitelytyped/dtslint": "0.0.112",
|
|
4053
|
-
"@emotion/css": "11.11.2",
|
|
4054
|
-
"@emotion/css-prettifier": "1.1.3",
|
|
4055
|
-
"@emotion/server": "11.11.0",
|
|
4056
|
-
"@emotion/styled": "11.11.0",
|
|
4057
|
-
"html-tag-names": "^1.1.2",
|
|
4058
|
-
react: "16.14.0",
|
|
4059
|
-
"svg-tag-names": "^1.1.1",
|
|
4060
|
-
typescript: "^4.5.5"
|
|
4061
|
-
},
|
|
4062
|
-
repository: "https://github.com/emotion-js/emotion/tree/main/packages/react",
|
|
4063
|
-
publishConfig: {
|
|
4064
|
-
access: "public"
|
|
4065
|
-
},
|
|
4066
|
-
"umd:main": "dist/emotion-react.umd.min.js",
|
|
4067
|
-
preconstruct: {
|
|
4068
|
-
entrypoints: [
|
|
4069
|
-
"./index.js",
|
|
4070
|
-
"./jsx-runtime.js",
|
|
4071
|
-
"./jsx-dev-runtime.js",
|
|
4072
|
-
"./_isolated-hnrs.js"
|
|
4073
|
-
],
|
|
4074
|
-
umdName: "emotionReact",
|
|
4075
|
-
exports: {
|
|
4076
|
-
envConditions: [
|
|
4077
|
-
"browser",
|
|
4078
|
-
"worker"
|
|
4079
|
-
],
|
|
4080
|
-
extra: {
|
|
4081
|
-
"./types/css-prop": "./types/css-prop.d.ts",
|
|
4082
|
-
"./macro": {
|
|
4083
|
-
types: {
|
|
4084
|
-
"import": "./macro.d.mts",
|
|
4085
|
-
"default": "./macro.d.ts"
|
|
4086
|
-
},
|
|
4087
|
-
"default": "./macro.js"
|
|
4088
|
-
}
|
|
4089
|
-
}
|
|
4090
|
-
}
|
|
4091
|
-
}
|
|
4092
|
-
};
|
|
4093
|
-
var warnedAboutCssPropForGlobal = false;
|
|
4094
|
-
var Global = /* @__PURE__ */ withEmotionCache(function(props, cache) {
|
|
4095
|
-
if (process.env.NODE_ENV !== "production" && !warnedAboutCssPropForGlobal && // check for className as well since the user is
|
|
4096
|
-
// probably using the custom createElement which
|
|
4097
|
-
// means it will be turned into a className prop
|
|
4098
|
-
// $FlowFixMe I don't really want to add it to the type since it shouldn't be used
|
|
4099
|
-
(props.className || props.css)) {
|
|
4100
|
-
console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
|
|
4101
|
-
warnedAboutCssPropForGlobal = true;
|
|
4102
|
-
}
|
|
4103
|
-
var styles2 = props.styles;
|
|
4104
|
-
var serialized = serializeStyles([styles2], void 0, React3.useContext(ThemeContext));
|
|
4105
|
-
if (!isBrowser4) {
|
|
4106
|
-
var _ref;
|
|
4107
|
-
var serializedNames = serialized.name;
|
|
4108
|
-
var serializedStyles = serialized.styles;
|
|
4109
|
-
var next2 = serialized.next;
|
|
4110
|
-
while (next2 !== void 0) {
|
|
4111
|
-
serializedNames += " " + next2.name;
|
|
4112
|
-
serializedStyles += next2.styles;
|
|
4113
|
-
next2 = next2.next;
|
|
4114
|
-
}
|
|
4115
|
-
var shouldCache = cache.compat === true;
|
|
4116
|
-
var rules = cache.insert("", {
|
|
4117
|
-
name: serializedNames,
|
|
4118
|
-
styles: serializedStyles
|
|
4119
|
-
}, cache.sheet, shouldCache);
|
|
4120
|
-
if (shouldCache) {
|
|
4121
|
-
return null;
|
|
4122
|
-
}
|
|
4123
|
-
return /* @__PURE__ */ React3.createElement("style", (_ref = {}, _ref["data-emotion"] = cache.key + "-global " + serializedNames, _ref.dangerouslySetInnerHTML = {
|
|
4124
|
-
__html: rules
|
|
4125
|
-
}, _ref.nonce = cache.sheet.nonce, _ref));
|
|
4126
|
-
}
|
|
4127
|
-
var sheetRef = React3.useRef();
|
|
4128
|
-
useInsertionEffectWithLayoutFallback(function() {
|
|
4129
|
-
var key = cache.key + "-global";
|
|
4130
|
-
var sheet = new cache.sheet.constructor({
|
|
4131
|
-
key,
|
|
4132
|
-
nonce: cache.sheet.nonce,
|
|
4133
|
-
container: cache.sheet.container,
|
|
4134
|
-
speedy: cache.sheet.isSpeedy
|
|
4135
|
-
});
|
|
4136
|
-
var rehydrating = false;
|
|
4137
|
-
var node2 = document.querySelector('style[data-emotion="' + key + " " + serialized.name + '"]');
|
|
4138
|
-
if (cache.sheet.tags.length) {
|
|
4139
|
-
sheet.before = cache.sheet.tags[0];
|
|
4140
|
-
}
|
|
4141
|
-
if (node2 !== null) {
|
|
4142
|
-
rehydrating = true;
|
|
4143
|
-
node2.setAttribute("data-emotion", key);
|
|
4144
|
-
sheet.hydrate([node2]);
|
|
4145
|
-
}
|
|
4146
|
-
sheetRef.current = [sheet, rehydrating];
|
|
4147
|
-
return function() {
|
|
4148
|
-
sheet.flush();
|
|
4149
|
-
};
|
|
4150
|
-
}, [cache]);
|
|
4151
|
-
useInsertionEffectWithLayoutFallback(function() {
|
|
4152
|
-
var sheetRefCurrent = sheetRef.current;
|
|
4153
|
-
var sheet = sheetRefCurrent[0], rehydrating = sheetRefCurrent[1];
|
|
4154
|
-
if (rehydrating) {
|
|
4155
|
-
sheetRefCurrent[1] = false;
|
|
4156
|
-
return;
|
|
4157
|
-
}
|
|
4158
|
-
if (serialized.next !== void 0) {
|
|
4159
|
-
insertStyles(cache, serialized.next, true);
|
|
4160
|
-
}
|
|
4161
|
-
if (sheet.tags.length) {
|
|
4162
|
-
var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
|
|
4163
|
-
sheet.before = element;
|
|
4164
|
-
sheet.flush();
|
|
4165
|
-
}
|
|
4166
|
-
cache.insert("", serialized, sheet, false);
|
|
4167
|
-
}, [cache, serialized.name]);
|
|
4168
|
-
return null;
|
|
4169
|
-
});
|
|
4170
|
-
if (process.env.NODE_ENV !== "production") {
|
|
4171
|
-
Global.displayName = "EmotionGlobal";
|
|
4172
|
-
}
|
|
4173
|
-
var classnames = function classnames2(args) {
|
|
4174
|
-
var len = args.length;
|
|
4175
|
-
var i = 0;
|
|
4176
|
-
var cls = "";
|
|
4177
|
-
for (; i < len; i++) {
|
|
4178
|
-
var arg = args[i];
|
|
4179
|
-
if (arg == null)
|
|
4180
|
-
continue;
|
|
4181
|
-
var toAdd = void 0;
|
|
4182
|
-
switch (typeof arg) {
|
|
4183
|
-
case "boolean":
|
|
4184
|
-
break;
|
|
4185
|
-
case "object": {
|
|
4186
|
-
if (Array.isArray(arg)) {
|
|
4187
|
-
toAdd = classnames2(arg);
|
|
4188
|
-
} else {
|
|
4189
|
-
if (process.env.NODE_ENV !== "production" && arg.styles !== void 0 && arg.name !== void 0) {
|
|
4190
|
-
console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component.");
|
|
4191
|
-
}
|
|
4192
|
-
toAdd = "";
|
|
4193
|
-
for (var k in arg) {
|
|
4194
|
-
if (arg[k] && k) {
|
|
4195
|
-
toAdd && (toAdd += " ");
|
|
4196
|
-
toAdd += k;
|
|
4197
|
-
}
|
|
4198
|
-
}
|
|
4199
|
-
}
|
|
4200
|
-
break;
|
|
4201
|
-
}
|
|
4202
|
-
default: {
|
|
4203
|
-
toAdd = arg;
|
|
4204
|
-
}
|
|
4205
|
-
}
|
|
4206
|
-
if (toAdd) {
|
|
4207
|
-
cls && (cls += " ");
|
|
4208
|
-
cls += toAdd;
|
|
4209
|
-
}
|
|
4210
|
-
}
|
|
4211
|
-
return cls;
|
|
4212
|
-
};
|
|
4213
|
-
function merge(registered, css2, className) {
|
|
4214
|
-
var registeredStyles = [];
|
|
4215
|
-
var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
|
|
4216
|
-
if (registeredStyles.length < 2) {
|
|
4217
|
-
return className;
|
|
4218
|
-
}
|
|
4219
|
-
return rawClassName + css2(registeredStyles);
|
|
4220
|
-
}
|
|
4221
|
-
var Insertion3 = function Insertion4(_ref) {
|
|
4222
|
-
var cache = _ref.cache, serializedArr = _ref.serializedArr;
|
|
4223
|
-
var rules = useInsertionEffectAlwaysWithSyncFallback(function() {
|
|
4224
|
-
var rules2 = "";
|
|
4225
|
-
for (var i = 0; i < serializedArr.length; i++) {
|
|
4226
|
-
var res = insertStyles(cache, serializedArr[i], false);
|
|
4227
|
-
if (!isBrowser4 && res !== void 0) {
|
|
4228
|
-
rules2 += res;
|
|
4229
|
-
}
|
|
4230
|
-
}
|
|
4231
|
-
if (!isBrowser4) {
|
|
4232
|
-
return rules2;
|
|
4233
|
-
}
|
|
4234
|
-
});
|
|
4235
|
-
if (!isBrowser4 && rules.length !== 0) {
|
|
4236
|
-
var _ref2;
|
|
4237
|
-
return /* @__PURE__ */ React3.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedArr.map(function(serialized) {
|
|
4238
|
-
return serialized.name;
|
|
4239
|
-
}).join(" "), _ref2.dangerouslySetInnerHTML = {
|
|
4240
|
-
__html: rules
|
|
4241
|
-
}, _ref2.nonce = cache.sheet.nonce, _ref2));
|
|
4242
|
-
}
|
|
4243
|
-
return null;
|
|
4244
|
-
};
|
|
4245
|
-
var ClassNames = /* @__PURE__ */ withEmotionCache(function(props, cache) {
|
|
4246
|
-
var hasRendered = false;
|
|
4247
|
-
var serializedArr = [];
|
|
4248
|
-
var css2 = function css3() {
|
|
4249
|
-
if (hasRendered && process.env.NODE_ENV !== "production") {
|
|
4250
|
-
throw new Error("css can only be used during render");
|
|
4251
|
-
}
|
|
4252
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4253
|
-
args[_key] = arguments[_key];
|
|
4254
|
-
}
|
|
4255
|
-
var serialized = serializeStyles(args, cache.registered);
|
|
4256
|
-
serializedArr.push(serialized);
|
|
4257
|
-
registerStyles(cache, serialized, false);
|
|
4258
|
-
return cache.key + "-" + serialized.name;
|
|
4259
|
-
};
|
|
4260
|
-
var cx = function cx2() {
|
|
4261
|
-
if (hasRendered && process.env.NODE_ENV !== "production") {
|
|
4262
|
-
throw new Error("cx can only be used during render");
|
|
4263
|
-
}
|
|
4264
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
4265
|
-
args[_key2] = arguments[_key2];
|
|
4266
|
-
}
|
|
4267
|
-
return merge(cache.registered, css2, classnames(args));
|
|
4268
|
-
};
|
|
4269
|
-
var content = {
|
|
4270
|
-
css: css2,
|
|
4271
|
-
cx,
|
|
4272
|
-
theme: React3.useContext(ThemeContext)
|
|
4273
|
-
};
|
|
4274
|
-
var ele = props.children(content);
|
|
4275
|
-
hasRendered = true;
|
|
4276
|
-
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(Insertion3, {
|
|
4277
|
-
cache,
|
|
4278
|
-
serializedArr
|
|
4279
|
-
}), ele);
|
|
4280
|
-
});
|
|
4281
|
-
if (process.env.NODE_ENV !== "production") {
|
|
4282
|
-
ClassNames.displayName = "EmotionClassNames";
|
|
4283
|
-
}
|
|
4284
|
-
if (process.env.NODE_ENV !== "production") {
|
|
4285
|
-
isBrowser5 = typeof document !== "undefined";
|
|
4286
|
-
isTestEnv = typeof jest !== "undefined" || typeof vi !== "undefined";
|
|
4287
|
-
if (isBrowser5 && !isTestEnv) {
|
|
4288
|
-
globalContext = // $FlowIgnore
|
|
4289
|
-
typeof globalThis !== "undefined" ? globalThis : isBrowser5 ? window : global;
|
|
4290
|
-
globalKey = "__EMOTION_REACT_" + pkg.version.split(".")[0] + "__";
|
|
4291
|
-
if (globalContext[globalKey]) {
|
|
4292
|
-
console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used.");
|
|
4293
|
-
}
|
|
4294
|
-
globalContext[globalKey] = true;
|
|
4295
|
-
}
|
|
4296
|
-
}
|
|
4297
|
-
var isBrowser5;
|
|
4298
|
-
var isTestEnv;
|
|
4299
|
-
var globalContext;
|
|
4300
|
-
var globalKey;
|
|
4301
3075
|
|
|
4302
3076
|
// ../../node_modules/@emotion/primitives-core/dist/emotion-primitives-core.esm.js
|
|
4303
3077
|
function interleave(vals) {
|
|
@@ -4315,21 +3089,16 @@ var styles;
|
|
|
4315
3089
|
var generated = {};
|
|
4316
3090
|
var buffer = "";
|
|
4317
3091
|
var lastType;
|
|
4318
|
-
function
|
|
3092
|
+
function handleInterpolation(interpolation, i, arr) {
|
|
4319
3093
|
var type = typeof interpolation;
|
|
4320
3094
|
if (type === "string") {
|
|
4321
3095
|
interpolation = interpolation.replace(/\/\*[\s\S]*?\*\/|\/\/.*$/gm, "");
|
|
4322
3096
|
}
|
|
4323
3097
|
if (type === "function") {
|
|
4324
|
-
if (this === void 0)
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
} else {
|
|
4329
|
-
handleInterpolation2.call(this, interpolation(
|
|
4330
|
-
// $FlowFixMe
|
|
4331
|
-
this
|
|
4332
|
-
), i, arr);
|
|
3098
|
+
if (this === void 0)
|
|
3099
|
+
;
|
|
3100
|
+
else {
|
|
3101
|
+
handleInterpolation.call(this, interpolation(this), i, arr);
|
|
4333
3102
|
}
|
|
4334
3103
|
return;
|
|
4335
3104
|
}
|
|
@@ -4359,7 +3128,7 @@ function handleInterpolation2(interpolation, i, arr) {
|
|
|
4359
3128
|
styles.push(interpolation);
|
|
4360
3129
|
}
|
|
4361
3130
|
if (Array.isArray(interpolation)) {
|
|
4362
|
-
interpolation.forEach(
|
|
3131
|
+
interpolation.forEach(handleInterpolation, this);
|
|
4363
3132
|
}
|
|
4364
3133
|
lastType = type;
|
|
4365
3134
|
}
|
|
@@ -4379,7 +3148,7 @@ function createCss(StyleSheet4) {
|
|
|
4379
3148
|
vals = interleave(args);
|
|
4380
3149
|
}
|
|
4381
3150
|
try {
|
|
4382
|
-
vals.forEach(
|
|
3151
|
+
vals.forEach(handleInterpolation, this);
|
|
4383
3152
|
} finally {
|
|
4384
3153
|
buffer = prevBuffer;
|
|
4385
3154
|
}
|
|
@@ -4410,8 +3179,8 @@ function convertStyles(str) {
|
|
|
4410
3179
|
try {
|
|
4411
3180
|
return (0, import_css_to_react_native.default)(stylePairs);
|
|
4412
3181
|
} catch (error) {
|
|
4413
|
-
var msg = error.message;
|
|
4414
|
-
if (msg.includes("Failed to parse declaration")) {
|
|
3182
|
+
var msg = error == null ? void 0 : error.message;
|
|
3183
|
+
if (msg && msg.includes("Failed to parse declaration")) {
|
|
4415
3184
|
var values = msg.replace("Failed to parse declaration ", "").replace(/"/g, "").trim().split(":");
|
|
4416
3185
|
var errorMsg = "'" + values[0] + "' shorthand property requires units for example - " + values[0] + ": 20px or " + values[0] + ": 10px 20px 40px 50px";
|
|
4417
3186
|
console.error(errorMsg);
|
|
@@ -4421,13 +3190,14 @@ function convertStyles(str) {
|
|
|
4421
3190
|
var testOmitPropsOnComponent = function testOmitPropsOnComponent2(prop) {
|
|
4422
3191
|
return prop !== "theme" && prop !== "as";
|
|
4423
3192
|
};
|
|
4424
|
-
function createStyled(StyleSheet4,
|
|
4425
|
-
var
|
|
3193
|
+
function createStyled(StyleSheet4, options) {
|
|
3194
|
+
var _options$getShouldFor;
|
|
3195
|
+
var getShouldForwardProp = (_options$getShouldFor = options == null ? void 0 : options.getShouldForwardProp) != null ? _options$getShouldFor : function() {
|
|
4426
3196
|
return testOmitPropsOnComponent;
|
|
4427
|
-
}
|
|
3197
|
+
};
|
|
4428
3198
|
var css2 = createCss(StyleSheet4);
|
|
4429
|
-
return function createEmotion(component,
|
|
4430
|
-
var shouldForwardProp =
|
|
3199
|
+
return function createEmotion(component, options2) {
|
|
3200
|
+
var shouldForwardProp = options2 && options2.shouldForwardProp ? options2.shouldForwardProp : void 0;
|
|
4431
3201
|
var defaultShouldForwardProp = shouldForwardProp || getShouldForwardProp(component);
|
|
4432
3202
|
var shouldUseAs = !defaultShouldForwardProp("as");
|
|
4433
3203
|
return function createStyledComponent() {
|
|
@@ -4460,14 +3230,18 @@ function createStyled(StyleSheet4, _temp) {
|
|
|
4460
3230
|
}
|
|
4461
3231
|
}
|
|
4462
3232
|
newProps.style = [css2.apply(mergedProps, styles2), props.style];
|
|
4463
|
-
|
|
3233
|
+
if (ref) {
|
|
3234
|
+
newProps.ref = ref;
|
|
3235
|
+
}
|
|
4464
3236
|
return /* @__PURE__ */ React4.createElement(finalTag, newProps);
|
|
4465
3237
|
});
|
|
4466
|
-
Styled.
|
|
3238
|
+
Styled.displayName = "emotion(" + getDisplayName(component) + ")";
|
|
3239
|
+
var withComponent = function withComponent2(newComponent) {
|
|
4467
3240
|
return createEmotion(newComponent).apply(void 0, styles2);
|
|
4468
3241
|
};
|
|
4469
|
-
|
|
4470
|
-
|
|
3242
|
+
var castedStyled = Styled;
|
|
3243
|
+
castedStyled.withComponent = withComponent;
|
|
3244
|
+
return castedStyled;
|
|
4471
3245
|
};
|
|
4472
3246
|
};
|
|
4473
3247
|
}
|