visits-style 1.4.0 → 1.4.2
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/components/Modal/index.d.ts +7 -13
- package/dist/components/Spinner/index.d.ts +1 -1
- package/dist/components/Toast/types.d.ts +1 -0
- package/dist/components/index.d.ts +0 -1
- package/dist/elements/Box/index.d.ts +1 -1
- package/dist/elements/Button/ButtonGroup.d.ts +274 -1
- package/dist/elements/Button/TextButton.d.ts +1 -1
- package/dist/elements/Button/index.d.ts +1 -1
- package/dist/elements/Content/index.d.ts +274 -1
- package/dist/elements/Divider/index.d.ts +274 -1
- package/dist/elements/Grid/Col.d.ts +2 -1
- package/dist/elements/Grid/Container.d.ts +2 -1
- package/dist/elements/Grid/Row.d.ts +1 -1
- package/dist/elements/Placeholder/index.d.ts +274 -1
- package/dist/elements/Table/index.d.ts +2 -1
- package/dist/index.cjs.js +537 -1417
- package/dist/index.es.js +447 -1385
- package/dist/utils/arrow.d.ts +1 -1
- package/dist/utils/boxShadow.d.ts +1 -1
- package/dist/utils/disabledColor.d.ts +1 -1
- package/dist/utils/hambuger.d.ts +1 -1
- package/dist/utils/media.d.ts +6 -10
- package/dist/utils/setAlign.d.ts +1 -1
- package/dist/utils/stopPropagation.d.ts +2 -0
- package/package.json +2 -2
- package/dist/components/Card/index.d.ts +0 -17
- package/dist/hooks/useForceUpdate.d.ts +0 -1
- package/dist/hooks/useScrollFix.d.ts +0 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,982 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/
|
|
19
|
-
var hasRequiredReactJsxRuntime_production_min;
|
|
20
|
-
function requireReactJsxRuntime_production_min() {
|
|
21
|
-
if (hasRequiredReactJsxRuntime_production_min)
|
|
22
|
-
return reactJsxRuntime_production_min;
|
|
23
|
-
hasRequiredReactJsxRuntime_production_min = 1;
|
|
24
|
-
var f = require$$0, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: true, ref: true, __self: true, __source: true };
|
|
25
|
-
function q(c, a, g) {
|
|
26
|
-
var b, d = {}, e = null, h = null;
|
|
27
|
-
void 0 !== g && (e = "" + g);
|
|
28
|
-
void 0 !== a.key && (e = "" + a.key);
|
|
29
|
-
void 0 !== a.ref && (h = a.ref);
|
|
30
|
-
for (b in a)
|
|
31
|
-
m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
|
|
32
|
-
if (c && c.defaultProps)
|
|
33
|
-
for (b in a = c.defaultProps, a)
|
|
34
|
-
void 0 === d[b] && (d[b] = a[b]);
|
|
35
|
-
return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
|
|
36
|
-
}
|
|
37
|
-
reactJsxRuntime_production_min.Fragment = l;
|
|
38
|
-
reactJsxRuntime_production_min.jsx = q;
|
|
39
|
-
reactJsxRuntime_production_min.jsxs = q;
|
|
40
|
-
return reactJsxRuntime_production_min;
|
|
41
|
-
}
|
|
42
|
-
var reactJsxRuntime_development = {};
|
|
43
|
-
/**
|
|
44
|
-
* @license React
|
|
45
|
-
* react-jsx-runtime.development.js
|
|
46
|
-
*
|
|
47
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
48
|
-
*
|
|
49
|
-
* This source code is licensed under the MIT license found in the
|
|
50
|
-
* LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/
|
|
52
|
-
var hasRequiredReactJsxRuntime_development;
|
|
53
|
-
function requireReactJsxRuntime_development() {
|
|
54
|
-
if (hasRequiredReactJsxRuntime_development)
|
|
55
|
-
return reactJsxRuntime_development;
|
|
56
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
57
|
-
if (process.env.NODE_ENV !== "production") {
|
|
58
|
-
(function() {
|
|
59
|
-
var React = require$$0;
|
|
60
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
61
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
62
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
63
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
64
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
65
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
66
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
67
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
68
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
69
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
70
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
71
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
72
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
73
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
74
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
75
|
-
function getIteratorFn(maybeIterable) {
|
|
76
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
77
|
-
return null;
|
|
78
|
-
}
|
|
79
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
80
|
-
if (typeof maybeIterator === "function") {
|
|
81
|
-
return maybeIterator;
|
|
82
|
-
}
|
|
83
|
-
return null;
|
|
84
|
-
}
|
|
85
|
-
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
86
|
-
function error(format) {
|
|
87
|
-
{
|
|
88
|
-
{
|
|
89
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
90
|
-
args[_key2 - 1] = arguments[_key2];
|
|
91
|
-
}
|
|
92
|
-
printWarning("error", format, args);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
function printWarning(level, format, args) {
|
|
97
|
-
{
|
|
98
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
99
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
100
|
-
if (stack !== "") {
|
|
101
|
-
format += "%s";
|
|
102
|
-
args = args.concat([stack]);
|
|
103
|
-
}
|
|
104
|
-
var argsWithFormat = args.map(function(item) {
|
|
105
|
-
return String(item);
|
|
106
|
-
});
|
|
107
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
108
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
var enableScopeAPI = false;
|
|
112
|
-
var enableCacheElement = false;
|
|
113
|
-
var enableTransitionTracing = false;
|
|
114
|
-
var enableLegacyHidden = false;
|
|
115
|
-
var enableDebugTracing = false;
|
|
116
|
-
var REACT_MODULE_REFERENCE;
|
|
117
|
-
{
|
|
118
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
119
|
-
}
|
|
120
|
-
function isValidElementType(type) {
|
|
121
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
122
|
-
return true;
|
|
123
|
-
}
|
|
124
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
125
|
-
return true;
|
|
126
|
-
}
|
|
127
|
-
if (typeof type === "object" && type !== null) {
|
|
128
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
129
|
-
// types supported by any Flight configuration anywhere since
|
|
130
|
-
// we don't know which Flight build this will end up being used
|
|
131
|
-
// with.
|
|
132
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
133
|
-
return true;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
return false;
|
|
137
|
-
}
|
|
138
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
139
|
-
var displayName = outerType.displayName;
|
|
140
|
-
if (displayName) {
|
|
141
|
-
return displayName;
|
|
142
|
-
}
|
|
143
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
144
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
145
|
-
}
|
|
146
|
-
function getContextName(type) {
|
|
147
|
-
return type.displayName || "Context";
|
|
148
|
-
}
|
|
149
|
-
function getComponentNameFromType(type) {
|
|
150
|
-
if (type == null) {
|
|
151
|
-
return null;
|
|
152
|
-
}
|
|
153
|
-
{
|
|
154
|
-
if (typeof type.tag === "number") {
|
|
155
|
-
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
if (typeof type === "function") {
|
|
159
|
-
return type.displayName || type.name || null;
|
|
160
|
-
}
|
|
161
|
-
if (typeof type === "string") {
|
|
162
|
-
return type;
|
|
163
|
-
}
|
|
164
|
-
switch (type) {
|
|
165
|
-
case REACT_FRAGMENT_TYPE:
|
|
166
|
-
return "Fragment";
|
|
167
|
-
case REACT_PORTAL_TYPE:
|
|
168
|
-
return "Portal";
|
|
169
|
-
case REACT_PROFILER_TYPE:
|
|
170
|
-
return "Profiler";
|
|
171
|
-
case REACT_STRICT_MODE_TYPE:
|
|
172
|
-
return "StrictMode";
|
|
173
|
-
case REACT_SUSPENSE_TYPE:
|
|
174
|
-
return "Suspense";
|
|
175
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
176
|
-
return "SuspenseList";
|
|
177
|
-
}
|
|
178
|
-
if (typeof type === "object") {
|
|
179
|
-
switch (type.$$typeof) {
|
|
180
|
-
case REACT_CONTEXT_TYPE:
|
|
181
|
-
var context = type;
|
|
182
|
-
return getContextName(context) + ".Consumer";
|
|
183
|
-
case REACT_PROVIDER_TYPE:
|
|
184
|
-
var provider = type;
|
|
185
|
-
return getContextName(provider._context) + ".Provider";
|
|
186
|
-
case REACT_FORWARD_REF_TYPE:
|
|
187
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
188
|
-
case REACT_MEMO_TYPE:
|
|
189
|
-
var outerName = type.displayName || null;
|
|
190
|
-
if (outerName !== null) {
|
|
191
|
-
return outerName;
|
|
192
|
-
}
|
|
193
|
-
return getComponentNameFromType(type.type) || "Memo";
|
|
194
|
-
case REACT_LAZY_TYPE: {
|
|
195
|
-
var lazyComponent = type;
|
|
196
|
-
var payload = lazyComponent._payload;
|
|
197
|
-
var init = lazyComponent._init;
|
|
198
|
-
try {
|
|
199
|
-
return getComponentNameFromType(init(payload));
|
|
200
|
-
} catch (x) {
|
|
201
|
-
return null;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
return null;
|
|
207
|
-
}
|
|
208
|
-
var assign = Object.assign;
|
|
209
|
-
var disabledDepth = 0;
|
|
210
|
-
var prevLog;
|
|
211
|
-
var prevInfo;
|
|
212
|
-
var prevWarn;
|
|
213
|
-
var prevError;
|
|
214
|
-
var prevGroup;
|
|
215
|
-
var prevGroupCollapsed;
|
|
216
|
-
var prevGroupEnd;
|
|
217
|
-
function disabledLog() {
|
|
218
|
-
}
|
|
219
|
-
disabledLog.__reactDisabledLog = true;
|
|
220
|
-
function disableLogs() {
|
|
221
|
-
{
|
|
222
|
-
if (disabledDepth === 0) {
|
|
223
|
-
prevLog = console.log;
|
|
224
|
-
prevInfo = console.info;
|
|
225
|
-
prevWarn = console.warn;
|
|
226
|
-
prevError = console.error;
|
|
227
|
-
prevGroup = console.group;
|
|
228
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
229
|
-
prevGroupEnd = console.groupEnd;
|
|
230
|
-
var props = {
|
|
231
|
-
configurable: true,
|
|
232
|
-
enumerable: true,
|
|
233
|
-
value: disabledLog,
|
|
234
|
-
writable: true
|
|
235
|
-
};
|
|
236
|
-
Object.defineProperties(console, {
|
|
237
|
-
info: props,
|
|
238
|
-
log: props,
|
|
239
|
-
warn: props,
|
|
240
|
-
error: props,
|
|
241
|
-
group: props,
|
|
242
|
-
groupCollapsed: props,
|
|
243
|
-
groupEnd: props
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
disabledDepth++;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
function reenableLogs() {
|
|
250
|
-
{
|
|
251
|
-
disabledDepth--;
|
|
252
|
-
if (disabledDepth === 0) {
|
|
253
|
-
var props = {
|
|
254
|
-
configurable: true,
|
|
255
|
-
enumerable: true,
|
|
256
|
-
writable: true
|
|
257
|
-
};
|
|
258
|
-
Object.defineProperties(console, {
|
|
259
|
-
log: assign({}, props, {
|
|
260
|
-
value: prevLog
|
|
261
|
-
}),
|
|
262
|
-
info: assign({}, props, {
|
|
263
|
-
value: prevInfo
|
|
264
|
-
}),
|
|
265
|
-
warn: assign({}, props, {
|
|
266
|
-
value: prevWarn
|
|
267
|
-
}),
|
|
268
|
-
error: assign({}, props, {
|
|
269
|
-
value: prevError
|
|
270
|
-
}),
|
|
271
|
-
group: assign({}, props, {
|
|
272
|
-
value: prevGroup
|
|
273
|
-
}),
|
|
274
|
-
groupCollapsed: assign({}, props, {
|
|
275
|
-
value: prevGroupCollapsed
|
|
276
|
-
}),
|
|
277
|
-
groupEnd: assign({}, props, {
|
|
278
|
-
value: prevGroupEnd
|
|
279
|
-
})
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
if (disabledDepth < 0) {
|
|
283
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
288
|
-
var prefix;
|
|
289
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
290
|
-
{
|
|
291
|
-
if (prefix === void 0) {
|
|
292
|
-
try {
|
|
293
|
-
throw Error();
|
|
294
|
-
} catch (x) {
|
|
295
|
-
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
296
|
-
prefix = match && match[1] || "";
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
return "\n" + prefix + name;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
var reentry = false;
|
|
303
|
-
var componentFrameCache;
|
|
304
|
-
{
|
|
305
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
306
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
307
|
-
}
|
|
308
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
309
|
-
if (!fn || reentry) {
|
|
310
|
-
return "";
|
|
311
|
-
}
|
|
312
|
-
{
|
|
313
|
-
var frame = componentFrameCache.get(fn);
|
|
314
|
-
if (frame !== void 0) {
|
|
315
|
-
return frame;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
var control;
|
|
319
|
-
reentry = true;
|
|
320
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
321
|
-
Error.prepareStackTrace = void 0;
|
|
322
|
-
var previousDispatcher;
|
|
323
|
-
{
|
|
324
|
-
previousDispatcher = ReactCurrentDispatcher.current;
|
|
325
|
-
ReactCurrentDispatcher.current = null;
|
|
326
|
-
disableLogs();
|
|
327
|
-
}
|
|
328
|
-
try {
|
|
329
|
-
if (construct) {
|
|
330
|
-
var Fake = function() {
|
|
331
|
-
throw Error();
|
|
332
|
-
};
|
|
333
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
334
|
-
set: function() {
|
|
335
|
-
throw Error();
|
|
336
|
-
}
|
|
337
|
-
});
|
|
338
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
339
|
-
try {
|
|
340
|
-
Reflect.construct(Fake, []);
|
|
341
|
-
} catch (x) {
|
|
342
|
-
control = x;
|
|
343
|
-
}
|
|
344
|
-
Reflect.construct(fn, [], Fake);
|
|
345
|
-
} else {
|
|
346
|
-
try {
|
|
347
|
-
Fake.call();
|
|
348
|
-
} catch (x) {
|
|
349
|
-
control = x;
|
|
350
|
-
}
|
|
351
|
-
fn.call(Fake.prototype);
|
|
352
|
-
}
|
|
353
|
-
} else {
|
|
354
|
-
try {
|
|
355
|
-
throw Error();
|
|
356
|
-
} catch (x) {
|
|
357
|
-
control = x;
|
|
358
|
-
}
|
|
359
|
-
fn();
|
|
360
|
-
}
|
|
361
|
-
} catch (sample) {
|
|
362
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
363
|
-
var sampleLines = sample.stack.split("\n");
|
|
364
|
-
var controlLines = control.stack.split("\n");
|
|
365
|
-
var s = sampleLines.length - 1;
|
|
366
|
-
var c = controlLines.length - 1;
|
|
367
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
368
|
-
c--;
|
|
369
|
-
}
|
|
370
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
371
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
372
|
-
if (s !== 1 || c !== 1) {
|
|
373
|
-
do {
|
|
374
|
-
s--;
|
|
375
|
-
c--;
|
|
376
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
377
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
378
|
-
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
379
|
-
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
380
|
-
}
|
|
381
|
-
{
|
|
382
|
-
if (typeof fn === "function") {
|
|
383
|
-
componentFrameCache.set(fn, _frame);
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
return _frame;
|
|
387
|
-
}
|
|
388
|
-
} while (s >= 1 && c >= 0);
|
|
389
|
-
}
|
|
390
|
-
break;
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
} finally {
|
|
395
|
-
reentry = false;
|
|
396
|
-
{
|
|
397
|
-
ReactCurrentDispatcher.current = previousDispatcher;
|
|
398
|
-
reenableLogs();
|
|
399
|
-
}
|
|
400
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
401
|
-
}
|
|
402
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
403
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
404
|
-
{
|
|
405
|
-
if (typeof fn === "function") {
|
|
406
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
return syntheticFrame;
|
|
410
|
-
}
|
|
411
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
412
|
-
{
|
|
413
|
-
return describeNativeComponentFrame(fn, false);
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
function shouldConstruct(Component) {
|
|
417
|
-
var prototype = Component.prototype;
|
|
418
|
-
return !!(prototype && prototype.isReactComponent);
|
|
419
|
-
}
|
|
420
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
421
|
-
if (type == null) {
|
|
422
|
-
return "";
|
|
423
|
-
}
|
|
424
|
-
if (typeof type === "function") {
|
|
425
|
-
{
|
|
426
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
if (typeof type === "string") {
|
|
430
|
-
return describeBuiltInComponentFrame(type);
|
|
431
|
-
}
|
|
432
|
-
switch (type) {
|
|
433
|
-
case REACT_SUSPENSE_TYPE:
|
|
434
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
435
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
436
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
437
|
-
}
|
|
438
|
-
if (typeof type === "object") {
|
|
439
|
-
switch (type.$$typeof) {
|
|
440
|
-
case REACT_FORWARD_REF_TYPE:
|
|
441
|
-
return describeFunctionComponentFrame(type.render);
|
|
442
|
-
case REACT_MEMO_TYPE:
|
|
443
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
444
|
-
case REACT_LAZY_TYPE: {
|
|
445
|
-
var lazyComponent = type;
|
|
446
|
-
var payload = lazyComponent._payload;
|
|
447
|
-
var init = lazyComponent._init;
|
|
448
|
-
try {
|
|
449
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
450
|
-
} catch (x) {
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
return "";
|
|
456
|
-
}
|
|
457
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
458
|
-
var loggedTypeFailures = {};
|
|
459
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
460
|
-
function setCurrentlyValidatingElement(element) {
|
|
461
|
-
{
|
|
462
|
-
if (element) {
|
|
463
|
-
var owner = element._owner;
|
|
464
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
465
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
466
|
-
} else {
|
|
467
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
472
|
-
{
|
|
473
|
-
var has = Function.call.bind(hasOwnProperty);
|
|
474
|
-
for (var typeSpecName in typeSpecs) {
|
|
475
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
476
|
-
var error$1 = void 0;
|
|
477
|
-
try {
|
|
478
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
479
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
480
|
-
err.name = "Invariant Violation";
|
|
481
|
-
throw err;
|
|
482
|
-
}
|
|
483
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
484
|
-
} catch (ex) {
|
|
485
|
-
error$1 = ex;
|
|
486
|
-
}
|
|
487
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
488
|
-
setCurrentlyValidatingElement(element);
|
|
489
|
-
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
490
|
-
setCurrentlyValidatingElement(null);
|
|
491
|
-
}
|
|
492
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
493
|
-
loggedTypeFailures[error$1.message] = true;
|
|
494
|
-
setCurrentlyValidatingElement(element);
|
|
495
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
496
|
-
setCurrentlyValidatingElement(null);
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
var isArrayImpl = Array.isArray;
|
|
503
|
-
function isArray(a) {
|
|
504
|
-
return isArrayImpl(a);
|
|
505
|
-
}
|
|
506
|
-
function typeName(value) {
|
|
507
|
-
{
|
|
508
|
-
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
509
|
-
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
510
|
-
return type;
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
function willCoercionThrow(value) {
|
|
514
|
-
{
|
|
515
|
-
try {
|
|
516
|
-
testStringCoercion(value);
|
|
517
|
-
return false;
|
|
518
|
-
} catch (e) {
|
|
519
|
-
return true;
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
function testStringCoercion(value) {
|
|
524
|
-
return "" + value;
|
|
525
|
-
}
|
|
526
|
-
function checkKeyStringCoercion(value) {
|
|
527
|
-
{
|
|
528
|
-
if (willCoercionThrow(value)) {
|
|
529
|
-
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
530
|
-
return testStringCoercion(value);
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
535
|
-
var RESERVED_PROPS = {
|
|
536
|
-
key: true,
|
|
537
|
-
ref: true,
|
|
538
|
-
__self: true,
|
|
539
|
-
__source: true
|
|
540
|
-
};
|
|
541
|
-
var specialPropKeyWarningShown;
|
|
542
|
-
var specialPropRefWarningShown;
|
|
543
|
-
var didWarnAboutStringRefs;
|
|
544
|
-
{
|
|
545
|
-
didWarnAboutStringRefs = {};
|
|
546
|
-
}
|
|
547
|
-
function hasValidRef(config) {
|
|
548
|
-
{
|
|
549
|
-
if (hasOwnProperty.call(config, "ref")) {
|
|
550
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
551
|
-
if (getter && getter.isReactWarning) {
|
|
552
|
-
return false;
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
return config.ref !== void 0;
|
|
557
|
-
}
|
|
558
|
-
function hasValidKey(config) {
|
|
559
|
-
{
|
|
560
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
561
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
562
|
-
if (getter && getter.isReactWarning) {
|
|
563
|
-
return false;
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
return config.key !== void 0;
|
|
568
|
-
}
|
|
569
|
-
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
|
570
|
-
{
|
|
571
|
-
if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
|
572
|
-
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
573
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
574
|
-
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
|
575
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
581
|
-
{
|
|
582
|
-
var warnAboutAccessingKey = function() {
|
|
583
|
-
if (!specialPropKeyWarningShown) {
|
|
584
|
-
specialPropKeyWarningShown = true;
|
|
585
|
-
error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
586
|
-
}
|
|
587
|
-
};
|
|
588
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
589
|
-
Object.defineProperty(props, "key", {
|
|
590
|
-
get: warnAboutAccessingKey,
|
|
591
|
-
configurable: true
|
|
592
|
-
});
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
596
|
-
{
|
|
597
|
-
var warnAboutAccessingRef = function() {
|
|
598
|
-
if (!specialPropRefWarningShown) {
|
|
599
|
-
specialPropRefWarningShown = true;
|
|
600
|
-
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
601
|
-
}
|
|
602
|
-
};
|
|
603
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
604
|
-
Object.defineProperty(props, "ref", {
|
|
605
|
-
get: warnAboutAccessingRef,
|
|
606
|
-
configurable: true
|
|
607
|
-
});
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
611
|
-
var element = {
|
|
612
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
613
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
614
|
-
// Built-in properties that belong on the element
|
|
615
|
-
type,
|
|
616
|
-
key,
|
|
617
|
-
ref,
|
|
618
|
-
props,
|
|
619
|
-
// Record the component responsible for creating this element.
|
|
620
|
-
_owner: owner
|
|
621
|
-
};
|
|
622
|
-
{
|
|
623
|
-
element._store = {};
|
|
624
|
-
Object.defineProperty(element._store, "validated", {
|
|
625
|
-
configurable: false,
|
|
626
|
-
enumerable: false,
|
|
627
|
-
writable: true,
|
|
628
|
-
value: false
|
|
629
|
-
});
|
|
630
|
-
Object.defineProperty(element, "_self", {
|
|
631
|
-
configurable: false,
|
|
632
|
-
enumerable: false,
|
|
633
|
-
writable: false,
|
|
634
|
-
value: self
|
|
635
|
-
});
|
|
636
|
-
Object.defineProperty(element, "_source", {
|
|
637
|
-
configurable: false,
|
|
638
|
-
enumerable: false,
|
|
639
|
-
writable: false,
|
|
640
|
-
value: source
|
|
641
|
-
});
|
|
642
|
-
if (Object.freeze) {
|
|
643
|
-
Object.freeze(element.props);
|
|
644
|
-
Object.freeze(element);
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
return element;
|
|
648
|
-
};
|
|
649
|
-
function jsxDEV(type, config, maybeKey, source, self) {
|
|
650
|
-
{
|
|
651
|
-
var propName;
|
|
652
|
-
var props = {};
|
|
653
|
-
var key = null;
|
|
654
|
-
var ref = null;
|
|
655
|
-
if (maybeKey !== void 0) {
|
|
656
|
-
{
|
|
657
|
-
checkKeyStringCoercion(maybeKey);
|
|
658
|
-
}
|
|
659
|
-
key = "" + maybeKey;
|
|
660
|
-
}
|
|
661
|
-
if (hasValidKey(config)) {
|
|
662
|
-
{
|
|
663
|
-
checkKeyStringCoercion(config.key);
|
|
664
|
-
}
|
|
665
|
-
key = "" + config.key;
|
|
666
|
-
}
|
|
667
|
-
if (hasValidRef(config)) {
|
|
668
|
-
ref = config.ref;
|
|
669
|
-
warnIfStringRefCannotBeAutoConverted(config, self);
|
|
670
|
-
}
|
|
671
|
-
for (propName in config) {
|
|
672
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
673
|
-
props[propName] = config[propName];
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
if (type && type.defaultProps) {
|
|
677
|
-
var defaultProps = type.defaultProps;
|
|
678
|
-
for (propName in defaultProps) {
|
|
679
|
-
if (props[propName] === void 0) {
|
|
680
|
-
props[propName] = defaultProps[propName];
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
if (key || ref) {
|
|
685
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
686
|
-
if (key) {
|
|
687
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
688
|
-
}
|
|
689
|
-
if (ref) {
|
|
690
|
-
defineRefPropWarningGetter(props, displayName);
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
697
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
698
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
699
|
-
{
|
|
700
|
-
if (element) {
|
|
701
|
-
var owner = element._owner;
|
|
702
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
703
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
704
|
-
} else {
|
|
705
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
var propTypesMisspellWarningShown;
|
|
710
|
-
{
|
|
711
|
-
propTypesMisspellWarningShown = false;
|
|
712
|
-
}
|
|
713
|
-
function isValidElement(object) {
|
|
714
|
-
{
|
|
715
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
function getDeclarationErrorAddendum() {
|
|
719
|
-
{
|
|
720
|
-
if (ReactCurrentOwner$1.current) {
|
|
721
|
-
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
722
|
-
if (name) {
|
|
723
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
return "";
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
function getSourceInfoErrorAddendum(source) {
|
|
730
|
-
{
|
|
731
|
-
if (source !== void 0) {
|
|
732
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
733
|
-
var lineNumber = source.lineNumber;
|
|
734
|
-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
735
|
-
}
|
|
736
|
-
return "";
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
var ownerHasKeyUseWarning = {};
|
|
740
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
741
|
-
{
|
|
742
|
-
var info = getDeclarationErrorAddendum();
|
|
743
|
-
if (!info) {
|
|
744
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
745
|
-
if (parentName) {
|
|
746
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
return info;
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
function validateExplicitKey(element, parentType) {
|
|
753
|
-
{
|
|
754
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
755
|
-
return;
|
|
756
|
-
}
|
|
757
|
-
element._store.validated = true;
|
|
758
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
759
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
760
|
-
return;
|
|
761
|
-
}
|
|
762
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
763
|
-
var childOwner = "";
|
|
764
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
765
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
766
|
-
}
|
|
767
|
-
setCurrentlyValidatingElement$1(element);
|
|
768
|
-
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
769
|
-
setCurrentlyValidatingElement$1(null);
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
function validateChildKeys(node, parentType) {
|
|
773
|
-
{
|
|
774
|
-
if (typeof node !== "object") {
|
|
775
|
-
return;
|
|
776
|
-
}
|
|
777
|
-
if (isArray(node)) {
|
|
778
|
-
for (var i = 0; i < node.length; i++) {
|
|
779
|
-
var child = node[i];
|
|
780
|
-
if (isValidElement(child)) {
|
|
781
|
-
validateExplicitKey(child, parentType);
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
} else if (isValidElement(node)) {
|
|
785
|
-
if (node._store) {
|
|
786
|
-
node._store.validated = true;
|
|
787
|
-
}
|
|
788
|
-
} else if (node) {
|
|
789
|
-
var iteratorFn = getIteratorFn(node);
|
|
790
|
-
if (typeof iteratorFn === "function") {
|
|
791
|
-
if (iteratorFn !== node.entries) {
|
|
792
|
-
var iterator = iteratorFn.call(node);
|
|
793
|
-
var step;
|
|
794
|
-
while (!(step = iterator.next()).done) {
|
|
795
|
-
if (isValidElement(step.value)) {
|
|
796
|
-
validateExplicitKey(step.value, parentType);
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
function validatePropTypes(element) {
|
|
805
|
-
{
|
|
806
|
-
var type = element.type;
|
|
807
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
808
|
-
return;
|
|
809
|
-
}
|
|
810
|
-
var propTypes;
|
|
811
|
-
if (typeof type === "function") {
|
|
812
|
-
propTypes = type.propTypes;
|
|
813
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
814
|
-
// Inner props are checked in the reconciler.
|
|
815
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
816
|
-
propTypes = type.propTypes;
|
|
817
|
-
} else {
|
|
818
|
-
return;
|
|
819
|
-
}
|
|
820
|
-
if (propTypes) {
|
|
821
|
-
var name = getComponentNameFromType(type);
|
|
822
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
823
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
824
|
-
propTypesMisspellWarningShown = true;
|
|
825
|
-
var _name = getComponentNameFromType(type);
|
|
826
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
827
|
-
}
|
|
828
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
829
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
function validateFragmentProps(fragment) {
|
|
834
|
-
{
|
|
835
|
-
var keys = Object.keys(fragment.props);
|
|
836
|
-
for (var i = 0; i < keys.length; i++) {
|
|
837
|
-
var key = keys[i];
|
|
838
|
-
if (key !== "children" && key !== "key") {
|
|
839
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
840
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
841
|
-
setCurrentlyValidatingElement$1(null);
|
|
842
|
-
break;
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
if (fragment.ref !== null) {
|
|
846
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
847
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
848
|
-
setCurrentlyValidatingElement$1(null);
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
853
|
-
{
|
|
854
|
-
var validType = isValidElementType(type);
|
|
855
|
-
if (!validType) {
|
|
856
|
-
var info = "";
|
|
857
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
858
|
-
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
859
|
-
}
|
|
860
|
-
var sourceInfo = getSourceInfoErrorAddendum(source);
|
|
861
|
-
if (sourceInfo) {
|
|
862
|
-
info += sourceInfo;
|
|
863
|
-
} else {
|
|
864
|
-
info += getDeclarationErrorAddendum();
|
|
865
|
-
}
|
|
866
|
-
var typeString;
|
|
867
|
-
if (type === null) {
|
|
868
|
-
typeString = "null";
|
|
869
|
-
} else if (isArray(type)) {
|
|
870
|
-
typeString = "array";
|
|
871
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
872
|
-
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
873
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
874
|
-
} else {
|
|
875
|
-
typeString = typeof type;
|
|
876
|
-
}
|
|
877
|
-
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
878
|
-
}
|
|
879
|
-
var element = jsxDEV(type, props, key, source, self);
|
|
880
|
-
if (element == null) {
|
|
881
|
-
return element;
|
|
882
|
-
}
|
|
883
|
-
if (validType) {
|
|
884
|
-
var children = props.children;
|
|
885
|
-
if (children !== void 0) {
|
|
886
|
-
if (isStaticChildren) {
|
|
887
|
-
if (isArray(children)) {
|
|
888
|
-
for (var i = 0; i < children.length; i++) {
|
|
889
|
-
validateChildKeys(children[i], type);
|
|
890
|
-
}
|
|
891
|
-
if (Object.freeze) {
|
|
892
|
-
Object.freeze(children);
|
|
893
|
-
}
|
|
894
|
-
} else {
|
|
895
|
-
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
896
|
-
}
|
|
897
|
-
} else {
|
|
898
|
-
validateChildKeys(children, type);
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
903
|
-
validateFragmentProps(element);
|
|
904
|
-
} else {
|
|
905
|
-
validatePropTypes(element);
|
|
906
|
-
}
|
|
907
|
-
return element;
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
function jsxWithValidationStatic(type, props, key) {
|
|
911
|
-
{
|
|
912
|
-
return jsxWithValidation(type, props, key, true);
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
|
-
function jsxWithValidationDynamic(type, props, key) {
|
|
916
|
-
{
|
|
917
|
-
return jsxWithValidation(type, props, key, false);
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
var jsx = jsxWithValidationDynamic;
|
|
921
|
-
var jsxs = jsxWithValidationStatic;
|
|
922
|
-
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
923
|
-
reactJsxRuntime_development.jsx = jsx;
|
|
924
|
-
reactJsxRuntime_development.jsxs = jsxs;
|
|
925
|
-
})();
|
|
926
|
-
}
|
|
927
|
-
return reactJsxRuntime_development;
|
|
928
|
-
}
|
|
929
|
-
if (process.env.NODE_ENV === "production") {
|
|
930
|
-
jsxRuntime.exports = requireReactJsxRuntime_production_min();
|
|
931
|
-
} else {
|
|
932
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
933
|
-
}
|
|
934
|
-
var jsxRuntimeExports = jsxRuntime.exports;
|
|
935
|
-
const Wrapper$8 = /* @__PURE__ */ styled.div.withConfig({
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const styledComponents = require('styled-components');
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const React = require('react');
|
|
8
|
+
const polished = require('polished');
|
|
9
|
+
const react = require('@floating-ui/react');
|
|
10
|
+
const reactDom = require('react-dom');
|
|
11
|
+
|
|
12
|
+
const _interopDefaultCompat = e => e && typeof e === 'object' && 'default' in e ? e : { default: e };
|
|
13
|
+
|
|
14
|
+
const React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
15
|
+
|
|
16
|
+
const Wrapper$6 = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
936
17
|
displayName: "Field__Wrapper",
|
|
937
18
|
componentId: "sc-1ayqhds-0"
|
|
938
19
|
})(["display:block;margin:1.5rem 0;"]);
|
|
939
|
-
const Label = /* @__PURE__ */ styled.h5.withConfig({
|
|
20
|
+
const Label = /* @__PURE__ */ styledComponents.styled.h5.withConfig({
|
|
940
21
|
displayName: "Field__Label",
|
|
941
22
|
componentId: "sc-1ayqhds-1"
|
|
942
23
|
})(["display:block;font-size:1rem;font-weight:normal;margin-bottom:0.625rem;text-align:left;color:", ";& > i{color:", ";margin-left:0.325rem;}"], ({
|
|
943
|
-
theme
|
|
944
|
-
}) =>
|
|
945
|
-
theme
|
|
946
|
-
}) =>
|
|
24
|
+
theme
|
|
25
|
+
}) => theme.textStrong, ({
|
|
26
|
+
theme
|
|
27
|
+
}) => theme.primary);
|
|
947
28
|
function Field({
|
|
948
29
|
label,
|
|
949
30
|
children,
|
|
950
31
|
required,
|
|
951
32
|
...rest
|
|
952
33
|
}) {
|
|
953
|
-
return /* @__PURE__ */
|
|
954
|
-
label && /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Wrapper$6, { ...rest, children: [
|
|
35
|
+
label && /* @__PURE__ */ jsxRuntime.jsxs(Label, { children: [
|
|
955
36
|
label,
|
|
956
|
-
required && /* @__PURE__ */
|
|
37
|
+
required && /* @__PURE__ */ jsxRuntime.jsx("i", { children: "*" })
|
|
957
38
|
] }),
|
|
958
39
|
children
|
|
959
40
|
] });
|
|
960
41
|
}
|
|
42
|
+
|
|
961
43
|
function findColorInvert({
|
|
962
44
|
black,
|
|
963
45
|
white
|
|
964
46
|
}, color) {
|
|
965
47
|
if (!color || polished.getLuminance(color) > 0.55) {
|
|
966
|
-
return black;
|
|
48
|
+
return black || "#000";
|
|
967
49
|
}
|
|
968
|
-
return white;
|
|
50
|
+
return white || "#fff";
|
|
969
51
|
}
|
|
52
|
+
|
|
970
53
|
function hamburger(size) {
|
|
971
|
-
return
|
|
54
|
+
return styledComponents.css(["display:block;position:relative;height:", ";width:", ";cursor:pointer;span{background-color:currentColor;display:block;height:1px;left:calc(50% - 8px);position:absolute;transform-origin:center;transition-duration:100ms;transition-property:background-color,opacity,transform;transition-timing-function:ease-out;width:16px;&:nth-child(1){top:calc(50% - 6px);}&:nth-child(2){top:calc(50% - 1px);}&:nth-child(3){top:calc(50% + 4px);}&:hover{background-color:rgba(black,0.05);}}&.active span{&:nth-child(1){transform:translateY(5px) rotate(45deg);}&:nth-child(2){opacity:0;}&:nth-child(3){transform:translateY(-5px) rotate(-45deg);}}"], size, size);
|
|
972
55
|
}
|
|
56
|
+
|
|
973
57
|
function boxShadow(size, color, amount) {
|
|
974
58
|
const shadowColor = amount ? polished.transparentize(amount, color) : color;
|
|
975
|
-
return
|
|
59
|
+
return styledComponents.css(["box-shadow:0 0 0 ", " ", ";"], size, shadowColor);
|
|
976
60
|
}
|
|
61
|
+
|
|
977
62
|
function Arrow(color) {
|
|
978
|
-
return
|
|
63
|
+
return styledComponents.css(["position:absolute;border:3px solid ", ';border-radius:2px;border-right:0;border-top:0;content:" ";display:block;height:0.625em;margin-top:-0.625em;pointer-events:none;top:50%;transform:rotate(-45deg);transform-origin:center;width:0.625em;'], color);
|
|
979
64
|
}
|
|
65
|
+
|
|
980
66
|
function setSize(name, size) {
|
|
981
67
|
switch (size) {
|
|
982
68
|
case "small":
|
|
@@ -989,65 +75,71 @@ function setSize(name, size) {
|
|
|
989
75
|
return `${name}: 1rem;`;
|
|
990
76
|
}
|
|
991
77
|
}
|
|
78
|
+
|
|
992
79
|
function mediaMobile({
|
|
993
|
-
theme
|
|
80
|
+
theme
|
|
994
81
|
}) {
|
|
995
|
-
if (!
|
|
82
|
+
if (!theme.responsive)
|
|
996
83
|
return "@media (max-width: 0)";
|
|
997
|
-
return `@media screen and (max-width: ${
|
|
84
|
+
return `@media screen and (max-width: ${theme.media.mobile})`;
|
|
998
85
|
}
|
|
999
86
|
function mediaTablet({
|
|
1000
|
-
theme
|
|
87
|
+
theme
|
|
1001
88
|
}) {
|
|
1002
|
-
if (!
|
|
89
|
+
if (!theme.responsive)
|
|
1003
90
|
return "@media (max-width: 0)";
|
|
1004
|
-
return `@media screen and (max-width: ${
|
|
91
|
+
return `@media screen and (max-width: ${theme.media.tablet})`;
|
|
1005
92
|
}
|
|
1006
93
|
function mediaDesktop({
|
|
1007
|
-
theme
|
|
94
|
+
theme
|
|
1008
95
|
}) {
|
|
1009
|
-
if (!
|
|
96
|
+
if (!theme.responsive)
|
|
1010
97
|
return "@media (max-width: 0)";
|
|
1011
|
-
return `@media screen and (max-width: ${
|
|
98
|
+
return `@media screen and (max-width: ${theme.media.desktop})`;
|
|
1012
99
|
}
|
|
1013
100
|
function mediaFullHD({
|
|
1014
|
-
theme
|
|
101
|
+
theme
|
|
1015
102
|
}) {
|
|
1016
|
-
if (!
|
|
103
|
+
if (!theme.responsive)
|
|
1017
104
|
return "@media (max-width: 0)";
|
|
1018
|
-
return `@media screen and (max-width: ${
|
|
105
|
+
return `@media screen and (max-width: ${theme.media.fullhd})`;
|
|
1019
106
|
}
|
|
1020
107
|
function mediaUntilFullHD({
|
|
1021
|
-
theme
|
|
108
|
+
theme
|
|
1022
109
|
}) {
|
|
1023
|
-
if (!
|
|
110
|
+
if (!theme.responsive)
|
|
1024
111
|
return "@media (max-width: 0)";
|
|
1025
|
-
return `@media screen and (min-width: ${
|
|
112
|
+
return `@media screen and (min-width: ${theme.media.fullhd})`;
|
|
1026
113
|
}
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
const
|
|
1030
|
-
|
|
114
|
+
|
|
115
|
+
function disabledColor(theme) {
|
|
116
|
+
const textColor = polished.transparentize(0.15, theme.textDark || "#000");
|
|
117
|
+
const backColor = polished.transparentize(0.55, theme.border || "#EEE");
|
|
118
|
+
return styledComponents.css(["pointer-events:none;box-shadow:none;color:", ";background-color:", ";"], textColor, backColor);
|
|
1031
119
|
}
|
|
1032
|
-
|
|
120
|
+
|
|
121
|
+
const Message = /* @__PURE__ */ styledComponents.styled.small.withConfig({
|
|
122
|
+
shouldForwardProp: (name) => name !== "error"
|
|
123
|
+
}).withConfig({
|
|
1033
124
|
displayName: "HelpMessage__Message",
|
|
1034
125
|
componentId: "sc-14wou17-0"
|
|
1035
126
|
})(["font-size:0.8rem;color:", ";"], ({
|
|
1036
127
|
error,
|
|
1037
|
-
theme
|
|
1038
|
-
}) => error ?
|
|
128
|
+
theme
|
|
129
|
+
}) => error ? theme.danger : theme.textLight);
|
|
1039
130
|
function HelpMessage({
|
|
1040
131
|
help,
|
|
1041
132
|
error,
|
|
1042
133
|
noErrorMessage
|
|
1043
134
|
}) {
|
|
1044
135
|
if (error && !noErrorMessage)
|
|
1045
|
-
return /* @__PURE__ */
|
|
136
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Message, { error: true, children: error });
|
|
1046
137
|
if (help)
|
|
1047
|
-
return /* @__PURE__ */
|
|
138
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Message, { children: help });
|
|
1048
139
|
return null;
|
|
1049
140
|
}
|
|
1050
|
-
|
|
141
|
+
|
|
142
|
+
const TextInput = React.forwardRef(({
|
|
1051
143
|
className,
|
|
1052
144
|
outline,
|
|
1053
145
|
error,
|
|
@@ -1059,112 +151,121 @@ const TextInput = require$$0.forwardRef(({
|
|
|
1059
151
|
maxLength = 255,
|
|
1060
152
|
noErrorMessage,
|
|
1061
153
|
...rest
|
|
1062
|
-
}, ref) => /* @__PURE__ */
|
|
1063
|
-
leftIcon2 && /* @__PURE__ */
|
|
1064
|
-
rightIcon2 && /* @__PURE__ */
|
|
1065
|
-
/* @__PURE__ */
|
|
1066
|
-
/* @__PURE__ */
|
|
154
|
+
}, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Wrapper$5, { className, outline, error, style, disabled: rest.disabled, children: [
|
|
155
|
+
leftIcon2 && /* @__PURE__ */ jsxRuntime.jsx(Icon, { children: leftIcon2 }),
|
|
156
|
+
rightIcon2 && /* @__PURE__ */ jsxRuntime.jsx(Icon, { right: true, children: rightIcon2 }),
|
|
157
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { type, maxLength, ref, ...rest }),
|
|
158
|
+
/* @__PURE__ */ jsxRuntime.jsx(HelpMessage, { help, error, noErrorMessage })
|
|
1067
159
|
] }));
|
|
1068
160
|
TextInput.displayName = "TextInput";
|
|
1069
161
|
const TextInput$1 = TextInput;
|
|
1070
|
-
const rightIcon = /* @__PURE__ */
|
|
1071
|
-
const leftIcon = /* @__PURE__ */
|
|
1072
|
-
const Icon = /* @__PURE__ */ styled.span.withConfig({
|
|
162
|
+
const rightIcon = /* @__PURE__ */ styledComponents.css(["right:0.375em;& ~ input{padding-right:1.555em !important;}"]);
|
|
163
|
+
const leftIcon = /* @__PURE__ */ styledComponents.css(["left:0.375em;& ~ input{padding-left:1.55em !important;}"]);
|
|
164
|
+
const Icon = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
1073
165
|
displayName: "TextInput__Icon",
|
|
1074
166
|
componentId: "sc-1myda3q-0"
|
|
1075
167
|
})(["position:absolute;top:0.375em;bottom:0;z-index:1;color:", ";", " svg,img{height:1em;width:1em;}"], ({
|
|
1076
|
-
theme
|
|
1077
|
-
}) =>
|
|
168
|
+
theme
|
|
169
|
+
}) => theme.border, ({
|
|
1078
170
|
right
|
|
1079
171
|
}) => right ? rightIcon : leftIcon);
|
|
1080
|
-
const Wrapper$
|
|
172
|
+
const Wrapper$5 = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
1081
173
|
displayName: "TextInput__Wrapper",
|
|
1082
174
|
componentId: "sc-1myda3q-1"
|
|
1083
175
|
})(["position:relative;display:block;input{max-width:100%;width:100%;height:100%;position:relative;display:block;outline:none;box-shadow:none;appearance:none;text-align:left;color:inherit;padding:", ";border:1px solid ", ";", " ", " transition-property:box-shadow;transition-duration:150ms;transition-timing-function:ease-in-out;&:focus{border-color:", ";box-shadow:", ";}&:disabled,[disabled]{resize:none;}&::placeholder{color:", ";}}&:hover{input:not(:disabled):not(:focus):not(:active){border-color:", ";}", "{color:", ";}}", ""], ({
|
|
1084
|
-
theme
|
|
1085
|
-
}) =>
|
|
176
|
+
theme
|
|
177
|
+
}) => theme.formPadding, ({
|
|
1086
178
|
error,
|
|
1087
|
-
theme
|
|
1088
|
-
}) => error ?
|
|
179
|
+
theme
|
|
180
|
+
}) => error ? theme.danger : theme.border, ({
|
|
1089
181
|
outline,
|
|
1090
|
-
theme
|
|
182
|
+
theme
|
|
1091
183
|
}) => outline ? {
|
|
1092
|
-
borderRadius:
|
|
184
|
+
borderRadius: theme.radius
|
|
1093
185
|
} : {
|
|
1094
186
|
borderRadius: 0,
|
|
1095
187
|
borderWidth: 0,
|
|
1096
188
|
borderBottomWidth: "1px"
|
|
1097
189
|
}, setSize("font-size"), ({
|
|
1098
190
|
error,
|
|
1099
|
-
theme
|
|
1100
|
-
}) => error ?
|
|
1101
|
-
theme
|
|
191
|
+
theme
|
|
192
|
+
}) => error ? theme.danger : theme.primary, ({
|
|
193
|
+
theme,
|
|
1102
194
|
outline,
|
|
1103
195
|
error
|
|
1104
|
-
}) => outline ? `0 0 0 0.1em ${error ?
|
|
1105
|
-
theme
|
|
1106
|
-
}) =>
|
|
1107
|
-
theme
|
|
1108
|
-
}) =>
|
|
1109
|
-
theme
|
|
1110
|
-
}) =>
|
|
196
|
+
}) => outline ? `0 0 0 0.1em ${error ? theme.danger : theme.primary}` : `0 0.1em ${error ? theme.danger : theme.primary}`, ({
|
|
197
|
+
theme
|
|
198
|
+
}) => theme.placeholder, ({
|
|
199
|
+
theme
|
|
200
|
+
}) => theme.borderHover, Icon, ({
|
|
201
|
+
theme
|
|
202
|
+
}) => theme.borderHover, ({
|
|
1111
203
|
disabled,
|
|
1112
|
-
theme
|
|
1113
|
-
}) => disabled ?
|
|
1114
|
-
|
|
204
|
+
theme
|
|
205
|
+
}) => disabled ? styledComponents.css(["input{", " border-style:dashed;}"], disabledColor(theme)) : void 0);
|
|
206
|
+
|
|
207
|
+
const Textarea = React.forwardRef(({
|
|
1115
208
|
className,
|
|
1116
209
|
help,
|
|
1117
210
|
error,
|
|
1118
211
|
style,
|
|
1119
212
|
noErrorMessage,
|
|
1120
213
|
...rest
|
|
1121
|
-
}, ref) => /* @__PURE__ */
|
|
1122
|
-
/* @__PURE__ */
|
|
1123
|
-
/* @__PURE__ */
|
|
214
|
+
}, ref) => /* @__PURE__ */ jsxRuntime.jsxs(InputWrapper$2, { className, error: Boolean(error), style, disabled: Boolean(rest.disabled), children: [
|
|
215
|
+
/* @__PURE__ */ jsxRuntime.jsx("textarea", { ...rest, ref }),
|
|
216
|
+
/* @__PURE__ */ jsxRuntime.jsx(HelpMessage, { help, error, noErrorMessage })
|
|
1124
217
|
] }));
|
|
1125
218
|
Textarea.displayName = "Textarea";
|
|
1126
219
|
const Textarea$1 = Textarea;
|
|
1127
|
-
|
|
1128
|
-
|
|
220
|
+
function shouldForwardProp$6(name) {
|
|
221
|
+
return name !== "error" && name !== "disabled";
|
|
222
|
+
}
|
|
223
|
+
const InputWrapper$2 = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
224
|
+
shouldForwardProp: shouldForwardProp$6
|
|
225
|
+
}).withConfig({
|
|
226
|
+
displayName: "Textarea__InputWrapper",
|
|
1129
227
|
componentId: "sc-z9p0uf-0"
|
|
1130
228
|
})(["display:block;position:relative;textarea{max-width:100%;width:100%;height:100%;padding:0.625em;resize:vertical;appearance:none;overflow:auto;outline:none;text-align:left;color:inherit;border-radius:", ";border:1px solid ", ";transition-property:box-shadow;transition-duration:0.15s;transition-timing-function:ease-in-out;", " &:focus{border-color:", ";", "}&:disabled,[disabled],&:readonly{", "}&:disabled,[disabled]{resize:none;}&::placeholder{color:", ";}}&:hover{textarea:not(:disabled):not(:focus){border-color:", ";}}", ""], ({
|
|
1131
|
-
theme
|
|
1132
|
-
}) =>
|
|
1133
|
-
theme
|
|
229
|
+
theme
|
|
230
|
+
}) => theme.radius, ({
|
|
231
|
+
theme,
|
|
1134
232
|
error
|
|
1135
|
-
}) => error ?
|
|
1136
|
-
theme
|
|
233
|
+
}) => error ? theme.danger : theme.border, setSize("font-size"), ({
|
|
234
|
+
theme,
|
|
1137
235
|
error
|
|
1138
|
-
}) => error ?
|
|
1139
|
-
theme
|
|
236
|
+
}) => error ? theme.danger : theme.primary, ({
|
|
237
|
+
theme,
|
|
1140
238
|
error
|
|
1141
|
-
}) => boxShadow("0.1em", error ?
|
|
1142
|
-
theme
|
|
1143
|
-
}) => disabledColor(
|
|
1144
|
-
theme
|
|
1145
|
-
}) =>
|
|
1146
|
-
theme
|
|
1147
|
-
}) =>
|
|
239
|
+
}) => boxShadow("0.1em", error ? theme.danger : theme.primary), ({
|
|
240
|
+
theme
|
|
241
|
+
}) => disabledColor(theme), ({
|
|
242
|
+
theme
|
|
243
|
+
}) => theme.placeholder, ({
|
|
244
|
+
theme
|
|
245
|
+
}) => theme.borderHover, ({
|
|
1148
246
|
disabled,
|
|
1149
|
-
theme
|
|
1150
|
-
}) => disabled ?
|
|
247
|
+
theme
|
|
248
|
+
}) => disabled ? styledComponents.css(["textarea{", " border-style:dashed;}"], disabledColor(theme)) : void 0);
|
|
249
|
+
|
|
1151
250
|
const isClient = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
1152
|
-
|
|
251
|
+
|
|
252
|
+
const useIsomorphicLayoutEffect = isClient ? React.useLayoutEffect : React.useEffect;
|
|
253
|
+
|
|
1153
254
|
function Approved$1() {
|
|
1154
|
-
return /* @__PURE__ */
|
|
255
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11.5 18.5l-3.9-4L6 16l5.6 5.6 11.6-11.5-1.7-1.6z", fill: "currentColor" }) });
|
|
1155
256
|
}
|
|
1156
257
|
function Indeterminate() {
|
|
1157
|
-
return /* @__PURE__ */
|
|
258
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "20", height: "4", y: "13", x: "4.5", fill: "currentColor", stroke: "none", rx: "2" }) });
|
|
1158
259
|
}
|
|
1159
|
-
const Checkbox =
|
|
260
|
+
const Checkbox = React.forwardRef(({
|
|
1160
261
|
className,
|
|
1161
262
|
children,
|
|
1162
263
|
indeterminate,
|
|
1163
264
|
...rest
|
|
1164
265
|
}, ref) => {
|
|
1165
|
-
const innerRef =
|
|
266
|
+
const innerRef = React.useRef(null);
|
|
1166
267
|
const id = `checkbox_${rest.name}_${rest.value ?? "none"}`;
|
|
1167
|
-
const innerClass =
|
|
268
|
+
const innerClass = React.useMemo(() => {
|
|
1168
269
|
const arr = [];
|
|
1169
270
|
if (rest.checked || indeterminate)
|
|
1170
271
|
arr.push("checked");
|
|
@@ -1172,51 +273,53 @@ const Checkbox = require$$0.forwardRef(({
|
|
|
1172
273
|
arr.push("disabled");
|
|
1173
274
|
return arr.join(" ");
|
|
1174
275
|
}, [rest.checked, rest.disabled, indeterminate]);
|
|
1175
|
-
|
|
276
|
+
React.useImperativeHandle(ref, () => innerRef.current);
|
|
1176
277
|
useIsomorphicLayoutEffect(() => {
|
|
1177
278
|
if (innerRef.current) {
|
|
1178
279
|
innerRef.current.indeterminate = indeterminate;
|
|
1179
280
|
}
|
|
1180
281
|
}, [indeterminate]);
|
|
1181
|
-
return /* @__PURE__ */
|
|
1182
|
-
/* @__PURE__ */
|
|
1183
|
-
/* @__PURE__ */
|
|
1184
|
-
/* @__PURE__ */
|
|
282
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Wrapper$4, { className, children: [
|
|
283
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { type: "checkbox", id, ...rest, ref: innerRef }),
|
|
284
|
+
/* @__PURE__ */ jsxRuntime.jsxs("label", { htmlFor: id, children: [
|
|
285
|
+
/* @__PURE__ */ jsxRuntime.jsx(Shape$1, { className: innerClass, children: indeterminate ? /* @__PURE__ */ jsxRuntime.jsx(Indeterminate, {}) : /* @__PURE__ */ jsxRuntime.jsx(Approved$1, {}) }),
|
|
1185
286
|
children
|
|
1186
287
|
] })
|
|
1187
288
|
] });
|
|
1188
289
|
});
|
|
1189
290
|
Checkbox.displayName = "Checkbox";
|
|
1190
291
|
const Checkbox$1 = Checkbox;
|
|
1191
|
-
const Shape$1 = /* @__PURE__ */ styled.div.withConfig({
|
|
292
|
+
const Shape$1 = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1192
293
|
displayName: "Checkbox__Shape",
|
|
1193
294
|
componentId: "sc-1lh5swj-0"
|
|
1194
295
|
})(["display:inline-flex;margin:0.5rem;width:1.25em;height:1.25em;background:transparent;border:0.1em solid ", ";border-radius:", ";justify-content:center;align-items:center;will-change:background-color;transition:background-color 150ms ease-out;svg{opacity:0;stroke-width:0.1em;stroke:currentColor;}&.checked{border-color:", ";background-color:", ";color:", ";svg{opacity:1;}&.disabled{color:", ";}}&.disabled{background:", ";border-color:", ";}"], ({
|
|
1195
|
-
theme
|
|
1196
|
-
}) =>
|
|
1197
|
-
theme
|
|
1198
|
-
}) =>
|
|
1199
|
-
theme
|
|
1200
|
-
}) =>
|
|
1201
|
-
theme
|
|
1202
|
-
}) =>
|
|
1203
|
-
theme
|
|
1204
|
-
}) =>
|
|
1205
|
-
theme
|
|
1206
|
-
}) => polished.transparentize(0.15,
|
|
1207
|
-
theme
|
|
1208
|
-
}) => polished.transparentize(0.55,
|
|
1209
|
-
theme
|
|
1210
|
-
}) =>
|
|
1211
|
-
const Wrapper$
|
|
296
|
+
theme
|
|
297
|
+
}) => theme.border, ({
|
|
298
|
+
theme
|
|
299
|
+
}) => theme.radius, ({
|
|
300
|
+
theme
|
|
301
|
+
}) => theme.primary, ({
|
|
302
|
+
theme
|
|
303
|
+
}) => theme.primary, ({
|
|
304
|
+
theme
|
|
305
|
+
}) => theme.white, ({
|
|
306
|
+
theme
|
|
307
|
+
}) => polished.transparentize(0.15, theme.textDark), ({
|
|
308
|
+
theme
|
|
309
|
+
}) => polished.transparentize(0.55, theme.border), ({
|
|
310
|
+
theme
|
|
311
|
+
}) => theme.border);
|
|
312
|
+
const Wrapper$4 = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
1212
313
|
displayName: "Checkbox__Wrapper",
|
|
1213
314
|
componentId: "sc-1lh5swj-1"
|
|
1214
315
|
})(["display:block;position:relative;width:auto;label{display:flex;align-items:center;cursor:pointer;padding-left:0.625em;max-width:100%;width:100%;line-height:1.25;margin-right:0.625rem;}input{display:none;&:disabled + label{color:", ";}}"], ({
|
|
1215
|
-
theme
|
|
1216
|
-
}) => polished.transparentize(0.25,
|
|
316
|
+
theme
|
|
317
|
+
}) => polished.transparentize(0.25, theme.textDark));
|
|
318
|
+
|
|
1217
319
|
function ChevronDown(props) {
|
|
1218
|
-
return /* @__PURE__ */
|
|
320
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M10.6 0L6 4.6 1.4 0 0 1.4l6 6 6-6L10.6 0z", fill: "currentColor" }) });
|
|
1219
321
|
}
|
|
322
|
+
|
|
1220
323
|
function Select({
|
|
1221
324
|
options = [],
|
|
1222
325
|
placeholder,
|
|
@@ -1231,49 +334,55 @@ function Select({
|
|
|
1231
334
|
innerRef,
|
|
1232
335
|
...rest
|
|
1233
336
|
}) {
|
|
1234
|
-
const list =
|
|
1235
|
-
return /* @__PURE__ */
|
|
1236
|
-
/* @__PURE__ */
|
|
1237
|
-
placeholder && /* @__PURE__ */
|
|
337
|
+
const list = React.useMemo(() => options.map((item) => typeof item === "string" ? /* @__PURE__ */ jsxRuntime.jsx("option", { value: item, children: render ? render(item) : item }, item) : /* @__PURE__ */ jsxRuntime.jsx("option", { value: item.id, children: render ? render(item.name) : item.name }, item.id)), [options, render]);
|
|
338
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(InputWrapper$1, { className, inputSize, outline, error: !!error, disabled: rest.disabled, children: [
|
|
339
|
+
/* @__PURE__ */ jsxRuntime.jsxs("select", { ...rest, ref: innerRef, children: [
|
|
340
|
+
placeholder && /* @__PURE__ */ jsxRuntime.jsx("option", { value: "", disabled: !optional, children: placeholder }),
|
|
1238
341
|
list
|
|
1239
342
|
] }),
|
|
1240
|
-
/* @__PURE__ */
|
|
1241
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChevronDown, {}),
|
|
344
|
+
/* @__PURE__ */ jsxRuntime.jsx(HelpMessage, { help, error, noErrorMessage })
|
|
1242
345
|
] });
|
|
1243
346
|
}
|
|
1244
|
-
const index$5 =
|
|
1245
|
-
|
|
347
|
+
const index$5 = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Select, { ...props, innerRef: ref }));
|
|
348
|
+
function shouldForwardProp$5(name) {
|
|
349
|
+
return name !== "error" && name !== "disabled" && name !== "inputSize" && name !== "outline";
|
|
350
|
+
}
|
|
351
|
+
const InputWrapper$1 = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
352
|
+
shouldForwardProp: shouldForwardProp$5
|
|
353
|
+
}).withConfig({
|
|
1246
354
|
displayName: "Select__InputWrapper",
|
|
1247
355
|
componentId: "sc-gevlx8-0"
|
|
1248
356
|
})(["position:relative;display:block;select{display:block;cursor:pointer;appearance:none;outline:none;max-width:100%;width:100%;height:100%;background-color:transparent;padding:", ";padding-right:1.85rem;text-align:left;color:inherit;", " border:1px solid ", ";", " will-change:box-shadow;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:ease-in-out;&:hover{border-color:", ";}&:focus{border-color:", ";box-shadow:", ";}&::-ms-expand{display:none;}&:-moz-focusring{color:transparent;text-shadow:0 0 0 #000;}&:invalid{color:", ";}}svg{position:absolute;right:0.75rem;top:50%;transform:translateY(-50%);color:", ";}select:hover + svg{color:", ";}", ""], ({
|
|
1249
|
-
theme
|
|
1250
|
-
}) =>
|
|
357
|
+
theme
|
|
358
|
+
}) => theme.formPadding, ({
|
|
1251
359
|
inputSize
|
|
1252
360
|
}) => setSize("font-size", inputSize), ({
|
|
1253
361
|
error,
|
|
1254
|
-
theme
|
|
1255
|
-
}) => error ?
|
|
362
|
+
theme
|
|
363
|
+
}) => error ? theme.danger : theme.border, ({
|
|
1256
364
|
outline,
|
|
1257
|
-
theme
|
|
1258
|
-
}) => outline ?
|
|
1259
|
-
theme
|
|
1260
|
-
}) =>
|
|
365
|
+
theme
|
|
366
|
+
}) => outline ? styledComponents.css(["border-radius:", ";"], theme.radius) : styledComponents.css(["border-width:0;border-radius:0;border-bottom-width:1px;"]), ({
|
|
367
|
+
theme
|
|
368
|
+
}) => theme.borderHover, ({
|
|
1261
369
|
error,
|
|
1262
|
-
theme
|
|
1263
|
-
}) => error ?
|
|
1264
|
-
theme
|
|
370
|
+
theme
|
|
371
|
+
}) => error ? theme.danger : theme.primary, ({
|
|
372
|
+
theme,
|
|
1265
373
|
outline,
|
|
1266
374
|
error
|
|
1267
|
-
}) => outline ? `0 0 0 0.1em ${error ?
|
|
1268
|
-
theme
|
|
1269
|
-
}) =>
|
|
1270
|
-
theme
|
|
1271
|
-
}) =>
|
|
1272
|
-
theme
|
|
1273
|
-
}) =>
|
|
375
|
+
}) => outline ? `0 0 0 0.1em ${error ? theme.danger : theme.primary}` : `0 0.1em ${error ? theme.danger : theme.primary}`, ({
|
|
376
|
+
theme
|
|
377
|
+
}) => theme.placeholder, ({
|
|
378
|
+
theme
|
|
379
|
+
}) => theme.border, ({
|
|
380
|
+
theme
|
|
381
|
+
}) => theme.borderHover, ({
|
|
1274
382
|
disabled,
|
|
1275
|
-
theme
|
|
1276
|
-
}) => disabled ?
|
|
383
|
+
theme
|
|
384
|
+
}) => disabled ? styledComponents.css(["select{", " border-style:dashed;}svg{display:none;}"], disabledColor(theme)) : void 0);
|
|
385
|
+
|
|
1277
386
|
function Radio({
|
|
1278
387
|
className,
|
|
1279
388
|
style,
|
|
@@ -1282,7 +391,7 @@ function Radio({
|
|
|
1282
391
|
...rest
|
|
1283
392
|
}) {
|
|
1284
393
|
const id = `radio_${rest.name}_${rest.value}`;
|
|
1285
|
-
const innerClass =
|
|
394
|
+
const innerClass = React.useMemo(() => {
|
|
1286
395
|
const arr = [];
|
|
1287
396
|
if (rest.checked)
|
|
1288
397
|
arr.push("checked");
|
|
@@ -1290,38 +399,39 @@ function Radio({
|
|
|
1290
399
|
arr.push("disabled");
|
|
1291
400
|
return arr.join(" ");
|
|
1292
401
|
}, [rest.checked, rest.disabled]);
|
|
1293
|
-
return /* @__PURE__ */
|
|
1294
|
-
/* @__PURE__ */
|
|
1295
|
-
/* @__PURE__ */
|
|
402
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Wrapper$3, { className, style, children: [
|
|
403
|
+
/* @__PURE__ */ jsxRuntime.jsxs("label", { htmlFor: id, children: [
|
|
404
|
+
/* @__PURE__ */ jsxRuntime.jsx(Shape, { className: innerClass, children: /* @__PURE__ */ jsxRuntime.jsx("i", {}) }),
|
|
1296
405
|
children
|
|
1297
406
|
] }),
|
|
1298
|
-
/* @__PURE__ */
|
|
407
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { id, type: "radio", ...rest, ref: innerRef })
|
|
1299
408
|
] });
|
|
1300
409
|
}
|
|
1301
|
-
const index$4 =
|
|
1302
|
-
const Shape = /* @__PURE__ */ styled.div.withConfig({
|
|
410
|
+
const index$4 = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Radio, { ...props, innerRef: ref }));
|
|
411
|
+
const Shape = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1303
412
|
displayName: "Radio__Shape",
|
|
1304
413
|
componentId: "sc-13m0vd4-0"
|
|
1305
414
|
})(["display:inline-flex;margin:0.5rem;width:1.25em;height:1.25em;background:transparent;border:0.1em solid ", ";border-radius:50%;justify-content:center;align-items:center;will-change:background-color,border-color;transition-property:background-color,border-color;transition-duration:150ms;transition-timing-function:ease-out;&.checked{border-color:", ";& > i{transform:scale(1);}&.disabled > i{background-color:", ";}}&.disabled{background:", ";border-color:", ";}& > i{display:block;width:0.5em;height:0.5em;background:", ";border:none;transform:scale(0);border-radius:50%;will-change:transform;transition:transform 150ms ease-out;}"], ({
|
|
1306
|
-
theme
|
|
1307
|
-
}) =>
|
|
1308
|
-
theme
|
|
1309
|
-
}) =>
|
|
1310
|
-
theme
|
|
1311
|
-
}) => polished.transparentize(0.15,
|
|
1312
|
-
theme
|
|
1313
|
-
}) => polished.transparentize(0.55,
|
|
1314
|
-
theme
|
|
1315
|
-
}) =>
|
|
1316
|
-
theme
|
|
1317
|
-
}) =>
|
|
1318
|
-
const Wrapper$
|
|
415
|
+
theme
|
|
416
|
+
}) => theme.border, ({
|
|
417
|
+
theme
|
|
418
|
+
}) => theme.primary, ({
|
|
419
|
+
theme
|
|
420
|
+
}) => polished.transparentize(0.15, theme.textDark), ({
|
|
421
|
+
theme
|
|
422
|
+
}) => polished.transparentize(0.55, theme.border), ({
|
|
423
|
+
theme
|
|
424
|
+
}) => theme.border, ({
|
|
425
|
+
theme
|
|
426
|
+
}) => theme.primary);
|
|
427
|
+
const Wrapper$3 = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
1319
428
|
displayName: "Radio__Wrapper",
|
|
1320
429
|
componentId: "sc-13m0vd4-1"
|
|
1321
430
|
})(["display:block;width:auto;label{cursor:pointer;max-width:100%;width:100%;line-height:1.25;margin-right:0.625rem;display:flex;align-items:center;&:hover > div:not(.checked):not(.disabled){border-color:", ";}}input{display:none;}"], ({
|
|
1322
|
-
theme
|
|
1323
|
-
}) =>
|
|
1324
|
-
|
|
431
|
+
theme
|
|
432
|
+
}) => theme.borderHover);
|
|
433
|
+
|
|
434
|
+
const Switch = React.forwardRef(({
|
|
1325
435
|
className,
|
|
1326
436
|
showLabel,
|
|
1327
437
|
background,
|
|
@@ -1331,41 +441,47 @@ const Switch = require$$0.forwardRef(({
|
|
|
1331
441
|
...rest
|
|
1332
442
|
}, ref) => {
|
|
1333
443
|
const id = `switch_${rest.name}`;
|
|
1334
|
-
return /* @__PURE__ */
|
|
1335
|
-
/* @__PURE__ */
|
|
1336
|
-
/* @__PURE__ */
|
|
444
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(InputWrapper, { className, showLabel, background, anchorColor, labelTextOn: onLabel, labelTextOff: offLabel, disabled: rest.disabled, children: [
|
|
445
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { id, type: "checkbox", ...rest, ref }),
|
|
446
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: id, "aria-label": id })
|
|
1337
447
|
] });
|
|
1338
448
|
});
|
|
1339
449
|
Switch.displayName = "Switch";
|
|
1340
450
|
const Switch$1 = Switch;
|
|
1341
|
-
const labelStyle = /* @__PURE__ */
|
|
451
|
+
const labelStyle = /* @__PURE__ */ styledComponents.css(["label:before{position:absolute;display:block;content:'", "';top:0.5rem;right:0.6875rem;font-size:0.825rem;line-height:0.825rem;color:", ";}input:checked ~ label:before{content:'", "';right:unset;left:0.6875rem;color:", ";}"], ({
|
|
1342
452
|
offLabel
|
|
1343
453
|
}) => offLabel, ({
|
|
1344
|
-
theme
|
|
1345
|
-
}) =>
|
|
454
|
+
theme
|
|
455
|
+
}) => theme.textLight, ({
|
|
1346
456
|
onLabel
|
|
1347
457
|
}) => onLabel, ({
|
|
1348
|
-
theme
|
|
1349
|
-
}) => findColorInvert(
|
|
1350
|
-
|
|
1351
|
-
|
|
458
|
+
theme
|
|
459
|
+
}) => findColorInvert(theme, theme.primary));
|
|
460
|
+
function shouldForwardProp$4(name) {
|
|
461
|
+
return name !== "labelTextOn" && name !== "labelTextOff" && name !== "anchorColor" && name !== "background" && name !== "showLabel";
|
|
462
|
+
}
|
|
463
|
+
const InputWrapper = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
464
|
+
shouldForwardProp: shouldForwardProp$4
|
|
465
|
+
}).withConfig({
|
|
466
|
+
displayName: "Switch__InputWrapper",
|
|
1352
467
|
componentId: "sc-1ljdf1-0"
|
|
1353
468
|
})(["display:inline-block;cursor:pointer;line-height:1.25;position:relative;input{display:none;}label{position:relative;display:block;height:1.875rem;min-width:5rem;background:transparent;border:1px solid ", ";border-radius:1.25rem;cursor:pointer;will-change:background-color;transition:background-color 300ms ease;box-shadow:inset 0 0.25rem 0.25rem rgba(0,0,0,0.05);&:after{position:absolute;display:block;left:0.375rem;top:0.2rem;width:1.375rem;height:1.375rem;border-radius:100%;background:", ";content:'';text-align:right;border:1px solid ", ";will-change:left;transition:left 300ms ease;box-shadow:0 0 0.375rem rgba(0,0,0,0.1);}}input:checked ~ label{background:", ";box-shadow:inset 0 0.25rem 0.25rem rgba(0,0,0,0.15);&:after{left:calc(100% - 1.75rem);box-shadow:0 0 0.375rem rgba(0,0,0,0.15);}}", " ", ""], ({
|
|
1354
|
-
theme
|
|
1355
|
-
}) =>
|
|
1356
|
-
theme
|
|
469
|
+
theme
|
|
470
|
+
}) => theme.border, ({
|
|
471
|
+
theme,
|
|
1357
472
|
anchorColor
|
|
1358
|
-
}) => anchorColor ||
|
|
1359
|
-
theme
|
|
1360
|
-
}) =>
|
|
1361
|
-
theme
|
|
473
|
+
}) => anchorColor || theme.white, ({
|
|
474
|
+
theme
|
|
475
|
+
}) => theme.border, ({
|
|
476
|
+
theme,
|
|
1362
477
|
background
|
|
1363
|
-
}) => background ||
|
|
478
|
+
}) => background || theme.primary, ({
|
|
1364
479
|
showLabel
|
|
1365
480
|
}) => showLabel ? labelStyle : void 0, ({
|
|
1366
481
|
disabled,
|
|
1367
|
-
theme
|
|
1368
|
-
}) => disabled ?
|
|
482
|
+
theme
|
|
483
|
+
}) => disabled ? styledComponents.css(["cursor:default;label{", " &:after{background:", ";}}input:checked ~ label{background:", ";}"], disabledColor(theme), theme.disabled, theme.grey) : void 0);
|
|
484
|
+
|
|
1369
485
|
function Accordion({
|
|
1370
486
|
header,
|
|
1371
487
|
show,
|
|
@@ -1373,11 +489,11 @@ function Accordion({
|
|
|
1373
489
|
timeout = 300,
|
|
1374
490
|
...rest
|
|
1375
491
|
}) {
|
|
1376
|
-
const ref =
|
|
1377
|
-
const prevHeight =
|
|
1378
|
-
const timeoutRef =
|
|
1379
|
-
const init =
|
|
1380
|
-
|
|
492
|
+
const ref = React.useRef(null);
|
|
493
|
+
const prevHeight = React.useRef(0);
|
|
494
|
+
const timeoutRef = React.useRef(0);
|
|
495
|
+
const init = React.useRef(true);
|
|
496
|
+
React.useEffect(() => {
|
|
1381
497
|
timeoutRef.current = timeout;
|
|
1382
498
|
}, [timeout]);
|
|
1383
499
|
useIsomorphicLayoutEffect(() => {
|
|
@@ -1439,17 +555,18 @@ function Accordion({
|
|
|
1439
555
|
clearTimeout(timeoutId);
|
|
1440
556
|
};
|
|
1441
557
|
}, [show]);
|
|
1442
|
-
return /* @__PURE__ */
|
|
558
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ...rest, children: [
|
|
1443
559
|
header,
|
|
1444
|
-
/* @__PURE__ */
|
|
560
|
+
/* @__PURE__ */ jsxRuntime.jsx(AnimatedContent, { "aria-hidden": !show, ref, style: {
|
|
1445
561
|
transitionDuration: `${timeout}ms`
|
|
1446
562
|
}, children })
|
|
1447
563
|
] });
|
|
1448
564
|
}
|
|
1449
|
-
const AnimatedContent = /* @__PURE__ */ styled.div.withConfig({
|
|
565
|
+
const AnimatedContent = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1450
566
|
displayName: "Accordion__AnimatedContent",
|
|
1451
567
|
componentId: "sc-1yjowun-0"
|
|
1452
568
|
})(["will-change:opacity,height,transform;transition-property:opacity,height,transform;transition-timing-function:ease-in-out;"]);
|
|
569
|
+
|
|
1453
570
|
function setAlign({
|
|
1454
571
|
align
|
|
1455
572
|
}) {
|
|
@@ -1464,38 +581,39 @@ function setAlign({
|
|
|
1464
581
|
return "space-evenly";
|
|
1465
582
|
}
|
|
1466
583
|
}
|
|
584
|
+
|
|
1467
585
|
function AppBar({
|
|
1468
586
|
children,
|
|
1469
587
|
align,
|
|
1470
588
|
brand,
|
|
1471
589
|
...rest
|
|
1472
590
|
}) {
|
|
1473
|
-
const [show, setShow] =
|
|
591
|
+
const [show, setShow] = React.useState(false);
|
|
1474
592
|
const toggleMenu = () => setShow(!show);
|
|
1475
|
-
return /* @__PURE__ */
|
|
593
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NavBar, { role: "navigation", ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs("nav", { children: [
|
|
1476
594
|
brand,
|
|
1477
|
-
children && /* @__PURE__ */
|
|
1478
|
-
/* @__PURE__ */
|
|
1479
|
-
/* @__PURE__ */
|
|
1480
|
-
/* @__PURE__ */
|
|
595
|
+
children && /* @__PURE__ */ jsxRuntime.jsxs(Burger, { className: show ? "active" : void 0, onClick: toggleMenu, children: [
|
|
596
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", {}),
|
|
597
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", {}),
|
|
598
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", {})
|
|
1481
599
|
] }),
|
|
1482
|
-
/* @__PURE__ */
|
|
600
|
+
/* @__PURE__ */ jsxRuntime.jsx(NavContent, { className: show ? "active" : void 0, align, children })
|
|
1483
601
|
] }) });
|
|
1484
602
|
}
|
|
1485
603
|
function setColor$1({
|
|
1486
604
|
color,
|
|
1487
|
-
theme
|
|
605
|
+
theme,
|
|
1488
606
|
backdrop
|
|
1489
607
|
}) {
|
|
1490
|
-
const backgroundColor = color ?
|
|
1491
|
-
const textColor = findColorInvert(
|
|
608
|
+
const backgroundColor = color ? theme[color] : "transparent";
|
|
609
|
+
const textColor = findColorInvert(theme, backgroundColor === "transparent" ? theme.background : backgroundColor);
|
|
1492
610
|
if (backdrop) {
|
|
1493
|
-
const backColor = polished.transparentize(0.2, backgroundColor === "transparent" ?
|
|
1494
|
-
return
|
|
611
|
+
const backColor = polished.transparentize(0.2, backgroundColor === "transparent" ? theme.white : backgroundColor);
|
|
612
|
+
return styledComponents.css(["background-color:", ";color:", ";"], backColor, textColor);
|
|
1495
613
|
}
|
|
1496
|
-
return
|
|
614
|
+
return styledComponents.css(["background-color:", ";color:", ";"], backgroundColor, textColor);
|
|
1497
615
|
}
|
|
1498
|
-
const NavBar = /* @__PURE__ */ styled.header.withConfig({
|
|
616
|
+
const NavBar = /* @__PURE__ */ styledComponents.styled.header.withConfig({
|
|
1499
617
|
displayName: "AppBar__NavBar",
|
|
1500
618
|
componentId: "sc-t8gqca-0"
|
|
1501
619
|
})(["position:", ";display:flex;top:-1px;min-height:3.25rem;width:100%;z-index:30;padding:", ";& > nav{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;flex:1 0 auto;}", " a{color:inherit;}", "{padding:", ";}"], ({
|
|
@@ -1512,22 +630,23 @@ const NavBar = /* @__PURE__ */ styled.header.withConfig({
|
|
|
1512
630
|
}) => fluid ? "0 0.75rem" : "0 5%", setColor$1, mediaTablet, ({
|
|
1513
631
|
fluid
|
|
1514
632
|
}) => fluid ? "0 0.5rem" : "0 3%");
|
|
1515
|
-
const Burger = /* @__PURE__ */ styled.button.withConfig({
|
|
633
|
+
const Burger = /* @__PURE__ */ styledComponents.styled.button.withConfig({
|
|
1516
634
|
displayName: "AppBar__Burger",
|
|
1517
635
|
componentId: "sc-t8gqca-1"
|
|
1518
636
|
})(["", " display:none;margin-left:auto;border:none;background-color:transparent;color:inherit;outline:none;&:hover{background-color:rgba(0,0,0,.05);}", "{display:block;}"], hamburger("3.25rem"), mediaMobile);
|
|
1519
|
-
const NavContent = /* @__PURE__ */ styled.div.withConfig({
|
|
637
|
+
const NavContent = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1520
638
|
displayName: "AppBar__NavContent",
|
|
1521
639
|
componentId: "sc-t8gqca-2"
|
|
1522
640
|
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;flex-basis:auto;flex-grow:1;height:100%;& > ul{display:flex;flex-direction:row;list-style:none;flex-grow:1;flex-basis:100%;height:inherit;align-items:center;justify-content:", ";li{padding:0.85rem;}}& > div,& > span,& > form{display:flex;", "}", "{width:100%;flex-direction:column;align-items:flex-start;height:auto;padding-bottom:0.5rem;&:not(.active){display:none;}& > ul{flex-direction:column;align-items:flex-start;width:100%;flex-basis:auto;li{padding:.5rem 0;}}& > div,& > span,& > form{padding:.5rem 0;width:100%;}}"], setAlign, ({
|
|
1523
641
|
color
|
|
1524
642
|
}) => color ? `color: ${color};` : "", mediaMobile);
|
|
1525
|
-
|
|
643
|
+
|
|
644
|
+
const Portal = React__default.default.forwardRef(({
|
|
1526
645
|
children,
|
|
1527
646
|
container,
|
|
1528
647
|
disabled
|
|
1529
648
|
}, ref) => {
|
|
1530
|
-
const [mountNode, setMountNode] =
|
|
649
|
+
const [mountNode, setMountNode] = React.useState(null);
|
|
1531
650
|
useIsomorphicLayoutEffect(() => {
|
|
1532
651
|
if (disabled) {
|
|
1533
652
|
setMountNode(null);
|
|
@@ -1549,6 +668,7 @@ const Portal = require$$0.forwardRef(({
|
|
|
1549
668
|
});
|
|
1550
669
|
Portal.displayName = "Portal";
|
|
1551
670
|
const Portal$1 = Portal;
|
|
671
|
+
|
|
1552
672
|
function Tooltip$1({
|
|
1553
673
|
children,
|
|
1554
674
|
position = "bottom",
|
|
@@ -1559,15 +679,17 @@ function Tooltip$1({
|
|
|
1559
679
|
x: 0,
|
|
1560
680
|
y: 6
|
|
1561
681
|
},
|
|
1562
|
-
clientPoint,
|
|
682
|
+
clientPoint = false,
|
|
1563
683
|
disabled
|
|
1564
684
|
}) {
|
|
1565
|
-
const [open, setOpen] =
|
|
685
|
+
const [open, setOpen] = React.useState(false);
|
|
686
|
+
const nodeId = react.useId();
|
|
1566
687
|
const {
|
|
1567
688
|
refs,
|
|
1568
689
|
floatingStyles,
|
|
1569
690
|
context
|
|
1570
691
|
} = react.useFloating({
|
|
692
|
+
nodeId,
|
|
1571
693
|
open,
|
|
1572
694
|
placement: position,
|
|
1573
695
|
middleware: [react.shift(), react.flip(), react.offset({
|
|
@@ -1584,106 +706,54 @@ function Tooltip$1({
|
|
|
1584
706
|
}), react.useClientPoint(context, {
|
|
1585
707
|
enabled: clientPoint
|
|
1586
708
|
})]);
|
|
1587
|
-
const child = typeof children === "string" ? /* @__PURE__ */
|
|
1588
|
-
return /* @__PURE__ */
|
|
1589
|
-
|
|
709
|
+
const child = typeof children === "string" ? /* @__PURE__ */ jsxRuntime.jsx("span", { children }) : children;
|
|
710
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
711
|
+
React.cloneElement(React.Children.only(child), {
|
|
1590
712
|
ref: refs.setReference,
|
|
1591
713
|
...getReferenceProps()
|
|
1592
714
|
}),
|
|
1593
|
-
/* @__PURE__ */
|
|
715
|
+
/* @__PURE__ */ jsxRuntime.jsx(Portal$1, { children: open ? /* @__PURE__ */ jsxRuntime.jsx(TooltipWrapper, { className, ref: refs.setFloating, role: "tooltip", $color: color, style: floatingStyles, ...getFloatingProps(), children: label }) : null })
|
|
1594
716
|
] });
|
|
1595
717
|
}
|
|
1596
|
-
const TooltipWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
718
|
+
const TooltipWrapper = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1597
719
|
displayName: "Tooltip__TooltipWrapper",
|
|
1598
720
|
componentId: "sc-1xyhucq-0"
|
|
1599
721
|
})(["position:relative;box-shadow:0 1px 2px 0 rgba(0,0,0,0.05);z-index:9999;padding:0.375rem 0.625rem;cursor:default;white-space:pre;font-size:0.85rem;z-index:9999;background-color:", ";&:focus{outline:none;}"], ({
|
|
1600
722
|
$color,
|
|
1601
|
-
theme
|
|
1602
|
-
}) => $color ?
|
|
1603
|
-
|
|
723
|
+
theme
|
|
724
|
+
}) => $color ? theme[$color] || theme.background : theme.background);
|
|
725
|
+
|
|
726
|
+
const Box = styledComponents.styled.div.withConfig({
|
|
727
|
+
shouldForwardProp: (name) => name !== "color" && name !== "borderless"
|
|
728
|
+
}).withConfig({
|
|
1604
729
|
displayName: "Box",
|
|
1605
730
|
componentId: "sc-kc6ybp-0"
|
|
1606
731
|
})(["position:relative;display:flex;flex-direction:column;border:", ";border-radius:", ";width:100%;min-width:0;word-wrap:break-word;", ""], ({
|
|
1607
732
|
borderless,
|
|
1608
|
-
theme
|
|
1609
|
-
}) => borderless ? "none" : `1px solid ${
|
|
1610
|
-
theme
|
|
1611
|
-
}) =>
|
|
733
|
+
theme
|
|
734
|
+
}) => borderless ? "none" : `1px solid ${theme.border}`, ({
|
|
735
|
+
theme
|
|
736
|
+
}) => theme.radius, ({
|
|
1612
737
|
color,
|
|
1613
|
-
theme
|
|
738
|
+
theme
|
|
1614
739
|
}) => {
|
|
1615
740
|
if (!color)
|
|
1616
741
|
return void 0;
|
|
1617
|
-
const target =
|
|
1618
|
-
const invertColor = findColorInvert(
|
|
742
|
+
const target = theme[color] || color;
|
|
743
|
+
const invertColor = findColorInvert(theme, target);
|
|
1619
744
|
return {
|
|
1620
745
|
backgroundColor: target,
|
|
1621
746
|
color: invertColor
|
|
1622
747
|
};
|
|
1623
748
|
});
|
|
1624
|
-
|
|
1625
|
-
displayName: "Card__CardBody",
|
|
1626
|
-
componentId: "sc-1xqn2rf-0"
|
|
1627
|
-
})(["padding:1.25rem;margin:0;"]);
|
|
1628
|
-
const CardHeader = /* @__PURE__ */ styled.header.withConfig({
|
|
1629
|
-
displayName: "Card__CardHeader",
|
|
1630
|
-
componentId: "sc-1xqn2rf-1"
|
|
1631
|
-
})(["display:flex;padding:0.5rem 1.5rem;min-height:3.5rem;border-bottom:1px solid ", ";align-items:center;justify-content:space-between;"], ({
|
|
1632
|
-
theme: theme2
|
|
1633
|
-
}) => theme2.border);
|
|
1634
|
-
const CardFooter = /* @__PURE__ */ styled.footer.withConfig({
|
|
1635
|
-
displayName: "Card__CardFooter",
|
|
1636
|
-
componentId: "sc-1xqn2rf-2"
|
|
1637
|
-
})(["display:flex;padding:0.5rem 1.5rem;min-height:3.5rem;border-top:1px solid ", ";align-items:center;justify-content:space-between;"], ({
|
|
1638
|
-
theme: theme2
|
|
1639
|
-
}) => theme2.border);
|
|
1640
|
-
const CardImage = /* @__PURE__ */ styled.a.withConfig({
|
|
1641
|
-
displayName: "Card__CardImage",
|
|
1642
|
-
componentId: "sc-1xqn2rf-3"
|
|
1643
|
-
})(["width:100%;img{width:100%;padding:0;margin:0;border-top-left-radius:3px;border-top-right-radius:3px;}"]);
|
|
1644
|
-
const CardImageHorizontal = /* @__PURE__ */ styled.a.withConfig({
|
|
1645
|
-
displayName: "Card__CardImageHorizontal",
|
|
1646
|
-
componentId: "sc-1xqn2rf-4"
|
|
1647
|
-
})(["flex:0 0 30%;min-width:5rem;width:30%;border-top-left-radius:3px;border-bottom-left-radius:3px;background:no-repeat center/cover;", ""], ({
|
|
1648
|
-
url
|
|
1649
|
-
}) => url ? {
|
|
1650
|
-
backgroundImage: `url(${url})`
|
|
1651
|
-
} : void 0);
|
|
1652
|
-
function Card({
|
|
1653
|
-
image,
|
|
1654
|
-
title,
|
|
1655
|
-
children,
|
|
1656
|
-
horizontal,
|
|
1657
|
-
footer,
|
|
1658
|
-
color,
|
|
1659
|
-
style = {},
|
|
1660
|
-
...rest
|
|
1661
|
-
}) {
|
|
1662
|
-
const header = require$$0.useMemo(() => {
|
|
1663
|
-
if (image && !horizontal)
|
|
1664
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(CardImage, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: image, alt: "" }) });
|
|
1665
|
-
if (image && horizontal)
|
|
1666
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(CardImageHorizontal, { url: image });
|
|
1667
|
-
if (title && !horizontal)
|
|
1668
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { children: title }) });
|
|
1669
|
-
return null;
|
|
1670
|
-
}, [image, title, horizontal]);
|
|
1671
|
-
const styles = require$$0.useMemo(() => ({
|
|
1672
|
-
flexDirection: horizontal ? "row" : "column",
|
|
1673
|
-
...style
|
|
1674
|
-
}), [style, horizontal]);
|
|
1675
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { color, ...rest, style: styles, children: [
|
|
1676
|
-
header,
|
|
1677
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { children }),
|
|
1678
|
-
footer && /* @__PURE__ */ jsxRuntimeExports.jsx(CardFooter, { children: require$$0.Children.only(footer) })
|
|
1679
|
-
] });
|
|
1680
|
-
}
|
|
749
|
+
|
|
1681
750
|
function stopPropagation$1(e) {
|
|
1682
751
|
if (!e)
|
|
1683
752
|
return;
|
|
1684
753
|
e.stopPropagation();
|
|
1685
754
|
}
|
|
1686
|
-
|
|
755
|
+
|
|
756
|
+
const Popover = React.forwardRef(({
|
|
1687
757
|
position,
|
|
1688
758
|
label,
|
|
1689
759
|
children,
|
|
@@ -1697,12 +767,14 @@ const Popover = require$$0.forwardRef(({
|
|
|
1697
767
|
},
|
|
1698
768
|
...rest
|
|
1699
769
|
}, ref) => {
|
|
1700
|
-
const [open, setOpen] =
|
|
770
|
+
const [open, setOpen] = React.useState(false);
|
|
771
|
+
const nodeId = react.useId();
|
|
1701
772
|
const {
|
|
1702
773
|
refs,
|
|
1703
774
|
floatingStyles,
|
|
1704
775
|
context
|
|
1705
776
|
} = react.useFloating({
|
|
777
|
+
nodeId,
|
|
1706
778
|
placement: position,
|
|
1707
779
|
middleware: [react.shift(), react.flip({
|
|
1708
780
|
fallbackAxisSideDirection: "end"
|
|
@@ -1726,12 +798,12 @@ const Popover = require$$0.forwardRef(({
|
|
|
1726
798
|
if (onClose)
|
|
1727
799
|
onClose();
|
|
1728
800
|
};
|
|
1729
|
-
|
|
801
|
+
React.useEffect(() => {
|
|
1730
802
|
if (disabled && open) {
|
|
1731
803
|
setOpen(false);
|
|
1732
804
|
}
|
|
1733
805
|
}, [disabled, open]);
|
|
1734
|
-
|
|
806
|
+
React.useImperativeHandle(ref, () => ({
|
|
1735
807
|
open: handleFocus,
|
|
1736
808
|
close: handleBlur
|
|
1737
809
|
}));
|
|
@@ -1741,8 +813,8 @@ const Popover = require$$0.forwardRef(({
|
|
|
1741
813
|
} = react.useInteractions([react.useClick(context, {
|
|
1742
814
|
enabled: !disabled
|
|
1743
815
|
})]);
|
|
1744
|
-
return /* @__PURE__ */
|
|
1745
|
-
|
|
816
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
817
|
+
React.cloneElement(React.Children.only(label), {
|
|
1746
818
|
ref: refs.setReference,
|
|
1747
819
|
...getReferenceProps({
|
|
1748
820
|
tabIndex: 0,
|
|
@@ -1751,20 +823,21 @@ const Popover = require$$0.forwardRef(({
|
|
|
1751
823
|
onClick: stopPropagation$1
|
|
1752
824
|
})
|
|
1753
825
|
}),
|
|
1754
|
-
/* @__PURE__ */
|
|
826
|
+
/* @__PURE__ */ jsxRuntime.jsx(Portal$1, { children: open ? /* @__PURE__ */ jsxRuntime.jsx(react.FloatingOverlay, { "data-testid": "visits-style-shadow", onClick: handleBlur, style: {
|
|
1755
827
|
zIndex: 9996
|
|
1756
|
-
}, children: /* @__PURE__ */
|
|
828
|
+
}, children: /* @__PURE__ */ jsxRuntime.jsx(Tooltip, { role: "tooltip", ref: refs.setFloating, color, style: floatingStyles, ...getFloatingProps({
|
|
1757
829
|
...rest,
|
|
1758
830
|
onClick: stopPropagation$1
|
|
1759
|
-
}), children }) })
|
|
831
|
+
}), children }) }) : null })
|
|
1760
832
|
] });
|
|
1761
833
|
});
|
|
1762
834
|
Popover.displayName = "Popover";
|
|
1763
835
|
const Popover$1 = Popover;
|
|
1764
|
-
const Tooltip = /* @__PURE__ */ styled(Box).withConfig({
|
|
836
|
+
const Tooltip = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
1765
837
|
displayName: "Popover__Tooltip",
|
|
1766
838
|
componentId: "sc-1huajr8-0"
|
|
1767
839
|
})(["display:flex;box-shadow:0 1px 2px 0 rgba(0,0,0,0.05);padding:0.5rem 0;width:auto;height:auto;cursor:auto;z-index:20;"]);
|
|
840
|
+
|
|
1768
841
|
function stopPropagation(e) {
|
|
1769
842
|
if (!e)
|
|
1770
843
|
return;
|
|
@@ -1774,16 +847,15 @@ function Modal({
|
|
|
1774
847
|
show,
|
|
1775
848
|
children,
|
|
1776
849
|
timeout = 200,
|
|
1777
|
-
|
|
850
|
+
padding = "0.85rem",
|
|
1778
851
|
closeModal,
|
|
1779
|
-
external,
|
|
1780
852
|
closeOnOverlay,
|
|
1781
853
|
closeOnEsc,
|
|
1782
854
|
onExited,
|
|
1783
855
|
...rest
|
|
1784
856
|
}) {
|
|
1785
|
-
const exitRef =
|
|
1786
|
-
const isTransMountedRef =
|
|
857
|
+
const exitRef = React.useRef(onExited);
|
|
858
|
+
const isTransMountedRef = React.useRef(false);
|
|
1787
859
|
const id = react.useId();
|
|
1788
860
|
const {
|
|
1789
861
|
refs,
|
|
@@ -1810,36 +882,39 @@ function Modal({
|
|
|
1810
882
|
transform: "scale(0.8)"
|
|
1811
883
|
}
|
|
1812
884
|
});
|
|
1813
|
-
|
|
1814
|
-
var _a;
|
|
885
|
+
React.useEffect(() => {
|
|
1815
886
|
if (isTransMountedRef.current === isMounted)
|
|
1816
887
|
return;
|
|
1817
888
|
isTransMountedRef.current = isMounted;
|
|
1818
889
|
if (isMounted)
|
|
1819
890
|
return;
|
|
1820
|
-
|
|
891
|
+
exitRef.current?.();
|
|
1821
892
|
}, [isMounted]);
|
|
1822
893
|
const handleOverlayClose = (e) => {
|
|
1823
894
|
if (!closeOnOverlay)
|
|
1824
895
|
return;
|
|
1825
|
-
closeModal
|
|
896
|
+
closeModal?.();
|
|
1826
897
|
};
|
|
1827
898
|
exitRef.current = onExited;
|
|
1828
|
-
return /* @__PURE__ */
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
899
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Portal$1, { children: isMounted ? /* @__PURE__ */ jsxRuntime.jsx(Overlay, { lockScroll: true, "data-testid": "vs-modal-overlay", onClick: handleOverlayClose, style: {
|
|
900
|
+
padding
|
|
901
|
+
}, children: /* @__PURE__ */ jsxRuntime.jsx(Wrapper$2, { ref: refs.setFloating, role: "dialog", ...getFloatingProps({
|
|
902
|
+
...rest,
|
|
903
|
+
style: styles,
|
|
904
|
+
onClick: stopPropagation
|
|
905
|
+
}), children }) }) : null });
|
|
1832
906
|
}
|
|
1833
|
-
const Overlay = /* @__PURE__ */ styled(react.FloatingOverlay).withConfig({
|
|
907
|
+
const Overlay = /* @__PURE__ */ styledComponents.styled(react.FloatingOverlay).withConfig({
|
|
1834
908
|
displayName: "Modal__Overlay",
|
|
1835
909
|
componentId: "sc-pb7lhx-0"
|
|
1836
|
-
})([" display:flex;display:grid;place-items:center;align-items:center;justify-content:center;background:", ";
|
|
1837
|
-
theme
|
|
1838
|
-
}) =>
|
|
1839
|
-
const Wrapper$2 = /* @__PURE__ */ styled.div.withConfig({
|
|
910
|
+
})([" display:flex;display:grid;place-items:center;align-items:center;justify-content:center;background:", ";z-index:9997;"], ({
|
|
911
|
+
theme
|
|
912
|
+
}) => theme.backdrop);
|
|
913
|
+
const Wrapper$2 = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1840
914
|
displayName: "Modal__Wrapper",
|
|
1841
915
|
componentId: "sc-pb7lhx-1"
|
|
1842
916
|
})(["will-change:transform,opacity;transform-origin:center top;transition-timing-function:cubic-bezier(0.645,0.045,0.355,1);z-index:9999;"]);
|
|
917
|
+
|
|
1843
918
|
function ToastItem({
|
|
1844
919
|
className,
|
|
1845
920
|
message,
|
|
@@ -1848,9 +923,9 @@ function ToastItem({
|
|
|
1848
923
|
id,
|
|
1849
924
|
clearOnClick
|
|
1850
925
|
}) {
|
|
1851
|
-
const clearRef =
|
|
1852
|
-
const isPrevMountedRef =
|
|
1853
|
-
const [open, setOpen] =
|
|
926
|
+
const clearRef = React.useRef(clear);
|
|
927
|
+
const isPrevMountedRef = React.useRef(false);
|
|
928
|
+
const [open, setOpen] = React.useState(false);
|
|
1854
929
|
const {
|
|
1855
930
|
context,
|
|
1856
931
|
refs
|
|
@@ -1869,23 +944,22 @@ function ToastItem({
|
|
|
1869
944
|
transform: "scale(0.8)"
|
|
1870
945
|
}
|
|
1871
946
|
});
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
var _a;
|
|
947
|
+
React.useEffect(() => setOpen(true), [id]);
|
|
948
|
+
React.useEffect(() => {
|
|
1875
949
|
if (isPrevMountedRef.current === isMounted)
|
|
1876
950
|
return;
|
|
1877
951
|
if (!isMounted) {
|
|
1878
|
-
|
|
952
|
+
clearRef.current?.(id);
|
|
1879
953
|
}
|
|
1880
954
|
isPrevMountedRef.current = isMounted;
|
|
1881
955
|
}, [isMounted, id]);
|
|
1882
|
-
|
|
956
|
+
React.useEffect(() => {
|
|
1883
957
|
if (!duration)
|
|
1884
958
|
return;
|
|
1885
959
|
const timeout = setTimeout(() => setOpen(false), duration);
|
|
1886
960
|
return () => clearTimeout(timeout);
|
|
1887
961
|
}, [duration]);
|
|
1888
|
-
const handleClickToast =
|
|
962
|
+
const handleClickToast = React.useCallback(() => {
|
|
1889
963
|
if (!clearOnClick)
|
|
1890
964
|
return;
|
|
1891
965
|
setOpen(false);
|
|
@@ -1893,12 +967,13 @@ function ToastItem({
|
|
|
1893
967
|
clearRef.current = clear;
|
|
1894
968
|
if (!isMounted)
|
|
1895
969
|
return null;
|
|
1896
|
-
return /* @__PURE__ */
|
|
970
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Item, { ref: refs.setFloating, role: "status", "data-testid": "vs-toast-item", className, style: styles, onClick: handleClickToast, children: message });
|
|
1897
971
|
}
|
|
1898
|
-
const Item = /* @__PURE__ */ styled.li.withConfig({
|
|
972
|
+
const Item = /* @__PURE__ */ styledComponents.styled.li.withConfig({
|
|
1899
973
|
displayName: "ToastItem__Item",
|
|
1900
974
|
componentId: "sc-193rp7r-0"
|
|
1901
975
|
})(["position:relative;display:flex;width:fit-content;padding:0.375em 0.75em;max-width:100%;transition-timing-function:cubic-bezier(0.645,0.045,0.355,1);"]);
|
|
976
|
+
|
|
1902
977
|
function Toast({
|
|
1903
978
|
toasts,
|
|
1904
979
|
clear,
|
|
@@ -1906,7 +981,7 @@ function Toast({
|
|
|
1906
981
|
margin = "16px",
|
|
1907
982
|
position = "top-left"
|
|
1908
983
|
}) {
|
|
1909
|
-
const style =
|
|
984
|
+
const style = React.useMemo(() => {
|
|
1910
985
|
const base = {
|
|
1911
986
|
position: fixed ? "fixed" : "absolute"
|
|
1912
987
|
};
|
|
@@ -1928,21 +1003,27 @@ function Toast({
|
|
|
1928
1003
|
}
|
|
1929
1004
|
return base;
|
|
1930
1005
|
}, [fixed, margin, position]);
|
|
1931
|
-
return /* @__PURE__ */
|
|
1006
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Portal$1, { children: /* @__PURE__ */ jsxRuntime.jsx(ToastList, { style, children: toasts.map((props) => /* @__PURE__ */ React.createElement(ToastItem, { ...props, key: props.id, clear })) }) });
|
|
1932
1007
|
}
|
|
1933
|
-
const ToastList = /* @__PURE__ */ styled.ul.withConfig({
|
|
1008
|
+
const ToastList = /* @__PURE__ */ styledComponents.styled.ul.withConfig({
|
|
1934
1009
|
displayName: "Toast__ToastList",
|
|
1935
1010
|
componentId: "sc-8192b2-0"
|
|
1936
1011
|
})(["display:flex;flex-direction:column;z-index:9999;pointer-events:none;overflow:hidden;li + li{margin-top:1rem;}"]);
|
|
1012
|
+
|
|
1937
1013
|
function getColor$1({
|
|
1938
|
-
theme
|
|
1014
|
+
theme,
|
|
1939
1015
|
color
|
|
1940
1016
|
}) {
|
|
1941
|
-
const value = !color || color === "light" ?
|
|
1942
|
-
return
|
|
1017
|
+
const value = !color || color === "light" ? theme.background : theme[color];
|
|
1018
|
+
return styledComponents.css(["border-color:", ";border-right-color:", ";border-top-color:", ";"], value, theme.border, theme.border);
|
|
1019
|
+
}
|
|
1020
|
+
const spin = /* @__PURE__ */ styledComponents.keyframes(["from{transform:rotate(0deg);}to{transform:rotate(359deg);}"]);
|
|
1021
|
+
function shouldForwardProp$3(name) {
|
|
1022
|
+
return name !== "color" && name !== "size" && name !== "borderSize";
|
|
1943
1023
|
}
|
|
1944
|
-
const
|
|
1945
|
-
|
|
1024
|
+
const Spinner = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1025
|
+
shouldForwardProp: shouldForwardProp$3
|
|
1026
|
+
}).withConfig({
|
|
1946
1027
|
displayName: "Spinner",
|
|
1947
1028
|
componentId: "sc-34g0il-0"
|
|
1948
1029
|
})(["display:inline-block;width:", ";height:", ";margin:0;padding:0;position:relative;&:after{display:block;top:0;left:0;animation:", " 750ms infinite linear;border:", " solid;border-radius:100%;", ' content:"";height:100%;width:100%;position:absolute;}'], ({
|
|
@@ -1956,6 +1037,7 @@ Spinner.defaultProps = {
|
|
|
1956
1037
|
borderSize: "2px"
|
|
1957
1038
|
};
|
|
1958
1039
|
const Spinner$1 = Spinner;
|
|
1040
|
+
|
|
1959
1041
|
function setGap(width, gap) {
|
|
1960
1042
|
return parseInt(width.replace("px", ""), 10) - 2 * gap;
|
|
1961
1043
|
}
|
|
@@ -1963,34 +1045,36 @@ function setResponsive({
|
|
|
1963
1045
|
fluid
|
|
1964
1046
|
}) {
|
|
1965
1047
|
if (fluid) {
|
|
1966
|
-
return
|
|
1048
|
+
return styledComponents.css(["padding-right:0.75rem;padding-left:0.75rem;", "{padding-right:0.5rem;padding-left:0.5rem;}"], mediaTablet);
|
|
1967
1049
|
}
|
|
1968
|
-
return
|
|
1969
|
-
theme
|
|
1970
|
-
}) => setGap(
|
|
1971
|
-
theme
|
|
1972
|
-
}) => setGap(
|
|
1973
|
-
theme
|
|
1974
|
-
}) => setGap(
|
|
1975
|
-
theme
|
|
1976
|
-
}) => setGap(
|
|
1050
|
+
return styledComponents.css(["margin-right:auto;margin-left:auto;", "{max-width:", "px;}", "{max-width:", "px;}", "{max-width:", "px;}", "{max-width:", "px;}"], mediaUntilFullHD, ({
|
|
1051
|
+
theme
|
|
1052
|
+
}) => setGap(theme.media.fullhd, theme.gutter), mediaDesktop, ({
|
|
1053
|
+
theme
|
|
1054
|
+
}) => setGap(theme.media.desktop, theme.gutter), mediaTablet, ({
|
|
1055
|
+
theme
|
|
1056
|
+
}) => setGap(theme.media.tablet, theme.smallGutter), mediaMobile, ({
|
|
1057
|
+
theme
|
|
1058
|
+
}) => setGap(theme.media.mobile, theme.smallGutter));
|
|
1977
1059
|
}
|
|
1978
|
-
const Container = styled.div.withConfig({
|
|
1060
|
+
const Container = styledComponents.styled.div.withConfig({
|
|
1979
1061
|
displayName: "Container",
|
|
1980
1062
|
componentId: "sc-1308ay5-0"
|
|
1981
1063
|
})(["position:relative;width:100%;", ""], setResponsive);
|
|
1982
|
-
|
|
1064
|
+
|
|
1065
|
+
const Row = styledComponents.styled.div.withConfig({
|
|
1983
1066
|
displayName: "Row",
|
|
1984
1067
|
componentId: "sc-1qqbtdw-0"
|
|
1985
1068
|
})(["display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:wrap;margin:-", "px;padding:", "px;", "{margin:-", "px;padding:", "px;}"], ({
|
|
1986
|
-
theme
|
|
1987
|
-
}) =>
|
|
1988
|
-
theme
|
|
1989
|
-
}) =>
|
|
1990
|
-
theme
|
|
1991
|
-
}) =>
|
|
1992
|
-
theme
|
|
1993
|
-
}) =>
|
|
1069
|
+
theme
|
|
1070
|
+
}) => theme.gutter / 2, ({
|
|
1071
|
+
theme
|
|
1072
|
+
}) => theme.gutter / 2, mediaTablet, ({
|
|
1073
|
+
theme
|
|
1074
|
+
}) => theme.smallGutter / 2, ({
|
|
1075
|
+
theme
|
|
1076
|
+
}) => theme.smallGutter / 2);
|
|
1077
|
+
|
|
1994
1078
|
const sizes = ["auto", "8.3333333%", "16.666667%", "25%", "33.333333%", "41.666667%", "50%", "58.333333%", "66.666667%", "75%", "83.333333%", "91.666667%", "100%"];
|
|
1995
1079
|
function setAutoSize({
|
|
1996
1080
|
size,
|
|
@@ -2000,14 +1084,14 @@ function setAutoSize({
|
|
|
2000
1084
|
return void 0;
|
|
2001
1085
|
const mobileSize = size >= 4 ? sizes[12] : sizes[Math.round(size * 3)];
|
|
2002
1086
|
const desktopSize = size >= 8 ? sizes[12] : sizes[Math.round(size * 1.5)];
|
|
2003
|
-
return
|
|
1087
|
+
return styledComponents.css(["", "{flex-basis:", ";max-width:", ";}", "{flex-basis:", ";max-width:", ";}"], mediaDesktop, desktopSize, desktopSize, mediaMobile, mobileSize, mobileSize);
|
|
2004
1088
|
}
|
|
2005
|
-
const Col = /* @__PURE__ */ styled.div.withConfig({
|
|
1089
|
+
const Col = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
2006
1090
|
displayName: "Col",
|
|
2007
1091
|
componentId: "sc-16i9d04-0"
|
|
2008
1092
|
})(["display:flex;flex:0 0 auto;flex-direction:row;flex-wrap:wrap;padding:", "px;", " ", " ", "{padding:", "px;}", ""], ({
|
|
2009
|
-
theme
|
|
2010
|
-
}) =>
|
|
1093
|
+
theme
|
|
1094
|
+
}) => theme.gutter / 2, ({
|
|
2011
1095
|
size
|
|
2012
1096
|
}) => size ? {
|
|
2013
1097
|
flexBasis: sizes[size],
|
|
@@ -2021,75 +1105,89 @@ const Col = /* @__PURE__ */ styled.div.withConfig({
|
|
|
2021
1105
|
}) => offset ? {
|
|
2022
1106
|
marginLeft: sizes[offset]
|
|
2023
1107
|
} : void 0, mediaTablet, ({
|
|
2024
|
-
theme
|
|
2025
|
-
}) =>
|
|
1108
|
+
theme
|
|
1109
|
+
}) => theme.smallGutter / 2, setAutoSize);
|
|
2026
1110
|
Col.defaultProps = {
|
|
2027
1111
|
size: 0,
|
|
2028
1112
|
offset: 0
|
|
2029
1113
|
};
|
|
2030
1114
|
const Col$1 = Col;
|
|
2031
|
-
|
|
1115
|
+
|
|
1116
|
+
const index$3 = styledComponents.styled.div.withConfig({
|
|
2032
1117
|
displayName: "Content",
|
|
2033
1118
|
componentId: "sc-180oh4h-0"
|
|
2034
1119
|
})(["color:", ";line-height:1.5;li + li{margin-top:0.25em;}p,dl,ol,ul,blockquote,pre,table{&:not(:last-child){margin-bottom:1em;}}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.125;}h1{font-size:2rem;margin-bottom:0.5em;}h2{font-size:1.75em;margin-bottom:0.5714em;&:not(:first-child){margin-top:1.1428em;}}h3{font-size:1.5em;margin-bottom:0.6666em;&:not(:first-child){margin-top:1.3333em;}}h4{font-size:1.25em;margin-bottom:0.8em;}h5{font-size:1.125em;margin-bottom:0.8888em;}h6{font-size:1em;margin-bottom:1em;}ol{list-style:decimal outside;margin-left:2em;margin-top:1em;}ul{list-style:disc outside;margin-left:2em;margin-top:1em;ul{list-style-type:circle;margin-top:0.5em;ul{list-style-type:square;}}}dd{margin-left:2em;}table{width:100%;td,th{border:1px solid ", ";border-width:0 0 1px;padding:0.5em 0.75em;vertical-align:top;}th{color:", ";text-align:left;}thead{td,th{border-width:0 0 2px;color:", ";}}tfoot{td,th{border-width:2px 0 0;color:", ";}}tbody > tr:last-child{td,th{border-bottom-width:0;}}}"], ({
|
|
2035
|
-
theme
|
|
2036
|
-
}) =>
|
|
2037
|
-
theme
|
|
2038
|
-
}) =>
|
|
2039
|
-
theme
|
|
2040
|
-
}) =>
|
|
2041
|
-
theme
|
|
2042
|
-
}) =>
|
|
2043
|
-
theme
|
|
2044
|
-
}) =>
|
|
1120
|
+
theme
|
|
1121
|
+
}) => theme.text, ({
|
|
1122
|
+
theme
|
|
1123
|
+
}) => theme.border, ({
|
|
1124
|
+
theme
|
|
1125
|
+
}) => theme.text, ({
|
|
1126
|
+
theme
|
|
1127
|
+
}) => theme.text, ({
|
|
1128
|
+
theme
|
|
1129
|
+
}) => theme.text);
|
|
1130
|
+
|
|
2045
1131
|
const setAnimation = ({
|
|
2046
|
-
theme
|
|
2047
|
-
}) =>
|
|
2048
|
-
const index$2 = styled.span.withConfig({
|
|
1132
|
+
theme
|
|
1133
|
+
}) => styledComponents.keyframes(["0%{background-color:", ";}50%{background-color:", ";}100%{background-color:", ";}"], theme.greyLighter, theme.grey, theme.greyLighter);
|
|
1134
|
+
const index$2 = styledComponents.styled.span.withConfig({
|
|
2049
1135
|
displayName: "Placeholder",
|
|
2050
1136
|
componentId: "sc-1091c0n-0"
|
|
2051
1137
|
})(["display:inline-block;height:1rem;width:100%;animation:", " 3.5s ease infinite;border-radius:", ";opacity:0.125;"], setAnimation, ({
|
|
2052
|
-
theme
|
|
2053
|
-
}) =>
|
|
1138
|
+
theme
|
|
1139
|
+
}) => theme.radius);
|
|
1140
|
+
|
|
2054
1141
|
function setColor({
|
|
2055
|
-
theme
|
|
1142
|
+
theme,
|
|
2056
1143
|
color,
|
|
2057
1144
|
outline,
|
|
2058
1145
|
disabled
|
|
2059
1146
|
}) {
|
|
2060
1147
|
if (disabled) {
|
|
2061
|
-
return disabledColor(
|
|
1148
|
+
return disabledColor(theme);
|
|
2062
1149
|
}
|
|
2063
1150
|
if (!color) {
|
|
2064
|
-
return
|
|
1151
|
+
return styledComponents.css(["border-color:", ";color:", ";&:hover{border-color:", ";}&:active{border-color:", ";}"], theme.border, theme.text, theme.borderHover, theme.borderActive);
|
|
2065
1152
|
}
|
|
2066
|
-
const target =
|
|
2067
|
-
const invertColor = findColorInvert(
|
|
1153
|
+
const target = theme[color] || color;
|
|
1154
|
+
const invertColor = findColorInvert(theme, target);
|
|
2068
1155
|
if (outline) {
|
|
2069
|
-
return
|
|
1156
|
+
return styledComponents.css(["background-color:transparent;border-color:", ";color:", ";&:hover{background-color:", ";color:", ";}&:active{background-color:", ";}&:focus:not(:active){", "}"], target, target, target, invertColor, polished.darken(0.1, target), boxShadow("0.1rem", target, 0.5));
|
|
2070
1157
|
}
|
|
2071
|
-
return
|
|
1158
|
+
return styledComponents.css(["background-color:", ";border-color:transparent;color:", ";box-shadow:none;&:hover{color:", ";background-color:", ";}&:active{background-color:", ";}&:focus:not(:active){", "}"], target, invertColor, invertColor, polished.darken(0.05, target), polished.darken(0.1, target), boxShadow("0.1rem", target, 0.5));
|
|
2072
1159
|
}
|
|
2073
|
-
|
|
1160
|
+
function shouldForwardProp$2(name) {
|
|
1161
|
+
return name !== "color" && name !== "size" && name !== "outline" && name !== "round" && name !== "icon";
|
|
1162
|
+
}
|
|
1163
|
+
const Button = styledComponents.styled.button.withConfig({
|
|
1164
|
+
shouldForwardProp: shouldForwardProp$2
|
|
1165
|
+
}).withConfig({
|
|
2074
1166
|
displayName: "Button",
|
|
2075
1167
|
componentId: "sc-f6cc58-0"
|
|
2076
1168
|
})(["position:relative;outline:none;appearance:none;box-sizing:border-box;display:inline-block;text-align:center;white-space:nowrap;cursor:pointer;justify-content:center;vertical-align:middle;user-select:none;background:transparent;border:1px solid transparent;border-radius:", ";padding:", ";line-height:", ";", " ", ""], ({
|
|
2077
1169
|
round,
|
|
2078
|
-
theme
|
|
2079
|
-
}) => round ? "2456189px" :
|
|
1170
|
+
theme
|
|
1171
|
+
}) => round ? "2456189px" : theme.radius, ({
|
|
2080
1172
|
icon
|
|
2081
1173
|
}) => icon ? "0.375em" : "0.375em 0.75em", ({
|
|
2082
1174
|
icon
|
|
2083
1175
|
}) => icon ? 1 : 1.5, setColor, ({
|
|
2084
1176
|
size
|
|
2085
1177
|
}) => setSize("font-size", size));
|
|
2086
|
-
|
|
1178
|
+
|
|
1179
|
+
function shouldForwardProp$1(name) {
|
|
1180
|
+
return name !== "color" && name !== "size" && name !== "pure" && name !== "underline" && name !== "round" && name !== "icon";
|
|
1181
|
+
}
|
|
1182
|
+
const TextButton = styledComponents.styled.button.withConfig({
|
|
1183
|
+
shouldForwardProp: shouldForwardProp$1
|
|
1184
|
+
}).withConfig({
|
|
2087
1185
|
displayName: "TextButton",
|
|
2088
1186
|
componentId: "sc-14wzat7-0"
|
|
2089
1187
|
})(["background-color:transparent;border:none;cursor:pointer;display:inline;margin:0;border-radius:", ";padding:", ";line-height:", ";color:", ";", " &:hover,&:focus{", " ", "}&:focus,&:active{outline:none;}&:active{", "}", ""], ({
|
|
2090
1188
|
round,
|
|
2091
|
-
theme
|
|
2092
|
-
}) => round ? "2456189px" :
|
|
1189
|
+
theme
|
|
1190
|
+
}) => round ? "2456189px" : theme.radius, ({
|
|
2093
1191
|
pure,
|
|
2094
1192
|
icon
|
|
2095
1193
|
}) => {
|
|
@@ -2102,8 +1200,8 @@ const TextButton = styled.button.withConfig({
|
|
|
2102
1200
|
icon
|
|
2103
1201
|
}) => icon ? 1 : 1.5, ({
|
|
2104
1202
|
color,
|
|
2105
|
-
theme
|
|
2106
|
-
}) => color ?
|
|
1203
|
+
theme
|
|
1204
|
+
}) => color ? theme[color] : theme.text, ({
|
|
2107
1205
|
size
|
|
2108
1206
|
}) => setSize("font-size", size), ({
|
|
2109
1207
|
underline
|
|
@@ -2111,104 +1209,115 @@ const TextButton = styled.button.withConfig({
|
|
|
2111
1209
|
textDecoration: "underline"
|
|
2112
1210
|
} : void 0, ({
|
|
2113
1211
|
pure,
|
|
2114
|
-
theme
|
|
1212
|
+
theme,
|
|
2115
1213
|
color
|
|
2116
1214
|
}) => pure ? void 0 : {
|
|
2117
|
-
background: polished.transparentize(0.9, color ?
|
|
1215
|
+
background: polished.transparentize(0.9, color ? theme[color] || theme.text : theme.text)
|
|
2118
1216
|
}, ({
|
|
2119
1217
|
pure,
|
|
2120
|
-
theme
|
|
1218
|
+
theme,
|
|
2121
1219
|
color
|
|
2122
1220
|
}) => pure ? void 0 : {
|
|
2123
|
-
background: polished.transparentize(0.8, color ?
|
|
1221
|
+
background: polished.transparentize(0.8, color ? theme[color] || theme.text : theme.text)
|
|
2124
1222
|
}, ({
|
|
2125
1223
|
disabled,
|
|
2126
|
-
theme
|
|
2127
|
-
}) => disabled ?
|
|
2128
|
-
|
|
1224
|
+
theme
|
|
1225
|
+
}) => disabled ? styledComponents.css(["color:", ";cursor:default;&:hover{background:transparent;text-decoration:none;}"], polished.transparentize(0.75, theme.textDark)) : void 0);
|
|
1226
|
+
|
|
1227
|
+
const ButtonGroup = styledComponents.styled.div.withConfig({
|
|
2129
1228
|
displayName: "ButtonGroup",
|
|
2130
1229
|
componentId: "sc-b4d11t-0"
|
|
2131
1230
|
})(["display:inline-block;&:not(:last-child){margin-right:0.5rem;}", "{margin:0;border-radius:0;&:hover{z-index:1;}&:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px;}&:not(:first-child){margin-left:-1px;}&:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px;}}"], Button);
|
|
2132
|
-
|
|
2133
|
-
const
|
|
2134
|
-
const
|
|
1231
|
+
|
|
1232
|
+
const stripedStyle = /* @__PURE__ */ styledComponents.css(["tbody > tr:nth-child(odd){background-color:rgba(0,0,0,0.02);}"]);
|
|
1233
|
+
const hoverStyle = /* @__PURE__ */ styledComponents.css(["tbody > tr:hover{background-color:rgba(0,0,0,0.04);}"]);
|
|
1234
|
+
const index$1 = styledComponents.styled.table.withConfig({
|
|
2135
1235
|
displayName: "Table",
|
|
2136
1236
|
componentId: "sc-1x2nuaf-0"
|
|
2137
1237
|
})(["", " max-width:100%;margin-bottom:1rem;background-color:transparent;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;td,th{vertical-align:top;padding:0.75rem;", " border-width:0 0 1px;}th{white-space:nowrap;}", " ", " ", ""], ({
|
|
2138
1238
|
full
|
|
2139
|
-
}) => full ?
|
|
2140
|
-
theme
|
|
1239
|
+
}) => full ? styledComponents.css(["width:100%;"]) : void 0, ({
|
|
1240
|
+
theme,
|
|
2141
1241
|
bordered
|
|
2142
|
-
}) => bordered ?
|
|
1242
|
+
}) => bordered ? styledComponents.css(["border:1px solid ", ";"], theme.border) : void 0, ({
|
|
2143
1243
|
striped
|
|
2144
1244
|
}) => striped ? stripedStyle : void 0, ({
|
|
2145
1245
|
hover
|
|
2146
1246
|
}) => hover ? hoverStyle : void 0, ({
|
|
2147
1247
|
headerStyle
|
|
2148
|
-
}) => headerStyle ?
|
|
1248
|
+
}) => headerStyle ? styledComponents.css(["th{", "}"], headerStyle) : void 0);
|
|
1249
|
+
|
|
2149
1250
|
function Progress({
|
|
2150
1251
|
value,
|
|
2151
1252
|
max,
|
|
2152
1253
|
color = "primary",
|
|
2153
1254
|
...rest
|
|
2154
1255
|
}) {
|
|
2155
|
-
const percent =
|
|
2156
|
-
return /* @__PURE__ */
|
|
1256
|
+
const percent = React.useMemo(() => value ? Math.round(value / max * 100) : 0, [value, max]);
|
|
1257
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Wrapper$1, { color, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx("div", { role: "progressbar", "aria-label": "progress", className: value !== max ? "in-progress" : void 0, style: {
|
|
2157
1258
|
width: `${percent > 100 ? 100 : percent}%`
|
|
2158
1259
|
} }) });
|
|
2159
1260
|
}
|
|
2160
|
-
const Wrapper$1 = /* @__PURE__ */ styled.div.withConfig({
|
|
1261
|
+
const Wrapper$1 = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
2161
1262
|
displayName: "Progress__Wrapper",
|
|
2162
1263
|
componentId: "sc-807hhi-0"
|
|
2163
1264
|
})(["position:relative;display:block;width:100%;border-radius:", ";background-color:", ";", ' & > div[role="progressbar"]{position:relative;height:100%;border-radius:', ";background-color:", ";&.in-progress{border-bottom-right-radius:0;border-top-right-radius:0;}will-change:width;transition-property:width;transition-duration:350ms;transition-timing-function:cubic-bezier(0.645,0.045,0.355,1);z-index:1;}"], ({
|
|
2164
|
-
theme
|
|
2165
|
-
}) =>
|
|
2166
|
-
theme
|
|
2167
|
-
}) =>
|
|
1265
|
+
theme
|
|
1266
|
+
}) => theme.radius, ({
|
|
1267
|
+
theme
|
|
1268
|
+
}) => theme.background, ({
|
|
2168
1269
|
size,
|
|
2169
1270
|
height
|
|
2170
1271
|
}) => height || setSize("height", size), ({
|
|
2171
|
-
theme
|
|
2172
|
-
}) =>
|
|
1272
|
+
theme
|
|
1273
|
+
}) => theme.radius, ({
|
|
2173
1274
|
color,
|
|
2174
|
-
theme
|
|
2175
|
-
}) =>
|
|
2176
|
-
|
|
1275
|
+
theme
|
|
1276
|
+
}) => theme[color] || color);
|
|
1277
|
+
|
|
1278
|
+
const index = styledComponents.styled.hr.withConfig({
|
|
2177
1279
|
displayName: "Divider",
|
|
2178
1280
|
componentId: "sc-13lwfus-0"
|
|
2179
1281
|
})(["border:none;height:1px;margin:0;flex-shrink:0;background-color:", ";"], ({
|
|
2180
|
-
theme
|
|
2181
|
-
}) =>
|
|
1282
|
+
theme
|
|
1283
|
+
}) => theme.border);
|
|
1284
|
+
|
|
2182
1285
|
function Close(props) {
|
|
2183
|
-
return /* @__PURE__ */
|
|
2184
|
-
/* @__PURE__ */
|
|
2185
|
-
/* @__PURE__ */
|
|
1286
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...props, children: /* @__PURE__ */ jsxRuntime.jsxs("g", { fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: [
|
|
1287
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M25.999 26l-12.5-12.5L25.999 1" }),
|
|
1288
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M1 26l12.5-12.5L1 1" })
|
|
2186
1289
|
] }) });
|
|
2187
1290
|
}
|
|
2188
|
-
|
|
2189
|
-
|
|
1291
|
+
|
|
1292
|
+
function getColor(theme, color) {
|
|
1293
|
+
return !color || color === "light" ? theme.background : theme[color];
|
|
1294
|
+
}
|
|
1295
|
+
const closeCss = /* @__PURE__ */ styledComponents.css(["padding-right:1.625rem;", "{display:flex;position:absolute;align-items:center;color:inherit;top:0;right:0;bottom:0;padding:0 0.35rem;svg{width:0.625rem;height:0.625rem;}&:hover{background-color:rgba(0,0,0,0.15);}}"], TextButton);
|
|
1296
|
+
function shouldForwardProp(name) {
|
|
1297
|
+
return name !== "color" && name !== "round" && name !== "close";
|
|
2190
1298
|
}
|
|
2191
|
-
const
|
|
2192
|
-
|
|
1299
|
+
const Wrapper = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1300
|
+
shouldForwardProp
|
|
1301
|
+
}).withConfig({
|
|
2193
1302
|
displayName: "Tag__Wrapper",
|
|
2194
1303
|
componentId: "sc-10pvl04-0"
|
|
2195
1304
|
})(["display:inline-flex;position:relative;font-size:0.75rem;cursor:default;padding:0.325rem 0.5rem;align-items:center;justify-content:center;height:1.5rem;border-radius:", ";white-space:nowrap;", " &:not(:last-child){margin-right:0.5rem;}", "{border-radius:0;border-top-right-radius:", ";border-bottom-right-radius:", ";}", ""], ({
|
|
2196
|
-
theme
|
|
1305
|
+
theme,
|
|
2197
1306
|
round
|
|
2198
|
-
}) => round ? "50rem" :
|
|
1307
|
+
}) => round ? "50rem" : theme.radius, ({
|
|
2199
1308
|
color,
|
|
2200
|
-
theme
|
|
1309
|
+
theme
|
|
2201
1310
|
}) => {
|
|
2202
|
-
const target = getColor(
|
|
2203
|
-
const invertColor = findColorInvert(
|
|
2204
|
-
return
|
|
1311
|
+
const target = getColor(theme, color);
|
|
1312
|
+
const invertColor = findColorInvert(theme, target);
|
|
1313
|
+
return styledComponents.css(["color:", ";background-color:", ";a,span{color:", ";}"], invertColor, target, invertColor);
|
|
2205
1314
|
}, TextButton, ({
|
|
2206
|
-
theme
|
|
1315
|
+
theme,
|
|
2207
1316
|
round
|
|
2208
|
-
}) => round ? "50rem" :
|
|
2209
|
-
theme
|
|
1317
|
+
}) => round ? "50rem" : theme.radius, ({
|
|
1318
|
+
theme,
|
|
2210
1319
|
round
|
|
2211
|
-
}) => round ? "50rem" :
|
|
1320
|
+
}) => round ? "50rem" : theme.radius, ({
|
|
2212
1321
|
close
|
|
2213
1322
|
}) => close ? closeCss : void 0);
|
|
2214
1323
|
function Tag({
|
|
@@ -2216,72 +1325,82 @@ function Tag({
|
|
|
2216
1325
|
onClose,
|
|
2217
1326
|
...rest
|
|
2218
1327
|
}) {
|
|
2219
|
-
return /* @__PURE__ */
|
|
1328
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Wrapper, { close: !!onClose, ...rest, children: [
|
|
2220
1329
|
children,
|
|
2221
|
-
onClose && /* @__PURE__ */
|
|
1330
|
+
onClose && /* @__PURE__ */ jsxRuntime.jsx(TextButton, { onClick: onClose, pure: true, children: /* @__PURE__ */ jsxRuntime.jsx(Close, {}) })
|
|
2222
1331
|
] });
|
|
2223
1332
|
}
|
|
1333
|
+
|
|
2224
1334
|
function Approved(props) {
|
|
2225
|
-
return /* @__PURE__ */
|
|
2226
|
-
/* @__PURE__ */
|
|
2227
|
-
/* @__PURE__ */
|
|
2228
|
-
/* @__PURE__ */
|
|
1335
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...props, children: [
|
|
1336
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { fill: "none", children: [
|
|
1337
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29z" }),
|
|
1338
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2m0-2c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0z", fill: "currentColor" })
|
|
2229
1339
|
] }),
|
|
2230
|
-
/* @__PURE__ */
|
|
1340
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11.515 18.466l-3.878-3.985L6 16.005l5.59 5.59 11.562-11.533-1.7-1.595z", fill: "currentColor" })
|
|
2231
1341
|
] });
|
|
2232
1342
|
}
|
|
1343
|
+
|
|
2233
1344
|
function ChevronLeftRound(props) {
|
|
2234
|
-
return /* @__PURE__ */
|
|
2235
|
-
/* @__PURE__ */
|
|
2236
|
-
/* @__PURE__ */
|
|
2237
|
-
/* @__PURE__ */
|
|
1345
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...props, children: [
|
|
1346
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { fill: "none", children: [
|
|
1347
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29z" }),
|
|
1348
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2m0-2c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0z", fill: "currentColor" })
|
|
2238
1349
|
] }),
|
|
2239
|
-
/* @__PURE__ */
|
|
1350
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M18.066 8.5l-7.567 6.731 7.567 6.2", fill: "none", stroke: "currentColor", strokeWidth: "2" })
|
|
2240
1351
|
] });
|
|
2241
1352
|
}
|
|
1353
|
+
|
|
2242
1354
|
function ChevronRightRound(props) {
|
|
2243
|
-
return /* @__PURE__ */
|
|
2244
|
-
/* @__PURE__ */
|
|
2245
|
-
/* @__PURE__ */
|
|
2246
|
-
/* @__PURE__ */
|
|
1355
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...props, children: [
|
|
1356
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { fill: "none", children: [
|
|
1357
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1z" }),
|
|
1358
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28m0 2C6.716 30 0 23.284 0 15 0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15z", fill: "currentColor" })
|
|
2247
1359
|
] }),
|
|
2248
|
-
/* @__PURE__ */
|
|
1360
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11.934 21.5l7.567-6.731-7.567-6.2", fill: "none", stroke: "currentColor", strokeWidth: "2" })
|
|
2249
1361
|
] });
|
|
2250
1362
|
}
|
|
1363
|
+
|
|
2251
1364
|
function FileRound(props) {
|
|
2252
|
-
return /* @__PURE__ */
|
|
2253
|
-
/* @__PURE__ */
|
|
2254
|
-
/* @__PURE__ */
|
|
2255
|
-
/* @__PURE__ */
|
|
1365
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...props, children: [
|
|
1366
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { fill: "none", children: [
|
|
1367
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29z" }),
|
|
1368
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2m0-2c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0z", fill: "currentColor" })
|
|
2256
1369
|
] }),
|
|
2257
|
-
/* @__PURE__ */
|
|
2258
|
-
/* @__PURE__ */
|
|
2259
|
-
/* @__PURE__ */
|
|
1370
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { transform: "translate(9 7)", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
1371
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { width: "12", height: "16", rx: "1", stroke: "none" }),
|
|
1372
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M1 1h10v14H1z" })
|
|
2260
1373
|
] }),
|
|
2261
|
-
/* @__PURE__ */
|
|
1374
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { fill: "currentColor", d: "M13 11h4v1.3h-4zM13 14h4v1.3h-4zM13 17h4v1.3h-4z" })
|
|
2262
1375
|
] });
|
|
2263
1376
|
}
|
|
1377
|
+
|
|
2264
1378
|
function Pencil(props) {
|
|
2265
|
-
return /* @__PURE__ */
|
|
1379
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17.796", height: "17.908", viewBox: "0 0 17.796 17.908", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M1.254 12.674L.5 17.408l4.726-.8L17.3 4.472 13.281.5zM1.375 12.766l3.851 3.838M10.949 2.959l3.836 3.801", fill: "none", stroke: "currentColor" }) });
|
|
2266
1380
|
}
|
|
1381
|
+
|
|
2267
1382
|
function PencilSimple(props) {
|
|
2268
|
-
return /* @__PURE__ */
|
|
1383
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M9.97.22a.75.75 0 011.06 0l3.75 3.75a.75.75 0 010 1.06l-9.75 9.75a.75.75 0 01-.53.22H.75a.75.75 0 01-.75-.75V10.5a.75.75 0 01.22-.53L9.97.22zM1.5 10.81v2.69h2.69l9-9-2.69-2.69-9 9z", fill: "currentColor" }) });
|
|
2269
1384
|
}
|
|
1385
|
+
|
|
2270
1386
|
function User(props) {
|
|
2271
|
-
return /* @__PURE__ */
|
|
2272
|
-
/* @__PURE__ */
|
|
2273
|
-
/* @__PURE__ */
|
|
2274
|
-
/* @__PURE__ */
|
|
1387
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...props, children: [
|
|
1388
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
1389
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "15", cy: "15", r: "15", stroke: "none" }),
|
|
1390
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "15", cy: "15", r: "14" })
|
|
2275
1391
|
] }),
|
|
2276
|
-
/* @__PURE__ */
|
|
1392
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8 23a6.018 6.018 0 016-6h2a6.018 6.018 0 016 6zm2.6-2h8.9a4.033 4.033 0 00-3.5-2h-1.9a4.035 4.035 0 00-3.5 2zm.4-9v-1a4.012 4.012 0 014-4 4.012 4.012 0 014 4v1a4.012 4.012 0 01-4 4 4.012 4.012 0 01-4-4zm2-1v1a2.006 2.006 0 002 2 2.006 2.006 0 002-2v-1a2.006 2.006 0 00-2-2 2.006 2.006 0 00-2 2z", fill: "currentColor" })
|
|
2277
1393
|
] });
|
|
2278
1394
|
}
|
|
1395
|
+
|
|
2279
1396
|
function Refresh(props) {
|
|
2280
|
-
return /* @__PURE__ */
|
|
1397
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15.065 0A15.069 15.069 0 00.142 13.105a1.256 1.256 0 102.478.406c0-.027.008-.055.01-.082a12.52 12.52 0 0121.3-7.226l-2.584 2.584 7.532 1.255-1.255-7.532-1.92 1.92A15 15 0 0015.065 0zm13.7 15.589A1.255 1.255 0 0027.5 16.7a12.512 12.512 0 01-21.893 6.569l1.927-1.927L0 20.086l1.255 7.532 2.572-2.572a15.02 15.02 0 0026.16-8.023 1.256 1.256 0 00-1.064-1.423 1.273 1.273 0 00-.16-.011z", fill: "currentColor" }) });
|
|
2281
1398
|
}
|
|
1399
|
+
|
|
2282
1400
|
function Plus(props) {
|
|
2283
|
-
return /* @__PURE__ */
|
|
1401
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "21", height: "21", viewBox: "0 0 21 21", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M9 0v9H0v3h9v9h3v-9h9V9h-9V0H9z", fill: "currentColor" }) });
|
|
2284
1402
|
}
|
|
1403
|
+
|
|
2285
1404
|
const theme = {
|
|
2286
1405
|
fontFamily: "-apple-system BlinkMacSystemFont, Meiryo, system-ui, sans-serif",
|
|
2287
1406
|
fontSize: "16px",
|
|
@@ -2326,21 +1445,22 @@ const theme = {
|
|
|
2326
1445
|
responsive: true
|
|
2327
1446
|
};
|
|
2328
1447
|
const theme$1 = theme;
|
|
1448
|
+
|
|
2329
1449
|
/*! based on normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
|
|
2330
|
-
const normalized = /* @__PURE__ */
|
|
2331
|
-
theme
|
|
2332
|
-
}) =>
|
|
2333
|
-
theme
|
|
2334
|
-
}) =>
|
|
2335
|
-
theme
|
|
2336
|
-
}) =>
|
|
1450
|
+
const normalized = /* @__PURE__ */ styledComponents.css(["*,::after,::before{box-sizing:border-box;}html{line-height:1.15;-webkit-text-size-adjust:100%;-ms-overflow-style:scrollbar;}body{margin:0;font-family:", ";font-size:", ";text-align:left;}h1{font-size:2em;margin:.67em 0;}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace,monospace;font-size:1em;}a{background-color:transparent;color:", ';}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder;}code,kbd,samp{font-family:monospace,monospace;font-size:1em;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-.25em;}sup{top:-.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0;}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText;}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox;}fieldset{padding:.35em .75em .625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;resize:vertical;}textarea{overflow:auto;}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto;}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:list-item;}template{display:none;}[hidden]{display:none;}blockquote,body,dd,dl,dt,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,html,iframe,legend,li,ol,p,pre,textarea,ul{margin:0;padding:0;}button{font-size:inherit;}article,aside,figure,footer,header,hgroup,section{display:block;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}a{cursor:pointer;text-decoration:none;color:#3273dc;&:hover{color:currentColor;}}img{vertical-align:middle;border-style:none;}svg{overflow:hidden;vertical-align:middle;}small{font-size:.875em;}span{font-style:inherit;font-weight:inherit;}strong{color:#363636;font-weight:700;}table{border-collapse:collapse;border-spacing:0;}th{text-align:inherit;}ul{list-style-type:none;}'], ({
|
|
1451
|
+
theme
|
|
1452
|
+
}) => theme ? theme.fontFamily : "sans-serif", ({
|
|
1453
|
+
theme
|
|
1454
|
+
}) => theme ? theme.fontSize : "16px", ({
|
|
1455
|
+
theme
|
|
1456
|
+
}) => theme.link);
|
|
2337
1457
|
const normalized$1 = normalized;
|
|
1458
|
+
|
|
2338
1459
|
exports.Accordion = Accordion;
|
|
2339
1460
|
exports.AppBar = AppBar;
|
|
2340
1461
|
exports.Box = Box;
|
|
2341
1462
|
exports.Button = Button;
|
|
2342
1463
|
exports.ButtonGroup = ButtonGroup;
|
|
2343
|
-
exports.Card = Card;
|
|
2344
1464
|
exports.Checkbox = Checkbox$1;
|
|
2345
1465
|
exports.Col = Col$1;
|
|
2346
1466
|
exports.Container = Container;
|