@paolojulian.dev/design-system 2.0.1 → 3.0.1

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.es.js CHANGED
@@ -1,750 +1,120 @@
1
- import Ae from "react";
2
- import { cn as ne } from "./utils.es.js";
3
- var te = { exports: {} }, $ = {};
4
- /**
5
- * @license React
6
- * react-jsx-runtime.production.min.js
7
- *
8
- * Copyright (c) Facebook, Inc. and its affiliates.
9
- *
10
- * This source code is licensed under the MIT license found in the
11
- * LICENSE file in the root directory of this source tree.
12
- */
13
- var Ce;
14
- function pr() {
15
- if (Ce) return $;
16
- Ce = 1;
17
- var o = Ae, s = Symbol.for("react.element"), u = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, _ = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function w(O, p, y) {
19
- var v, b = {}, R = null, j = null;
20
- y !== void 0 && (R = "" + y), p.key !== void 0 && (R = "" + p.key), p.ref !== void 0 && (j = p.ref);
21
- for (v in p) l.call(p, v) && !x.hasOwnProperty(v) && (b[v] = p[v]);
22
- if (O && O.defaultProps) for (v in p = O.defaultProps, p) b[v] === void 0 && (b[v] = p[v]);
23
- return { $$typeof: s, type: O, key: R, ref: j, props: b, _owner: _.current };
24
- }
25
- return $.Fragment = u, $.jsx = w, $.jsxs = w, $;
26
- }
27
- var N = {};
28
- /**
29
- * @license React
30
- * react-jsx-runtime.development.js
31
- *
32
- * Copyright (c) Facebook, Inc. and its affiliates.
33
- *
34
- * This source code is licensed under the MIT license found in the
35
- * LICENSE file in the root directory of this source tree.
36
- */
37
- var Pe;
38
- function yr() {
39
- return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
40
- var o = Ae, s = Symbol.for("react.element"), u = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), O = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), L = Symbol.iterator, M = "@@iterator";
41
- function F(e) {
42
- if (e === null || typeof e != "object")
43
- return null;
44
- var r = L && e[L] || e[M];
45
- return typeof r == "function" ? r : null;
46
- }
47
- var k = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
48
- function g(e) {
49
- {
50
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
51
- t[n - 1] = arguments[n];
52
- Fe("error", e, t);
53
- }
54
- }
55
- function Fe(e, r, t) {
56
- {
57
- var n = k.ReactDebugCurrentFrame, f = n.getStackAddendum();
58
- f !== "" && (r += "%s", t = t.concat([f]));
59
- var c = t.map(function(i) {
60
- return String(i);
61
- });
62
- c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
63
- }
64
- }
65
- var Ie = !1, Ve = !1, We = !1, $e = !1, Ne = !1, ae;
66
- ae = Symbol.for("react.module.reference");
67
- function Ye(e) {
68
- return !!(typeof e == "string" || typeof e == "function" || e === l || e === x || Ne || e === _ || e === y || e === v || $e || e === j || Ie || Ve || We || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === b || e.$$typeof === w || e.$$typeof === O || e.$$typeof === p || // This needs to include all possible module reference object
69
- // types supported by any Flight configuration anywhere since
70
- // we don't know which Flight build this will end up being used
71
- // with.
72
- e.$$typeof === ae || e.getModuleId !== void 0));
73
- }
74
- function Le(e, r, t) {
75
- var n = e.displayName;
76
- if (n)
77
- return n;
78
- var f = r.displayName || r.name || "";
79
- return f !== "" ? t + "(" + f + ")" : t;
80
- }
81
- function ie(e) {
82
- return e.displayName || "Context";
83
- }
84
- function S(e) {
85
- if (e == null)
86
- return null;
87
- if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
88
- return e.displayName || e.name || null;
89
- if (typeof e == "string")
90
- return e;
91
- switch (e) {
92
- case l:
93
- return "Fragment";
94
- case u:
95
- return "Portal";
96
- case x:
97
- return "Profiler";
98
- case _:
99
- return "StrictMode";
100
- case y:
101
- return "Suspense";
102
- case v:
103
- return "SuspenseList";
104
- }
105
- if (typeof e == "object")
106
- switch (e.$$typeof) {
107
- case O:
108
- var r = e;
109
- return ie(r) + ".Consumer";
110
- case w:
111
- var t = e;
112
- return ie(t._context) + ".Provider";
113
- case p:
114
- return Le(e, e.render, "ForwardRef");
115
- case b:
116
- var n = e.displayName || null;
117
- return n !== null ? n : S(e.type) || "Memo";
118
- case R: {
119
- var f = e, c = f._payload, i = f._init;
120
- try {
121
- return S(i(c));
122
- } catch {
123
- return null;
124
- }
125
- }
126
- }
127
- return null;
128
- }
129
- var C = Object.assign, I = 0, oe, ue, se, le, fe, ce, de;
130
- function ve() {
131
- }
132
- ve.__reactDisabledLog = !0;
133
- function Me() {
134
- {
135
- if (I === 0) {
136
- oe = console.log, ue = console.info, se = console.warn, le = console.error, fe = console.group, ce = console.groupCollapsed, de = console.groupEnd;
137
- var e = {
138
- configurable: !0,
139
- enumerable: !0,
140
- value: ve,
141
- writable: !0
142
- };
143
- Object.defineProperties(console, {
144
- info: e,
145
- log: e,
146
- warn: e,
147
- error: e,
148
- group: e,
149
- groupCollapsed: e,
150
- groupEnd: e
151
- });
152
- }
153
- I++;
154
- }
155
- }
156
- function Ue() {
157
- {
158
- if (I--, I === 0) {
159
- var e = {
160
- configurable: !0,
161
- enumerable: !0,
162
- writable: !0
163
- };
164
- Object.defineProperties(console, {
165
- log: C({}, e, {
166
- value: oe
167
- }),
168
- info: C({}, e, {
169
- value: ue
170
- }),
171
- warn: C({}, e, {
172
- value: se
173
- }),
174
- error: C({}, e, {
175
- value: le
176
- }),
177
- group: C({}, e, {
178
- value: fe
179
- }),
180
- groupCollapsed: C({}, e, {
181
- value: ce
182
- }),
183
- groupEnd: C({}, e, {
184
- value: de
185
- })
186
- });
187
- }
188
- I < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
189
- }
190
- }
191
- var q = k.ReactCurrentDispatcher, G;
192
- function U(e, r, t) {
193
- {
194
- if (G === void 0)
195
- try {
196
- throw Error();
197
- } catch (f) {
198
- var n = f.stack.trim().match(/\n( *(at )?)/);
199
- G = n && n[1] || "";
200
- }
201
- return `
202
- ` + G + e;
203
- }
204
- }
205
- var z = !1, B;
206
- {
207
- var Be = typeof WeakMap == "function" ? WeakMap : Map;
208
- B = new Be();
209
- }
210
- function me(e, r) {
211
- if (!e || z)
212
- return "";
213
- {
214
- var t = B.get(e);
215
- if (t !== void 0)
216
- return t;
217
- }
218
- var n;
219
- z = !0;
220
- var f = Error.prepareStackTrace;
221
- Error.prepareStackTrace = void 0;
222
- var c;
223
- c = q.current, q.current = null, Me();
224
- try {
225
- if (r) {
226
- var i = function() {
227
- throw Error();
228
- };
229
- if (Object.defineProperty(i.prototype, "props", {
230
- set: function() {
231
- throw Error();
232
- }
233
- }), typeof Reflect == "object" && Reflect.construct) {
234
- try {
235
- Reflect.construct(i, []);
236
- } catch (E) {
237
- n = E;
238
- }
239
- Reflect.construct(e, [], i);
240
- } else {
241
- try {
242
- i.call();
243
- } catch (E) {
244
- n = E;
245
- }
246
- e.call(i.prototype);
247
- }
248
- } else {
249
- try {
250
- throw Error();
251
- } catch (E) {
252
- n = E;
253
- }
254
- e();
255
- }
256
- } catch (E) {
257
- if (E && n && typeof E.stack == "string") {
258
- for (var a = E.stack.split(`
259
- `), h = n.stack.split(`
260
- `), d = a.length - 1, m = h.length - 1; d >= 1 && m >= 0 && a[d] !== h[m]; )
261
- m--;
262
- for (; d >= 1 && m >= 0; d--, m--)
263
- if (a[d] !== h[m]) {
264
- if (d !== 1 || m !== 1)
265
- do
266
- if (d--, m--, m < 0 || a[d] !== h[m]) {
267
- var T = `
268
- ` + a[d].replace(" at new ", " at ");
269
- return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, T), T;
270
- }
271
- while (d >= 1 && m >= 0);
272
- break;
273
- }
274
- }
275
- } finally {
276
- z = !1, q.current = c, Ue(), Error.prepareStackTrace = f;
277
- }
278
- var D = e ? e.displayName || e.name : "", P = D ? U(D) : "";
279
- return typeof e == "function" && B.set(e, P), P;
280
- }
281
- function Je(e, r, t) {
282
- return me(e, !1);
283
- }
284
- function Ke(e) {
285
- var r = e.prototype;
286
- return !!(r && r.isReactComponent);
287
- }
288
- function J(e, r, t) {
289
- if (e == null)
290
- return "";
291
- if (typeof e == "function")
292
- return me(e, Ke(e));
293
- if (typeof e == "string")
294
- return U(e);
295
- switch (e) {
296
- case y:
297
- return U("Suspense");
298
- case v:
299
- return U("SuspenseList");
300
- }
301
- if (typeof e == "object")
302
- switch (e.$$typeof) {
303
- case p:
304
- return Je(e.render);
305
- case b:
306
- return J(e.type, r, t);
307
- case R: {
308
- var n = e, f = n._payload, c = n._init;
309
- try {
310
- return J(c(f), r, t);
311
- } catch {
312
- }
313
- }
314
- }
315
- return "";
316
- }
317
- var V = Object.prototype.hasOwnProperty, pe = {}, ye = k.ReactDebugCurrentFrame;
318
- function K(e) {
319
- if (e) {
320
- var r = e._owner, t = J(e.type, e._source, r ? r.type : null);
321
- ye.setExtraStackFrame(t);
322
- } else
323
- ye.setExtraStackFrame(null);
324
- }
325
- function qe(e, r, t, n, f) {
326
- {
327
- var c = Function.call.bind(V);
328
- for (var i in e)
329
- if (c(e, i)) {
330
- var a = void 0;
331
- try {
332
- if (typeof e[i] != "function") {
333
- var h = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
334
- throw h.name = "Invariant Violation", h;
335
- }
336
- a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
- } catch (d) {
338
- a = d;
339
- }
340
- a && !(a instanceof Error) && (K(f), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), K(null)), a instanceof Error && !(a.message in pe) && (pe[a.message] = !0, K(f), g("Failed %s type: %s", t, a.message), K(null));
341
- }
342
- }
343
- }
344
- var Ge = Array.isArray;
345
- function H(e) {
346
- return Ge(e);
347
- }
348
- function ze(e) {
349
- {
350
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
351
- return t;
352
- }
353
- }
354
- function He(e) {
355
- try {
356
- return ge(e), !1;
357
- } catch {
358
- return !0;
359
- }
360
- }
361
- function ge(e) {
362
- return "" + e;
363
- }
364
- function be(e) {
365
- if (He(e))
366
- return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(e)), ge(e);
367
- }
368
- var W = k.ReactCurrentOwner, Xe = {
369
- key: !0,
370
- ref: !0,
371
- __self: !0,
372
- __source: !0
373
- }, he, Re, X;
374
- X = {};
375
- function Ze(e) {
376
- if (V.call(e, "ref")) {
377
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
378
- if (r && r.isReactWarning)
379
- return !1;
380
- }
381
- return e.ref !== void 0;
382
- }
383
- function Qe(e) {
384
- if (V.call(e, "key")) {
385
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
386
- if (r && r.isReactWarning)
387
- return !1;
388
- }
389
- return e.key !== void 0;
390
- }
391
- function er(e, r) {
392
- if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
393
- var t = S(W.current.type);
394
- X[t] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', S(W.current.type), e.ref), X[t] = !0);
395
- }
396
- }
397
- function rr(e, r) {
398
- {
399
- var t = function() {
400
- he || (he = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
401
- };
402
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
403
- get: t,
404
- configurable: !0
405
- });
406
- }
407
- }
408
- function tr(e, r) {
409
- {
410
- var t = function() {
411
- Re || (Re = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
412
- };
413
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
414
- get: t,
415
- configurable: !0
416
- });
417
- }
418
- }
419
- var nr = function(e, r, t, n, f, c, i) {
420
- var a = {
421
- // This tag allows us to uniquely identify this as a React Element
422
- $$typeof: s,
423
- // Built-in properties that belong on the element
424
- type: e,
425
- key: r,
426
- ref: t,
427
- props: i,
428
- // Record the component responsible for creating this element.
429
- _owner: c
430
- };
431
- return a._store = {}, Object.defineProperty(a._store, "validated", {
432
- configurable: !1,
433
- enumerable: !1,
434
- writable: !0,
435
- value: !1
436
- }), Object.defineProperty(a, "_self", {
437
- configurable: !1,
438
- enumerable: !1,
439
- writable: !1,
440
- value: n
441
- }), Object.defineProperty(a, "_source", {
442
- configurable: !1,
443
- enumerable: !1,
444
- writable: !1,
445
- value: f
446
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
447
- };
448
- function ar(e, r, t, n, f) {
449
- {
450
- var c, i = {}, a = null, h = null;
451
- t !== void 0 && (be(t), a = "" + t), Qe(r) && (be(r.key), a = "" + r.key), Ze(r) && (h = r.ref, er(r, f));
452
- for (c in r)
453
- V.call(r, c) && !Xe.hasOwnProperty(c) && (i[c] = r[c]);
454
- if (e && e.defaultProps) {
455
- var d = e.defaultProps;
456
- for (c in d)
457
- i[c] === void 0 && (i[c] = d[c]);
458
- }
459
- if (a || h) {
460
- var m = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
461
- a && rr(i, m), h && tr(i, m);
462
- }
463
- return nr(e, a, h, f, n, W.current, i);
464
- }
465
- }
466
- var Z = k.ReactCurrentOwner, Ee = k.ReactDebugCurrentFrame;
467
- function A(e) {
468
- if (e) {
469
- var r = e._owner, t = J(e.type, e._source, r ? r.type : null);
470
- Ee.setExtraStackFrame(t);
471
- } else
472
- Ee.setExtraStackFrame(null);
473
- }
474
- var Q;
475
- Q = !1;
476
- function ee(e) {
477
- return typeof e == "object" && e !== null && e.$$typeof === s;
478
- }
479
- function _e() {
480
- {
481
- if (Z.current) {
482
- var e = S(Z.current.type);
483
- if (e)
484
- return `
485
-
486
- Check the render method of \`` + e + "`.";
487
- }
488
- return "";
489
- }
490
- }
491
- function ir(e) {
492
- return "";
493
- }
494
- var Te = {};
495
- function or(e) {
496
- {
497
- var r = _e();
498
- if (!r) {
499
- var t = typeof e == "string" ? e : e.displayName || e.name;
500
- t && (r = `
501
-
502
- Check the top-level render call using <` + t + ">.");
503
- }
504
- return r;
505
- }
506
- }
507
- function xe(e, r) {
508
- {
509
- if (!e._store || e._store.validated || e.key != null)
510
- return;
511
- e._store.validated = !0;
512
- var t = or(r);
513
- if (Te[t])
514
- return;
515
- Te[t] = !0;
516
- var n = "";
517
- e && e._owner && e._owner !== Z.current && (n = " It was passed a child from " + S(e._owner.type) + "."), A(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), A(null);
518
- }
519
- }
520
- function Oe(e, r) {
521
- {
522
- if (typeof e != "object")
523
- return;
524
- if (H(e))
525
- for (var t = 0; t < e.length; t++) {
526
- var n = e[t];
527
- ee(n) && xe(n, r);
528
- }
529
- else if (ee(e))
530
- e._store && (e._store.validated = !0);
531
- else if (e) {
532
- var f = F(e);
533
- if (typeof f == "function" && f !== e.entries)
534
- for (var c = f.call(e), i; !(i = c.next()).done; )
535
- ee(i.value) && xe(i.value, r);
536
- }
537
- }
538
- }
539
- function ur(e) {
540
- {
541
- var r = e.type;
542
- if (r == null || typeof r == "string")
543
- return;
544
- var t;
545
- if (typeof r == "function")
546
- t = r.propTypes;
547
- else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
548
- // Inner props are checked in the reconciler.
549
- r.$$typeof === b))
550
- t = r.propTypes;
551
- else
552
- return;
553
- if (t) {
554
- var n = S(r);
555
- qe(t, e.props, "prop", n, e);
556
- } else if (r.PropTypes !== void 0 && !Q) {
557
- Q = !0;
558
- var f = S(r);
559
- g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", f || "Unknown");
560
- }
561
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
562
- }
563
- }
564
- function sr(e) {
565
- {
566
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
567
- var n = r[t];
568
- if (n !== "children" && n !== "key") {
569
- A(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), A(null);
570
- break;
571
- }
572
- }
573
- e.ref !== null && (A(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
574
- }
575
- }
576
- var Se = {};
577
- function we(e, r, t, n, f, c) {
578
- {
579
- var i = Ye(e);
580
- if (!i) {
581
- var a = "";
582
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
583
- var h = ir();
584
- h ? a += h : a += _e();
585
- var d;
586
- e === null ? d = "null" : H(e) ? d = "array" : e !== void 0 && e.$$typeof === s ? (d = "<" + (S(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, a);
587
- }
588
- var m = ar(e, r, t, f, c);
589
- if (m == null)
590
- return m;
591
- if (i) {
592
- var T = r.children;
593
- if (T !== void 0)
594
- if (n)
595
- if (H(T)) {
596
- for (var D = 0; D < T.length; D++)
597
- Oe(T[D], e);
598
- Object.freeze && Object.freeze(T);
599
- } else
600
- g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
601
- else
602
- Oe(T, e);
603
- }
604
- if (V.call(r, "key")) {
605
- var P = S(e), E = Object.keys(r).filter(function(mr) {
606
- return mr !== "key";
607
- }), re = E.length > 0 ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}";
608
- if (!Se[P + re]) {
609
- var vr = E.length > 0 ? "{" + E.join(": ..., ") + ": ...}" : "{}";
610
- g(`A props object containing a "key" prop is being spread into JSX:
611
- let props = %s;
612
- <%s {...props} />
613
- React keys must be passed directly to JSX without using spread:
614
- let props = %s;
615
- <%s key={someKey} {...props} />`, re, P, vr, P), Se[P + re] = !0;
616
- }
617
- }
618
- return e === l ? sr(m) : ur(m), m;
619
- }
620
- }
621
- function lr(e, r, t) {
622
- return we(e, r, t, !0);
623
- }
624
- function fr(e, r, t) {
625
- return we(e, r, t, !1);
626
- }
627
- var cr = fr, dr = lr;
628
- N.Fragment = l, N.jsx = cr, N.jsxs = dr;
629
- }()), N;
630
- }
631
- process.env.NODE_ENV === "production" ? te.exports = pr() : te.exports = yr();
632
- var Y = te.exports;
633
- const Or = ({
634
- children: o,
635
- gap: s = void 0,
636
- alignItems: u = void 0,
637
- justifyContent: l = void 0,
638
- className: _ = ""
639
- }) => /* @__PURE__ */ Y.jsx(
1
+ import { j as m } from "./jsx-runtime-sen3WxAA.js";
2
+ import { cn as c } from "./utils.es.js";
3
+ const R = ({
4
+ children: e,
5
+ gap: n = void 0,
6
+ alignItems: t = void 0,
7
+ justifyContent: a = void 0,
8
+ className: i = ""
9
+ }) => /* @__PURE__ */ m.jsx(
640
10
  "div",
641
11
  {
642
12
  "aria-label": "Row container",
643
- className: ne("flex flex-row", _),
13
+ className: c("flex flex-row", i),
644
14
  style: {
645
- gap: s,
646
- alignItems: u,
647
- justifyContent: l
15
+ gap: n,
16
+ alignItems: t,
17
+ justifyContent: a
648
18
  },
649
- children: o
19
+ children: e
650
20
  }
651
- ), gr = ({
652
- children: o,
653
- gap: s = void 0,
654
- alignItems: u = void 0,
655
- justifyContent: l = void 0,
656
- className: _ = ""
657
- }) => /* @__PURE__ */ Y.jsx(
21
+ ), k = ({
22
+ children: e,
23
+ gap: n = void 0,
24
+ alignItems: t = void 0,
25
+ justifyContent: a = void 0,
26
+ className: i = ""
27
+ }) => /* @__PURE__ */ m.jsx(
658
28
  "div",
659
29
  {
660
30
  "aria-label": "Stack container",
661
- className: ne("flex flex-col", _),
31
+ className: c("flex flex-col", i),
662
32
  style: {
663
- gap: s,
664
- alignItems: u,
665
- justifyContent: l
33
+ gap: n,
34
+ alignItems: t,
35
+ justifyContent: a
666
36
  },
667
- children: o
37
+ children: e
668
38
  }
669
39
  );
670
- function De(o) {
671
- var s, u, l = "";
672
- if (typeof o == "string" || typeof o == "number") l += o;
673
- else if (typeof o == "object") if (Array.isArray(o)) for (s = 0; s < o.length; s++) o[s] && (u = De(o[s])) && (l && (l += " "), l += u);
674
- else for (s in o) o[s] && (l && (l += " "), l += s);
675
- return l;
40
+ function g(e) {
41
+ var n, t, a = "";
42
+ if (typeof e == "string" || typeof e == "number") a += e;
43
+ else if (typeof e == "object") if (Array.isArray(e)) for (n = 0; n < e.length; n++) e[n] && (t = g(e[n])) && (a && (a += " "), a += t);
44
+ else for (n in e) e[n] && (a && (a += " "), a += n);
45
+ return a;
676
46
  }
677
- function br() {
678
- for (var o, s, u = 0, l = ""; u < arguments.length; ) (o = arguments[u++]) && (s = De(o)) && (l && (l += " "), l += s);
679
- return l;
47
+ function V() {
48
+ for (var e, n, t = 0, a = ""; t < arguments.length; ) (e = arguments[t++]) && (n = g(e)) && (a && (a += " "), a += n);
49
+ return a;
680
50
  }
681
- const je = (o) => typeof o == "boolean" ? "".concat(o) : o === 0 ? "0" : o, ke = br, hr = (o, s) => (u) => {
682
- var l;
683
- if ((s == null ? void 0 : s.variants) == null) return ke(o, u == null ? void 0 : u.class, u == null ? void 0 : u.className);
684
- const { variants: _, defaultVariants: x } = s, w = Object.keys(_).map((y) => {
685
- const v = u == null ? void 0 : u[y], b = x == null ? void 0 : x[y];
686
- if (v === null) return null;
687
- const R = je(v) || je(b);
688
- return _[y][R];
689
- }), O = u && Object.entries(u).reduce((y, v) => {
690
- let [b, R] = v;
691
- return R === void 0 || (y[b] = R), y;
692
- }, {}), p = s == null || (l = s.compoundVariants) === null || l === void 0 ? void 0 : l.reduce((y, v) => {
693
- let { class: b, className: R, ...j } = v;
694
- return Object.entries(j).every((L) => {
695
- let [M, F] = L;
696
- return Array.isArray(F) ? F.includes({
697
- ...x,
698
- ...O
699
- }[M]) : {
700
- ...x,
701
- ...O
702
- }[M] === F;
51
+ const x = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, y = V, w = (e, n) => (t) => {
52
+ var a;
53
+ if ((n == null ? void 0 : n.variants) == null) return y(e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
54
+ const { variants: i, defaultVariants: s } = n, b = Object.keys(i).map((r) => {
55
+ const l = t == null ? void 0 : t[r], d = s == null ? void 0 : s[r];
56
+ if (l === null) return null;
57
+ const o = x(l) || x(d);
58
+ return i[r][o];
59
+ }), v = t && Object.entries(t).reduce((r, l) => {
60
+ let [d, o] = l;
61
+ return o === void 0 || (r[d] = o), r;
62
+ }, {}), h = n == null || (a = n.compoundVariants) === null || a === void 0 ? void 0 : a.reduce((r, l) => {
63
+ let { class: d, className: o, ...j } = l;
64
+ return Object.entries(j).every((N) => {
65
+ let [f, u] = N;
66
+ return Array.isArray(u) ? u.includes({
67
+ ...s,
68
+ ...v
69
+ }[f]) : {
70
+ ...s,
71
+ ...v
72
+ }[f] === u;
703
73
  }) ? [
704
- ...y,
705
- b,
706
- R
707
- ] : y;
74
+ ...r,
75
+ d,
76
+ o
77
+ ] : r;
708
78
  }, []);
709
- return ke(o, w, p, u == null ? void 0 : u.class, u == null ? void 0 : u.className);
710
- }, Rr = {
79
+ return y(e, b, h, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
80
+ }, C = {
711
81
  serif: "font-serif",
712
82
  body: "text-base",
713
83
  "body-wide": "text-sm tracking-[0.40em] font-medium",
714
84
  heading: "text-[1.5rem] md:text-4xl tracking-[-0.04em] font-medium",
715
85
  "heading-lg": "text-[2.5rem] md:text-[4rem] tracking-[-0.04em] font-medium leading-[2.75rem] md:leading-[4.5rem]",
716
86
  "heading-xl": "text-[4rem] md:text-[7rem] tracking-[-0.04em] leading-[3.5rem] md:leading-[5.5rem] font-medium"
717
- }, Er = hr("font-sans", {
87
+ }, P = w("font-sans", {
718
88
  variants: {
719
- variant: Rr
89
+ variant: C
720
90
  },
721
91
  defaultVariants: {
722
92
  variant: "body"
723
93
  }
724
94
  });
725
- function _r({
726
- as: o = "p",
727
- onClick: s,
728
- children: u,
729
- className: l = "",
730
- variant: _
95
+ function S({
96
+ as: e = "p",
97
+ onClick: n,
98
+ children: t,
99
+ className: a = "",
100
+ variant: i
731
101
  }) {
732
- return /* @__PURE__ */ Y.jsx(
733
- o,
102
+ return /* @__PURE__ */ m.jsx(
103
+ e,
734
104
  {
735
- className: ne(Er({ variant: _, className: l })),
736
- onClick: s,
737
- children: u
105
+ className: c(P({ variant: i, className: a })),
106
+ onClick: n,
107
+ children: t
738
108
  }
739
109
  );
740
110
  }
741
- function Sr({ title: o }) {
742
- return /* @__PURE__ */ Y.jsx(gr, { className: "ui-pt-2 ui-border-t ui-border-white ui-text-white", children: /* @__PURE__ */ Y.jsx(_r, { className: "ui-uppercase", variant: "body-wide", children: o }) });
111
+ function T({ title: e }) {
112
+ return /* @__PURE__ */ m.jsx(k, { className: "pt-2 border-t border-white text-white", children: /* @__PURE__ */ m.jsx(S, { className: "uppercase", variant: "body-wide", children: e }) });
743
113
  }
744
114
  export {
745
- Sr as PSectionHeader,
746
- _r as PTypography,
747
- Or as Row,
748
- gr as Stack
115
+ T as PSectionHeader,
116
+ S as PTypography,
117
+ R as Row,
118
+ k as Stack
749
119
  };
750
120
  //# sourceMappingURL=index.es.js.map