@lets-events/react 2.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +7288 -7
- package/dist/index.d.ts +7288 -7
- package/dist/index.js +3030 -21
- package/dist/index.mjs +3004 -20
- package/package.json +8 -1
- package/src/components/Avatar.tsx +56 -0
- package/src/components/Badge.tsx +121 -0
- package/src/components/BadgeText.tsx +29 -0
- package/src/components/BodyText.tsx +24 -0
- package/src/components/Box.tsx +3 -0
- package/src/components/Button.tsx +349 -0
- package/src/components/ButtonGroup.tsx +478 -0
- package/src/components/CaptionText.tsx +16 -0
- package/src/components/CheckboxGroup.tsx +208 -0
- package/src/components/DisplayText.tsx +26 -0
- package/src/components/Dropdown.tsx +109 -0
- package/src/components/Filter.tsx +96 -0
- package/src/components/Flex.tsx +47 -0
- package/src/components/Headline.tsx +29 -0
- package/src/components/Icon.tsx +48 -0
- package/src/components/Label.tsx +28 -0
- package/src/components/RadioGroup.tsx +204 -0
- package/src/components/Subtitle.tsx +26 -0
- package/src/components/Text.tsx +8 -11
- package/src/components/TextField.tsx +193 -0
- package/src/components/TooltipText.tsx +15 -0
- package/src/index.tsx +22 -0
- package/src/styles/index.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __defProps = Object.defineProperties;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
8
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
10
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
11
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
12
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -20,6 +22,21 @@ var __spreadValues = (a, b) => {
|
|
|
20
22
|
return a;
|
|
21
23
|
};
|
|
22
24
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
37
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
38
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
39
|
+
};
|
|
23
40
|
var __export = (target, all) => {
|
|
24
41
|
for (var name in all)
|
|
25
42
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -32,15 +49,1047 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
32
49
|
}
|
|
33
50
|
return to;
|
|
34
51
|
};
|
|
52
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
53
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
54
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
55
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
56
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
57
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
58
|
+
mod
|
|
59
|
+
));
|
|
35
60
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
36
61
|
|
|
62
|
+
// ../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js
|
|
63
|
+
var require_react_is_production_min = __commonJS({
|
|
64
|
+
"../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js"(exports2) {
|
|
65
|
+
"use strict";
|
|
66
|
+
var b = "function" === typeof Symbol && Symbol.for;
|
|
67
|
+
var c = b ? Symbol.for("react.element") : 60103;
|
|
68
|
+
var d = b ? Symbol.for("react.portal") : 60106;
|
|
69
|
+
var e = b ? Symbol.for("react.fragment") : 60107;
|
|
70
|
+
var f = b ? Symbol.for("react.strict_mode") : 60108;
|
|
71
|
+
var g = b ? Symbol.for("react.profiler") : 60114;
|
|
72
|
+
var h = b ? Symbol.for("react.provider") : 60109;
|
|
73
|
+
var k = b ? Symbol.for("react.context") : 60110;
|
|
74
|
+
var l = b ? Symbol.for("react.async_mode") : 60111;
|
|
75
|
+
var m = b ? Symbol.for("react.concurrent_mode") : 60111;
|
|
76
|
+
var n = b ? Symbol.for("react.forward_ref") : 60112;
|
|
77
|
+
var p = b ? Symbol.for("react.suspense") : 60113;
|
|
78
|
+
var q = b ? Symbol.for("react.suspense_list") : 60120;
|
|
79
|
+
var r = b ? Symbol.for("react.memo") : 60115;
|
|
80
|
+
var t = b ? Symbol.for("react.lazy") : 60116;
|
|
81
|
+
var v = b ? Symbol.for("react.block") : 60121;
|
|
82
|
+
var w = b ? Symbol.for("react.fundamental") : 60117;
|
|
83
|
+
var x = b ? Symbol.for("react.responder") : 60118;
|
|
84
|
+
var y = b ? Symbol.for("react.scope") : 60119;
|
|
85
|
+
function z(a) {
|
|
86
|
+
if ("object" === typeof a && null !== a) {
|
|
87
|
+
var u = a.$$typeof;
|
|
88
|
+
switch (u) {
|
|
89
|
+
case c:
|
|
90
|
+
switch (a = a.type, a) {
|
|
91
|
+
case l:
|
|
92
|
+
case m:
|
|
93
|
+
case e:
|
|
94
|
+
case g:
|
|
95
|
+
case f:
|
|
96
|
+
case p:
|
|
97
|
+
return a;
|
|
98
|
+
default:
|
|
99
|
+
switch (a = a && a.$$typeof, a) {
|
|
100
|
+
case k:
|
|
101
|
+
case n:
|
|
102
|
+
case t:
|
|
103
|
+
case r:
|
|
104
|
+
case h:
|
|
105
|
+
return a;
|
|
106
|
+
default:
|
|
107
|
+
return u;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
case d:
|
|
111
|
+
return u;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function A(a) {
|
|
116
|
+
return z(a) === m;
|
|
117
|
+
}
|
|
118
|
+
exports2.AsyncMode = l;
|
|
119
|
+
exports2.ConcurrentMode = m;
|
|
120
|
+
exports2.ContextConsumer = k;
|
|
121
|
+
exports2.ContextProvider = h;
|
|
122
|
+
exports2.Element = c;
|
|
123
|
+
exports2.ForwardRef = n;
|
|
124
|
+
exports2.Fragment = e;
|
|
125
|
+
exports2.Lazy = t;
|
|
126
|
+
exports2.Memo = r;
|
|
127
|
+
exports2.Portal = d;
|
|
128
|
+
exports2.Profiler = g;
|
|
129
|
+
exports2.StrictMode = f;
|
|
130
|
+
exports2.Suspense = p;
|
|
131
|
+
exports2.isAsyncMode = function(a) {
|
|
132
|
+
return A(a) || z(a) === l;
|
|
133
|
+
};
|
|
134
|
+
exports2.isConcurrentMode = A;
|
|
135
|
+
exports2.isContextConsumer = function(a) {
|
|
136
|
+
return z(a) === k;
|
|
137
|
+
};
|
|
138
|
+
exports2.isContextProvider = function(a) {
|
|
139
|
+
return z(a) === h;
|
|
140
|
+
};
|
|
141
|
+
exports2.isElement = function(a) {
|
|
142
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
143
|
+
};
|
|
144
|
+
exports2.isForwardRef = function(a) {
|
|
145
|
+
return z(a) === n;
|
|
146
|
+
};
|
|
147
|
+
exports2.isFragment = function(a) {
|
|
148
|
+
return z(a) === e;
|
|
149
|
+
};
|
|
150
|
+
exports2.isLazy = function(a) {
|
|
151
|
+
return z(a) === t;
|
|
152
|
+
};
|
|
153
|
+
exports2.isMemo = function(a) {
|
|
154
|
+
return z(a) === r;
|
|
155
|
+
};
|
|
156
|
+
exports2.isPortal = function(a) {
|
|
157
|
+
return z(a) === d;
|
|
158
|
+
};
|
|
159
|
+
exports2.isProfiler = function(a) {
|
|
160
|
+
return z(a) === g;
|
|
161
|
+
};
|
|
162
|
+
exports2.isStrictMode = function(a) {
|
|
163
|
+
return z(a) === f;
|
|
164
|
+
};
|
|
165
|
+
exports2.isSuspense = function(a) {
|
|
166
|
+
return z(a) === p;
|
|
167
|
+
};
|
|
168
|
+
exports2.isValidElementType = function(a) {
|
|
169
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
170
|
+
};
|
|
171
|
+
exports2.typeOf = z;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
// ../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js
|
|
176
|
+
var require_react_is_development = __commonJS({
|
|
177
|
+
"../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"(exports2) {
|
|
178
|
+
"use strict";
|
|
179
|
+
if (process.env.NODE_ENV !== "production") {
|
|
180
|
+
(function() {
|
|
181
|
+
"use strict";
|
|
182
|
+
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
|
183
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
|
184
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
|
185
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
|
186
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
|
187
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
|
188
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
|
189
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
|
190
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
|
191
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
|
192
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
|
193
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
|
194
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
|
195
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
|
196
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
|
197
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
|
198
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
|
199
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
|
200
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
|
201
|
+
function isValidElementType(type) {
|
|
202
|
+
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
203
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (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 || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
204
|
+
}
|
|
205
|
+
function typeOf(object) {
|
|
206
|
+
if (typeof object === "object" && object !== null) {
|
|
207
|
+
var $$typeof = object.$$typeof;
|
|
208
|
+
switch ($$typeof) {
|
|
209
|
+
case REACT_ELEMENT_TYPE:
|
|
210
|
+
var type = object.type;
|
|
211
|
+
switch (type) {
|
|
212
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
213
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
214
|
+
case REACT_FRAGMENT_TYPE:
|
|
215
|
+
case REACT_PROFILER_TYPE:
|
|
216
|
+
case REACT_STRICT_MODE_TYPE:
|
|
217
|
+
case REACT_SUSPENSE_TYPE:
|
|
218
|
+
return type;
|
|
219
|
+
default:
|
|
220
|
+
var $$typeofType = type && type.$$typeof;
|
|
221
|
+
switch ($$typeofType) {
|
|
222
|
+
case REACT_CONTEXT_TYPE:
|
|
223
|
+
case REACT_FORWARD_REF_TYPE:
|
|
224
|
+
case REACT_LAZY_TYPE:
|
|
225
|
+
case REACT_MEMO_TYPE:
|
|
226
|
+
case REACT_PROVIDER_TYPE:
|
|
227
|
+
return $$typeofType;
|
|
228
|
+
default:
|
|
229
|
+
return $$typeof;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
case REACT_PORTAL_TYPE:
|
|
233
|
+
return $$typeof;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
return void 0;
|
|
237
|
+
}
|
|
238
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
239
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
240
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
241
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
242
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
243
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
244
|
+
var Fragment2 = REACT_FRAGMENT_TYPE;
|
|
245
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
246
|
+
var Memo = REACT_MEMO_TYPE;
|
|
247
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
248
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
249
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
250
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
251
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
252
|
+
function isAsyncMode(object) {
|
|
253
|
+
{
|
|
254
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
255
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
256
|
+
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
260
|
+
}
|
|
261
|
+
function isConcurrentMode(object) {
|
|
262
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
263
|
+
}
|
|
264
|
+
function isContextConsumer(object) {
|
|
265
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
266
|
+
}
|
|
267
|
+
function isContextProvider(object) {
|
|
268
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
269
|
+
}
|
|
270
|
+
function isElement(object) {
|
|
271
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
272
|
+
}
|
|
273
|
+
function isForwardRef(object) {
|
|
274
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
275
|
+
}
|
|
276
|
+
function isFragment(object) {
|
|
277
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
278
|
+
}
|
|
279
|
+
function isLazy(object) {
|
|
280
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
281
|
+
}
|
|
282
|
+
function isMemo(object) {
|
|
283
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
284
|
+
}
|
|
285
|
+
function isPortal(object) {
|
|
286
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
287
|
+
}
|
|
288
|
+
function isProfiler(object) {
|
|
289
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
290
|
+
}
|
|
291
|
+
function isStrictMode(object) {
|
|
292
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
293
|
+
}
|
|
294
|
+
function isSuspense(object) {
|
|
295
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
296
|
+
}
|
|
297
|
+
exports2.AsyncMode = AsyncMode;
|
|
298
|
+
exports2.ConcurrentMode = ConcurrentMode;
|
|
299
|
+
exports2.ContextConsumer = ContextConsumer;
|
|
300
|
+
exports2.ContextProvider = ContextProvider;
|
|
301
|
+
exports2.Element = Element;
|
|
302
|
+
exports2.ForwardRef = ForwardRef;
|
|
303
|
+
exports2.Fragment = Fragment2;
|
|
304
|
+
exports2.Lazy = Lazy;
|
|
305
|
+
exports2.Memo = Memo;
|
|
306
|
+
exports2.Portal = Portal;
|
|
307
|
+
exports2.Profiler = Profiler;
|
|
308
|
+
exports2.StrictMode = StrictMode;
|
|
309
|
+
exports2.Suspense = Suspense;
|
|
310
|
+
exports2.isAsyncMode = isAsyncMode;
|
|
311
|
+
exports2.isConcurrentMode = isConcurrentMode;
|
|
312
|
+
exports2.isContextConsumer = isContextConsumer;
|
|
313
|
+
exports2.isContextProvider = isContextProvider;
|
|
314
|
+
exports2.isElement = isElement;
|
|
315
|
+
exports2.isForwardRef = isForwardRef;
|
|
316
|
+
exports2.isFragment = isFragment;
|
|
317
|
+
exports2.isLazy = isLazy;
|
|
318
|
+
exports2.isMemo = isMemo;
|
|
319
|
+
exports2.isPortal = isPortal;
|
|
320
|
+
exports2.isProfiler = isProfiler;
|
|
321
|
+
exports2.isStrictMode = isStrictMode;
|
|
322
|
+
exports2.isSuspense = isSuspense;
|
|
323
|
+
exports2.isValidElementType = isValidElementType;
|
|
324
|
+
exports2.typeOf = typeOf;
|
|
325
|
+
})();
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
// ../../node_modules/prop-types/node_modules/react-is/index.js
|
|
331
|
+
var require_react_is = __commonJS({
|
|
332
|
+
"../../node_modules/prop-types/node_modules/react-is/index.js"(exports2, module2) {
|
|
333
|
+
"use strict";
|
|
334
|
+
if (process.env.NODE_ENV === "production") {
|
|
335
|
+
module2.exports = require_react_is_production_min();
|
|
336
|
+
} else {
|
|
337
|
+
module2.exports = require_react_is_development();
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
|
|
342
|
+
// ../../node_modules/object-assign/index.js
|
|
343
|
+
var require_object_assign = __commonJS({
|
|
344
|
+
"../../node_modules/object-assign/index.js"(exports2, module2) {
|
|
345
|
+
"use strict";
|
|
346
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
347
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
348
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
349
|
+
function toObject(val) {
|
|
350
|
+
if (val === null || val === void 0) {
|
|
351
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
352
|
+
}
|
|
353
|
+
return Object(val);
|
|
354
|
+
}
|
|
355
|
+
function shouldUseNative() {
|
|
356
|
+
try {
|
|
357
|
+
if (!Object.assign) {
|
|
358
|
+
return false;
|
|
359
|
+
}
|
|
360
|
+
var test1 = new String("abc");
|
|
361
|
+
test1[5] = "de";
|
|
362
|
+
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
|
363
|
+
return false;
|
|
364
|
+
}
|
|
365
|
+
var test2 = {};
|
|
366
|
+
for (var i = 0; i < 10; i++) {
|
|
367
|
+
test2["_" + String.fromCharCode(i)] = i;
|
|
368
|
+
}
|
|
369
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
|
|
370
|
+
return test2[n];
|
|
371
|
+
});
|
|
372
|
+
if (order2.join("") !== "0123456789") {
|
|
373
|
+
return false;
|
|
374
|
+
}
|
|
375
|
+
var test3 = {};
|
|
376
|
+
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
|
377
|
+
test3[letter] = letter;
|
|
378
|
+
});
|
|
379
|
+
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
|
380
|
+
return false;
|
|
381
|
+
}
|
|
382
|
+
return true;
|
|
383
|
+
} catch (err) {
|
|
384
|
+
return false;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
module2.exports = shouldUseNative() ? Object.assign : function(target, source) {
|
|
388
|
+
var from;
|
|
389
|
+
var to = toObject(target);
|
|
390
|
+
var symbols;
|
|
391
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
392
|
+
from = Object(arguments[s]);
|
|
393
|
+
for (var key in from) {
|
|
394
|
+
if (hasOwnProperty.call(from, key)) {
|
|
395
|
+
to[key] = from[key];
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
if (getOwnPropertySymbols) {
|
|
399
|
+
symbols = getOwnPropertySymbols(from);
|
|
400
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
401
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
402
|
+
to[symbols[i]] = from[symbols[i]];
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
return to;
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
|
|
412
|
+
// ../../node_modules/prop-types/lib/ReactPropTypesSecret.js
|
|
413
|
+
var require_ReactPropTypesSecret = __commonJS({
|
|
414
|
+
"../../node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports2, module2) {
|
|
415
|
+
"use strict";
|
|
416
|
+
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
417
|
+
module2.exports = ReactPropTypesSecret;
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
|
|
421
|
+
// ../../node_modules/prop-types/lib/has.js
|
|
422
|
+
var require_has = __commonJS({
|
|
423
|
+
"../../node_modules/prop-types/lib/has.js"(exports2, module2) {
|
|
424
|
+
"use strict";
|
|
425
|
+
module2.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
|
|
429
|
+
// ../../node_modules/prop-types/checkPropTypes.js
|
|
430
|
+
var require_checkPropTypes = __commonJS({
|
|
431
|
+
"../../node_modules/prop-types/checkPropTypes.js"(exports2, module2) {
|
|
432
|
+
"use strict";
|
|
433
|
+
var printWarning = function() {
|
|
434
|
+
};
|
|
435
|
+
if (process.env.NODE_ENV !== "production") {
|
|
436
|
+
ReactPropTypesSecret = require_ReactPropTypesSecret();
|
|
437
|
+
loggedTypeFailures = {};
|
|
438
|
+
has = require_has();
|
|
439
|
+
printWarning = function(text) {
|
|
440
|
+
var message = "Warning: " + text;
|
|
441
|
+
if (typeof console !== "undefined") {
|
|
442
|
+
console.error(message);
|
|
443
|
+
}
|
|
444
|
+
try {
|
|
445
|
+
throw new Error(message);
|
|
446
|
+
} catch (x) {
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
var ReactPropTypesSecret;
|
|
451
|
+
var loggedTypeFailures;
|
|
452
|
+
var has;
|
|
453
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
454
|
+
if (process.env.NODE_ENV !== "production") {
|
|
455
|
+
for (var typeSpecName in typeSpecs) {
|
|
456
|
+
if (has(typeSpecs, typeSpecName)) {
|
|
457
|
+
var error;
|
|
458
|
+
try {
|
|
459
|
+
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
460
|
+
var err = Error(
|
|
461
|
+
(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`."
|
|
462
|
+
);
|
|
463
|
+
err.name = "Invariant Violation";
|
|
464
|
+
throw err;
|
|
465
|
+
}
|
|
466
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
467
|
+
} catch (ex) {
|
|
468
|
+
error = ex;
|
|
469
|
+
}
|
|
470
|
+
if (error && !(error instanceof Error)) {
|
|
471
|
+
printWarning(
|
|
472
|
+
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
473
|
+
);
|
|
474
|
+
}
|
|
475
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
476
|
+
loggedTypeFailures[error.message] = true;
|
|
477
|
+
var stack = getStack ? getStack() : "";
|
|
478
|
+
printWarning(
|
|
479
|
+
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
|
480
|
+
);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
checkPropTypes.resetWarningCache = function() {
|
|
487
|
+
if (process.env.NODE_ENV !== "production") {
|
|
488
|
+
loggedTypeFailures = {};
|
|
489
|
+
}
|
|
490
|
+
};
|
|
491
|
+
module2.exports = checkPropTypes;
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
|
|
495
|
+
// ../../node_modules/prop-types/factoryWithTypeCheckers.js
|
|
496
|
+
var require_factoryWithTypeCheckers = __commonJS({
|
|
497
|
+
"../../node_modules/prop-types/factoryWithTypeCheckers.js"(exports2, module2) {
|
|
498
|
+
"use strict";
|
|
499
|
+
var ReactIs = require_react_is();
|
|
500
|
+
var assign = require_object_assign();
|
|
501
|
+
var ReactPropTypesSecret = require_ReactPropTypesSecret();
|
|
502
|
+
var has = require_has();
|
|
503
|
+
var checkPropTypes = require_checkPropTypes();
|
|
504
|
+
var printWarning = function() {
|
|
505
|
+
};
|
|
506
|
+
if (process.env.NODE_ENV !== "production") {
|
|
507
|
+
printWarning = function(text) {
|
|
508
|
+
var message = "Warning: " + text;
|
|
509
|
+
if (typeof console !== "undefined") {
|
|
510
|
+
console.error(message);
|
|
511
|
+
}
|
|
512
|
+
try {
|
|
513
|
+
throw new Error(message);
|
|
514
|
+
} catch (x) {
|
|
515
|
+
}
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
function emptyFunctionThatReturnsNull() {
|
|
519
|
+
return null;
|
|
520
|
+
}
|
|
521
|
+
module2.exports = function(isValidElement, throwOnDirectAccess) {
|
|
522
|
+
var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
523
|
+
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
524
|
+
function getIteratorFn(maybeIterable) {
|
|
525
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
526
|
+
if (typeof iteratorFn === "function") {
|
|
527
|
+
return iteratorFn;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
var ANONYMOUS = "<<anonymous>>";
|
|
531
|
+
var ReactPropTypes = {
|
|
532
|
+
array: createPrimitiveTypeChecker("array"),
|
|
533
|
+
bigint: createPrimitiveTypeChecker("bigint"),
|
|
534
|
+
bool: createPrimitiveTypeChecker("boolean"),
|
|
535
|
+
func: createPrimitiveTypeChecker("function"),
|
|
536
|
+
number: createPrimitiveTypeChecker("number"),
|
|
537
|
+
object: createPrimitiveTypeChecker("object"),
|
|
538
|
+
string: createPrimitiveTypeChecker("string"),
|
|
539
|
+
symbol: createPrimitiveTypeChecker("symbol"),
|
|
540
|
+
any: createAnyTypeChecker(),
|
|
541
|
+
arrayOf: createArrayOfTypeChecker,
|
|
542
|
+
element: createElementTypeChecker(),
|
|
543
|
+
elementType: createElementTypeTypeChecker(),
|
|
544
|
+
instanceOf: createInstanceTypeChecker,
|
|
545
|
+
node: createNodeChecker(),
|
|
546
|
+
objectOf: createObjectOfTypeChecker,
|
|
547
|
+
oneOf: createEnumTypeChecker,
|
|
548
|
+
oneOfType: createUnionTypeChecker,
|
|
549
|
+
shape: createShapeTypeChecker,
|
|
550
|
+
exact: createStrictShapeTypeChecker
|
|
551
|
+
};
|
|
552
|
+
function is(x, y) {
|
|
553
|
+
if (x === y) {
|
|
554
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
555
|
+
} else {
|
|
556
|
+
return x !== x && y !== y;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
function PropTypeError(message, data) {
|
|
560
|
+
this.message = message;
|
|
561
|
+
this.data = data && typeof data === "object" ? data : {};
|
|
562
|
+
this.stack = "";
|
|
563
|
+
}
|
|
564
|
+
PropTypeError.prototype = Error.prototype;
|
|
565
|
+
function createChainableTypeChecker(validate) {
|
|
566
|
+
if (process.env.NODE_ENV !== "production") {
|
|
567
|
+
var manualPropTypeCallCache = {};
|
|
568
|
+
var manualPropTypeWarningCount = 0;
|
|
569
|
+
}
|
|
570
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
571
|
+
componentName = componentName || ANONYMOUS;
|
|
572
|
+
propFullName = propFullName || propName;
|
|
573
|
+
if (secret !== ReactPropTypesSecret) {
|
|
574
|
+
if (throwOnDirectAccess) {
|
|
575
|
+
var err = new Error(
|
|
576
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
577
|
+
);
|
|
578
|
+
err.name = "Invariant Violation";
|
|
579
|
+
throw err;
|
|
580
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
|
|
581
|
+
var cacheKey = componentName + ":" + propName;
|
|
582
|
+
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
583
|
+
manualPropTypeWarningCount < 3) {
|
|
584
|
+
printWarning(
|
|
585
|
+
"You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
586
|
+
);
|
|
587
|
+
manualPropTypeCallCache[cacheKey] = true;
|
|
588
|
+
manualPropTypeWarningCount++;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
if (props[propName] == null) {
|
|
593
|
+
if (isRequired) {
|
|
594
|
+
if (props[propName] === null) {
|
|
595
|
+
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
|
|
596
|
+
}
|
|
597
|
+
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
|
|
598
|
+
}
|
|
599
|
+
return null;
|
|
600
|
+
} else {
|
|
601
|
+
return validate(props, propName, componentName, location, propFullName);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
var chainedCheckType = checkType.bind(null, false);
|
|
605
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
606
|
+
return chainedCheckType;
|
|
607
|
+
}
|
|
608
|
+
function createPrimitiveTypeChecker(expectedType) {
|
|
609
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
610
|
+
var propValue = props[propName];
|
|
611
|
+
var propType = getPropType(propValue);
|
|
612
|
+
if (propType !== expectedType) {
|
|
613
|
+
var preciseType = getPreciseType(propValue);
|
|
614
|
+
return new PropTypeError(
|
|
615
|
+
"Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
|
|
616
|
+
{ expectedType }
|
|
617
|
+
);
|
|
618
|
+
}
|
|
619
|
+
return null;
|
|
620
|
+
}
|
|
621
|
+
return createChainableTypeChecker(validate);
|
|
622
|
+
}
|
|
623
|
+
function createAnyTypeChecker() {
|
|
624
|
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
625
|
+
}
|
|
626
|
+
function createArrayOfTypeChecker(typeChecker) {
|
|
627
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
628
|
+
if (typeof typeChecker !== "function") {
|
|
629
|
+
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
|
|
630
|
+
}
|
|
631
|
+
var propValue = props[propName];
|
|
632
|
+
if (!Array.isArray(propValue)) {
|
|
633
|
+
var propType = getPropType(propValue);
|
|
634
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
|
|
635
|
+
}
|
|
636
|
+
for (var i = 0; i < propValue.length; i++) {
|
|
637
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
|
|
638
|
+
if (error instanceof Error) {
|
|
639
|
+
return error;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
return null;
|
|
643
|
+
}
|
|
644
|
+
return createChainableTypeChecker(validate);
|
|
645
|
+
}
|
|
646
|
+
function createElementTypeChecker() {
|
|
647
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
648
|
+
var propValue = props[propName];
|
|
649
|
+
if (!isValidElement(propValue)) {
|
|
650
|
+
var propType = getPropType(propValue);
|
|
651
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
|
|
652
|
+
}
|
|
653
|
+
return null;
|
|
654
|
+
}
|
|
655
|
+
return createChainableTypeChecker(validate);
|
|
656
|
+
}
|
|
657
|
+
function createElementTypeTypeChecker() {
|
|
658
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
659
|
+
var propValue = props[propName];
|
|
660
|
+
if (!ReactIs.isValidElementType(propValue)) {
|
|
661
|
+
var propType = getPropType(propValue);
|
|
662
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
|
|
663
|
+
}
|
|
664
|
+
return null;
|
|
665
|
+
}
|
|
666
|
+
return createChainableTypeChecker(validate);
|
|
667
|
+
}
|
|
668
|
+
function createInstanceTypeChecker(expectedClass) {
|
|
669
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
670
|
+
if (!(props[propName] instanceof expectedClass)) {
|
|
671
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
672
|
+
var actualClassName = getClassName(props[propName]);
|
|
673
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
|
|
674
|
+
}
|
|
675
|
+
return null;
|
|
676
|
+
}
|
|
677
|
+
return createChainableTypeChecker(validate);
|
|
678
|
+
}
|
|
679
|
+
function createEnumTypeChecker(expectedValues) {
|
|
680
|
+
if (!Array.isArray(expectedValues)) {
|
|
681
|
+
if (process.env.NODE_ENV !== "production") {
|
|
682
|
+
if (arguments.length > 1) {
|
|
683
|
+
printWarning(
|
|
684
|
+
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
685
|
+
);
|
|
686
|
+
} else {
|
|
687
|
+
printWarning("Invalid argument supplied to oneOf, expected an array.");
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
return emptyFunctionThatReturnsNull;
|
|
691
|
+
}
|
|
692
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
693
|
+
var propValue = props[propName];
|
|
694
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
|
695
|
+
if (is(propValue, expectedValues[i])) {
|
|
696
|
+
return null;
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
700
|
+
var type = getPreciseType(value);
|
|
701
|
+
if (type === "symbol") {
|
|
702
|
+
return String(value);
|
|
703
|
+
}
|
|
704
|
+
return value;
|
|
705
|
+
});
|
|
706
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
|
|
707
|
+
}
|
|
708
|
+
return createChainableTypeChecker(validate);
|
|
709
|
+
}
|
|
710
|
+
function createObjectOfTypeChecker(typeChecker) {
|
|
711
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
712
|
+
if (typeof typeChecker !== "function") {
|
|
713
|
+
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
|
|
714
|
+
}
|
|
715
|
+
var propValue = props[propName];
|
|
716
|
+
var propType = getPropType(propValue);
|
|
717
|
+
if (propType !== "object") {
|
|
718
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
|
|
719
|
+
}
|
|
720
|
+
for (var key in propValue) {
|
|
721
|
+
if (has(propValue, key)) {
|
|
722
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
723
|
+
if (error instanceof Error) {
|
|
724
|
+
return error;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
return null;
|
|
729
|
+
}
|
|
730
|
+
return createChainableTypeChecker(validate);
|
|
731
|
+
}
|
|
732
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
733
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
734
|
+
process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
|
735
|
+
return emptyFunctionThatReturnsNull;
|
|
736
|
+
}
|
|
737
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
738
|
+
var checker = arrayOfTypeCheckers[i];
|
|
739
|
+
if (typeof checker !== "function") {
|
|
740
|
+
printWarning(
|
|
741
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
|
|
742
|
+
);
|
|
743
|
+
return emptyFunctionThatReturnsNull;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
747
|
+
var expectedTypes = [];
|
|
748
|
+
for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
|
|
749
|
+
var checker2 = arrayOfTypeCheckers[i2];
|
|
750
|
+
var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
751
|
+
if (checkerResult == null) {
|
|
752
|
+
return null;
|
|
753
|
+
}
|
|
754
|
+
if (checkerResult.data && has(checkerResult.data, "expectedType")) {
|
|
755
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
|
|
759
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
|
|
760
|
+
}
|
|
761
|
+
return createChainableTypeChecker(validate);
|
|
762
|
+
}
|
|
763
|
+
function createNodeChecker() {
|
|
764
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
765
|
+
if (!isNode(props[propName])) {
|
|
766
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
|
|
767
|
+
}
|
|
768
|
+
return null;
|
|
769
|
+
}
|
|
770
|
+
return createChainableTypeChecker(validate);
|
|
771
|
+
}
|
|
772
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
773
|
+
return new PropTypeError(
|
|
774
|
+
(componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
|
|
775
|
+
);
|
|
776
|
+
}
|
|
777
|
+
function createShapeTypeChecker(shapeTypes) {
|
|
778
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
779
|
+
var propValue = props[propName];
|
|
780
|
+
var propType = getPropType(propValue);
|
|
781
|
+
if (propType !== "object") {
|
|
782
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
|
783
|
+
}
|
|
784
|
+
for (var key in shapeTypes) {
|
|
785
|
+
var checker = shapeTypes[key];
|
|
786
|
+
if (typeof checker !== "function") {
|
|
787
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
788
|
+
}
|
|
789
|
+
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
790
|
+
if (error) {
|
|
791
|
+
return error;
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
return null;
|
|
795
|
+
}
|
|
796
|
+
return createChainableTypeChecker(validate);
|
|
797
|
+
}
|
|
798
|
+
function createStrictShapeTypeChecker(shapeTypes) {
|
|
799
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
800
|
+
var propValue = props[propName];
|
|
801
|
+
var propType = getPropType(propValue);
|
|
802
|
+
if (propType !== "object") {
|
|
803
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
|
804
|
+
}
|
|
805
|
+
var allKeys = assign({}, props[propName], shapeTypes);
|
|
806
|
+
for (var key in allKeys) {
|
|
807
|
+
var checker = shapeTypes[key];
|
|
808
|
+
if (has(shapeTypes, key) && typeof checker !== "function") {
|
|
809
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
810
|
+
}
|
|
811
|
+
if (!checker) {
|
|
812
|
+
return new PropTypeError(
|
|
813
|
+
"Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
|
|
814
|
+
);
|
|
815
|
+
}
|
|
816
|
+
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
817
|
+
if (error) {
|
|
818
|
+
return error;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
return null;
|
|
822
|
+
}
|
|
823
|
+
return createChainableTypeChecker(validate);
|
|
824
|
+
}
|
|
825
|
+
function isNode(propValue) {
|
|
826
|
+
switch (typeof propValue) {
|
|
827
|
+
case "number":
|
|
828
|
+
case "string":
|
|
829
|
+
case "undefined":
|
|
830
|
+
return true;
|
|
831
|
+
case "boolean":
|
|
832
|
+
return !propValue;
|
|
833
|
+
case "object":
|
|
834
|
+
if (Array.isArray(propValue)) {
|
|
835
|
+
return propValue.every(isNode);
|
|
836
|
+
}
|
|
837
|
+
if (propValue === null || isValidElement(propValue)) {
|
|
838
|
+
return true;
|
|
839
|
+
}
|
|
840
|
+
var iteratorFn = getIteratorFn(propValue);
|
|
841
|
+
if (iteratorFn) {
|
|
842
|
+
var iterator = iteratorFn.call(propValue);
|
|
843
|
+
var step;
|
|
844
|
+
if (iteratorFn !== propValue.entries) {
|
|
845
|
+
while (!(step = iterator.next()).done) {
|
|
846
|
+
if (!isNode(step.value)) {
|
|
847
|
+
return false;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
} else {
|
|
851
|
+
while (!(step = iterator.next()).done) {
|
|
852
|
+
var entry = step.value;
|
|
853
|
+
if (entry) {
|
|
854
|
+
if (!isNode(entry[1])) {
|
|
855
|
+
return false;
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
} else {
|
|
861
|
+
return false;
|
|
862
|
+
}
|
|
863
|
+
return true;
|
|
864
|
+
default:
|
|
865
|
+
return false;
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
function isSymbol(propType, propValue) {
|
|
869
|
+
if (propType === "symbol") {
|
|
870
|
+
return true;
|
|
871
|
+
}
|
|
872
|
+
if (!propValue) {
|
|
873
|
+
return false;
|
|
874
|
+
}
|
|
875
|
+
if (propValue["@@toStringTag"] === "Symbol") {
|
|
876
|
+
return true;
|
|
877
|
+
}
|
|
878
|
+
if (typeof Symbol === "function" && propValue instanceof Symbol) {
|
|
879
|
+
return true;
|
|
880
|
+
}
|
|
881
|
+
return false;
|
|
882
|
+
}
|
|
883
|
+
function getPropType(propValue) {
|
|
884
|
+
var propType = typeof propValue;
|
|
885
|
+
if (Array.isArray(propValue)) {
|
|
886
|
+
return "array";
|
|
887
|
+
}
|
|
888
|
+
if (propValue instanceof RegExp) {
|
|
889
|
+
return "object";
|
|
890
|
+
}
|
|
891
|
+
if (isSymbol(propType, propValue)) {
|
|
892
|
+
return "symbol";
|
|
893
|
+
}
|
|
894
|
+
return propType;
|
|
895
|
+
}
|
|
896
|
+
function getPreciseType(propValue) {
|
|
897
|
+
if (typeof propValue === "undefined" || propValue === null) {
|
|
898
|
+
return "" + propValue;
|
|
899
|
+
}
|
|
900
|
+
var propType = getPropType(propValue);
|
|
901
|
+
if (propType === "object") {
|
|
902
|
+
if (propValue instanceof Date) {
|
|
903
|
+
return "date";
|
|
904
|
+
} else if (propValue instanceof RegExp) {
|
|
905
|
+
return "regexp";
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
return propType;
|
|
909
|
+
}
|
|
910
|
+
function getPostfixForTypeWarning(value) {
|
|
911
|
+
var type = getPreciseType(value);
|
|
912
|
+
switch (type) {
|
|
913
|
+
case "array":
|
|
914
|
+
case "object":
|
|
915
|
+
return "an " + type;
|
|
916
|
+
case "boolean":
|
|
917
|
+
case "date":
|
|
918
|
+
case "regexp":
|
|
919
|
+
return "a " + type;
|
|
920
|
+
default:
|
|
921
|
+
return type;
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
function getClassName(propValue) {
|
|
925
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
|
926
|
+
return ANONYMOUS;
|
|
927
|
+
}
|
|
928
|
+
return propValue.constructor.name;
|
|
929
|
+
}
|
|
930
|
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
931
|
+
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
932
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
933
|
+
return ReactPropTypes;
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
});
|
|
937
|
+
|
|
938
|
+
// ../../node_modules/prop-types/factoryWithThrowingShims.js
|
|
939
|
+
var require_factoryWithThrowingShims = __commonJS({
|
|
940
|
+
"../../node_modules/prop-types/factoryWithThrowingShims.js"(exports2, module2) {
|
|
941
|
+
"use strict";
|
|
942
|
+
var ReactPropTypesSecret = require_ReactPropTypesSecret();
|
|
943
|
+
function emptyFunction() {
|
|
944
|
+
}
|
|
945
|
+
function emptyFunctionWithReset() {
|
|
946
|
+
}
|
|
947
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
948
|
+
module2.exports = function() {
|
|
949
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
950
|
+
if (secret === ReactPropTypesSecret) {
|
|
951
|
+
return;
|
|
952
|
+
}
|
|
953
|
+
var err = new Error(
|
|
954
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
955
|
+
);
|
|
956
|
+
err.name = "Invariant Violation";
|
|
957
|
+
throw err;
|
|
958
|
+
}
|
|
959
|
+
;
|
|
960
|
+
shim.isRequired = shim;
|
|
961
|
+
function getShim() {
|
|
962
|
+
return shim;
|
|
963
|
+
}
|
|
964
|
+
;
|
|
965
|
+
var ReactPropTypes = {
|
|
966
|
+
array: shim,
|
|
967
|
+
bigint: shim,
|
|
968
|
+
bool: shim,
|
|
969
|
+
func: shim,
|
|
970
|
+
number: shim,
|
|
971
|
+
object: shim,
|
|
972
|
+
string: shim,
|
|
973
|
+
symbol: shim,
|
|
974
|
+
any: shim,
|
|
975
|
+
arrayOf: getShim,
|
|
976
|
+
element: shim,
|
|
977
|
+
elementType: shim,
|
|
978
|
+
instanceOf: getShim,
|
|
979
|
+
node: shim,
|
|
980
|
+
objectOf: getShim,
|
|
981
|
+
oneOf: getShim,
|
|
982
|
+
oneOfType: getShim,
|
|
983
|
+
shape: getShim,
|
|
984
|
+
exact: getShim,
|
|
985
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
986
|
+
resetWarningCache: emptyFunction
|
|
987
|
+
};
|
|
988
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
989
|
+
return ReactPropTypes;
|
|
990
|
+
};
|
|
991
|
+
}
|
|
992
|
+
});
|
|
993
|
+
|
|
994
|
+
// ../../node_modules/prop-types/index.js
|
|
995
|
+
var require_prop_types = __commonJS({
|
|
996
|
+
"../../node_modules/prop-types/index.js"(exports2, module2) {
|
|
997
|
+
"use strict";
|
|
998
|
+
if (process.env.NODE_ENV !== "production") {
|
|
999
|
+
ReactIs = require_react_is();
|
|
1000
|
+
throwOnDirectAccess = true;
|
|
1001
|
+
module2.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
|
1002
|
+
} else {
|
|
1003
|
+
module2.exports = require_factoryWithThrowingShims()();
|
|
1004
|
+
}
|
|
1005
|
+
var ReactIs;
|
|
1006
|
+
var throwOnDirectAccess;
|
|
1007
|
+
}
|
|
1008
|
+
});
|
|
1009
|
+
|
|
37
1010
|
// src/index.tsx
|
|
38
1011
|
var index_exports = {};
|
|
39
1012
|
__export(index_exports, {
|
|
40
|
-
|
|
1013
|
+
Avatar: () => Avatar,
|
|
1014
|
+
AvatarStyled: () => AvatarStyled,
|
|
1015
|
+
Badge: () => Badge,
|
|
1016
|
+
BadgeStyled: () => BadgeStyled,
|
|
1017
|
+
BadgeText: () => BadgeText,
|
|
1018
|
+
BodyText: () => BodyText,
|
|
1019
|
+
Box: () => Box,
|
|
1020
|
+
Button: () => Button,
|
|
1021
|
+
ButtonGroup: () => ButtonGroup,
|
|
1022
|
+
ButtonGroupStyled: () => ButtonGroupStyled,
|
|
1023
|
+
ButtonItem: () => ButtonItem,
|
|
1024
|
+
ButtonItemStyled: () => ButtonItemStyled,
|
|
1025
|
+
ButtonStyled: () => ButtonStyled,
|
|
1026
|
+
CaptionText: () => CaptionText,
|
|
1027
|
+
CheckboxGroup: () => CheckboxGroup,
|
|
1028
|
+
CheckboxGroupStyled: () => CheckboxGroupStyled,
|
|
1029
|
+
CheckboxItem: () => CheckboxItem,
|
|
1030
|
+
DisplayText: () => DisplayText,
|
|
1031
|
+
DropdownMenu: () => DropdownMenu2,
|
|
1032
|
+
DropdownMenuItem: () => DropdownMenuItem,
|
|
1033
|
+
Filter: () => Filter,
|
|
1034
|
+
FilterItem: () => FilterItem,
|
|
1035
|
+
Flex: () => Flex2,
|
|
1036
|
+
Headline: () => Headline,
|
|
1037
|
+
Icon: () => Icon,
|
|
1038
|
+
Label: () => Label,
|
|
1039
|
+
RadioGroup: () => RadioGroup,
|
|
1040
|
+
RadioGroupStyled: () => RadioGroupStyled,
|
|
1041
|
+
RadioItem: () => RadioItem,
|
|
1042
|
+
Subtitle: () => Subtitle,
|
|
1043
|
+
Text: () => Text,
|
|
1044
|
+
TextField: () => TextField,
|
|
1045
|
+
TextFieldSlot: () => TextFieldSlot,
|
|
1046
|
+
TextFieldSlotStyled: () => TextFieldSlotStyled,
|
|
1047
|
+
TextFieldStyled: () => TextFieldStyled,
|
|
1048
|
+
TooltipText: () => TooltipText
|
|
41
1049
|
});
|
|
42
1050
|
module.exports = __toCommonJS(index_exports);
|
|
43
1051
|
|
|
1052
|
+
// src/components/Icon.tsx
|
|
1053
|
+
var import_react_fontawesome = require("@fortawesome/react-fontawesome");
|
|
1054
|
+
var import_fontawesome_svg_core = require("@fortawesome/fontawesome-svg-core");
|
|
1055
|
+
var import_free_solid_svg_icons = require("@fortawesome/free-solid-svg-icons");
|
|
1056
|
+
var import_free_regular_svg_icons = require("@fortawesome/free-regular-svg-icons");
|
|
1057
|
+
var import_free_brands_svg_icons = require("@fortawesome/free-brands-svg-icons");
|
|
1058
|
+
var import_prop_types = __toESM(require_prop_types());
|
|
1059
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
1060
|
+
import_fontawesome_svg_core.library.add(import_free_solid_svg_icons.fas, import_free_regular_svg_icons.far, import_free_brands_svg_icons.fab);
|
|
1061
|
+
var Icon = (_a) => {
|
|
1062
|
+
var _b = _a, { name, prefix = "fas", size = "sm", color = "currentColor", className = "" } = _b, props = __objRest(_b, ["name", "prefix", "size", "color", "className"]);
|
|
1063
|
+
var _a2, _b2;
|
|
1064
|
+
const sizeMap = {
|
|
1065
|
+
"xs": { width: "0.625rem", height: "0.625rem", fontSize: "0.625rem" },
|
|
1066
|
+
"sm": { width: "0.625rem", height: "0.625rem", fontSize: "0.625rem" },
|
|
1067
|
+
"md": { width: "0.75rem", height: "0.75rem", fontSize: "0.75rem" },
|
|
1068
|
+
"xl": { width: "1rem", height: "1rem", fontSize: "1rem" },
|
|
1069
|
+
undefined: { width: "0.75rem", height: "0.75rem", fontSize: "0.75rem" }
|
|
1070
|
+
};
|
|
1071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1072
|
+
import_react_fontawesome.FontAwesomeIcon,
|
|
1073
|
+
__spreadProps(__spreadValues({
|
|
1074
|
+
icon: [prefix, name],
|
|
1075
|
+
style: sizeMap[size],
|
|
1076
|
+
color,
|
|
1077
|
+
className
|
|
1078
|
+
}, props), {
|
|
1079
|
+
width: (_a2 = sizeMap[size]) == null ? void 0 : _a2.width,
|
|
1080
|
+
height: (_b2 = sizeMap[size]) == null ? void 0 : _b2.height
|
|
1081
|
+
})
|
|
1082
|
+
);
|
|
1083
|
+
};
|
|
1084
|
+
Icon.propTypes = {
|
|
1085
|
+
name: import_prop_types.default.string.isRequired,
|
|
1086
|
+
prefix: import_prop_types.default.string,
|
|
1087
|
+
size: import_prop_types.default.string,
|
|
1088
|
+
color: import_prop_types.default.string,
|
|
1089
|
+
className: import_prop_types.default.string
|
|
1090
|
+
};
|
|
1091
|
+
var Icon_default = Icon;
|
|
1092
|
+
|
|
44
1093
|
// ../tokens/dist/index.mjs
|
|
45
1094
|
var colors = {
|
|
46
1095
|
brand50: "#DBE8FF",
|
|
@@ -76,6 +1125,7 @@ var colors = {
|
|
|
76
1125
|
red800: "#75151D",
|
|
77
1126
|
red900: "#380A0E",
|
|
78
1127
|
red950: "#1E0507",
|
|
1128
|
+
pink100: "#F9DCF3",
|
|
79
1129
|
purple50: "#F3EFFB",
|
|
80
1130
|
purple100: "#E6DEF7",
|
|
81
1131
|
purple200: "#D1C2F0",
|
|
@@ -98,6 +1148,7 @@ var colors = {
|
|
|
98
1148
|
yellow800: "#664D03",
|
|
99
1149
|
yellow900: "#332701",
|
|
100
1150
|
yellow950: "#191300",
|
|
1151
|
+
orange100: "#FEE0D8",
|
|
101
1152
|
dark50: "#FFFFFF",
|
|
102
1153
|
dark100: "#F4F4F4",
|
|
103
1154
|
dark200: "#EAEBF0",
|
|
@@ -141,7 +1192,51 @@ var colors = {
|
|
|
141
1192
|
grey700: "#516A7A",
|
|
142
1193
|
grey800: "#394F61",
|
|
143
1194
|
grey900: "#233543",
|
|
144
|
-
grey950: "#101B23"
|
|
1195
|
+
grey950: "#101B23",
|
|
1196
|
+
error50: "#FCEEEF",
|
|
1197
|
+
error100: "#F9DCDF",
|
|
1198
|
+
error200: "#F3BEC3",
|
|
1199
|
+
error300: "#ED9CA2",
|
|
1200
|
+
error400: "#E77982",
|
|
1201
|
+
error500: "#E15662",
|
|
1202
|
+
error600: "#DB3644",
|
|
1203
|
+
error700: "#AD1F2B",
|
|
1204
|
+
error800: "#75151D",
|
|
1205
|
+
error900: "#380A0E",
|
|
1206
|
+
error950: "#1E0507",
|
|
1207
|
+
success50: "#E6F9EA",
|
|
1208
|
+
success100: "#CDF4D5",
|
|
1209
|
+
success200: "#9BE8AC",
|
|
1210
|
+
success300: "#6CD783",
|
|
1211
|
+
success400: "#5BCA72",
|
|
1212
|
+
success500: "#26A743",
|
|
1213
|
+
success600: "#1E8535",
|
|
1214
|
+
success700: "#176427",
|
|
1215
|
+
success800: "#0F421A",
|
|
1216
|
+
success900: "#08210D",
|
|
1217
|
+
success950: "#041107",
|
|
1218
|
+
warning50: "#FFF9E6",
|
|
1219
|
+
warning100: "#FFF3CD",
|
|
1220
|
+
warning200: "#FFE69C",
|
|
1221
|
+
warning300: "#FFDA6A",
|
|
1222
|
+
warning400: "#FFCD39",
|
|
1223
|
+
warning500: "#FFC107",
|
|
1224
|
+
warning600: "#CC9A06",
|
|
1225
|
+
warning700: "#997404",
|
|
1226
|
+
warning800: "#664D03",
|
|
1227
|
+
warning900: "#332701",
|
|
1228
|
+
warning950: "#191300",
|
|
1229
|
+
info50: "#E5F1FF",
|
|
1230
|
+
info100: "#CCE4FF",
|
|
1231
|
+
info200: "#9AC9FF",
|
|
1232
|
+
info300: "#66ADFF",
|
|
1233
|
+
info400: "#3392FF",
|
|
1234
|
+
info500: "#0278FE",
|
|
1235
|
+
info600: "#005FCD",
|
|
1236
|
+
info700: "#004799",
|
|
1237
|
+
info800: "#013066",
|
|
1238
|
+
info900: "#001834",
|
|
1239
|
+
info950: "#000C1A"
|
|
145
1240
|
};
|
|
146
1241
|
var fonts = {
|
|
147
1242
|
default: '"Work Sans", sans-serif'
|
|
@@ -196,14 +1291,26 @@ var lineHeights = {
|
|
|
196
1291
|
// 24px
|
|
197
1292
|
};
|
|
198
1293
|
var radii = {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
"
|
|
205
|
-
"
|
|
206
|
-
"
|
|
1294
|
+
"3xs": "2px",
|
|
1295
|
+
"2xs": "4px",
|
|
1296
|
+
"xs": "6px",
|
|
1297
|
+
"sm": "8px",
|
|
1298
|
+
"md": "10px",
|
|
1299
|
+
"lg": "12px",
|
|
1300
|
+
"xl": "14px",
|
|
1301
|
+
"2xl": "16px",
|
|
1302
|
+
"3xl": "18px",
|
|
1303
|
+
"4xl": "20px",
|
|
1304
|
+
"5xl": "22px",
|
|
1305
|
+
"6xl": "24px",
|
|
1306
|
+
"7xl": "32px",
|
|
1307
|
+
"8xl": "36px",
|
|
1308
|
+
"9xl": "40px",
|
|
1309
|
+
"10xl": "48px",
|
|
1310
|
+
"11xl": "56px",
|
|
1311
|
+
"12xl": "64px",
|
|
1312
|
+
"13xl": "72px",
|
|
1313
|
+
"14xl": "80px",
|
|
207
1314
|
full: "99999px"
|
|
208
1315
|
};
|
|
209
1316
|
var space = {
|
|
@@ -245,7 +1352,8 @@ var {
|
|
|
245
1352
|
} = (0, import_react.createStitches)({
|
|
246
1353
|
themeMap: __spreadProps(__spreadValues({}, import_react.defaultThemeMap), {
|
|
247
1354
|
height: "space",
|
|
248
|
-
width: "space"
|
|
1355
|
+
width: "space",
|
|
1356
|
+
gap: "space"
|
|
249
1357
|
}),
|
|
250
1358
|
theme: {
|
|
251
1359
|
colors,
|
|
@@ -259,27 +1367,1928 @@ var {
|
|
|
259
1367
|
});
|
|
260
1368
|
|
|
261
1369
|
// src/components/Text.tsx
|
|
262
|
-
var
|
|
1370
|
+
var import_themes = require("@radix-ui/themes");
|
|
1371
|
+
var Text = styled(import_themes.Text, {
|
|
263
1372
|
fontFamily: "$default",
|
|
264
1373
|
lineHeight: "$base",
|
|
265
|
-
margin: 0,
|
|
266
1374
|
color: "$gray100",
|
|
1375
|
+
letterSpacing: "$2",
|
|
1376
|
+
fontWeight: "$semibold",
|
|
267
1377
|
variants: {
|
|
268
1378
|
size: {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
lg: { fontSize: "$lg" },
|
|
273
|
-
"2xl": { fontSize: "$2xl" },
|
|
274
|
-
"4xl": { fontSize: "$4xl" },
|
|
275
|
-
full: { fontSize: "$full" }
|
|
1379
|
+
lg: { fontSize: "$56" },
|
|
1380
|
+
md: { fontSize: "$48" },
|
|
1381
|
+
sm: { fontSize: "$36" }
|
|
276
1382
|
}
|
|
277
1383
|
},
|
|
278
1384
|
defaultVariants: {
|
|
279
1385
|
size: "md"
|
|
280
1386
|
}
|
|
281
1387
|
});
|
|
1388
|
+
|
|
1389
|
+
// src/components/DisplayText.tsx
|
|
1390
|
+
var DisplayText = styled("p", {
|
|
1391
|
+
fontFamily: "$default",
|
|
1392
|
+
lineHeight: "$base",
|
|
1393
|
+
color: "$gray100",
|
|
1394
|
+
letterSpacing: "$2",
|
|
1395
|
+
fontWeight: "$semibold",
|
|
1396
|
+
variants: {
|
|
1397
|
+
size: {
|
|
1398
|
+
lg: { fontSize: "$56" },
|
|
1399
|
+
md: { fontSize: "$48" },
|
|
1400
|
+
sm: { fontSize: "$36" }
|
|
1401
|
+
}
|
|
1402
|
+
},
|
|
1403
|
+
defaultVariants: {
|
|
1404
|
+
size: "md"
|
|
1405
|
+
}
|
|
1406
|
+
});
|
|
1407
|
+
|
|
1408
|
+
// src/components/Headline.tsx
|
|
1409
|
+
var import_themes2 = require("@radix-ui/themes");
|
|
1410
|
+
var Headline = styled(import_themes2.Heading, {
|
|
1411
|
+
fontFamily: "$default",
|
|
1412
|
+
color: "$gray100",
|
|
1413
|
+
letterSpacing: "0px",
|
|
1414
|
+
variants: {
|
|
1415
|
+
size: {
|
|
1416
|
+
1: { fontSize: "$48", lineHeight: "$64", fontWeight: "$semibold" },
|
|
1417
|
+
2: { fontSize: "$32", lineHeight: "$48", fontWeight: "$semibold" },
|
|
1418
|
+
3: { fontSize: "$24", lineHeight: "$40", fontWeight: "$semibold" },
|
|
1419
|
+
4: { fontSize: "$20", lineHeight: "$36", fontWeight: "$semibold" },
|
|
1420
|
+
5: { fontSize: "$18", lineHeight: "$24", fontWeight: "$semibold" },
|
|
1421
|
+
6: { fontSize: "$18", lineHeight: "$34", fontWeight: "$medium" },
|
|
1422
|
+
7: { fontSize: "$16", lineHeight: "$32", fontWeight: "$semibold" },
|
|
1423
|
+
8: { fontSize: "$16", lineHeight: "$32", fontWeight: "$medium" }
|
|
1424
|
+
}
|
|
1425
|
+
},
|
|
1426
|
+
defaultVariants: {
|
|
1427
|
+
size: 1
|
|
1428
|
+
}
|
|
1429
|
+
});
|
|
1430
|
+
|
|
1431
|
+
// src/components/Subtitle.tsx
|
|
1432
|
+
var import_themes3 = require("@radix-ui/themes");
|
|
1433
|
+
var Subtitle = styled(import_themes3.Text, {
|
|
1434
|
+
fontFamily: "$default",
|
|
1435
|
+
color: "$gray100",
|
|
1436
|
+
letterSpacing: "0px",
|
|
1437
|
+
variants: {
|
|
1438
|
+
size: {
|
|
1439
|
+
1: { fontSize: "$20", lineHeight: "$36", fontWeight: "$regular" },
|
|
1440
|
+
2: { fontSize: "$18", lineHeight: "$34", fontWeight: "$regular" },
|
|
1441
|
+
3: { fontSize: "$16", lineHeight: "$32", fontWeight: "$regular" },
|
|
1442
|
+
4: { fontSize: "$14", lineHeight: "$24", fontWeight: "$regular" },
|
|
1443
|
+
5: { fontSize: "$14", lineHeight: "$16", fontWeight: "$semibold" }
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
defaultVariants: {
|
|
1447
|
+
size: 1
|
|
1448
|
+
}
|
|
1449
|
+
});
|
|
1450
|
+
|
|
1451
|
+
// src/components/BodyText.tsx
|
|
1452
|
+
var import_themes4 = require("@radix-ui/themes");
|
|
1453
|
+
var BodyText = styled(import_themes4.Text, {
|
|
1454
|
+
fontFamily: "$default",
|
|
1455
|
+
color: "$gray100",
|
|
1456
|
+
fontWeight: "$regular",
|
|
1457
|
+
variants: {
|
|
1458
|
+
size: {
|
|
1459
|
+
1: { fontSize: "$16", lineHeight: "$24" },
|
|
1460
|
+
2: { fontSize: "$14", lineHeight: "$24" },
|
|
1461
|
+
3: { fontSize: "$13", lineHeight: "$24" },
|
|
1462
|
+
4: { fontSize: "$12", lineHeight: "$16" }
|
|
1463
|
+
}
|
|
1464
|
+
},
|
|
1465
|
+
defaultVariants: {
|
|
1466
|
+
size: "1"
|
|
1467
|
+
}
|
|
1468
|
+
});
|
|
1469
|
+
|
|
1470
|
+
// src/components/Label.tsx
|
|
1471
|
+
var import_themes5 = require("@radix-ui/themes");
|
|
1472
|
+
var Label = styled(import_themes5.Text, {
|
|
1473
|
+
fontFamily: "$default",
|
|
1474
|
+
color: "$gray100",
|
|
1475
|
+
letterSpacing: "0px",
|
|
1476
|
+
variants: {
|
|
1477
|
+
size: {
|
|
1478
|
+
1: { fontSize: "$18", lineHeight: "$22", fontWeight: "$semibold" },
|
|
1479
|
+
2: { fontSize: "$14", lineHeight: "$16", fontWeight: "$medium" },
|
|
1480
|
+
3: { fontSize: "$14", lineHeight: "$16", fontWeight: "$regular" },
|
|
1481
|
+
4: { fontSize: "$13", lineHeight: "$16", fontWeight: "$semibold", letterSpacing: "2px" },
|
|
1482
|
+
5: { fontSize: "$13", lineHeight: "$16", fontWeight: "$medium" },
|
|
1483
|
+
6: { fontSize: "$13", lineHeight: "$16", fontWeight: "$regular" },
|
|
1484
|
+
7: { fontSize: "$12", lineHeight: "$12", fontWeight: "$regular" }
|
|
1485
|
+
}
|
|
1486
|
+
},
|
|
1487
|
+
defaultVariants: {
|
|
1488
|
+
size: "1"
|
|
1489
|
+
}
|
|
1490
|
+
});
|
|
1491
|
+
|
|
1492
|
+
// src/components/BadgeText.tsx
|
|
1493
|
+
var import_themes6 = require("@radix-ui/themes");
|
|
1494
|
+
var BadgeText = styled(import_themes6.Text, {
|
|
1495
|
+
fontFamily: "$default",
|
|
1496
|
+
color: "$gray100",
|
|
1497
|
+
letterSpacing: "0px",
|
|
1498
|
+
variants: {
|
|
1499
|
+
size: {
|
|
1500
|
+
1: { fontSize: "$16", lineHeight: "$16", fontWeight: "$regular" },
|
|
1501
|
+
2: { fontSize: "$14", lineHeight: "$14", fontWeight: "$regular" },
|
|
1502
|
+
3: { fontSize: "$12", lineHeight: "$12", fontWeight: "$regular" },
|
|
1503
|
+
4: { fontSize: "$10", lineHeight: "$10", fontWeight: "$regular" },
|
|
1504
|
+
"xs": { fontSize: "$10", lineHeight: "$10", fontWeight: "$regular" },
|
|
1505
|
+
"sm": { fontSize: "$12", lineHeight: "$12", fontWeight: "$regular" },
|
|
1506
|
+
"md": { fontSize: "$14", lineHeight: "$14", fontWeight: "$regular" },
|
|
1507
|
+
"xl": { fontSize: "$16", lineHeight: "$16", fontWeight: "$regular" }
|
|
1508
|
+
}
|
|
1509
|
+
},
|
|
1510
|
+
defaultVariants: {
|
|
1511
|
+
size: "1"
|
|
1512
|
+
}
|
|
1513
|
+
});
|
|
1514
|
+
|
|
1515
|
+
// src/components/CaptionText.tsx
|
|
1516
|
+
var import_themes7 = require("@radix-ui/themes");
|
|
1517
|
+
var CaptionText = styled(import_themes7.Text, {
|
|
1518
|
+
fontFamily: "$default",
|
|
1519
|
+
color: "$gray100",
|
|
1520
|
+
letterSpacing: "0px",
|
|
1521
|
+
fontSize: "$14",
|
|
1522
|
+
lineHeight: "$16",
|
|
1523
|
+
fontWeight: "$regular"
|
|
1524
|
+
});
|
|
1525
|
+
|
|
1526
|
+
// src/components/TooltipText.tsx
|
|
1527
|
+
var TooltipText = styled("span", {
|
|
1528
|
+
fontFamily: "$default",
|
|
1529
|
+
color: "$gray100",
|
|
1530
|
+
letterSpacing: "0px",
|
|
1531
|
+
fontSize: "$13",
|
|
1532
|
+
lineHeight: "$16",
|
|
1533
|
+
fontWeight: "$regular"
|
|
1534
|
+
});
|
|
1535
|
+
|
|
1536
|
+
// src/components/Button.tsx
|
|
1537
|
+
var import_themes8 = require("@radix-ui/themes");
|
|
1538
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
1539
|
+
var ButtonStyled = styled(import_themes8.Button, {
|
|
1540
|
+
fontFamily: "$default",
|
|
1541
|
+
letterSpacing: 0,
|
|
1542
|
+
border: 0,
|
|
1543
|
+
transition: "all 300ms ease-out",
|
|
1544
|
+
cursor: "pointer",
|
|
1545
|
+
borderRadius: "$xs",
|
|
1546
|
+
boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08), 0px 2px 4px 0px rgba(35, 53, 67, 0.16)",
|
|
1547
|
+
display: "flex",
|
|
1548
|
+
alignItems: "center",
|
|
1549
|
+
justifyContent: "center",
|
|
1550
|
+
gap: "$10",
|
|
1551
|
+
"&:hover": {
|
|
1552
|
+
transform: "scale(1.05)"
|
|
1553
|
+
},
|
|
1554
|
+
"&:active": {
|
|
1555
|
+
transform: "scale(0.95)"
|
|
1556
|
+
},
|
|
1557
|
+
"&:disabled": {
|
|
1558
|
+
cursor: "not-allowed",
|
|
1559
|
+
transition: "none"
|
|
1560
|
+
},
|
|
1561
|
+
"&:hover:disabled": {
|
|
1562
|
+
transform: "none"
|
|
1563
|
+
},
|
|
1564
|
+
variants: {
|
|
1565
|
+
color: {
|
|
1566
|
+
brand: {},
|
|
1567
|
+
neutral: {},
|
|
1568
|
+
purple: {}
|
|
1569
|
+
},
|
|
1570
|
+
variant: {
|
|
1571
|
+
text: {
|
|
1572
|
+
backgroundColor: "transparent",
|
|
1573
|
+
boxShadow: "none",
|
|
1574
|
+
padding: 0,
|
|
1575
|
+
border: 0
|
|
1576
|
+
},
|
|
1577
|
+
contained: {
|
|
1578
|
+
"&:hover": {
|
|
1579
|
+
borderWidth: "$2",
|
|
1580
|
+
borderStyle: "solid"
|
|
1581
|
+
},
|
|
1582
|
+
"&:focus": {
|
|
1583
|
+
border: 0
|
|
1584
|
+
},
|
|
1585
|
+
"&:active": {
|
|
1586
|
+
borderWidth: "$4",
|
|
1587
|
+
borderStyle: "solid"
|
|
1588
|
+
},
|
|
1589
|
+
"&:disabled": {
|
|
1590
|
+
borderWidth: "$1",
|
|
1591
|
+
borderStyle: "solid",
|
|
1592
|
+
boxShadow: "none"
|
|
1593
|
+
}
|
|
1594
|
+
},
|
|
1595
|
+
outlined: {
|
|
1596
|
+
borderWidth: "$1",
|
|
1597
|
+
borderStyle: "solid",
|
|
1598
|
+
"&:hover": {
|
|
1599
|
+
borderWidth: "$2",
|
|
1600
|
+
borderStyle: "solid"
|
|
1601
|
+
},
|
|
1602
|
+
"&:focus": {
|
|
1603
|
+
borderWidth: "$2",
|
|
1604
|
+
borderStyle: "solid"
|
|
1605
|
+
},
|
|
1606
|
+
"&:active": {
|
|
1607
|
+
borderWidth: "$2",
|
|
1608
|
+
borderStyle: "solid"
|
|
1609
|
+
},
|
|
1610
|
+
"&:disabled": {
|
|
1611
|
+
borderWidth: "$1",
|
|
1612
|
+
borderStyle: "solid",
|
|
1613
|
+
color: "$neutral400"
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
},
|
|
1617
|
+
size: {
|
|
1618
|
+
xs: {
|
|
1619
|
+
padding: "$6 $12",
|
|
1620
|
+
fontSize: "$12",
|
|
1621
|
+
lineHeight: "$base"
|
|
1622
|
+
},
|
|
1623
|
+
sm: {
|
|
1624
|
+
padding: "$8 $14",
|
|
1625
|
+
fontSize: "$13",
|
|
1626
|
+
lineHeight: "$smaller"
|
|
1627
|
+
},
|
|
1628
|
+
md: {
|
|
1629
|
+
padding: "$12 $16",
|
|
1630
|
+
fontSize: "$14",
|
|
1631
|
+
lineHeight: "$smaller"
|
|
1632
|
+
},
|
|
1633
|
+
lg: {
|
|
1634
|
+
padding: "$13 $20",
|
|
1635
|
+
fontSize: "$18",
|
|
1636
|
+
lineHeight: "$smaller"
|
|
1637
|
+
}
|
|
1638
|
+
},
|
|
1639
|
+
radii: {
|
|
1640
|
+
"full": {
|
|
1641
|
+
borderRadius: "$full"
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
},
|
|
1645
|
+
defaultVariants: {
|
|
1646
|
+
variant: "contained",
|
|
1647
|
+
size: "md",
|
|
1648
|
+
color: "brand"
|
|
1649
|
+
},
|
|
1650
|
+
compoundVariants: [
|
|
1651
|
+
{
|
|
1652
|
+
variant: "text",
|
|
1653
|
+
color: "brand",
|
|
1654
|
+
css: {
|
|
1655
|
+
color: "$brand500",
|
|
1656
|
+
"&:hover": { color: "$brand600" },
|
|
1657
|
+
"&:focus": { color: "$brand700" },
|
|
1658
|
+
"&:active": { color: "$brand500" },
|
|
1659
|
+
"&:disabled": { color: "$dark400" }
|
|
1660
|
+
}
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
variant: "text",
|
|
1664
|
+
color: "neutral",
|
|
1665
|
+
css: {
|
|
1666
|
+
color: "$neutral600",
|
|
1667
|
+
"&:hover": { color: "$neutral700" },
|
|
1668
|
+
"&:focus": { color: "$neutral800" },
|
|
1669
|
+
"&:active": { color: "$neutral500" },
|
|
1670
|
+
"&:disabled": { color: "$dark400" }
|
|
1671
|
+
}
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
variant: "text",
|
|
1675
|
+
color: "purple",
|
|
1676
|
+
css: {
|
|
1677
|
+
color: "$purple500",
|
|
1678
|
+
"&:hover": { color: "$purple600" },
|
|
1679
|
+
"&:focus": { color: "$purple700" },
|
|
1680
|
+
"&:active": { color: "$purple500" },
|
|
1681
|
+
"&:disabled": { color: "$dark400" }
|
|
1682
|
+
}
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
variant: "text",
|
|
1686
|
+
color: "green",
|
|
1687
|
+
css: {
|
|
1688
|
+
color: "$green500",
|
|
1689
|
+
"&:hover": { color: "$green600" },
|
|
1690
|
+
"&:focus": { color: "$green700" },
|
|
1691
|
+
"&:active": { color: "$green500" },
|
|
1692
|
+
"&:disabled": { color: "$dark400" }
|
|
1693
|
+
}
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
variant: "text",
|
|
1697
|
+
color: "blue",
|
|
1698
|
+
css: {
|
|
1699
|
+
color: "$blue500",
|
|
1700
|
+
"&:hover": { color: "$blue600" },
|
|
1701
|
+
"&:focus": { color: "$blue700" },
|
|
1702
|
+
"&:active": { color: "$blue500" },
|
|
1703
|
+
"&:disabled": { color: "$dark400" }
|
|
1704
|
+
}
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
variant: "text",
|
|
1708
|
+
color: "red",
|
|
1709
|
+
css: {
|
|
1710
|
+
color: "$red500",
|
|
1711
|
+
"&:hover": { color: "$red600" },
|
|
1712
|
+
"&:focus": { color: "$red700" },
|
|
1713
|
+
"&:active": { color: "$red500" },
|
|
1714
|
+
"&:disabled": { color: "$dark400" }
|
|
1715
|
+
}
|
|
1716
|
+
},
|
|
1717
|
+
// contained
|
|
1718
|
+
{
|
|
1719
|
+
variant: "contained",
|
|
1720
|
+
color: "brand",
|
|
1721
|
+
css: {
|
|
1722
|
+
color: "$grey50",
|
|
1723
|
+
backgroundColor: "$brand500",
|
|
1724
|
+
"&:hover": {
|
|
1725
|
+
borderColor: "$brand700",
|
|
1726
|
+
backgroundColor: "$blue600"
|
|
1727
|
+
},
|
|
1728
|
+
"&:focus": {
|
|
1729
|
+
backgroundColor: "$blue700"
|
|
1730
|
+
},
|
|
1731
|
+
"&:active": {
|
|
1732
|
+
borderColor: "$brand300",
|
|
1733
|
+
backgroundColor: "$blue500"
|
|
1734
|
+
},
|
|
1735
|
+
"&:disabled": {
|
|
1736
|
+
borderColor: "$brand50",
|
|
1737
|
+
backgroundColor: "$brand50",
|
|
1738
|
+
color: "$neutral400"
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
variant: "contained",
|
|
1744
|
+
color: "neutral",
|
|
1745
|
+
css: {
|
|
1746
|
+
backgroundColor: "$neutral600",
|
|
1747
|
+
color: "$grey50",
|
|
1748
|
+
"&:hover": {
|
|
1749
|
+
backgroundColor: "$neutral700",
|
|
1750
|
+
borderColor: "$neutral800"
|
|
1751
|
+
},
|
|
1752
|
+
"&:focus": {
|
|
1753
|
+
backgroundColor: "$neutral800"
|
|
1754
|
+
},
|
|
1755
|
+
"&:active": {
|
|
1756
|
+
backgroundColor: "$neutral500",
|
|
1757
|
+
borderColor: "$neutral400"
|
|
1758
|
+
},
|
|
1759
|
+
"&:disabled": {
|
|
1760
|
+
backgroundColor: "$neutral50",
|
|
1761
|
+
borderColor: "$neutral200",
|
|
1762
|
+
color: "$neutral400"
|
|
1763
|
+
}
|
|
1764
|
+
}
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
variant: "contained",
|
|
1768
|
+
color: "purple",
|
|
1769
|
+
css: {
|
|
1770
|
+
backgroundColor: "$purple500",
|
|
1771
|
+
color: "$grey50",
|
|
1772
|
+
"&:hover": {
|
|
1773
|
+
backgroundColor: "$purple600",
|
|
1774
|
+
borderColor: "$purple700"
|
|
1775
|
+
},
|
|
1776
|
+
"&:focus": {
|
|
1777
|
+
backgroundColor: "$purple700"
|
|
1778
|
+
},
|
|
1779
|
+
"&:active": {
|
|
1780
|
+
borderColor: "$purple300",
|
|
1781
|
+
backgroundColor: "$purple500"
|
|
1782
|
+
},
|
|
1783
|
+
"&:disabled": {
|
|
1784
|
+
borderColor: "$purple200",
|
|
1785
|
+
backgroundColor: "$purple200",
|
|
1786
|
+
color: "$neutral400"
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
},
|
|
1790
|
+
// outlined
|
|
1791
|
+
{
|
|
1792
|
+
variant: "outlined",
|
|
1793
|
+
color: "brand",
|
|
1794
|
+
css: {
|
|
1795
|
+
color: "$brand500",
|
|
1796
|
+
borderColor: "$brand300",
|
|
1797
|
+
backgroundColor: "$grey50",
|
|
1798
|
+
"&:hover": {
|
|
1799
|
+
borderColor: "$brand400",
|
|
1800
|
+
backgroundColor: "$brand50"
|
|
1801
|
+
},
|
|
1802
|
+
"&:focus": {
|
|
1803
|
+
borderColor: "$brand400",
|
|
1804
|
+
backgroundColor: "$brand50"
|
|
1805
|
+
},
|
|
1806
|
+
"&:active": {
|
|
1807
|
+
borderColor: "$brand300",
|
|
1808
|
+
backgroundColor: "$grey50"
|
|
1809
|
+
},
|
|
1810
|
+
"&:disabled": {
|
|
1811
|
+
borderColor: "$brand200",
|
|
1812
|
+
backgroundColor: "$neutral200"
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
variant: "outlined",
|
|
1818
|
+
color: "neutral",
|
|
1819
|
+
css: {
|
|
1820
|
+
color: "$neutral600",
|
|
1821
|
+
borderColor: "$neutral300",
|
|
1822
|
+
backgroundColor: "$grey50",
|
|
1823
|
+
"&:hover": {
|
|
1824
|
+
borderColor: "$neutral400",
|
|
1825
|
+
backgroundColor: "$grey100"
|
|
1826
|
+
},
|
|
1827
|
+
"&:focus": {
|
|
1828
|
+
borderColor: "$neutral400",
|
|
1829
|
+
backgroundColor: "$grey100"
|
|
1830
|
+
},
|
|
1831
|
+
"&:active": {
|
|
1832
|
+
borderColor: "$neutral300",
|
|
1833
|
+
backgroundColor: "$grey50"
|
|
1834
|
+
},
|
|
1835
|
+
"&:disabled": {
|
|
1836
|
+
borderColor: "$neutral200",
|
|
1837
|
+
backgroundColor: "$neutral200"
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
},
|
|
1841
|
+
{
|
|
1842
|
+
variant: "outlined",
|
|
1843
|
+
color: "purple",
|
|
1844
|
+
css: {
|
|
1845
|
+
color: "$purple500",
|
|
1846
|
+
borderColor: "$purple300",
|
|
1847
|
+
backgroundColor: "$grey50",
|
|
1848
|
+
"&:hover": {
|
|
1849
|
+
borderColor: "$purple400",
|
|
1850
|
+
backgroundColor: "$purple50"
|
|
1851
|
+
},
|
|
1852
|
+
"&:focus": {
|
|
1853
|
+
borderColor: "$purple400",
|
|
1854
|
+
backgroundColor: "$purple50"
|
|
1855
|
+
},
|
|
1856
|
+
"&:active": {
|
|
1857
|
+
borderColor: "$purple300",
|
|
1858
|
+
backgroundColor: "$grey50"
|
|
1859
|
+
},
|
|
1860
|
+
"&:disabled": {
|
|
1861
|
+
borderColor: "$purple200",
|
|
1862
|
+
backgroundColor: "$neutral200"
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
]
|
|
1867
|
+
});
|
|
1868
|
+
function Button(_a) {
|
|
1869
|
+
var _b = _a, { asChild } = _b, props = __objRest(_b, ["asChild"]);
|
|
1870
|
+
const Component = asChild ? import_themes8.Button : "button";
|
|
1871
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ButtonStyled, __spreadValues({ as: Component }, props));
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
// src/components/ButtonGroup.tsx
|
|
1875
|
+
var import_themes9 = require("@radix-ui/themes");
|
|
1876
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
1877
|
+
var ButtonItemStyled = styled(import_themes9.Button, {
|
|
1878
|
+
fontFamily: "$default",
|
|
1879
|
+
letterSpacing: 0,
|
|
1880
|
+
border: 0,
|
|
1881
|
+
transition: "all 300ms ease-out",
|
|
1882
|
+
cursor: "pointer",
|
|
1883
|
+
boxSizing: "border-box",
|
|
1884
|
+
variants: {
|
|
1885
|
+
active: {
|
|
1886
|
+
true: {}
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
});
|
|
1890
|
+
var ButtonGroupStyled = styled(import_themes9.Flex, {
|
|
1891
|
+
display: "flex",
|
|
1892
|
+
borderRadius: "$md",
|
|
1893
|
+
overflow: "hidden",
|
|
1894
|
+
variants: {
|
|
1895
|
+
color: {
|
|
1896
|
+
brand: {},
|
|
1897
|
+
neutral: {},
|
|
1898
|
+
purple: {},
|
|
1899
|
+
green: {},
|
|
1900
|
+
blue: {},
|
|
1901
|
+
red: {}
|
|
1902
|
+
},
|
|
1903
|
+
variant: {
|
|
1904
|
+
text: {
|
|
1905
|
+
[`& ${ButtonItemStyled}`]: {
|
|
1906
|
+
backgroundColor: "transparent",
|
|
1907
|
+
boxShadow: "none",
|
|
1908
|
+
padding: 0,
|
|
1909
|
+
border: 0
|
|
1910
|
+
}
|
|
1911
|
+
},
|
|
1912
|
+
contained: {
|
|
1913
|
+
[`& ${ButtonItemStyled}`]: {
|
|
1914
|
+
borderWidth: "$1",
|
|
1915
|
+
borderStyle: "solid",
|
|
1916
|
+
"&:disabled": {
|
|
1917
|
+
boxShadow: "none"
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
},
|
|
1921
|
+
outlined: {
|
|
1922
|
+
[`& ${ButtonItemStyled}`]: {
|
|
1923
|
+
borderWidth: "$1",
|
|
1924
|
+
borderStyle: "solid",
|
|
1925
|
+
"&:disabled": {
|
|
1926
|
+
color: "$neutral400"
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
},
|
|
1931
|
+
size: {
|
|
1932
|
+
xs: {
|
|
1933
|
+
[`& ${ButtonItemStyled}`]: {
|
|
1934
|
+
padding: "$6 $12",
|
|
1935
|
+
fontSize: "$12",
|
|
1936
|
+
lineHeight: "$base",
|
|
1937
|
+
"&:not(:first-child)": {
|
|
1938
|
+
borderLeft: "none"
|
|
1939
|
+
},
|
|
1940
|
+
"&:first-child": {
|
|
1941
|
+
borderTopLeftRadius: "$xs",
|
|
1942
|
+
borderBottomLeftRadius: "$xs"
|
|
1943
|
+
},
|
|
1944
|
+
"&:last-child": {
|
|
1945
|
+
borderTopRightRadius: "$xs",
|
|
1946
|
+
borderBottomRightRadius: "$xs"
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
},
|
|
1950
|
+
sm: {
|
|
1951
|
+
[`& ${ButtonItemStyled}`]: {
|
|
1952
|
+
padding: "$8 $14",
|
|
1953
|
+
fontSize: "$13",
|
|
1954
|
+
lineHeight: "$smaller",
|
|
1955
|
+
"&:not(:first-child)": {
|
|
1956
|
+
borderLeft: "none"
|
|
1957
|
+
},
|
|
1958
|
+
"&:first-child": {
|
|
1959
|
+
borderTopLeftRadius: "$sm",
|
|
1960
|
+
borderBottomLeftRadius: "$sm"
|
|
1961
|
+
},
|
|
1962
|
+
"&:last-child": {
|
|
1963
|
+
borderTopRightRadius: "$sm",
|
|
1964
|
+
borderBottomRightRadius: "$sm"
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
},
|
|
1968
|
+
md: {
|
|
1969
|
+
[`& ${ButtonItemStyled}`]: {
|
|
1970
|
+
padding: "$12 $16",
|
|
1971
|
+
fontSize: "$14",
|
|
1972
|
+
lineHeight: "$smaller",
|
|
1973
|
+
"&:not(:first-child)": {
|
|
1974
|
+
borderLeft: "none"
|
|
1975
|
+
},
|
|
1976
|
+
"&:first-child": {
|
|
1977
|
+
borderTopLeftRadius: "$md",
|
|
1978
|
+
borderBottomLeftRadius: "$md"
|
|
1979
|
+
},
|
|
1980
|
+
"&:last-child": {
|
|
1981
|
+
borderTopRightRadius: "$md",
|
|
1982
|
+
borderBottomRightRadius: "$md"
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
},
|
|
1986
|
+
lg: {
|
|
1987
|
+
[`& ${ButtonItemStyled}`]: {
|
|
1988
|
+
padding: "$13 $20",
|
|
1989
|
+
fontSize: "$18",
|
|
1990
|
+
lineHeight: "$smaller",
|
|
1991
|
+
"&:not(:first-child)": {
|
|
1992
|
+
borderLeft: "none"
|
|
1993
|
+
},
|
|
1994
|
+
"&:first-child": {
|
|
1995
|
+
borderTopLeftRadius: "$lg",
|
|
1996
|
+
borderBottomLeftRadius: "$lg"
|
|
1997
|
+
},
|
|
1998
|
+
"&:last-child": {
|
|
1999
|
+
borderTopRightRadius: "$lg",
|
|
2000
|
+
borderBottomRightRadius: "$lg"
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
},
|
|
2006
|
+
compoundVariants: [
|
|
2007
|
+
// text
|
|
2008
|
+
{
|
|
2009
|
+
variant: "text",
|
|
2010
|
+
color: "brand",
|
|
2011
|
+
css: {
|
|
2012
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2013
|
+
color: "$brand500",
|
|
2014
|
+
"&:hover": { color: "$brand600" },
|
|
2015
|
+
"&:focus": { color: "$brand700" },
|
|
2016
|
+
"&:active": { color: "$brand500" },
|
|
2017
|
+
"&:disabled": { color: "$dark400" }
|
|
2018
|
+
},
|
|
2019
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2020
|
+
color: "$brand700",
|
|
2021
|
+
"&:hover": { color: "$brand700" },
|
|
2022
|
+
"&:focus": { color: "$brand700" },
|
|
2023
|
+
"&:active": { color: "$brand700" }
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
variant: "text",
|
|
2029
|
+
color: "neutral",
|
|
2030
|
+
css: {
|
|
2031
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2032
|
+
color: "$neutral600",
|
|
2033
|
+
"&:hover": { color: "$neutral700" },
|
|
2034
|
+
"&:focus": { color: "$neutral800" },
|
|
2035
|
+
"&:active": { color: "$neutral500" },
|
|
2036
|
+
"&:disabled": { color: "$dark400" }
|
|
2037
|
+
},
|
|
2038
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2039
|
+
color: "$neutral800",
|
|
2040
|
+
"&:hover": { color: "$neutral800" },
|
|
2041
|
+
"&:focus": { color: "$neutral800" },
|
|
2042
|
+
"&:active": { color: "$neutral800" }
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
},
|
|
2046
|
+
{
|
|
2047
|
+
variant: "text",
|
|
2048
|
+
color: "purple",
|
|
2049
|
+
css: {
|
|
2050
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2051
|
+
color: "$purple500",
|
|
2052
|
+
"&:hover": { color: "$purple600" },
|
|
2053
|
+
"&:focus": { color: "$purple700" },
|
|
2054
|
+
"&:active": { color: "$purple500" },
|
|
2055
|
+
"&:disabled": { color: "$dark400" }
|
|
2056
|
+
},
|
|
2057
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2058
|
+
color: "$purple700",
|
|
2059
|
+
"&:hover": { color: "$purple700" },
|
|
2060
|
+
"&:focus": { color: "$purple700" },
|
|
2061
|
+
"&:active": { color: "$purple700" }
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
variant: "text",
|
|
2067
|
+
color: "green",
|
|
2068
|
+
css: {
|
|
2069
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2070
|
+
color: "$green500",
|
|
2071
|
+
"&:hover": { color: "$green600" },
|
|
2072
|
+
"&:focus": { color: "$green700" },
|
|
2073
|
+
"&:active": { color: "$green500" },
|
|
2074
|
+
"&:disabled": { color: "$dark400" }
|
|
2075
|
+
},
|
|
2076
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2077
|
+
color: "$green700",
|
|
2078
|
+
"&:hover": { color: "$green700" },
|
|
2079
|
+
"&:focus": { color: "$green700" },
|
|
2080
|
+
"&:active": { color: "$green700" }
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
variant: "text",
|
|
2086
|
+
color: "blue",
|
|
2087
|
+
css: {
|
|
2088
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2089
|
+
color: "$blue500",
|
|
2090
|
+
"&:hover": { color: "$blue600" },
|
|
2091
|
+
"&:focus": { color: "$blue700" },
|
|
2092
|
+
"&:active": { color: "$blue500" },
|
|
2093
|
+
"&:disabled": { color: "$dark400" }
|
|
2094
|
+
},
|
|
2095
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2096
|
+
color: "$blue700",
|
|
2097
|
+
"&:hover": { color: "$blue700" },
|
|
2098
|
+
"&:focus": { color: "$blue700" },
|
|
2099
|
+
"&:active": { color: "$blue700" }
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
},
|
|
2103
|
+
{
|
|
2104
|
+
variant: "text",
|
|
2105
|
+
color: "red",
|
|
2106
|
+
css: {
|
|
2107
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2108
|
+
color: "$red500",
|
|
2109
|
+
"&:hover": { color: "$red600" },
|
|
2110
|
+
"&:focus": { color: "$red700" },
|
|
2111
|
+
"&:active": { color: "$red500" },
|
|
2112
|
+
"&:disabled": { color: "$dark400" }
|
|
2113
|
+
},
|
|
2114
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2115
|
+
color: "$red700",
|
|
2116
|
+
"&:hover": { color: "$red700" },
|
|
2117
|
+
"&:focus": { color: "$red700" },
|
|
2118
|
+
"&:active": { color: "$red700" }
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
},
|
|
2122
|
+
// contained
|
|
2123
|
+
{
|
|
2124
|
+
variant: "contained",
|
|
2125
|
+
color: "brand",
|
|
2126
|
+
css: {
|
|
2127
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2128
|
+
color: "$grey50",
|
|
2129
|
+
backgroundColor: "$brand500",
|
|
2130
|
+
borderColor: "$brand500",
|
|
2131
|
+
"&:hover": {
|
|
2132
|
+
backgroundColor: "$blue600"
|
|
2133
|
+
},
|
|
2134
|
+
"&:focus": {
|
|
2135
|
+
backgroundColor: "$blue700"
|
|
2136
|
+
},
|
|
2137
|
+
"&:active": {
|
|
2138
|
+
backgroundColor: "$blue500"
|
|
2139
|
+
},
|
|
2140
|
+
"&:disabled": {
|
|
2141
|
+
backgroundColor: "$brand50",
|
|
2142
|
+
color: "$neutral400"
|
|
2143
|
+
}
|
|
2144
|
+
},
|
|
2145
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2146
|
+
backgroundColor: "$brand700",
|
|
2147
|
+
"&:hover": { backgroundColor: "$brand700" },
|
|
2148
|
+
"&:focus": { backgroundColor: "$brand700" },
|
|
2149
|
+
"&:active": { backgroundColor: "$brand700" }
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
variant: "contained",
|
|
2155
|
+
color: "neutral",
|
|
2156
|
+
css: {
|
|
2157
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2158
|
+
backgroundColor: "$neutral600",
|
|
2159
|
+
color: "$grey50",
|
|
2160
|
+
"&:hover": {
|
|
2161
|
+
backgroundColor: "$neutral700",
|
|
2162
|
+
borderColor: "$neutral800"
|
|
2163
|
+
},
|
|
2164
|
+
"&:focus": {
|
|
2165
|
+
backgroundColor: "$neutral800"
|
|
2166
|
+
},
|
|
2167
|
+
"&:active": {
|
|
2168
|
+
backgroundColor: "$neutral500",
|
|
2169
|
+
borderColor: "$neutral400"
|
|
2170
|
+
},
|
|
2171
|
+
"&:disabled": {
|
|
2172
|
+
backgroundColor: "$neutral50",
|
|
2173
|
+
borderColor: "$neutral200",
|
|
2174
|
+
color: "$neutral400"
|
|
2175
|
+
}
|
|
2176
|
+
},
|
|
2177
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2178
|
+
backgroundColor: "$neutral800",
|
|
2179
|
+
"&:hover": { backgroundColor: "$neutral800" },
|
|
2180
|
+
"&:focus": { backgroundColor: "$neutral800" },
|
|
2181
|
+
"&:active": { backgroundColor: "$neutral800" }
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
variant: "contained",
|
|
2187
|
+
color: "purple",
|
|
2188
|
+
css: {
|
|
2189
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2190
|
+
backgroundColor: "$purple500",
|
|
2191
|
+
color: "$grey50",
|
|
2192
|
+
"&:hover": {
|
|
2193
|
+
backgroundColor: "$purple600",
|
|
2194
|
+
borderColor: "$purple700"
|
|
2195
|
+
},
|
|
2196
|
+
"&:focus": {
|
|
2197
|
+
backgroundColor: "$purple700"
|
|
2198
|
+
},
|
|
2199
|
+
"&:active": {
|
|
2200
|
+
borderColor: "$purple300",
|
|
2201
|
+
backgroundColor: "$purple500"
|
|
2202
|
+
},
|
|
2203
|
+
"&:disabled": {
|
|
2204
|
+
borderColor: "$purple200",
|
|
2205
|
+
backgroundColor: "$purple200",
|
|
2206
|
+
color: "$neutral400"
|
|
2207
|
+
}
|
|
2208
|
+
},
|
|
2209
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2210
|
+
backgroundColor: "$purple700",
|
|
2211
|
+
"&:hover": { backgroundColor: "$purple700" },
|
|
2212
|
+
"&:focus": { backgroundColor: "$purple700" },
|
|
2213
|
+
"&:active": { backgroundColor: "$purple700" }
|
|
2214
|
+
}
|
|
2215
|
+
}
|
|
2216
|
+
},
|
|
2217
|
+
// outlined
|
|
2218
|
+
{
|
|
2219
|
+
variant: "outlined",
|
|
2220
|
+
color: "brand",
|
|
2221
|
+
css: {
|
|
2222
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2223
|
+
color: "$brand500",
|
|
2224
|
+
borderColor: "$brand300",
|
|
2225
|
+
backgroundColor: "$grey50",
|
|
2226
|
+
"&:hover": {
|
|
2227
|
+
borderColor: "$brand400",
|
|
2228
|
+
backgroundColor: "$brand50"
|
|
2229
|
+
},
|
|
2230
|
+
"&:focus": {
|
|
2231
|
+
borderColor: "$brand400",
|
|
2232
|
+
backgroundColor: "$brand50"
|
|
2233
|
+
},
|
|
2234
|
+
"&:active": {
|
|
2235
|
+
borderColor: "$brand300",
|
|
2236
|
+
backgroundColor: "$grey50"
|
|
2237
|
+
},
|
|
2238
|
+
"&:disabled": {
|
|
2239
|
+
borderColor: "$brand200",
|
|
2240
|
+
backgroundColor: "$neutral200",
|
|
2241
|
+
color: "$neutral400"
|
|
2242
|
+
}
|
|
2243
|
+
},
|
|
2244
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2245
|
+
color: "$brand700",
|
|
2246
|
+
borderColor: "$brand600",
|
|
2247
|
+
backgroundColor: "$brand50",
|
|
2248
|
+
"&:hover": { backgroundColor: "$brand50", borderColor: "$brand600" },
|
|
2249
|
+
"&:focus": { backgroundColor: "$brand50", borderColor: "$brand600" },
|
|
2250
|
+
"&:active": { backgroundColor: "$brand50", borderColor: "$brand600" }
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
},
|
|
2254
|
+
{
|
|
2255
|
+
variant: "outlined",
|
|
2256
|
+
color: "neutral",
|
|
2257
|
+
css: {
|
|
2258
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2259
|
+
color: "$neutral600",
|
|
2260
|
+
borderColor: "$neutral300",
|
|
2261
|
+
backgroundColor: "$grey50",
|
|
2262
|
+
"&:hover": {
|
|
2263
|
+
borderColor: "$neutral400",
|
|
2264
|
+
backgroundColor: "$grey100"
|
|
2265
|
+
},
|
|
2266
|
+
"&:focus": {
|
|
2267
|
+
borderColor: "$neutral400",
|
|
2268
|
+
backgroundColor: "$grey100"
|
|
2269
|
+
},
|
|
2270
|
+
"&:active": {
|
|
2271
|
+
borderColor: "$neutral300",
|
|
2272
|
+
backgroundColor: "$grey50"
|
|
2273
|
+
},
|
|
2274
|
+
"&:disabled": {
|
|
2275
|
+
borderColor: "$neutral200",
|
|
2276
|
+
backgroundColor: "$neutral200",
|
|
2277
|
+
color: "$neutral400"
|
|
2278
|
+
}
|
|
2279
|
+
},
|
|
2280
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2281
|
+
color: "$neutral800",
|
|
2282
|
+
borderColor: "$neutral600",
|
|
2283
|
+
backgroundColor: "$grey100",
|
|
2284
|
+
"&:hover": { backgroundColor: "$grey100", borderColor: "$neutral600" },
|
|
2285
|
+
"&:focus": { backgroundColor: "$grey100", borderColor: "$neutral600" },
|
|
2286
|
+
"&:active": { backgroundColor: "$grey100", borderColor: "$neutral600" }
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
},
|
|
2290
|
+
{
|
|
2291
|
+
variant: "outlined",
|
|
2292
|
+
color: "purple",
|
|
2293
|
+
css: {
|
|
2294
|
+
[`& ${ButtonItemStyled}`]: {
|
|
2295
|
+
color: "$purple500",
|
|
2296
|
+
borderColor: "$purple300",
|
|
2297
|
+
backgroundColor: "$grey50",
|
|
2298
|
+
"&:hover": {
|
|
2299
|
+
borderColor: "$purple400",
|
|
2300
|
+
backgroundColor: "$purple50"
|
|
2301
|
+
},
|
|
2302
|
+
"&:focus": {
|
|
2303
|
+
borderColor: "$purple400",
|
|
2304
|
+
backgroundColor: "$purple50"
|
|
2305
|
+
},
|
|
2306
|
+
"&:active": {
|
|
2307
|
+
borderColor: "$purple300",
|
|
2308
|
+
backgroundColor: "$grey50"
|
|
2309
|
+
},
|
|
2310
|
+
"&:disabled": {
|
|
2311
|
+
borderColor: "$purple200",
|
|
2312
|
+
backgroundColor: "$neutral200",
|
|
2313
|
+
color: "$neutral400"
|
|
2314
|
+
}
|
|
2315
|
+
},
|
|
2316
|
+
[`& ${ButtonItemStyled}.active`]: {
|
|
2317
|
+
color: "$purple700",
|
|
2318
|
+
borderColor: "$purple600",
|
|
2319
|
+
backgroundColor: "$purple50",
|
|
2320
|
+
"&:hover": { backgroundColor: "$purple50", borderColor: "$purple600" },
|
|
2321
|
+
"&:focus": { backgroundColor: "$purple50", borderColor: "$purple600" },
|
|
2322
|
+
"&:active": { backgroundColor: "$purple50", borderColor: "$purple600" }
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
],
|
|
2327
|
+
defaultVariants: {
|
|
2328
|
+
variant: "contained",
|
|
2329
|
+
size: "md",
|
|
2330
|
+
color: "brand"
|
|
2331
|
+
}
|
|
2332
|
+
});
|
|
2333
|
+
function ButtonItem(_a) {
|
|
2334
|
+
var _b = _a, { children, active } = _b, props = __objRest(_b, ["children", "active"]);
|
|
2335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ButtonItemStyled, __spreadProps(__spreadValues({ className: active ? "active" : "" }, props), { children }));
|
|
2336
|
+
}
|
|
2337
|
+
function ButtonGroup(_a) {
|
|
2338
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
2339
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ButtonGroupStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
2340
|
+
}
|
|
2341
|
+
|
|
2342
|
+
// src/components/Avatar.tsx
|
|
2343
|
+
var import_themes10 = require("@radix-ui/themes");
|
|
2344
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
2345
|
+
var AvatarStyled = styled(import_themes10.Avatar, {
|
|
2346
|
+
fontFamily: "$default",
|
|
2347
|
+
color: "$gray100",
|
|
2348
|
+
letterSpacing: "0px",
|
|
2349
|
+
variants: {
|
|
2350
|
+
size: {
|
|
2351
|
+
"xs": { width: "$24", height: "$24", display: "flex", alignItems: "center", justifyContent: "center", fontSize: "$10" },
|
|
2352
|
+
"sm": { width: "$32", height: "$32", display: "flex", alignItems: "center", justifyContent: "center", fontSize: "$14" },
|
|
2353
|
+
"md": { width: "$40", height: "$40", display: "flex", alignItems: "center", justifyContent: "center", fontSize: "$16" },
|
|
2354
|
+
"lg": { width: "$48", height: "$48", display: "flex", alignItems: "center", justifyContent: "center", fontSize: "$18" },
|
|
2355
|
+
"xl": { width: "$64", height: "$64", display: "flex", alignItems: "center", justifyContent: "center", fontSize: "$24" }
|
|
2356
|
+
},
|
|
2357
|
+
radii: {
|
|
2358
|
+
full: { borderRadius: "$full" }
|
|
2359
|
+
},
|
|
2360
|
+
variant: {
|
|
2361
|
+
"without-image": {
|
|
2362
|
+
border: "1px solid $brand500",
|
|
2363
|
+
backgroundColor: "$dark50",
|
|
2364
|
+
color: "$dark700",
|
|
2365
|
+
fontStyle: "normal",
|
|
2366
|
+
fontWeight: 500,
|
|
2367
|
+
lineHeight: "normal",
|
|
2368
|
+
textTransform: "uppercase"
|
|
2369
|
+
},
|
|
2370
|
+
"with-image": {
|
|
2371
|
+
border: 0,
|
|
2372
|
+
"img": {
|
|
2373
|
+
width: "100%",
|
|
2374
|
+
height: "100%",
|
|
2375
|
+
objectFit: "cover",
|
|
2376
|
+
borderRadius: "$full"
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
}
|
|
2380
|
+
},
|
|
2381
|
+
defaultVariants: {
|
|
2382
|
+
size: "md",
|
|
2383
|
+
radii: "full",
|
|
2384
|
+
variant: "without-image"
|
|
2385
|
+
}
|
|
2386
|
+
});
|
|
2387
|
+
function Avatar(_a) {
|
|
2388
|
+
var _b = _a, { asChild } = _b, props = __objRest(_b, ["asChild"]);
|
|
2389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AvatarStyled, __spreadValues({ as: import_themes10.Avatar }, props));
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
// src/components/Flex.tsx
|
|
2393
|
+
var import_themes11 = require("@radix-ui/themes");
|
|
2394
|
+
var Flex2 = styled(import_themes11.Flex, {
|
|
2395
|
+
display: "flex",
|
|
2396
|
+
variants: {
|
|
2397
|
+
direction: {
|
|
2398
|
+
row: { flexDirection: "row" },
|
|
2399
|
+
column: { flexDirection: "column" },
|
|
2400
|
+
"row-reverse": { flexDirection: "row-reverse" },
|
|
2401
|
+
"column-reverse": { flexDirection: "column-reverse" }
|
|
2402
|
+
},
|
|
2403
|
+
gap: {
|
|
2404
|
+
2: { gap: "$2" },
|
|
2405
|
+
4: { gap: "$4" },
|
|
2406
|
+
6: { gap: "$6" },
|
|
2407
|
+
8: { gap: "$8" },
|
|
2408
|
+
10: { gap: "$10" },
|
|
2409
|
+
12: { gap: "$12" },
|
|
2410
|
+
14: { gap: "$14" },
|
|
2411
|
+
16: { gap: "$16" },
|
|
2412
|
+
20: { gap: "$20" },
|
|
2413
|
+
22: { gap: "$22" },
|
|
2414
|
+
24: { gap: "$24" },
|
|
2415
|
+
32: { gap: "$32" },
|
|
2416
|
+
36: { gap: "$36" },
|
|
2417
|
+
40: { gap: "$40" },
|
|
2418
|
+
48: { gap: "$48" },
|
|
2419
|
+
56: { gap: "$56" },
|
|
2420
|
+
64: { gap: "$64" },
|
|
2421
|
+
72: { gap: "$72" },
|
|
2422
|
+
80: { gap: "$80" },
|
|
2423
|
+
full: { gap: "$full" }
|
|
2424
|
+
}
|
|
2425
|
+
},
|
|
2426
|
+
defaultVariants: {
|
|
2427
|
+
direction: "row",
|
|
2428
|
+
gap: 10
|
|
2429
|
+
}
|
|
2430
|
+
});
|
|
2431
|
+
|
|
2432
|
+
// src/components/Box.tsx
|
|
2433
|
+
var import_themes12 = require("@radix-ui/themes");
|
|
2434
|
+
var Box = import_themes12.Box;
|
|
2435
|
+
|
|
2436
|
+
// src/components/TextField.tsx
|
|
2437
|
+
var import_themes13 = require("@radix-ui/themes");
|
|
2438
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
2439
|
+
var TextFieldStyled = styled(import_themes13.TextField.Root, {
|
|
2440
|
+
height: "$40",
|
|
2441
|
+
fontFamily: "$default",
|
|
2442
|
+
letterSpacing: "0px",
|
|
2443
|
+
fontSize: "$13",
|
|
2444
|
+
padding: "$12 $14",
|
|
2445
|
+
borderRadius: "$sm",
|
|
2446
|
+
boxSizing: "border-box",
|
|
2447
|
+
color: "$dark500",
|
|
2448
|
+
border: "1px solid $dark300",
|
|
2449
|
+
position: "relative",
|
|
2450
|
+
display: "flex",
|
|
2451
|
+
"input": {
|
|
2452
|
+
order: 1,
|
|
2453
|
+
border: "none",
|
|
2454
|
+
outline: "none",
|
|
2455
|
+
padding: 0,
|
|
2456
|
+
margin: 0,
|
|
2457
|
+
width: "100%"
|
|
2458
|
+
},
|
|
2459
|
+
"&:has(input:focus)": {
|
|
2460
|
+
border: "2px solid $brand300"
|
|
2461
|
+
},
|
|
2462
|
+
"&:has(input:disabled)": {
|
|
2463
|
+
backgroundColor: "$dark100",
|
|
2464
|
+
color: "$dark400",
|
|
2465
|
+
border: "1px solid $dark200",
|
|
2466
|
+
cursor: "not-allowed"
|
|
2467
|
+
},
|
|
2468
|
+
variants: {
|
|
2469
|
+
color: {
|
|
2470
|
+
default: {
|
|
2471
|
+
color: "$dark400",
|
|
2472
|
+
border: "1px solid $dark200",
|
|
2473
|
+
"&:has(input:focus)": {
|
|
2474
|
+
border: "2px solid $brand300"
|
|
2475
|
+
},
|
|
2476
|
+
"&:has(input:disabled)": {
|
|
2477
|
+
backgroundColor: "$dark100",
|
|
2478
|
+
color: "$dark400",
|
|
2479
|
+
border: "1px solid $dark200",
|
|
2480
|
+
cursor: "not-allowed"
|
|
2481
|
+
}
|
|
2482
|
+
},
|
|
2483
|
+
error: {
|
|
2484
|
+
border: "1px solid $error400",
|
|
2485
|
+
color: "$error400",
|
|
2486
|
+
"input::placeholder": {
|
|
2487
|
+
color: "$error400"
|
|
2488
|
+
},
|
|
2489
|
+
"& hast(input:focus)": {
|
|
2490
|
+
border: "2px solid $error400"
|
|
2491
|
+
},
|
|
2492
|
+
"&:has(input:disabled)": {
|
|
2493
|
+
backgroundColor: "$error50",
|
|
2494
|
+
color: "$error300",
|
|
2495
|
+
border: "1px solid $error100",
|
|
2496
|
+
cursor: "not-allowed"
|
|
2497
|
+
}
|
|
2498
|
+
}
|
|
2499
|
+
},
|
|
2500
|
+
isValid: {
|
|
2501
|
+
true: {},
|
|
2502
|
+
false: {}
|
|
2503
|
+
}
|
|
2504
|
+
},
|
|
2505
|
+
compoundVariants: [
|
|
2506
|
+
{
|
|
2507
|
+
isValid: false,
|
|
2508
|
+
css: {
|
|
2509
|
+
border: "1px solid $error400",
|
|
2510
|
+
color: "$error400",
|
|
2511
|
+
backgroundColor: "$error50",
|
|
2512
|
+
"input": {
|
|
2513
|
+
"&::placeholder": {
|
|
2514
|
+
color: "$error400"
|
|
2515
|
+
},
|
|
2516
|
+
backgroundColor: "$error50"
|
|
2517
|
+
},
|
|
2518
|
+
"&:has(input:focus)": {
|
|
2519
|
+
border: "2px solid $error400"
|
|
2520
|
+
},
|
|
2521
|
+
"&:has(input:disabled)": {
|
|
2522
|
+
"input": {
|
|
2523
|
+
backgroundColor: "$error50"
|
|
2524
|
+
},
|
|
2525
|
+
backgroundColor: "$error50",
|
|
2526
|
+
color: "$error300",
|
|
2527
|
+
border: "1px solid $error100",
|
|
2528
|
+
cursor: "not-allowed"
|
|
2529
|
+
}
|
|
2530
|
+
}
|
|
2531
|
+
},
|
|
2532
|
+
{
|
|
2533
|
+
isValid: true,
|
|
2534
|
+
css: {
|
|
2535
|
+
"&:has(input:focus)": {
|
|
2536
|
+
border: "2px solid $success500"
|
|
2537
|
+
},
|
|
2538
|
+
"&:has(input:disabled)": {
|
|
2539
|
+
backgroundColor: "$dark100",
|
|
2540
|
+
color: "$dark400",
|
|
2541
|
+
border: "1px solid $dark200",
|
|
2542
|
+
cursor: "not-allowed"
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
]
|
|
2547
|
+
});
|
|
2548
|
+
var TextFieldSlotStyled = styled(import_themes13.TextField.Slot, {
|
|
2549
|
+
display: "flex",
|
|
2550
|
+
alignItems: "center",
|
|
2551
|
+
justifyContent: "center"
|
|
2552
|
+
});
|
|
2553
|
+
function TextField(_a) {
|
|
2554
|
+
var _b = _a, {
|
|
2555
|
+
children,
|
|
2556
|
+
isValid,
|
|
2557
|
+
name,
|
|
2558
|
+
color
|
|
2559
|
+
} = _b, props = __objRest(_b, [
|
|
2560
|
+
"children",
|
|
2561
|
+
"isValid",
|
|
2562
|
+
"name",
|
|
2563
|
+
"color"
|
|
2564
|
+
]);
|
|
2565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(TextFieldStyled, __spreadProps(__spreadValues({ color, isValid, name }, props), { children: [
|
|
2566
|
+
children,
|
|
2567
|
+
isValid && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextFieldSlot, { position: "flex-end", name, color, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon_default, { name: "check" }) })
|
|
2568
|
+
] }));
|
|
2569
|
+
}
|
|
2570
|
+
function TextFieldSlot(_a) {
|
|
2571
|
+
var _b = _a, {
|
|
2572
|
+
children,
|
|
2573
|
+
position = "flex-start",
|
|
2574
|
+
onClick
|
|
2575
|
+
} = _b, props = __objRest(_b, [
|
|
2576
|
+
"children",
|
|
2577
|
+
"position",
|
|
2578
|
+
"onClick"
|
|
2579
|
+
]);
|
|
2580
|
+
console.log("onclick", onClick);
|
|
2581
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: !!onClick ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextFieldSlotStyled, __spreadProps(__spreadValues({}, __spreadProps(__spreadValues({}, props), { color: void 0 })), { style: {
|
|
2582
|
+
position: "absolute",
|
|
2583
|
+
left: position === "flex-end" ? "none" : 15,
|
|
2584
|
+
right: position === "flex-start" ? "none" : 15,
|
|
2585
|
+
padding: 13,
|
|
2586
|
+
zIndex: 2,
|
|
2587
|
+
top: 0,
|
|
2588
|
+
cursor: "pointer"
|
|
2589
|
+
}, onClick: () => onClick(), children })) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextFieldSlotStyled, __spreadProps(__spreadValues({}, __spreadProps(__spreadValues({}, props), { color: void 0 })), { style: {
|
|
2590
|
+
float: position === "flex-start" ? "left" : "right",
|
|
2591
|
+
order: position === "flex-start" ? 0 : 2,
|
|
2592
|
+
marginLeft: position === "flex-start" ? 0 : 15,
|
|
2593
|
+
marginRight: position === "flex-end" ? 0 : 15
|
|
2594
|
+
}, children })) });
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2597
|
+
// src/components/RadioGroup.tsx
|
|
2598
|
+
var import_themes14 = require("@radix-ui/themes");
|
|
2599
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
2600
|
+
var RadioGroupStyled = styled(import_themes14.RadioGroup.Root, {
|
|
2601
|
+
fontFamily: "$default",
|
|
2602
|
+
letterSpacing: "0px",
|
|
2603
|
+
fontSize: "$13",
|
|
2604
|
+
"label": {
|
|
2605
|
+
display: "flex",
|
|
2606
|
+
alignItems: "center",
|
|
2607
|
+
gap: "$8",
|
|
2608
|
+
cursor: "pointer",
|
|
2609
|
+
"&:focus button, &:hover button": {
|
|
2610
|
+
transition: "all 300ms ease-out",
|
|
2611
|
+
boxShadow: "0px 0px 0px 4px rgba(56, 129, 255, 0.50)"
|
|
2612
|
+
}
|
|
2613
|
+
},
|
|
2614
|
+
"label button": {
|
|
2615
|
+
backgroundColor: "$white",
|
|
2616
|
+
borderRadius: "$full",
|
|
2617
|
+
height: "$16",
|
|
2618
|
+
width: "$16",
|
|
2619
|
+
position: "relative",
|
|
2620
|
+
border: "2px solid $dark300",
|
|
2621
|
+
cursor: "pointer"
|
|
2622
|
+
},
|
|
2623
|
+
"label button[data-state=checked]:before": {
|
|
2624
|
+
backgroundColor: "$dark50",
|
|
2625
|
+
content: "",
|
|
2626
|
+
width: "8px",
|
|
2627
|
+
height: "8px",
|
|
2628
|
+
position: "absolute",
|
|
2629
|
+
top: "2px",
|
|
2630
|
+
right: "2px",
|
|
2631
|
+
borderRadius: "$full",
|
|
2632
|
+
zIndex: 2
|
|
2633
|
+
},
|
|
2634
|
+
"label button[data-state=checked]:after": {
|
|
2635
|
+
backgroundColor: "$brand500",
|
|
2636
|
+
content: "",
|
|
2637
|
+
height: "$16",
|
|
2638
|
+
width: "$16",
|
|
2639
|
+
position: "absolute",
|
|
2640
|
+
top: "-2px",
|
|
2641
|
+
right: "-2px",
|
|
2642
|
+
borderRadius: "$full",
|
|
2643
|
+
zIndex: 1
|
|
2644
|
+
},
|
|
2645
|
+
variants: {
|
|
2646
|
+
color: {
|
|
2647
|
+
success: {
|
|
2648
|
+
"label": {
|
|
2649
|
+
"&:focus button, &:hover button": {
|
|
2650
|
+
boxShadow: "0px 0px 0px 4px rgba(38, 167, 67, 0.50)"
|
|
2651
|
+
}
|
|
2652
|
+
},
|
|
2653
|
+
"label button": {
|
|
2654
|
+
borderColor: "$green500",
|
|
2655
|
+
backgroundColor: "$dark50"
|
|
2656
|
+
},
|
|
2657
|
+
"label button[data-state=checked]:after": {
|
|
2658
|
+
backgroundColor: "$green500"
|
|
2659
|
+
}
|
|
2660
|
+
},
|
|
2661
|
+
blue: {},
|
|
2662
|
+
error: {
|
|
2663
|
+
"label": {
|
|
2664
|
+
"&:focus button, &:hover button": {
|
|
2665
|
+
boxShadow: "0px 0px 0px 4px rgba(225, 86, 98, 0.50)"
|
|
2666
|
+
}
|
|
2667
|
+
},
|
|
2668
|
+
"label button": {
|
|
2669
|
+
borderColor: "$error400",
|
|
2670
|
+
backgroundColor: "$dark50"
|
|
2671
|
+
},
|
|
2672
|
+
"label button[data-state=checked]:after": {
|
|
2673
|
+
backgroundColor: "$error600"
|
|
2674
|
+
}
|
|
2675
|
+
}
|
|
2676
|
+
},
|
|
2677
|
+
disabled: {
|
|
2678
|
+
true: {
|
|
2679
|
+
"label": {
|
|
2680
|
+
cursor: "not-allowed",
|
|
2681
|
+
opacity: 0.5,
|
|
2682
|
+
"&:focus button, &:hover button": {
|
|
2683
|
+
boxShadow: "none"
|
|
2684
|
+
}
|
|
2685
|
+
},
|
|
2686
|
+
"label button": {
|
|
2687
|
+
cursor: "not-allowed"
|
|
2688
|
+
}
|
|
2689
|
+
},
|
|
2690
|
+
false: {}
|
|
2691
|
+
}
|
|
2692
|
+
},
|
|
2693
|
+
compoundVariants: [
|
|
2694
|
+
{
|
|
2695
|
+
color: "blue",
|
|
2696
|
+
disabled: false,
|
|
2697
|
+
css: {
|
|
2698
|
+
"label": {
|
|
2699
|
+
"&:focus button, &:hover button": {
|
|
2700
|
+
boxShadow: "0px 0px 0px 4px rgba(56, 129, 255, 0.50)"
|
|
2701
|
+
}
|
|
2702
|
+
},
|
|
2703
|
+
"label button": {
|
|
2704
|
+
borderColor: "$dark300"
|
|
2705
|
+
},
|
|
2706
|
+
"label button[data-state=checked]:after": {
|
|
2707
|
+
backgroundColor: "$brand500"
|
|
2708
|
+
}
|
|
2709
|
+
}
|
|
2710
|
+
},
|
|
2711
|
+
{
|
|
2712
|
+
color: "blue",
|
|
2713
|
+
disabled: true,
|
|
2714
|
+
css: {
|
|
2715
|
+
"label button": {
|
|
2716
|
+
borderColor: "$brand100",
|
|
2717
|
+
backgroundColor: "$dark50"
|
|
2718
|
+
},
|
|
2719
|
+
"label button[data-state=checked]:after": {
|
|
2720
|
+
backgroundColor: "$brand100"
|
|
2721
|
+
}
|
|
2722
|
+
}
|
|
2723
|
+
},
|
|
2724
|
+
{
|
|
2725
|
+
color: "success",
|
|
2726
|
+
disabled: true,
|
|
2727
|
+
css: {
|
|
2728
|
+
"label button": {
|
|
2729
|
+
borderColor: "$success100",
|
|
2730
|
+
backgroundColor: "$dark50"
|
|
2731
|
+
},
|
|
2732
|
+
"label button[data-state=checked]:after": {
|
|
2733
|
+
backgroundColor: "$success100"
|
|
2734
|
+
}
|
|
2735
|
+
}
|
|
2736
|
+
},
|
|
2737
|
+
{
|
|
2738
|
+
color: "error",
|
|
2739
|
+
disabled: true,
|
|
2740
|
+
css: {
|
|
2741
|
+
"label button": {
|
|
2742
|
+
borderColor: "$error100",
|
|
2743
|
+
backgroundColor: "$dark50"
|
|
2744
|
+
},
|
|
2745
|
+
"label button[data-state=checked]:after": {
|
|
2746
|
+
backgroundColor: "$error100"
|
|
2747
|
+
}
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
],
|
|
2751
|
+
defaultVariants: {
|
|
2752
|
+
color: "blue",
|
|
2753
|
+
disabled: false
|
|
2754
|
+
}
|
|
2755
|
+
});
|
|
2756
|
+
function RadioGroup(_a) {
|
|
2757
|
+
var _b = _a, {
|
|
2758
|
+
children,
|
|
2759
|
+
disabled
|
|
2760
|
+
} = _b, props = __objRest(_b, [
|
|
2761
|
+
"children",
|
|
2762
|
+
"disabled"
|
|
2763
|
+
]);
|
|
2764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
2765
|
+
RadioGroupStyled,
|
|
2766
|
+
__spreadProps(__spreadValues({
|
|
2767
|
+
disabled
|
|
2768
|
+
}, props), {
|
|
2769
|
+
children
|
|
2770
|
+
})
|
|
2771
|
+
);
|
|
2772
|
+
}
|
|
2773
|
+
function RadioItem(_a) {
|
|
2774
|
+
var _b = _a, {
|
|
2775
|
+
children
|
|
2776
|
+
} = _b, props = __objRest(_b, [
|
|
2777
|
+
"children"
|
|
2778
|
+
]);
|
|
2779
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_themes14.RadioGroup.Item, __spreadProps(__spreadValues({}, props), { children }));
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
// src/components/CheckboxGroup.tsx
|
|
2783
|
+
var import_themes15 = require("@radix-ui/themes");
|
|
2784
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
2785
|
+
var CheckboxGroupStyled = styled(import_themes15.CheckboxGroup.Root, {
|
|
2786
|
+
fontFamily: "$default",
|
|
2787
|
+
letterSpacing: "0px",
|
|
2788
|
+
fontSize: "$13",
|
|
2789
|
+
"svg": {
|
|
2790
|
+
display: "none"
|
|
2791
|
+
},
|
|
2792
|
+
"label": {
|
|
2793
|
+
display: "flex",
|
|
2794
|
+
alignItems: "center",
|
|
2795
|
+
gap: "$8",
|
|
2796
|
+
cursor: "pointer",
|
|
2797
|
+
"&:focus button, &:hover button": {
|
|
2798
|
+
transition: "all 300ms ease-out",
|
|
2799
|
+
boxShadow: "0px 0px 0px 4px rgba(56, 129, 255, 0.50)"
|
|
2800
|
+
}
|
|
2801
|
+
},
|
|
2802
|
+
"label button": {
|
|
2803
|
+
backgroundColor: "$white",
|
|
2804
|
+
borderRadius: "2px",
|
|
2805
|
+
height: "$16",
|
|
2806
|
+
width: "$16",
|
|
2807
|
+
position: "relative",
|
|
2808
|
+
border: "2px solid $dark300",
|
|
2809
|
+
cursor: "pointer"
|
|
2810
|
+
},
|
|
2811
|
+
"label button[data-state=checked]:before": {
|
|
2812
|
+
backgroundColor: "$dark50",
|
|
2813
|
+
content: "",
|
|
2814
|
+
width: "8px",
|
|
2815
|
+
height: "8px",
|
|
2816
|
+
position: "absolute",
|
|
2817
|
+
top: "2px",
|
|
2818
|
+
right: "2px",
|
|
2819
|
+
zIndex: 2
|
|
2820
|
+
},
|
|
2821
|
+
"label button[data-state=checked]:after": {
|
|
2822
|
+
backgroundColor: "$brand500",
|
|
2823
|
+
content: "",
|
|
2824
|
+
height: "$16",
|
|
2825
|
+
width: "$16",
|
|
2826
|
+
position: "absolute",
|
|
2827
|
+
top: "-2px",
|
|
2828
|
+
right: "-2px",
|
|
2829
|
+
borderRadius: "2px",
|
|
2830
|
+
zIndex: 1
|
|
2831
|
+
},
|
|
2832
|
+
variants: {
|
|
2833
|
+
color: {
|
|
2834
|
+
success: {
|
|
2835
|
+
"label": {
|
|
2836
|
+
"&:focus button, &:hover button": {
|
|
2837
|
+
boxShadow: "0px 0px 0px 4px rgba(38, 167, 67, 0.50)"
|
|
2838
|
+
}
|
|
2839
|
+
},
|
|
2840
|
+
"label button": {
|
|
2841
|
+
borderColor: "$green500",
|
|
2842
|
+
backgroundColor: "$dark50"
|
|
2843
|
+
},
|
|
2844
|
+
"label button[data-state=checked]:after": {
|
|
2845
|
+
backgroundColor: "$green500"
|
|
2846
|
+
}
|
|
2847
|
+
},
|
|
2848
|
+
blue: {},
|
|
2849
|
+
error: {
|
|
2850
|
+
"label": {
|
|
2851
|
+
"&:focus button, &:hover button": {
|
|
2852
|
+
boxShadow: "0px 0px 0px 4px rgba(225, 86, 98, 0.50)"
|
|
2853
|
+
}
|
|
2854
|
+
},
|
|
2855
|
+
"label button": {
|
|
2856
|
+
borderColor: "$error400",
|
|
2857
|
+
backgroundColor: "$dark50"
|
|
2858
|
+
},
|
|
2859
|
+
"label button[data-state=checked]:after": {
|
|
2860
|
+
backgroundColor: "$error600"
|
|
2861
|
+
}
|
|
2862
|
+
}
|
|
2863
|
+
},
|
|
2864
|
+
disabled: {
|
|
2865
|
+
true: {
|
|
2866
|
+
"label": {
|
|
2867
|
+
cursor: "not-allowed",
|
|
2868
|
+
opacity: 0.5,
|
|
2869
|
+
"&:focus button, &:hover button": {
|
|
2870
|
+
boxShadow: "none"
|
|
2871
|
+
}
|
|
2872
|
+
},
|
|
2873
|
+
"label button": {
|
|
2874
|
+
cursor: "not-allowed"
|
|
2875
|
+
}
|
|
2876
|
+
},
|
|
2877
|
+
false: {}
|
|
2878
|
+
}
|
|
2879
|
+
},
|
|
2880
|
+
compoundVariants: [
|
|
2881
|
+
{
|
|
2882
|
+
color: "blue",
|
|
2883
|
+
disabled: false,
|
|
2884
|
+
css: {
|
|
2885
|
+
"label": {
|
|
2886
|
+
"&:focus button, &:hover button": {
|
|
2887
|
+
boxShadow: "0px 0px 0px 4px rgba(56, 129, 255, 0.50)"
|
|
2888
|
+
}
|
|
2889
|
+
},
|
|
2890
|
+
"label button": {
|
|
2891
|
+
borderColor: "$dark300"
|
|
2892
|
+
},
|
|
2893
|
+
"label button[data-state=checked]:after": {
|
|
2894
|
+
backgroundColor: "$brand500"
|
|
2895
|
+
}
|
|
2896
|
+
}
|
|
2897
|
+
},
|
|
2898
|
+
{
|
|
2899
|
+
color: "blue",
|
|
2900
|
+
disabled: true,
|
|
2901
|
+
css: {
|
|
2902
|
+
"label button": {
|
|
2903
|
+
borderColor: "$brand100",
|
|
2904
|
+
backgroundColor: "$dark50"
|
|
2905
|
+
},
|
|
2906
|
+
"label button[data-state=checked]:after": {
|
|
2907
|
+
backgroundColor: "$brand100"
|
|
2908
|
+
}
|
|
2909
|
+
}
|
|
2910
|
+
},
|
|
2911
|
+
{
|
|
2912
|
+
color: "success",
|
|
2913
|
+
disabled: true,
|
|
2914
|
+
css: {
|
|
2915
|
+
"label button": {
|
|
2916
|
+
borderColor: "$success100",
|
|
2917
|
+
backgroundColor: "$dark50"
|
|
2918
|
+
},
|
|
2919
|
+
"label button[data-state=checked]:after": {
|
|
2920
|
+
backgroundColor: "$success100"
|
|
2921
|
+
}
|
|
2922
|
+
}
|
|
2923
|
+
},
|
|
2924
|
+
{
|
|
2925
|
+
color: "error",
|
|
2926
|
+
disabled: true,
|
|
2927
|
+
css: {
|
|
2928
|
+
"label button": {
|
|
2929
|
+
borderColor: "$error100",
|
|
2930
|
+
backgroundColor: "$dark50"
|
|
2931
|
+
},
|
|
2932
|
+
"label button[data-state=checked]:after": {
|
|
2933
|
+
backgroundColor: "$error100"
|
|
2934
|
+
}
|
|
2935
|
+
}
|
|
2936
|
+
}
|
|
2937
|
+
],
|
|
2938
|
+
defaultVariants: {
|
|
2939
|
+
color: "blue",
|
|
2940
|
+
disabled: false
|
|
2941
|
+
}
|
|
2942
|
+
});
|
|
2943
|
+
function CheckboxGroup(_a) {
|
|
2944
|
+
var _b = _a, {
|
|
2945
|
+
children
|
|
2946
|
+
} = _b, props = __objRest(_b, [
|
|
2947
|
+
"children"
|
|
2948
|
+
]);
|
|
2949
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CheckboxGroupStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
2950
|
+
}
|
|
2951
|
+
function CheckboxItem(_a) {
|
|
2952
|
+
var _b = _a, {
|
|
2953
|
+
children
|
|
2954
|
+
} = _b, props = __objRest(_b, [
|
|
2955
|
+
"children"
|
|
2956
|
+
]);
|
|
2957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_themes15.CheckboxGroup.Item, __spreadProps(__spreadValues({}, props), { children }));
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2960
|
+
// src/components/Filter.tsx
|
|
2961
|
+
var import_themes16 = require("@radix-ui/themes");
|
|
2962
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
2963
|
+
var FilterStyled = styled("div", {
|
|
2964
|
+
fontFamily: "$default",
|
|
2965
|
+
color: "$dark600",
|
|
2966
|
+
letterSpacing: "0px",
|
|
2967
|
+
cursor: "pointer",
|
|
2968
|
+
border: "1px solid $dark300",
|
|
2969
|
+
borderRadius: "$xs",
|
|
2970
|
+
padding: "$8 $12",
|
|
2971
|
+
width: "calc(100% - 24px)",
|
|
2972
|
+
display: "flex",
|
|
2973
|
+
"button": {
|
|
2974
|
+
fontFamily: "$default",
|
|
2975
|
+
color: "$dark600",
|
|
2976
|
+
letterSpacing: "0px",
|
|
2977
|
+
backgroundColor: "transparent",
|
|
2978
|
+
border: "none",
|
|
2979
|
+
width: "100%",
|
|
2980
|
+
outline: "none",
|
|
2981
|
+
display: "flex",
|
|
2982
|
+
alignItems: "center",
|
|
2983
|
+
gap: "$8",
|
|
2984
|
+
cursor: "pointer",
|
|
2985
|
+
"svg:last-child": {
|
|
2986
|
+
marginLeft: "auto"
|
|
2987
|
+
}
|
|
2988
|
+
}
|
|
2989
|
+
});
|
|
2990
|
+
var FilterContentStyled = styled(import_themes16.DropdownMenu.Content, {
|
|
2991
|
+
background: "white",
|
|
2992
|
+
padding: "$8 $12",
|
|
2993
|
+
border: "1px solid $dark300",
|
|
2994
|
+
borderRadius: "$xs",
|
|
2995
|
+
boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08)",
|
|
2996
|
+
width: "calc(var(--radix-popper-anchor-width) - 24px);",
|
|
2997
|
+
minWidth: "100%",
|
|
2998
|
+
marginTop: "3px"
|
|
2999
|
+
});
|
|
3000
|
+
function Filter(_a) {
|
|
3001
|
+
var _b = _a, {
|
|
3002
|
+
children,
|
|
3003
|
+
placeholder
|
|
3004
|
+
} = _b, props = __objRest(_b, [
|
|
3005
|
+
"children",
|
|
3006
|
+
"placeholder"
|
|
3007
|
+
]);
|
|
3008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes16.Theme, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes16.DropdownMenu.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(FilterStyled, { children: [
|
|
3009
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes16.DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("button", { "aria-label": placeholder || "Fitrar", children: [
|
|
3010
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "filter" }),
|
|
3011
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: placeholder || "Fitrar" }),
|
|
3012
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes16.DropdownMenu.TriggerIcon, {})
|
|
3013
|
+
] }) }),
|
|
3014
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3015
|
+
FilterContentStyled,
|
|
3016
|
+
{
|
|
3017
|
+
avoidCollisions: false,
|
|
3018
|
+
align: "start",
|
|
3019
|
+
alignOffset: -14,
|
|
3020
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CheckboxGroup, { children })
|
|
3021
|
+
}
|
|
3022
|
+
)
|
|
3023
|
+
] }) })) });
|
|
3024
|
+
}
|
|
3025
|
+
function FilterItem(_a) {
|
|
3026
|
+
var _b = _a, {
|
|
3027
|
+
children
|
|
3028
|
+
} = _b, props = __objRest(_b, [
|
|
3029
|
+
"children"
|
|
3030
|
+
]);
|
|
3031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CheckboxItem, __spreadProps(__spreadValues({}, props), { style: { padding: "8px 12px" }, children }));
|
|
3032
|
+
}
|
|
3033
|
+
|
|
3034
|
+
// src/components/Dropdown.tsx
|
|
3035
|
+
var import_themes17 = require("@radix-ui/themes");
|
|
3036
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
3037
|
+
var DropdownMenuStyled = styled("div", {
|
|
3038
|
+
fontFamily: "$default",
|
|
3039
|
+
color: "$dark600",
|
|
3040
|
+
letterSpacing: "0px",
|
|
3041
|
+
cursor: "pointer",
|
|
3042
|
+
border: "1px solid $dark300",
|
|
3043
|
+
borderRadius: "$xs",
|
|
3044
|
+
padding: "$8 $12",
|
|
3045
|
+
width: "calc(100% - 24px)",
|
|
3046
|
+
display: "flex",
|
|
3047
|
+
"button": {
|
|
3048
|
+
fontFamily: "$default",
|
|
3049
|
+
color: "$dark600",
|
|
3050
|
+
letterSpacing: "0px",
|
|
3051
|
+
backgroundColor: "transparent",
|
|
3052
|
+
border: "none",
|
|
3053
|
+
width: "100%",
|
|
3054
|
+
outline: "none",
|
|
3055
|
+
display: "flex",
|
|
3056
|
+
alignItems: "center",
|
|
3057
|
+
gap: "$8",
|
|
3058
|
+
cursor: "pointer",
|
|
3059
|
+
"svg": {
|
|
3060
|
+
marginLeft: "auto"
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3063
|
+
});
|
|
3064
|
+
var DropdownMenuContentStyled = styled(import_themes17.DropdownMenu.Content, {
|
|
3065
|
+
background: "white",
|
|
3066
|
+
padding: "$8 $12",
|
|
3067
|
+
border: "1px solid $dark300",
|
|
3068
|
+
borderRadius: "$xs",
|
|
3069
|
+
boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08)",
|
|
3070
|
+
width: "calc(var(--radix-popper-anchor-width) - 24px);",
|
|
3071
|
+
minWidth: "100%",
|
|
3072
|
+
marginTop: "3px"
|
|
3073
|
+
});
|
|
3074
|
+
var DropdownMenuItemStyled = styled(import_themes17.DropdownMenu.Item, {
|
|
3075
|
+
fontFamily: "$default",
|
|
3076
|
+
color: "$dark600",
|
|
3077
|
+
letterSpacing: "0px",
|
|
3078
|
+
padding: "$8 $12",
|
|
3079
|
+
"&:hover, &:focus": {
|
|
3080
|
+
backgroundColor: "transparent",
|
|
3081
|
+
border: "none",
|
|
3082
|
+
outline: "none",
|
|
3083
|
+
cursor: "pointer"
|
|
3084
|
+
}
|
|
3085
|
+
});
|
|
3086
|
+
function DropdownMenu2(_a) {
|
|
3087
|
+
var _b = _a, {
|
|
3088
|
+
children,
|
|
3089
|
+
placeholder
|
|
3090
|
+
} = _b, props = __objRest(_b, [
|
|
3091
|
+
"children",
|
|
3092
|
+
"placeholder"
|
|
3093
|
+
]);
|
|
3094
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes17.Theme, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes17.DropdownMenu.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(DropdownMenuStyled, { children: [
|
|
3095
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes17.DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("button", { "aria-label": placeholder || "Fitrar", children: [
|
|
3096
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: placeholder || "Fitrar" }),
|
|
3097
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes17.DropdownMenu.TriggerIcon, {})
|
|
3098
|
+
] }) }),
|
|
3099
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
3100
|
+
DropdownMenuContentStyled,
|
|
3101
|
+
{
|
|
3102
|
+
avoidCollisions: false,
|
|
3103
|
+
align: "start",
|
|
3104
|
+
alignOffset: -14,
|
|
3105
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes17.DropdownMenu.Group, { children })
|
|
3106
|
+
}
|
|
3107
|
+
)
|
|
3108
|
+
] }) })) });
|
|
3109
|
+
}
|
|
3110
|
+
function DropdownMenuItem(_a) {
|
|
3111
|
+
var _b = _a, {
|
|
3112
|
+
children
|
|
3113
|
+
} = _b, props = __objRest(_b, [
|
|
3114
|
+
"children"
|
|
3115
|
+
]);
|
|
3116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuItemStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
3117
|
+
}
|
|
3118
|
+
|
|
3119
|
+
// src/components/Badge.tsx
|
|
3120
|
+
var import_react2 = __toESM(require("react"));
|
|
3121
|
+
var import_themes18 = require("@radix-ui/themes");
|
|
3122
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
3123
|
+
var BadgeStyled = styled(import_themes18.Badge, {
|
|
3124
|
+
fontFamily: "$default",
|
|
3125
|
+
borderRadius: "$sm",
|
|
3126
|
+
verticalAlign: "middle",
|
|
3127
|
+
"svg": {
|
|
3128
|
+
marginRight: "10px"
|
|
3129
|
+
},
|
|
3130
|
+
variants: {
|
|
3131
|
+
color: {
|
|
3132
|
+
primary: {
|
|
3133
|
+
backgroundColor: "$brand100",
|
|
3134
|
+
color: "$dark700"
|
|
3135
|
+
},
|
|
3136
|
+
dark: {
|
|
3137
|
+
backgroundColor: "$dark700",
|
|
3138
|
+
color: "$grey50"
|
|
3139
|
+
},
|
|
3140
|
+
light: {
|
|
3141
|
+
backgroundColor: "$neutral200",
|
|
3142
|
+
color: "$dark700"
|
|
3143
|
+
},
|
|
3144
|
+
red: {
|
|
3145
|
+
backgroundColor: "$red100",
|
|
3146
|
+
color: "$dark700"
|
|
3147
|
+
},
|
|
3148
|
+
green: {
|
|
3149
|
+
backgroundColor: "$green100",
|
|
3150
|
+
color: "$dark700"
|
|
3151
|
+
},
|
|
3152
|
+
yellow: {
|
|
3153
|
+
backgroundColor: "$yellow100",
|
|
3154
|
+
color: "$dark700"
|
|
3155
|
+
},
|
|
3156
|
+
orange: {
|
|
3157
|
+
backgroundColor: "$orange100",
|
|
3158
|
+
color: "$dark700"
|
|
3159
|
+
},
|
|
3160
|
+
blue: {
|
|
3161
|
+
backgroundColor: "$blue100",
|
|
3162
|
+
color: "$dark700"
|
|
3163
|
+
},
|
|
3164
|
+
pink: {
|
|
3165
|
+
backgroundColor: "$pink100",
|
|
3166
|
+
color: "$dark700"
|
|
3167
|
+
},
|
|
3168
|
+
purple: {
|
|
3169
|
+
backgroundColor: "$purple100",
|
|
3170
|
+
color: "$dark700"
|
|
3171
|
+
},
|
|
3172
|
+
grey: {
|
|
3173
|
+
backgroundColor: "$grey200",
|
|
3174
|
+
color: "$dark700"
|
|
3175
|
+
},
|
|
3176
|
+
disable: {
|
|
3177
|
+
backgroundColor: "$neutral200",
|
|
3178
|
+
color: "$grey500"
|
|
3179
|
+
}
|
|
3180
|
+
},
|
|
3181
|
+
size: {
|
|
3182
|
+
xs: {
|
|
3183
|
+
padding: "$4 $6",
|
|
3184
|
+
fontSize: "$10",
|
|
3185
|
+
borderRadius: "$2xs",
|
|
3186
|
+
lineHeight: "$smaller"
|
|
3187
|
+
},
|
|
3188
|
+
sm: {
|
|
3189
|
+
padding: "$4 $8",
|
|
3190
|
+
fontSize: "$12",
|
|
3191
|
+
borderRadius: "$xs",
|
|
3192
|
+
lineHeight: "$smaller"
|
|
3193
|
+
},
|
|
3194
|
+
md: {
|
|
3195
|
+
padding: "$8 $10",
|
|
3196
|
+
fontSize: "$14",
|
|
3197
|
+
borderRadius: "$sm",
|
|
3198
|
+
lineHeight: "$smaller"
|
|
3199
|
+
},
|
|
3200
|
+
xl: {
|
|
3201
|
+
padding: "$12 $12",
|
|
3202
|
+
fontSize: "$16",
|
|
3203
|
+
borderRadius: "$sm",
|
|
3204
|
+
lineHeight: "$smaller"
|
|
3205
|
+
}
|
|
3206
|
+
},
|
|
3207
|
+
radii: {
|
|
3208
|
+
"full": {
|
|
3209
|
+
borderRadius: "$full"
|
|
3210
|
+
}
|
|
3211
|
+
}
|
|
3212
|
+
},
|
|
3213
|
+
defaultVariants: {
|
|
3214
|
+
size: "md",
|
|
3215
|
+
color: "primary"
|
|
3216
|
+
}
|
|
3217
|
+
});
|
|
3218
|
+
function Badge(_a) {
|
|
3219
|
+
var _b = _a, { asChild, children } = _b, props = __objRest(_b, ["asChild", "children"]);
|
|
3220
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(BadgeStyled, __spreadProps(__spreadValues({}, props), { children: import_react2.default.Children.map(children, (child) => {
|
|
3221
|
+
if (import_react2.default.isValidElement(child)) {
|
|
3222
|
+
return import_react2.default.cloneElement(child, { size: props.size });
|
|
3223
|
+
}
|
|
3224
|
+
return child;
|
|
3225
|
+
}) }));
|
|
3226
|
+
}
|
|
282
3227
|
// Annotate the CommonJS export names for ESM import in node:
|
|
283
3228
|
0 && (module.exports = {
|
|
284
|
-
|
|
3229
|
+
Avatar,
|
|
3230
|
+
AvatarStyled,
|
|
3231
|
+
Badge,
|
|
3232
|
+
BadgeStyled,
|
|
3233
|
+
BadgeText,
|
|
3234
|
+
BodyText,
|
|
3235
|
+
Box,
|
|
3236
|
+
Button,
|
|
3237
|
+
ButtonGroup,
|
|
3238
|
+
ButtonGroupStyled,
|
|
3239
|
+
ButtonItem,
|
|
3240
|
+
ButtonItemStyled,
|
|
3241
|
+
ButtonStyled,
|
|
3242
|
+
CaptionText,
|
|
3243
|
+
CheckboxGroup,
|
|
3244
|
+
CheckboxGroupStyled,
|
|
3245
|
+
CheckboxItem,
|
|
3246
|
+
DisplayText,
|
|
3247
|
+
DropdownMenu,
|
|
3248
|
+
DropdownMenuItem,
|
|
3249
|
+
Filter,
|
|
3250
|
+
FilterItem,
|
|
3251
|
+
Flex,
|
|
3252
|
+
Headline,
|
|
3253
|
+
Icon,
|
|
3254
|
+
Label,
|
|
3255
|
+
RadioGroup,
|
|
3256
|
+
RadioGroupStyled,
|
|
3257
|
+
RadioItem,
|
|
3258
|
+
Subtitle,
|
|
3259
|
+
Text,
|
|
3260
|
+
TextField,
|
|
3261
|
+
TextFieldSlot,
|
|
3262
|
+
TextFieldSlotStyled,
|
|
3263
|
+
TextFieldStyled,
|
|
3264
|
+
TooltipText
|
|
285
3265
|
});
|
|
3266
|
+
/*! Bundled license information:
|
|
3267
|
+
|
|
3268
|
+
react-is/cjs/react-is.production.min.js:
|
|
3269
|
+
(** @license React v16.13.1
|
|
3270
|
+
* react-is.production.min.js
|
|
3271
|
+
*
|
|
3272
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3273
|
+
*
|
|
3274
|
+
* This source code is licensed under the MIT license found in the
|
|
3275
|
+
* LICENSE file in the root directory of this source tree.
|
|
3276
|
+
*)
|
|
3277
|
+
|
|
3278
|
+
react-is/cjs/react-is.development.js:
|
|
3279
|
+
(** @license React v16.13.1
|
|
3280
|
+
* react-is.development.js
|
|
3281
|
+
*
|
|
3282
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3283
|
+
*
|
|
3284
|
+
* This source code is licensed under the MIT license found in the
|
|
3285
|
+
* LICENSE file in the root directory of this source tree.
|
|
3286
|
+
*)
|
|
3287
|
+
|
|
3288
|
+
object-assign/index.js:
|
|
3289
|
+
(*
|
|
3290
|
+
object-assign
|
|
3291
|
+
(c) Sindre Sorhus
|
|
3292
|
+
@license MIT
|
|
3293
|
+
*)
|
|
3294
|
+
*/
|