@lets-events/react 2.0.0 → 3.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/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,1034 @@ 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
- Text: () => Text
1013
+ Avatar: () => Avatar,
1014
+ AvatarStyled: () => AvatarStyled,
1015
+ BadgeText: () => BadgeText,
1016
+ BodyText: () => BodyText,
1017
+ Box: () => Box,
1018
+ Button: () => Button,
1019
+ ButtonGroup: () => ButtonGroup,
1020
+ ButtonGroupStyled: () => ButtonGroupStyled,
1021
+ ButtonItem: () => ButtonItem,
1022
+ ButtonItemStyled: () => ButtonItemStyled,
1023
+ ButtonStyled: () => ButtonStyled,
1024
+ CaptionText: () => CaptionText,
1025
+ CheckboxGroup: () => CheckboxGroup,
1026
+ CheckboxGroupStyled: () => CheckboxGroupStyled,
1027
+ CheckboxItem: () => CheckboxItem,
1028
+ DisplayText: () => DisplayText,
1029
+ DropdownMenu: () => DropdownMenu2,
1030
+ DropdownMenuItem: () => DropdownMenuItem,
1031
+ Filter: () => Filter,
1032
+ FilterItem: () => FilterItem,
1033
+ Flex: () => Flex2,
1034
+ Headline: () => Headline,
1035
+ Icon: () => Icon,
1036
+ Label: () => Label,
1037
+ RadioGroup: () => RadioGroup,
1038
+ RadioGroupStyled: () => RadioGroupStyled,
1039
+ RadioItem: () => RadioItem,
1040
+ Subtitle: () => Subtitle,
1041
+ Text: () => Text,
1042
+ TextField: () => TextField,
1043
+ TextFieldSlot: () => TextFieldSlot,
1044
+ TextFieldSlotStyled: () => TextFieldSlotStyled,
1045
+ TextFieldStyled: () => TextFieldStyled,
1046
+ TooltipText: () => TooltipText
41
1047
  });
42
1048
  module.exports = __toCommonJS(index_exports);
43
1049
 
1050
+ // src/components/Icon.tsx
1051
+ var import_react_fontawesome = require("@fortawesome/react-fontawesome");
1052
+ var import_fontawesome_svg_core = require("@fortawesome/fontawesome-svg-core");
1053
+ var import_free_solid_svg_icons = require("@fortawesome/free-solid-svg-icons");
1054
+ var import_free_regular_svg_icons = require("@fortawesome/free-regular-svg-icons");
1055
+ var import_free_brands_svg_icons = require("@fortawesome/free-brands-svg-icons");
1056
+ var import_prop_types = __toESM(require_prop_types());
1057
+ var import_jsx_runtime = require("react/jsx-runtime");
1058
+ import_fontawesome_svg_core.library.add(import_free_solid_svg_icons.fas, import_free_regular_svg_icons.far, import_free_brands_svg_icons.fab);
1059
+ var Icon = (_a) => {
1060
+ var _b = _a, { name, prefix = "fas", size = "1x", color = "currentColor", className = "" } = _b, props = __objRest(_b, ["name", "prefix", "size", "color", "className"]);
1061
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1062
+ import_react_fontawesome.FontAwesomeIcon,
1063
+ __spreadValues({
1064
+ icon: [prefix, name],
1065
+ size,
1066
+ color,
1067
+ className
1068
+ }, props)
1069
+ );
1070
+ };
1071
+ Icon.propTypes = {
1072
+ name: import_prop_types.default.string.isRequired,
1073
+ prefix: import_prop_types.default.string,
1074
+ size: import_prop_types.default.string,
1075
+ color: import_prop_types.default.string,
1076
+ className: import_prop_types.default.string
1077
+ };
1078
+ var Icon_default = Icon;
1079
+
44
1080
  // ../tokens/dist/index.mjs
45
1081
  var colors = {
46
1082
  brand50: "#DBE8FF",
@@ -141,7 +1177,51 @@ var colors = {
141
1177
  grey700: "#516A7A",
142
1178
  grey800: "#394F61",
143
1179
  grey900: "#233543",
144
- grey950: "#101B23"
1180
+ grey950: "#101B23",
1181
+ error50: "#FCEEEF",
1182
+ error100: "#F9DCDF",
1183
+ error200: "#F3BEC3",
1184
+ error300: "#ED9CA2",
1185
+ error400: "#E77982",
1186
+ error500: "#E15662",
1187
+ error600: "#DB3644",
1188
+ error700: "#AD1F2B",
1189
+ error800: "#75151D",
1190
+ error900: "#380A0E",
1191
+ error950: "#1E0507",
1192
+ success50: "#E6F9EA",
1193
+ success100: "#CDF4D5",
1194
+ success200: "#9BE8AC",
1195
+ success300: "#6CD783",
1196
+ success400: "#5BCA72",
1197
+ success500: "#26A743",
1198
+ success600: "#1E8535",
1199
+ success700: "#176427",
1200
+ success800: "#0F421A",
1201
+ success900: "#08210D",
1202
+ success950: "#041107",
1203
+ warning50: "#FFF9E6",
1204
+ warning100: "#FFF3CD",
1205
+ warning200: "#FFE69C",
1206
+ warning300: "#FFDA6A",
1207
+ warning400: "#FFCD39",
1208
+ warning500: "#FFC107",
1209
+ warning600: "#CC9A06",
1210
+ warning700: "#997404",
1211
+ warning800: "#664D03",
1212
+ warning900: "#332701",
1213
+ warning950: "#191300",
1214
+ info50: "#E5F1FF",
1215
+ info100: "#CCE4FF",
1216
+ info200: "#9AC9FF",
1217
+ info300: "#66ADFF",
1218
+ info400: "#3392FF",
1219
+ info500: "#0278FE",
1220
+ info600: "#005FCD",
1221
+ info700: "#004799",
1222
+ info800: "#013066",
1223
+ info900: "#001834",
1224
+ info950: "#000C1A"
145
1225
  };
146
1226
  var fonts = {
147
1227
  default: '"Work Sans", sans-serif'
@@ -196,14 +1276,26 @@ var lineHeights = {
196
1276
  // 24px
197
1277
  };
198
1278
  var radii = {
199
- px: "1px",
200
- xs: "6px",
201
- sm: "8px",
202
- md: "12px",
203
- lg: "16px",
204
- "2xl": "24px",
205
- "3xl": "32px",
206
- "4xl": "40px",
1279
+ "3xs": "2px",
1280
+ "2xs": "4px",
1281
+ "xs": "6px",
1282
+ "sm": "8px",
1283
+ "md": "10px",
1284
+ "lg": "12px",
1285
+ "xl": "14px",
1286
+ "2xl": "16px",
1287
+ "3xl": "18px",
1288
+ "4xl": "20px",
1289
+ "5xl": "22px",
1290
+ "6xl": "24px",
1291
+ "7xl": "32px",
1292
+ "8xl": "36px",
1293
+ "9xl": "40px",
1294
+ "10xl": "48px",
1295
+ "11xl": "56px",
1296
+ "12xl": "64px",
1297
+ "13xl": "72px",
1298
+ "14xl": "80px",
207
1299
  full: "99999px"
208
1300
  };
209
1301
  var space = {
@@ -245,7 +1337,8 @@ var {
245
1337
  } = (0, import_react.createStitches)({
246
1338
  themeMap: __spreadProps(__spreadValues({}, import_react.defaultThemeMap), {
247
1339
  height: "space",
248
- width: "space"
1340
+ width: "space",
1341
+ gap: "space"
249
1342
  }),
250
1343
  theme: {
251
1344
  colors,
@@ -259,27 +1352,1255 @@ var {
259
1352
  });
260
1353
 
261
1354
  // src/components/Text.tsx
262
- var Text = styled("p", {
1355
+ var import_themes = require("@radix-ui/themes");
1356
+ var Text = styled(import_themes.Text, {
1357
+ fontFamily: "$default",
1358
+ lineHeight: "$base",
1359
+ color: "$gray100",
1360
+ letterSpacing: "$2",
1361
+ fontWeight: "$semibold",
1362
+ variants: {
1363
+ size: {
1364
+ lg: { fontSize: "$56" },
1365
+ md: { fontSize: "$48" },
1366
+ sm: { fontSize: "$36" }
1367
+ }
1368
+ },
1369
+ defaultVariants: {
1370
+ size: "md"
1371
+ }
1372
+ });
1373
+
1374
+ // src/components/DisplayText.tsx
1375
+ var DisplayText = styled("p", {
263
1376
  fontFamily: "$default",
264
1377
  lineHeight: "$base",
265
- margin: 0,
266
1378
  color: "$gray100",
1379
+ letterSpacing: "$2",
1380
+ fontWeight: "$semibold",
267
1381
  variants: {
268
1382
  size: {
269
- xs: { fontSize: "$xs" },
270
- sm: { fontSize: "$sm" },
271
- md: { fontSize: "$md" },
272
- lg: { fontSize: "$lg" },
273
- "2xl": { fontSize: "$2xl" },
274
- "4xl": { fontSize: "$4xl" },
275
- full: { fontSize: "$full" }
1383
+ lg: { fontSize: "$56" },
1384
+ md: { fontSize: "$48" },
1385
+ sm: { fontSize: "$36" }
276
1386
  }
277
1387
  },
278
1388
  defaultVariants: {
279
1389
  size: "md"
280
1390
  }
281
1391
  });
1392
+
1393
+ // src/components/Headline.tsx
1394
+ var import_themes2 = require("@radix-ui/themes");
1395
+ var Headline = styled(import_themes2.Heading, {
1396
+ fontFamily: "$default",
1397
+ color: "$gray100",
1398
+ letterSpacing: "0px",
1399
+ variants: {
1400
+ size: {
1401
+ 1: { fontSize: "$48", lineHeight: "$64", fontWeight: "$semibold" },
1402
+ 2: { fontSize: "$32", lineHeight: "$48", fontWeight: "$semibold" },
1403
+ 3: { fontSize: "$24", lineHeight: "$40", fontWeight: "$semibold" },
1404
+ 4: { fontSize: "$20", lineHeight: "$36", fontWeight: "$semibold" },
1405
+ 5: { fontSize: "$18", lineHeight: "$24", fontWeight: "$semibold" },
1406
+ 6: { fontSize: "$18", lineHeight: "$34", fontWeight: "$medium" },
1407
+ 7: { fontSize: "$16", lineHeight: "$32", fontWeight: "$semibold" },
1408
+ 8: { fontSize: "$16", lineHeight: "$32", fontWeight: "$medium" }
1409
+ }
1410
+ },
1411
+ defaultVariants: {
1412
+ size: 1
1413
+ }
1414
+ });
1415
+
1416
+ // src/components/Subtitle.tsx
1417
+ var import_themes3 = require("@radix-ui/themes");
1418
+ var Subtitle = styled(import_themes3.Text, {
1419
+ fontFamily: "$default",
1420
+ color: "$gray100",
1421
+ letterSpacing: "0px",
1422
+ variants: {
1423
+ size: {
1424
+ 1: { fontSize: "$20", lineHeight: "$36", fontWeight: "$regular" },
1425
+ 2: { fontSize: "$18", lineHeight: "$34", fontWeight: "$regular" },
1426
+ 3: { fontSize: "$16", lineHeight: "$32", fontWeight: "$regular" },
1427
+ 4: { fontSize: "$14", lineHeight: "$24", fontWeight: "$regular" },
1428
+ 5: { fontSize: "$14", lineHeight: "$16", fontWeight: "$semibold" }
1429
+ }
1430
+ },
1431
+ defaultVariants: {
1432
+ size: 1
1433
+ }
1434
+ });
1435
+
1436
+ // src/components/BodyText.tsx
1437
+ var import_themes4 = require("@radix-ui/themes");
1438
+ var BodyText = styled(import_themes4.Text, {
1439
+ fontFamily: "$default",
1440
+ color: "$gray100",
1441
+ fontWeight: "$regular",
1442
+ variants: {
1443
+ size: {
1444
+ 1: { fontSize: "$16", lineHeight: "$24" },
1445
+ 2: { fontSize: "$14", lineHeight: "$24" },
1446
+ 3: { fontSize: "$13", lineHeight: "$24" },
1447
+ 4: { fontSize: "$12", lineHeight: "$16" }
1448
+ }
1449
+ },
1450
+ defaultVariants: {
1451
+ size: "1"
1452
+ }
1453
+ });
1454
+
1455
+ // src/components/Label.tsx
1456
+ var import_themes5 = require("@radix-ui/themes");
1457
+ var Label = styled(import_themes5.Text, {
1458
+ fontFamily: "$default",
1459
+ color: "$gray100",
1460
+ letterSpacing: "0px",
1461
+ variants: {
1462
+ size: {
1463
+ 1: { fontSize: "$18", lineHeight: "$22", fontWeight: "$semibold" },
1464
+ 2: { fontSize: "$14", lineHeight: "$16", fontWeight: "$medium" },
1465
+ 3: { fontSize: "$14", lineHeight: "$16", fontWeight: "$regular" },
1466
+ 4: { fontSize: "$13", lineHeight: "$16", fontWeight: "$semibold", letterSpacing: "2px" },
1467
+ 5: { fontSize: "$13", lineHeight: "$16", fontWeight: "$medium" },
1468
+ 6: { fontSize: "$13", lineHeight: "$16", fontWeight: "$regular" },
1469
+ 7: { fontSize: "$12", lineHeight: "$12", fontWeight: "$regular" }
1470
+ }
1471
+ },
1472
+ defaultVariants: {
1473
+ size: "1"
1474
+ }
1475
+ });
1476
+
1477
+ // src/components/BadgeText.tsx
1478
+ var import_themes6 = require("@radix-ui/themes");
1479
+ var BadgeText = styled(import_themes6.Text, {
1480
+ fontFamily: "$default",
1481
+ color: "$gray100",
1482
+ letterSpacing: "0px",
1483
+ variants: {
1484
+ size: {
1485
+ 1: { fontSize: "$16", lineHeight: "$16", fontWeight: "$regular" },
1486
+ 2: { fontSize: "$14", lineHeight: "$14", fontWeight: "$regular" },
1487
+ 3: { fontSize: "$12", lineHeight: "$12", fontWeight: "$regular" },
1488
+ 4: { fontSize: "$10", lineHeight: "$10", fontWeight: "$regular" }
1489
+ }
1490
+ },
1491
+ defaultVariants: {
1492
+ size: "1"
1493
+ }
1494
+ });
1495
+
1496
+ // src/components/CaptionText.tsx
1497
+ var import_themes7 = require("@radix-ui/themes");
1498
+ var CaptionText = styled(import_themes7.Text, {
1499
+ fontFamily: "$default",
1500
+ color: "$gray100",
1501
+ letterSpacing: "0px",
1502
+ fontSize: "$14",
1503
+ lineHeight: "$16",
1504
+ fontWeight: "$regular"
1505
+ });
1506
+
1507
+ // src/components/TooltipText.tsx
1508
+ var TooltipText = styled("span", {
1509
+ fontFamily: "$default",
1510
+ color: "$gray100",
1511
+ letterSpacing: "0px",
1512
+ fontSize: "$13",
1513
+ lineHeight: "$16",
1514
+ fontWeight: "$regular"
1515
+ });
1516
+
1517
+ // src/components/Button.tsx
1518
+ var import_themes8 = require("@radix-ui/themes");
1519
+ var import_jsx_runtime2 = require("react/jsx-runtime");
1520
+ var ButtonStyled = styled(import_themes8.Button, {
1521
+ fontFamily: "$default",
1522
+ letterSpacing: 0,
1523
+ border: 0,
1524
+ transition: "all 300ms ease-out",
1525
+ cursor: "pointer",
1526
+ borderRadius: "$xs",
1527
+ boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08), 0px 2px 4px 0px rgba(35, 53, 67, 0.16)",
1528
+ display: "flex",
1529
+ alignItems: "center",
1530
+ justifyContent: "center",
1531
+ gap: "$10",
1532
+ variants: {
1533
+ variant: {
1534
+ simple: {
1535
+ backgroundColor: "transparent",
1536
+ padding: 0,
1537
+ color: "$neutral600",
1538
+ border: 0,
1539
+ boxShadow: "none",
1540
+ "&:hover": {
1541
+ transform: "scale(1.05)",
1542
+ color: "$brand600"
1543
+ },
1544
+ "&:focus": {
1545
+ border: "2px solid $gray500",
1546
+ color: "$brand700"
1547
+ },
1548
+ "&:active": {
1549
+ transform: "scale(0.95)",
1550
+ color: "$brand500"
1551
+ },
1552
+ "&:hover:disabled": {
1553
+ transform: "none"
1554
+ },
1555
+ "&:disabled": {
1556
+ cursor: "not-allowed",
1557
+ color: "$dark400",
1558
+ transition: "none"
1559
+ }
1560
+ },
1561
+ primary: {
1562
+ backgroundColor: "$brand500",
1563
+ color: "$grey50",
1564
+ "&:hover": {
1565
+ border: "$2 solid $brand700",
1566
+ transform: "scale(1.05)",
1567
+ backgroundColor: "$blue600"
1568
+ },
1569
+ "&:focus": {
1570
+ border: 0,
1571
+ backgroundColor: "$blue700"
1572
+ },
1573
+ "&:active": {
1574
+ transform: "scale(0.95)",
1575
+ border: "$4 solid $brand300",
1576
+ backgroundColor: "$blue500"
1577
+ },
1578
+ "&:hover:disabled": {
1579
+ transform: "none"
1580
+ },
1581
+ "&:disabled": {
1582
+ border: "$1 solid $brand50",
1583
+ backgroundColor: "$brand50",
1584
+ boxShadow: "none",
1585
+ color: "$neutral400",
1586
+ transition: "none"
1587
+ }
1588
+ },
1589
+ purple: {
1590
+ backgroundColor: "$purple500",
1591
+ color: "$grey50",
1592
+ "&:hover": {
1593
+ transform: "scale(1.05)",
1594
+ backgroundColor: "$purple600",
1595
+ border: "$2 solid $purple700"
1596
+ },
1597
+ "&:focus": {
1598
+ border: "$2 solid $purple700",
1599
+ backgroundColor: "$purple600"
1600
+ },
1601
+ "&:active": {
1602
+ transform: "scale(0.95)",
1603
+ border: "$2 solid $purple300",
1604
+ backgroundColor: "$purple500"
1605
+ },
1606
+ "&:hover:disabled": {
1607
+ transform: "none"
1608
+ },
1609
+ "&:disabled": {
1610
+ border: "$1 solid $purple200",
1611
+ backgroundColor: "$purple200",
1612
+ transition: "none"
1613
+ }
1614
+ },
1615
+ secondary: {
1616
+ backgroundColor: "$neutral500",
1617
+ border: "$1 solid $neutral300",
1618
+ color: "$neutral600",
1619
+ "&:hover": {
1620
+ transform: "scale(1.05)",
1621
+ backgroundColor: "$neutral100",
1622
+ border: "$1 solid $neutral400"
1623
+ },
1624
+ "&:focus": {
1625
+ backgroundColor: "$neutral200",
1626
+ border: 0
1627
+ },
1628
+ "&:active": {
1629
+ transform: "scale(0.95)",
1630
+ backgroundColor: "$neutral50",
1631
+ border: "$1 solid $neutral300"
1632
+ },
1633
+ "&:hover:disabled": {
1634
+ transform: "none"
1635
+ },
1636
+ "&:disabled": {
1637
+ backgroundColor: "$neutral50",
1638
+ border: "$1 solid $neutral200",
1639
+ color: "$neutral400",
1640
+ transition: "none"
1641
+ }
1642
+ }
1643
+ },
1644
+ size: {
1645
+ xs: {
1646
+ padding: "$6 $12",
1647
+ fontSize: "$12",
1648
+ lineHeight: "$base"
1649
+ },
1650
+ sm: {
1651
+ padding: "$8 $14",
1652
+ fontSize: "$13",
1653
+ lineHeight: "$smaller"
1654
+ },
1655
+ md: {
1656
+ padding: "$12 $16",
1657
+ fontSize: "$14",
1658
+ lineHeight: "$smaller"
1659
+ },
1660
+ lg: {
1661
+ padding: "$13 $20",
1662
+ fontSize: "$18",
1663
+ lineHeight: "$smaller"
1664
+ }
1665
+ },
1666
+ radii: {
1667
+ "full": {
1668
+ borderRadius: "$full"
1669
+ }
1670
+ }
1671
+ },
1672
+ defaultVariants: {
1673
+ variant: "simple",
1674
+ size: "md"
1675
+ }
1676
+ });
1677
+ function Button(_a) {
1678
+ var _b = _a, { asChild } = _b, props = __objRest(_b, ["asChild"]);
1679
+ const Component = asChild ? import_themes8.Button : "button";
1680
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ButtonStyled, __spreadValues({ as: Component }, props));
1681
+ }
1682
+
1683
+ // src/components/ButtonGroup.tsx
1684
+ var import_themes9 = require("@radix-ui/themes");
1685
+ var import_jsx_runtime3 = require("react/jsx-runtime");
1686
+ var ButtonItemStyled = styled(import_themes9.Button, {
1687
+ fontFamily: "$default",
1688
+ letterSpacing: 0,
1689
+ border: 0,
1690
+ transition: "all 300ms ease-out",
1691
+ cursor: "pointer",
1692
+ variants: {
1693
+ active: {
1694
+ true: {}
1695
+ }
1696
+ }
1697
+ });
1698
+ var ButtonGroupStyled = styled(import_themes9.Flex, {
1699
+ display: "flex",
1700
+ borderRadius: "$md",
1701
+ overflow: "hidden",
1702
+ variants: {
1703
+ variant: {
1704
+ primary: {
1705
+ [`& ${ButtonItemStyled}`]: {
1706
+ backgroundColor: "$brand500",
1707
+ color: "$grey50",
1708
+ "&:hover": { backgroundColor: "$blue600" },
1709
+ "&:focus": { backgroundColor: "$blue700" },
1710
+ "&:active": { backgroundColor: "$blue400" }
1711
+ },
1712
+ [`& ${ButtonItemStyled}.active`]: {
1713
+ backgroundColor: "$brand700",
1714
+ "&:hover": { backgroundColor: "$brand700" },
1715
+ "&:focus": { backgroundColor: "$brand700" },
1716
+ "&:active": { backgroundColor: "$brand700" }
1717
+ }
1718
+ },
1719
+ simple: {
1720
+ [`& ${ButtonItemStyled}`]: {
1721
+ backgroundColor: "transparent",
1722
+ border: "1px solid $dark300",
1723
+ color: "$dark600",
1724
+ "&:hover": { backgroundColor: "$neutral" }
1725
+ },
1726
+ [`& ${ButtonItemStyled}.active`]: {
1727
+ backgroundColor: "$dark200",
1728
+ color: "$dark600",
1729
+ "&:hover": { backgroundColor: "$dark200", color: "$dark600" }
1730
+ }
1731
+ }
1732
+ },
1733
+ size: {
1734
+ sm: {
1735
+ [`& ${ButtonItemStyled}`]: {
1736
+ padding: "$8 $14",
1737
+ fontSize: "$13",
1738
+ "&:not(:first-child)": {
1739
+ borderLeft: "none"
1740
+ },
1741
+ "&:first-child": {
1742
+ borderTopLeftRadius: "$sm",
1743
+ borderBottomLeftRadius: "$sm"
1744
+ },
1745
+ "&:last-child": {
1746
+ borderTopRightRadius: "$sm",
1747
+ borderBottomRightRadius: "$sm"
1748
+ }
1749
+ }
1750
+ },
1751
+ md: {
1752
+ [`& ${ButtonItemStyled}`]: {
1753
+ padding: "$12 $16",
1754
+ fontSize: "$14",
1755
+ "&:not(:first-child)": {
1756
+ borderLeft: "none"
1757
+ },
1758
+ "&:first-child": {
1759
+ borderTopLeftRadius: "$md",
1760
+ borderBottomLeftRadius: "$md"
1761
+ },
1762
+ "&:last-child": {
1763
+ borderTopRightRadius: "$md",
1764
+ borderBottomRightRadius: "$md"
1765
+ }
1766
+ }
1767
+ },
1768
+ lg: {
1769
+ [`& ${ButtonItemStyled}`]: {
1770
+ padding: "$13 $20",
1771
+ fontSize: "$18",
1772
+ "&:not(:first-child)": {
1773
+ borderLeft: "none"
1774
+ },
1775
+ "&:first-child": {
1776
+ borderTopLeftRadius: "$lg",
1777
+ borderBottomLeftRadius: "$lg"
1778
+ },
1779
+ "&:last-child": {
1780
+ borderTopRightRadius: "$lg",
1781
+ borderBottomRightRadius: "$lg"
1782
+ }
1783
+ }
1784
+ }
1785
+ }
1786
+ },
1787
+ defaultVariants: {
1788
+ variant: "primary",
1789
+ size: "md"
1790
+ }
1791
+ });
1792
+ function ButtonItem(_a) {
1793
+ var _b = _a, { children, active } = _b, props = __objRest(_b, ["children", "active"]);
1794
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ButtonItemStyled, __spreadProps(__spreadValues({ className: active ? "active" : "" }, props), { children }));
1795
+ }
1796
+ function ButtonGroup(_a) {
1797
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
1798
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ButtonGroupStyled, __spreadProps(__spreadValues({}, props), { children }));
1799
+ }
1800
+
1801
+ // src/components/Avatar.tsx
1802
+ var import_themes10 = require("@radix-ui/themes");
1803
+ var import_jsx_runtime4 = require("react/jsx-runtime");
1804
+ var AvatarStyled = styled(import_themes10.Avatar, {
1805
+ fontFamily: "$default",
1806
+ color: "$gray100",
1807
+ letterSpacing: "0px",
1808
+ variants: {
1809
+ size: {
1810
+ "xs": { width: "$24", height: "$24", display: "flex", alignItems: "center", justifyContent: "center", fontSize: "$10" },
1811
+ "sm": { width: "$32", height: "$32", display: "flex", alignItems: "center", justifyContent: "center", fontSize: "$14" },
1812
+ "md": { width: "$40", height: "$40", display: "flex", alignItems: "center", justifyContent: "center", fontSize: "$16" },
1813
+ "lg": { width: "$48", height: "$48", display: "flex", alignItems: "center", justifyContent: "center", fontSize: "$18" },
1814
+ "xl": { width: "$64", height: "$64", display: "flex", alignItems: "center", justifyContent: "center", fontSize: "$24" }
1815
+ },
1816
+ radii: {
1817
+ full: { borderRadius: "$full" }
1818
+ },
1819
+ variant: {
1820
+ "without-image": {
1821
+ border: "1px solid $brand500",
1822
+ backgroundColor: "$dark50",
1823
+ color: "$dark700",
1824
+ fontStyle: "normal",
1825
+ fontWeight: 500,
1826
+ lineHeight: "normal",
1827
+ textTransform: "uppercase"
1828
+ },
1829
+ "with-image": {
1830
+ border: 0,
1831
+ "img": {
1832
+ width: "100%",
1833
+ height: "100%",
1834
+ objectFit: "cover",
1835
+ borderRadius: "$full"
1836
+ }
1837
+ }
1838
+ }
1839
+ },
1840
+ defaultVariants: {
1841
+ size: "md",
1842
+ radii: "full",
1843
+ variant: "without-image"
1844
+ }
1845
+ });
1846
+ function Avatar(_a) {
1847
+ var _b = _a, { asChild } = _b, props = __objRest(_b, ["asChild"]);
1848
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AvatarStyled, __spreadValues({ as: import_themes10.Avatar }, props));
1849
+ }
1850
+
1851
+ // src/components/Flex.tsx
1852
+ var import_themes11 = require("@radix-ui/themes");
1853
+ var Flex2 = styled(import_themes11.Flex, {
1854
+ display: "flex",
1855
+ variants: {
1856
+ direction: {
1857
+ row: { flexDirection: "row" },
1858
+ column: { flexDirection: "column" },
1859
+ "row-reverse": { flexDirection: "row-reverse" },
1860
+ "column-reverse": { flexDirection: "column-reverse" }
1861
+ },
1862
+ gap: {
1863
+ 2: { gap: "$2" },
1864
+ 4: { gap: "$4" },
1865
+ 6: { gap: "$6" },
1866
+ 8: { gap: "$8" },
1867
+ 10: { gap: "$10" },
1868
+ 12: { gap: "$12" },
1869
+ 14: { gap: "$14" },
1870
+ 16: { gap: "$16" },
1871
+ 20: { gap: "$20" },
1872
+ 22: { gap: "$22" },
1873
+ 24: { gap: "$24" },
1874
+ 32: { gap: "$32" },
1875
+ 36: { gap: "$36" },
1876
+ 40: { gap: "$40" },
1877
+ 48: { gap: "$48" },
1878
+ 56: { gap: "$56" },
1879
+ 64: { gap: "$64" },
1880
+ 72: { gap: "$72" },
1881
+ 80: { gap: "$80" },
1882
+ full: { gap: "$full" }
1883
+ }
1884
+ },
1885
+ defaultVariants: {
1886
+ direction: "row",
1887
+ gap: 10
1888
+ }
1889
+ });
1890
+
1891
+ // src/components/Box.tsx
1892
+ var import_themes12 = require("@radix-ui/themes");
1893
+ var Box = import_themes12.Box;
1894
+
1895
+ // src/components/TextField.tsx
1896
+ var import_themes13 = require("@radix-ui/themes");
1897
+ var import_jsx_runtime5 = require("react/jsx-runtime");
1898
+ var TextFieldStyled = styled(import_themes13.TextField.Root, {
1899
+ height: "$40",
1900
+ fontFamily: "$default",
1901
+ letterSpacing: "0px",
1902
+ fontSize: "$13",
1903
+ padding: "$12 $14",
1904
+ borderRadius: "$sm",
1905
+ boxSizing: "border-box",
1906
+ color: "$dark500",
1907
+ border: "1px solid $dark300",
1908
+ position: "relative",
1909
+ display: "flex",
1910
+ "input": {
1911
+ order: 1,
1912
+ border: "none",
1913
+ outline: "none",
1914
+ padding: 0,
1915
+ margin: 0,
1916
+ width: "100%"
1917
+ },
1918
+ "&:has(input:focus)": {
1919
+ border: "2px solid $brand300"
1920
+ },
1921
+ "&:has(input:disabled)": {
1922
+ backgroundColor: "$dark100",
1923
+ color: "$dark400",
1924
+ border: "1px solid $dark200",
1925
+ cursor: "not-allowed"
1926
+ },
1927
+ variants: {
1928
+ isValid: {
1929
+ true: {},
1930
+ false: {
1931
+ border: "1px solid $error400",
1932
+ color: "$error400",
1933
+ backgroundColor: "$error50"
1934
+ }
1935
+ }
1936
+ },
1937
+ compoundVariants: [
1938
+ {
1939
+ isValid: false,
1940
+ css: {
1941
+ border: "1px solid $error400",
1942
+ color: "$error400",
1943
+ backgroundColor: "$error50",
1944
+ "input": {
1945
+ "&::placeholder": {
1946
+ color: "$error400"
1947
+ },
1948
+ backgroundColor: "$error50"
1949
+ },
1950
+ "&:has(input:focus)": {
1951
+ border: "2px solid $error400"
1952
+ },
1953
+ "&:has(input:disabled)": {
1954
+ "input": {
1955
+ backgroundColor: "$error50"
1956
+ },
1957
+ backgroundColor: "$error50",
1958
+ color: "$error300",
1959
+ border: "1px solid $error100",
1960
+ cursor: "not-allowed"
1961
+ }
1962
+ }
1963
+ },
1964
+ {
1965
+ isValid: true,
1966
+ css: {
1967
+ "&:has(input:focus)": {
1968
+ border: "2px solid $success500"
1969
+ },
1970
+ "&:has(input:disabled)": {
1971
+ backgroundColor: "$dark100",
1972
+ color: "$dark400",
1973
+ border: "1px solid $dark200",
1974
+ cursor: "not-allowed"
1975
+ }
1976
+ }
1977
+ }
1978
+ ]
1979
+ });
1980
+ var TextFieldSlotStyled = styled(import_themes13.TextField.Slot, {
1981
+ display: "flex",
1982
+ alignItems: "center",
1983
+ justifyContent: "center"
1984
+ });
1985
+ function TextField(_a) {
1986
+ var _b = _a, {
1987
+ children,
1988
+ isValid,
1989
+ name
1990
+ } = _b, props = __objRest(_b, [
1991
+ "children",
1992
+ "isValid",
1993
+ "name"
1994
+ ]);
1995
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(TextFieldStyled, __spreadProps(__spreadValues({ isValid, name }, props), { children: [
1996
+ children,
1997
+ isValid && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextFieldSlot, { position: "flex-end", name, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon_default, { name: "check" }) })
1998
+ ] }));
1999
+ }
2000
+ function TextFieldSlot(_a) {
2001
+ var _b = _a, {
2002
+ children,
2003
+ position = "flex-start",
2004
+ onClick
2005
+ } = _b, props = __objRest(_b, [
2006
+ "children",
2007
+ "position",
2008
+ "onClick"
2009
+ ]);
2010
+ console.log("onclick", onClick);
2011
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: !!onClick ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextFieldSlotStyled, __spreadProps(__spreadValues({}, props), { style: {
2012
+ position: "absolute",
2013
+ left: position === "flex-end" ? "none" : 15,
2014
+ right: position === "flex-start" ? "none" : 15,
2015
+ padding: 13,
2016
+ zIndex: 2,
2017
+ top: 0,
2018
+ cursor: "pointer"
2019
+ }, onClick: () => onClick(), children })) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextFieldSlotStyled, __spreadProps(__spreadValues({}, props), { style: {
2020
+ float: position === "flex-start" ? "left" : "right",
2021
+ order: position === "flex-start" ? 0 : 2,
2022
+ marginLeft: position === "flex-start" ? 0 : 15,
2023
+ marginRight: position === "flex-end" ? 0 : 15
2024
+ }, children })) });
2025
+ }
2026
+
2027
+ // src/components/RadioGroup.tsx
2028
+ var import_themes14 = require("@radix-ui/themes");
2029
+ var import_jsx_runtime6 = require("react/jsx-runtime");
2030
+ var RadioGroupStyled = styled(import_themes14.RadioGroup.Root, {
2031
+ fontFamily: "$default",
2032
+ letterSpacing: "0px",
2033
+ fontSize: "$13",
2034
+ "label": {
2035
+ display: "flex",
2036
+ alignItems: "center",
2037
+ gap: "$8",
2038
+ cursor: "pointer",
2039
+ "&:focus button, &:hover button": {
2040
+ transition: "all 300ms ease-out",
2041
+ boxShadow: "0px 0px 0px 4px rgba(56, 129, 255, 0.50)"
2042
+ }
2043
+ },
2044
+ "label button": {
2045
+ backgroundColor: "$white",
2046
+ borderRadius: "$full",
2047
+ height: "$16",
2048
+ width: "$16",
2049
+ position: "relative",
2050
+ border: "2px solid $dark300",
2051
+ cursor: "pointer"
2052
+ },
2053
+ "label button[data-state=checked]:before": {
2054
+ backgroundColor: "$dark50",
2055
+ content: "",
2056
+ width: "8px",
2057
+ height: "8px",
2058
+ position: "absolute",
2059
+ top: "2px",
2060
+ right: "2px",
2061
+ borderRadius: "$full",
2062
+ zIndex: 2
2063
+ },
2064
+ "label button[data-state=checked]:after": {
2065
+ backgroundColor: "$brand500",
2066
+ content: "",
2067
+ height: "$16",
2068
+ width: "$16",
2069
+ position: "absolute",
2070
+ top: "-2px",
2071
+ right: "-2px",
2072
+ borderRadius: "$full",
2073
+ zIndex: 1
2074
+ },
2075
+ variants: {
2076
+ isValid: {
2077
+ true: {
2078
+ "label": {
2079
+ "&:focus button, &:hover button": {
2080
+ boxShadow: "0px 0px 0px 4px rgba(38, 167, 67, 0.50)"
2081
+ }
2082
+ },
2083
+ "label button": {
2084
+ borderColor: "$green500",
2085
+ backgroundColor: "$dark50"
2086
+ },
2087
+ "label button[data-state=checked]:after": {
2088
+ backgroundColor: "$green500"
2089
+ }
2090
+ },
2091
+ false: {
2092
+ "label": {
2093
+ "&:focus button, &:hover button": {
2094
+ boxShadow: "0px 0px 0px 4px rgba(225, 86, 98, 0.50)"
2095
+ }
2096
+ },
2097
+ "label button": {
2098
+ borderColor: "$error400",
2099
+ backgroundColor: "$dark50"
2100
+ },
2101
+ "label button[data-state=checked]:after": {
2102
+ backgroundColor: "$error600"
2103
+ }
2104
+ }
2105
+ },
2106
+ disabled: {
2107
+ true: {
2108
+ "label": {
2109
+ cursor: "not-allowed",
2110
+ opacity: 0.5,
2111
+ "&:focus button, &:hover button": {
2112
+ boxShadow: "none"
2113
+ }
2114
+ },
2115
+ "label button": {
2116
+ cursor: "not-allowed"
2117
+ }
2118
+ },
2119
+ false: {}
2120
+ }
2121
+ },
2122
+ compoundVariants: [
2123
+ {
2124
+ isValid: void 0,
2125
+ disabled: false,
2126
+ css: {
2127
+ "label": {
2128
+ "&:focus button, &:hover button": {
2129
+ boxShadow: "0px 0px 0px 4px rgba(56, 129, 255, 0.50)"
2130
+ }
2131
+ },
2132
+ "label button": {
2133
+ borderColor: "$dark300"
2134
+ },
2135
+ "label button[data-state=checked]:after": {
2136
+ backgroundColor: "$brand500"
2137
+ }
2138
+ }
2139
+ },
2140
+ {
2141
+ isValid: void 0,
2142
+ disabled: true,
2143
+ css: {
2144
+ "label button": {
2145
+ borderColor: "$brand100",
2146
+ backgroundColor: "$dark50"
2147
+ },
2148
+ "label button[data-state=checked]:after": {
2149
+ backgroundColor: "$brand100"
2150
+ }
2151
+ }
2152
+ },
2153
+ {
2154
+ isValid: true,
2155
+ disabled: true,
2156
+ css: {
2157
+ "label button": {
2158
+ borderColor: "$success100",
2159
+ backgroundColor: "$dark50"
2160
+ },
2161
+ "label button[data-state=checked]:after": {
2162
+ backgroundColor: "$success100"
2163
+ }
2164
+ }
2165
+ },
2166
+ {
2167
+ isValid: false,
2168
+ disabled: true,
2169
+ css: {
2170
+ "label button": {
2171
+ borderColor: "$error100",
2172
+ backgroundColor: "$dark50"
2173
+ },
2174
+ "label button[data-state=checked]:after": {
2175
+ backgroundColor: "$error100"
2176
+ }
2177
+ }
2178
+ }
2179
+ ]
2180
+ });
2181
+ function RadioGroup(_a) {
2182
+ var _b = _a, {
2183
+ children,
2184
+ isValid,
2185
+ disabled
2186
+ } = _b, props = __objRest(_b, [
2187
+ "children",
2188
+ "isValid",
2189
+ "disabled"
2190
+ ]);
2191
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2192
+ RadioGroupStyled,
2193
+ __spreadProps(__spreadValues({
2194
+ disabled,
2195
+ isValid
2196
+ }, props), {
2197
+ children
2198
+ })
2199
+ );
2200
+ }
2201
+ function RadioItem(_a) {
2202
+ var _b = _a, {
2203
+ children
2204
+ } = _b, props = __objRest(_b, [
2205
+ "children"
2206
+ ]);
2207
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_themes14.RadioGroup.Item, __spreadProps(__spreadValues({}, props), { children }));
2208
+ }
2209
+
2210
+ // src/components/CheckboxGroup.tsx
2211
+ var import_themes15 = require("@radix-ui/themes");
2212
+ var import_jsx_runtime7 = require("react/jsx-runtime");
2213
+ var CheckboxGroupStyled = styled(import_themes15.CheckboxGroup.Root, {
2214
+ fontFamily: "$default",
2215
+ letterSpacing: "0px",
2216
+ fontSize: "$13",
2217
+ "svg": {
2218
+ display: "none"
2219
+ },
2220
+ "label": {
2221
+ display: "flex",
2222
+ alignItems: "center",
2223
+ gap: "$8",
2224
+ cursor: "pointer",
2225
+ "&:focus button, &:hover button": {
2226
+ transition: "all 300ms ease-out",
2227
+ boxShadow: "0px 0px 0px 4px rgba(56, 129, 255, 0.50)"
2228
+ }
2229
+ },
2230
+ "label button": {
2231
+ backgroundColor: "$white",
2232
+ borderRadius: "2px",
2233
+ height: "$16",
2234
+ width: "$16",
2235
+ position: "relative",
2236
+ border: "2px solid $dark300",
2237
+ cursor: "pointer"
2238
+ },
2239
+ "label button[data-state=checked]:before": {
2240
+ backgroundColor: "$dark50",
2241
+ content: "",
2242
+ width: "8px",
2243
+ height: "8px",
2244
+ position: "absolute",
2245
+ top: "2px",
2246
+ right: "2px",
2247
+ zIndex: 2
2248
+ },
2249
+ "label button[data-state=checked]:after": {
2250
+ backgroundColor: "$brand500",
2251
+ content: "",
2252
+ height: "$16",
2253
+ width: "$16",
2254
+ position: "absolute",
2255
+ top: "-2px",
2256
+ right: "-2px",
2257
+ borderRadius: "2px",
2258
+ zIndex: 1
2259
+ },
2260
+ variants: {
2261
+ isValid: {
2262
+ true: {
2263
+ "label": {
2264
+ "&:focus button, &:hover button": {
2265
+ boxShadow: "0px 0px 0px 4px rgba(38, 167, 67, 0.50)"
2266
+ }
2267
+ },
2268
+ "label button": {
2269
+ borderColor: "$green500",
2270
+ backgroundColor: "$dark50"
2271
+ },
2272
+ "label button[data-state=checked]:after": {
2273
+ backgroundColor: "$green500"
2274
+ }
2275
+ },
2276
+ false: {
2277
+ "label": {
2278
+ "&:focus button, &:hover button": {
2279
+ boxShadow: "0px 0px 0px 4px rgba(225, 86, 98, 0.50)"
2280
+ }
2281
+ },
2282
+ "label button": {
2283
+ borderColor: "$error400",
2284
+ backgroundColor: "$dark50"
2285
+ },
2286
+ "label button[data-state=checked]:after": {
2287
+ backgroundColor: "$error600"
2288
+ }
2289
+ }
2290
+ },
2291
+ disabled: {
2292
+ true: {
2293
+ "label": {
2294
+ cursor: "not-allowed",
2295
+ opacity: 0.5,
2296
+ "&:focus button, &:hover button": {
2297
+ boxShadow: "none"
2298
+ }
2299
+ },
2300
+ "label button": {
2301
+ cursor: "not-allowed"
2302
+ }
2303
+ },
2304
+ false: {}
2305
+ }
2306
+ },
2307
+ compoundVariants: [
2308
+ {
2309
+ isValid: void 0,
2310
+ disabled: false,
2311
+ css: {
2312
+ "label": {
2313
+ "&:focus button, &:hover button": {
2314
+ boxShadow: "0px 0px 0px 4px rgba(56, 129, 255, 0.50)"
2315
+ }
2316
+ },
2317
+ "label button": {
2318
+ borderColor: "$dark300"
2319
+ },
2320
+ "label button[data-state=checked]:after": {
2321
+ backgroundColor: "$brand500"
2322
+ }
2323
+ }
2324
+ },
2325
+ {
2326
+ isValid: void 0,
2327
+ disabled: true,
2328
+ css: {
2329
+ "label button": {
2330
+ borderColor: "$brand100",
2331
+ backgroundColor: "$dark50"
2332
+ },
2333
+ "label button[data-state=checked]:after": {
2334
+ backgroundColor: "$brand100"
2335
+ }
2336
+ }
2337
+ },
2338
+ {
2339
+ isValid: true,
2340
+ disabled: true,
2341
+ css: {
2342
+ "label button": {
2343
+ borderColor: "$success100",
2344
+ backgroundColor: "$dark50"
2345
+ },
2346
+ "label button[data-state=checked]:after": {
2347
+ backgroundColor: "$success100"
2348
+ }
2349
+ }
2350
+ },
2351
+ {
2352
+ isValid: false,
2353
+ disabled: true,
2354
+ css: {
2355
+ "label button": {
2356
+ borderColor: "$error100",
2357
+ backgroundColor: "$dark50"
2358
+ },
2359
+ "label button[data-state=checked]:after": {
2360
+ backgroundColor: "$error100"
2361
+ }
2362
+ }
2363
+ }
2364
+ ]
2365
+ });
2366
+ function CheckboxGroup(_a) {
2367
+ var _b = _a, {
2368
+ children
2369
+ } = _b, props = __objRest(_b, [
2370
+ "children"
2371
+ ]);
2372
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CheckboxGroupStyled, __spreadProps(__spreadValues({}, props), { children }));
2373
+ }
2374
+ function CheckboxItem(_a) {
2375
+ var _b = _a, {
2376
+ children
2377
+ } = _b, props = __objRest(_b, [
2378
+ "children"
2379
+ ]);
2380
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_themes15.CheckboxGroup.Item, __spreadProps(__spreadValues({}, props), { children }));
2381
+ }
2382
+
2383
+ // src/components/Filter.tsx
2384
+ var import_themes16 = require("@radix-ui/themes");
2385
+ var import_jsx_runtime8 = require("react/jsx-runtime");
2386
+ var FilterStyled = styled("div", {
2387
+ fontFamily: "$default",
2388
+ color: "$dark600",
2389
+ letterSpacing: "0px",
2390
+ cursor: "pointer",
2391
+ border: "1px solid $dark300",
2392
+ borderRadius: "$xs",
2393
+ padding: "$8 $12",
2394
+ width: "calc(100% - 24px)",
2395
+ display: "flex",
2396
+ "button": {
2397
+ fontFamily: "$default",
2398
+ color: "$dark600",
2399
+ letterSpacing: "0px",
2400
+ backgroundColor: "transparent",
2401
+ border: "none",
2402
+ width: "100%",
2403
+ outline: "none",
2404
+ display: "flex",
2405
+ alignItems: "center",
2406
+ gap: "$8",
2407
+ cursor: "pointer",
2408
+ "svg:last-child": {
2409
+ marginLeft: "auto"
2410
+ }
2411
+ }
2412
+ });
2413
+ var FilterContentStyled = styled(import_themes16.DropdownMenu.Content, {
2414
+ background: "white",
2415
+ padding: "$8 $12",
2416
+ border: "1px solid $dark300",
2417
+ borderRadius: "$xs",
2418
+ boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08)",
2419
+ width: "calc(var(--radix-popper-anchor-width) - 24px);",
2420
+ minWidth: "100%",
2421
+ marginTop: "3px"
2422
+ });
2423
+ function Filter(_a) {
2424
+ var _b = _a, {
2425
+ children,
2426
+ placeholder
2427
+ } = _b, props = __objRest(_b, [
2428
+ "children",
2429
+ "placeholder"
2430
+ ]);
2431
+ 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: [
2432
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes16.DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("button", { "aria-label": placeholder || "Fitrar", children: [
2433
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "filter" }),
2434
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: placeholder || "Fitrar" }),
2435
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes16.DropdownMenu.TriggerIcon, {})
2436
+ ] }) }),
2437
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2438
+ FilterContentStyled,
2439
+ {
2440
+ avoidCollisions: false,
2441
+ align: "start",
2442
+ alignOffset: -14,
2443
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CheckboxGroup, { children })
2444
+ }
2445
+ )
2446
+ ] }) })) });
2447
+ }
2448
+ function FilterItem(_a) {
2449
+ var _b = _a, {
2450
+ children
2451
+ } = _b, props = __objRest(_b, [
2452
+ "children"
2453
+ ]);
2454
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CheckboxItem, __spreadProps(__spreadValues({}, props), { style: { padding: "8px 12px" }, children }));
2455
+ }
2456
+
2457
+ // src/components/Dropdown.tsx
2458
+ var import_themes17 = require("@radix-ui/themes");
2459
+ var import_jsx_runtime9 = require("react/jsx-runtime");
2460
+ var DropdownMenuStyled = styled("div", {
2461
+ fontFamily: "$default",
2462
+ color: "$dark600",
2463
+ letterSpacing: "0px",
2464
+ cursor: "pointer",
2465
+ border: "1px solid $dark300",
2466
+ borderRadius: "$xs",
2467
+ padding: "$8 $12",
2468
+ width: "calc(100% - 24px)",
2469
+ display: "flex",
2470
+ "button": {
2471
+ fontFamily: "$default",
2472
+ color: "$dark600",
2473
+ letterSpacing: "0px",
2474
+ backgroundColor: "transparent",
2475
+ border: "none",
2476
+ width: "100%",
2477
+ outline: "none",
2478
+ display: "flex",
2479
+ alignItems: "center",
2480
+ gap: "$8",
2481
+ cursor: "pointer",
2482
+ "svg": {
2483
+ marginLeft: "auto"
2484
+ }
2485
+ }
2486
+ });
2487
+ var DropdownMenuContentStyled = styled(import_themes17.DropdownMenu.Content, {
2488
+ background: "white",
2489
+ padding: "$8 $12",
2490
+ border: "1px solid $dark300",
2491
+ borderRadius: "$xs",
2492
+ boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08)",
2493
+ width: "calc(var(--radix-popper-anchor-width) - 24px);",
2494
+ minWidth: "100%",
2495
+ marginTop: "3px"
2496
+ });
2497
+ var DropdownMenuItemStyled = styled(import_themes17.DropdownMenu.Item, {
2498
+ fontFamily: "$default",
2499
+ color: "$dark600",
2500
+ letterSpacing: "0px",
2501
+ padding: "$8 $12",
2502
+ "&:hover, &:focus": {
2503
+ backgroundColor: "transparent",
2504
+ border: "none",
2505
+ outline: "none",
2506
+ cursor: "pointer"
2507
+ }
2508
+ });
2509
+ function DropdownMenu2(_a) {
2510
+ var _b = _a, {
2511
+ children,
2512
+ placeholder
2513
+ } = _b, props = __objRest(_b, [
2514
+ "children",
2515
+ "placeholder"
2516
+ ]);
2517
+ 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: [
2518
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes17.DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("button", { "aria-label": placeholder || "Fitrar", children: [
2519
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: placeholder || "Fitrar" }),
2520
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes17.DropdownMenu.TriggerIcon, {})
2521
+ ] }) }),
2522
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2523
+ DropdownMenuContentStyled,
2524
+ {
2525
+ avoidCollisions: false,
2526
+ align: "start",
2527
+ alignOffset: -14,
2528
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes17.DropdownMenu.Group, { children })
2529
+ }
2530
+ )
2531
+ ] }) })) });
2532
+ }
2533
+ function DropdownMenuItem(_a) {
2534
+ var _b = _a, {
2535
+ children
2536
+ } = _b, props = __objRest(_b, [
2537
+ "children"
2538
+ ]);
2539
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuItemStyled, __spreadProps(__spreadValues({}, props), { children }));
2540
+ }
282
2541
  // Annotate the CommonJS export names for ESM import in node:
283
2542
  0 && (module.exports = {
284
- Text
2543
+ Avatar,
2544
+ AvatarStyled,
2545
+ BadgeText,
2546
+ BodyText,
2547
+ Box,
2548
+ Button,
2549
+ ButtonGroup,
2550
+ ButtonGroupStyled,
2551
+ ButtonItem,
2552
+ ButtonItemStyled,
2553
+ ButtonStyled,
2554
+ CaptionText,
2555
+ CheckboxGroup,
2556
+ CheckboxGroupStyled,
2557
+ CheckboxItem,
2558
+ DisplayText,
2559
+ DropdownMenu,
2560
+ DropdownMenuItem,
2561
+ Filter,
2562
+ FilterItem,
2563
+ Flex,
2564
+ Headline,
2565
+ Icon,
2566
+ Label,
2567
+ RadioGroup,
2568
+ RadioGroupStyled,
2569
+ RadioItem,
2570
+ Subtitle,
2571
+ Text,
2572
+ TextField,
2573
+ TextFieldSlot,
2574
+ TextFieldSlotStyled,
2575
+ TextFieldStyled,
2576
+ TooltipText
285
2577
  });
2578
+ /*! Bundled license information:
2579
+
2580
+ react-is/cjs/react-is.production.min.js:
2581
+ (** @license React v16.13.1
2582
+ * react-is.production.min.js
2583
+ *
2584
+ * Copyright (c) Facebook, Inc. and its affiliates.
2585
+ *
2586
+ * This source code is licensed under the MIT license found in the
2587
+ * LICENSE file in the root directory of this source tree.
2588
+ *)
2589
+
2590
+ react-is/cjs/react-is.development.js:
2591
+ (** @license React v16.13.1
2592
+ * react-is.development.js
2593
+ *
2594
+ * Copyright (c) Facebook, Inc. and its affiliates.
2595
+ *
2596
+ * This source code is licensed under the MIT license found in the
2597
+ * LICENSE file in the root directory of this source tree.
2598
+ *)
2599
+
2600
+ object-assign/index.js:
2601
+ (*
2602
+ object-assign
2603
+ (c) Sindre Sorhus
2604
+ @license MIT
2605
+ *)
2606
+ */