@plyaz/ui 0.6.6 → 0.6.8
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/client.cjs.js +1 -1
- package/dist/client.es.js +1382 -1364
- package/dist/index.cjs.js +9 -9
- package/dist/index.es.js +158 -118
- package/dist/types/components/Marquee/Marquee.d.ts +39 -0
- package/dist/types/components/Marquee/Marquee.d.ts.map +1 -0
- package/dist/types/components/Marquee/Marquee.stories.d.ts +54 -0
- package/dist/types/components/Marquee/Marquee.stories.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2,51 +2,51 @@ var Q = Object.defineProperty;
|
|
|
2
2
|
var Z = (t, e, a) => e in t ? Q(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
|
|
3
3
|
var k = (t, e, a) => Z(t, typeof e != "symbol" ? e + "" : e, a);
|
|
4
4
|
import { jsx as o, jsxs as y } from "react/jsx-runtime";
|
|
5
|
-
import { c } from "./utils-BlazSa45.js";
|
|
5
|
+
import { c as i } from "./utils-BlazSa45.js";
|
|
6
6
|
import { clsx as J } from "clsx";
|
|
7
7
|
import { Slot as X } from "@radix-ui/react-slot";
|
|
8
8
|
import Y, { memo as ee } from "react";
|
|
9
|
-
import * as
|
|
10
|
-
import { CheckIcon as te, ChevronDownIcon as
|
|
11
|
-
import { useTranslations as
|
|
12
|
-
const w = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @__PURE__ */ o(e, { className: a, ...r, "data-testid": "box", children: t }),
|
|
9
|
+
import * as u from "@radix-ui/react-select";
|
|
10
|
+
import { CheckIcon as te, ChevronDownIcon as j, ChevronUpIcon as ae } from "lucide-react";
|
|
11
|
+
import { useTranslations as C } from "next-intl";
|
|
12
|
+
const w = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @__PURE__ */ o(e, { className: a, ...r, "data-testid": "box", children: t }), Fe = ({ className: t = "", children: e, element: a, ...r }) => /* @__PURE__ */ o(
|
|
13
13
|
w,
|
|
14
14
|
{
|
|
15
15
|
element: a,
|
|
16
|
-
className:
|
|
16
|
+
className: i("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl", t),
|
|
17
17
|
...r,
|
|
18
18
|
children: e
|
|
19
19
|
}
|
|
20
|
-
),
|
|
20
|
+
), T = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, M = J, re = (t, e) => (a) => {
|
|
21
21
|
var r;
|
|
22
|
-
if ((e == null ? void 0 : e.variants) == null) return
|
|
23
|
-
const { variants: n, defaultVariants: s } = e, l = Object.keys(n).map((
|
|
24
|
-
const x = a == null ? void 0 : a[
|
|
22
|
+
if ((e == null ? void 0 : e.variants) == null) return M(t, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
|
|
23
|
+
const { variants: n, defaultVariants: s } = e, l = Object.keys(n).map((g) => {
|
|
24
|
+
const x = a == null ? void 0 : a[g], h = s == null ? void 0 : s[g];
|
|
25
25
|
if (x === null) return null;
|
|
26
|
-
const
|
|
27
|
-
return n[
|
|
28
|
-
}),
|
|
29
|
-
let [h,
|
|
30
|
-
return
|
|
31
|
-
}, {}),
|
|
32
|
-
let { class: h, className:
|
|
33
|
-
return Object.entries(
|
|
34
|
-
let [
|
|
26
|
+
const v = T(x) || T(h);
|
|
27
|
+
return n[g][v];
|
|
28
|
+
}), d = a && Object.entries(a).reduce((g, x) => {
|
|
29
|
+
let [h, v] = x;
|
|
30
|
+
return v === void 0 || (g[h] = v), g;
|
|
31
|
+
}, {}), m = e == null || (r = e.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((g, x) => {
|
|
32
|
+
let { class: h, className: v, ...q } = x;
|
|
33
|
+
return Object.entries(q).every((H) => {
|
|
34
|
+
let [A, S] = H;
|
|
35
35
|
return Array.isArray(S) ? S.includes({
|
|
36
36
|
...s,
|
|
37
|
-
...
|
|
38
|
-
}[
|
|
37
|
+
...d
|
|
38
|
+
}[A]) : {
|
|
39
39
|
...s,
|
|
40
|
-
...
|
|
41
|
-
}[
|
|
40
|
+
...d
|
|
41
|
+
}[A] === S;
|
|
42
42
|
}) ? [
|
|
43
|
-
...
|
|
43
|
+
...g,
|
|
44
44
|
h,
|
|
45
|
-
|
|
46
|
-
] :
|
|
45
|
+
v
|
|
46
|
+
] : g;
|
|
47
47
|
}, []);
|
|
48
|
-
return
|
|
49
|
-
},
|
|
48
|
+
return M(t, l, m, a == null ? void 0 : a.class, a == null ? void 0 : a.className);
|
|
49
|
+
}, F = {
|
|
50
50
|
start: "justify-start",
|
|
51
51
|
end: "justify-end",
|
|
52
52
|
center: "justify-center",
|
|
@@ -61,9 +61,9 @@ const w = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @
|
|
|
61
61
|
baseline: "items-baseline",
|
|
62
62
|
stretch: "items-stretch"
|
|
63
63
|
}, ne = {
|
|
64
|
-
body: "font-
|
|
65
|
-
heading: "font-
|
|
66
|
-
caption: "font-
|
|
64
|
+
body: "font-general",
|
|
65
|
+
heading: "font-general",
|
|
66
|
+
caption: "font-general"
|
|
67
67
|
}, se = {
|
|
68
68
|
xs: "text-xs",
|
|
69
69
|
sm: "text-sm",
|
|
@@ -185,22 +185,22 @@ const w = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @
|
|
|
185
185
|
align: n,
|
|
186
186
|
wrap: s,
|
|
187
187
|
className: l = "",
|
|
188
|
-
element:
|
|
189
|
-
...
|
|
188
|
+
element: d,
|
|
189
|
+
...m
|
|
190
190
|
}) => /* @__PURE__ */ o(
|
|
191
191
|
w,
|
|
192
192
|
{
|
|
193
|
-
element:
|
|
194
|
-
className:
|
|
193
|
+
element: d,
|
|
194
|
+
className: i(
|
|
195
195
|
"flex",
|
|
196
196
|
a && de[a],
|
|
197
|
-
r &&
|
|
197
|
+
r && F[r],
|
|
198
198
|
n && D[n],
|
|
199
199
|
s && ue[s],
|
|
200
200
|
e && V[e],
|
|
201
201
|
l
|
|
202
202
|
),
|
|
203
|
-
...
|
|
203
|
+
...m,
|
|
204
204
|
children: t
|
|
205
205
|
}
|
|
206
206
|
), Ve = ({
|
|
@@ -211,22 +211,22 @@ const w = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @
|
|
|
211
211
|
gap: n,
|
|
212
212
|
justify: s,
|
|
213
213
|
align: l,
|
|
214
|
-
element:
|
|
215
|
-
...
|
|
214
|
+
element: d,
|
|
215
|
+
...m
|
|
216
216
|
}) => /* @__PURE__ */ o(
|
|
217
217
|
w,
|
|
218
218
|
{
|
|
219
|
-
element:
|
|
220
|
-
className:
|
|
219
|
+
element: d,
|
|
220
|
+
className: i(
|
|
221
221
|
"grid",
|
|
222
222
|
a && le[a],
|
|
223
223
|
r && ie[r],
|
|
224
224
|
n && V[n],
|
|
225
|
-
s &&
|
|
225
|
+
s && F[s],
|
|
226
226
|
l && D[l],
|
|
227
227
|
e
|
|
228
228
|
),
|
|
229
|
-
...
|
|
229
|
+
...m,
|
|
230
230
|
children: t
|
|
231
231
|
}
|
|
232
232
|
), ge = {
|
|
@@ -256,14 +256,14 @@ const w = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @
|
|
|
256
256
|
href: a,
|
|
257
257
|
rel: "noopener noreferrer",
|
|
258
258
|
target: "_blank",
|
|
259
|
-
className:
|
|
259
|
+
className: i(
|
|
260
260
|
"focus:outline-none text-blue-600 active:text-blue-900 visited:text-purple-600 hover:underline",
|
|
261
261
|
e
|
|
262
262
|
),
|
|
263
263
|
...r,
|
|
264
264
|
children: t
|
|
265
265
|
}
|
|
266
|
-
),
|
|
266
|
+
), fe = {
|
|
267
267
|
xs: "xs",
|
|
268
268
|
sm: "sm",
|
|
269
269
|
base: "base",
|
|
@@ -273,7 +273,7 @@ const w = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @
|
|
|
273
273
|
{
|
|
274
274
|
className: e,
|
|
275
275
|
element: "p",
|
|
276
|
-
size:
|
|
276
|
+
size: fe[a],
|
|
277
277
|
variant: "body",
|
|
278
278
|
weight: "normal",
|
|
279
279
|
...r,
|
|
@@ -286,7 +286,7 @@ const w = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @
|
|
|
286
286
|
element: r,
|
|
287
287
|
className: n,
|
|
288
288
|
...s
|
|
289
|
-
}) => /* @__PURE__ */ o(w, { className:
|
|
289
|
+
}) => /* @__PURE__ */ o(w, { className: i("flex", e === "vertical" ? "flex-col" : "flex-row", a, n), element: r, ...s, children: t }), N = ({
|
|
290
290
|
className: t,
|
|
291
291
|
children: e,
|
|
292
292
|
element: a,
|
|
@@ -298,7 +298,7 @@ const w = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @
|
|
|
298
298
|
a,
|
|
299
299
|
{
|
|
300
300
|
"data-testid": "text",
|
|
301
|
-
className:
|
|
301
|
+
className: i(
|
|
302
302
|
"font-normal text-base",
|
|
303
303
|
s && se[s],
|
|
304
304
|
r && oe[r],
|
|
@@ -320,7 +320,7 @@ function Oe({
|
|
|
320
320
|
r ? X : "button",
|
|
321
321
|
{
|
|
322
322
|
"data-slot": "button",
|
|
323
|
-
className:
|
|
323
|
+
className: i(ce({ variant: e, size: a, className: t })),
|
|
324
324
|
...n,
|
|
325
325
|
"data-testid": "button"
|
|
326
326
|
}
|
|
@@ -332,7 +332,7 @@ function We({ className: t, type: e, ...a }) {
|
|
|
332
332
|
{
|
|
333
333
|
type: e,
|
|
334
334
|
"data-slot": "input",
|
|
335
|
-
className:
|
|
335
|
+
className: i(
|
|
336
336
|
`
|
|
337
337
|
flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent
|
|
338
338
|
px-3 py-1 text-base shadow-xs transition-[color,box-shadow]
|
|
@@ -361,7 +361,7 @@ function We({ className: t, type: e, ...a }) {
|
|
|
361
361
|
}
|
|
362
362
|
);
|
|
363
363
|
}
|
|
364
|
-
const
|
|
364
|
+
const me = ee(
|
|
365
365
|
({
|
|
366
366
|
children: t,
|
|
367
367
|
className: e = "",
|
|
@@ -401,28 +401,28 @@ const fe = ee(
|
|
|
401
401
|
);
|
|
402
402
|
}
|
|
403
403
|
);
|
|
404
|
-
|
|
404
|
+
me.displayName = "AuroraText";
|
|
405
405
|
function pe({ ...t }) {
|
|
406
|
-
return /* @__PURE__ */ o(
|
|
406
|
+
return /* @__PURE__ */ o(u.Root, { "data-slot": "select", ...t });
|
|
407
407
|
}
|
|
408
|
-
function
|
|
409
|
-
return /* @__PURE__ */ o(
|
|
408
|
+
function qe({ ...t }) {
|
|
409
|
+
return /* @__PURE__ */ o(u.Group, { "data-slot": "select-group", ...t });
|
|
410
410
|
}
|
|
411
411
|
function xe({ ...t }) {
|
|
412
|
-
return /* @__PURE__ */ o(
|
|
412
|
+
return /* @__PURE__ */ o(u.Value, { "data-slot": "select-value", ...t });
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function ve({
|
|
415
415
|
className: t,
|
|
416
416
|
size: e = "default",
|
|
417
417
|
children: a,
|
|
418
418
|
...r
|
|
419
419
|
}) {
|
|
420
420
|
return /* @__PURE__ */ y(
|
|
421
|
-
|
|
421
|
+
u.Trigger,
|
|
422
422
|
{
|
|
423
423
|
"data-slot": "select-trigger",
|
|
424
424
|
"data-size": e,
|
|
425
|
-
className:
|
|
425
|
+
className: i(
|
|
426
426
|
`
|
|
427
427
|
flex w-fit items-center justify-between gap-2 rounded-md border
|
|
428
428
|
border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap
|
|
@@ -449,22 +449,22 @@ function be({
|
|
|
449
449
|
...r,
|
|
450
450
|
children: [
|
|
451
451
|
a,
|
|
452
|
-
/* @__PURE__ */ o(
|
|
452
|
+
/* @__PURE__ */ o(u.Icon, { asChild: !0, children: /* @__PURE__ */ o(j, { className: "size-4 opacity-50" }) })
|
|
453
453
|
]
|
|
454
454
|
}
|
|
455
455
|
);
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function be({
|
|
458
458
|
className: t,
|
|
459
459
|
children: e,
|
|
460
460
|
position: a = "popper",
|
|
461
461
|
...r
|
|
462
462
|
}) {
|
|
463
|
-
return /* @__PURE__ */ o(
|
|
464
|
-
|
|
463
|
+
return /* @__PURE__ */ o(u.Portal, { "data-testid": "select", children: /* @__PURE__ */ y(
|
|
464
|
+
u.Content,
|
|
465
465
|
{
|
|
466
466
|
"data-slot": "select-content",
|
|
467
|
-
className:
|
|
467
|
+
className: i(
|
|
468
468
|
`
|
|
469
469
|
relative z-50 max-h-(--radix-select-content-available-height)
|
|
470
470
|
min-w-[8rem] origin-(--radix-select-content-transform-origin)
|
|
@@ -492,9 +492,9 @@ function ve({
|
|
|
492
492
|
children: [
|
|
493
493
|
/* @__PURE__ */ o(ye, {}),
|
|
494
494
|
/* @__PURE__ */ o(
|
|
495
|
-
|
|
495
|
+
u.Viewport,
|
|
496
496
|
{
|
|
497
|
-
className:
|
|
497
|
+
className: i(
|
|
498
498
|
"p-1",
|
|
499
499
|
a === "popper" && `
|
|
500
500
|
h-[var(--radix-select-trigger-height)] w-full
|
|
@@ -509,12 +509,12 @@ function ve({
|
|
|
509
509
|
}
|
|
510
510
|
) });
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function He({ className: t, ...e }) {
|
|
513
513
|
return /* @__PURE__ */ o(
|
|
514
|
-
|
|
514
|
+
u.Label,
|
|
515
515
|
{
|
|
516
516
|
"data-slot": "select-label",
|
|
517
|
-
className:
|
|
517
|
+
className: i("px-2 py-1.5 text-xs text-muted-foreground", t),
|
|
518
518
|
...e
|
|
519
519
|
}
|
|
520
520
|
);
|
|
@@ -525,10 +525,10 @@ function he({
|
|
|
525
525
|
...a
|
|
526
526
|
}) {
|
|
527
527
|
return /* @__PURE__ */ y(
|
|
528
|
-
|
|
528
|
+
u.Item,
|
|
529
529
|
{
|
|
530
530
|
"data-slot": "select-item",
|
|
531
|
-
className:
|
|
531
|
+
className: i(
|
|
532
532
|
`
|
|
533
533
|
relative flex w-full cursor-default items-center gap-2 rounded-sm
|
|
534
534
|
py-1.5 pr-8 pl-2 text-sm outline-hidden select-none
|
|
@@ -543,8 +543,8 @@ function he({
|
|
|
543
543
|
),
|
|
544
544
|
...a,
|
|
545
545
|
children: [
|
|
546
|
-
/* @__PURE__ */ o("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ o(
|
|
547
|
-
/* @__PURE__ */ o(
|
|
546
|
+
/* @__PURE__ */ o("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ o(u.ItemIndicator, { children: /* @__PURE__ */ o(te, { className: "size-4" }) }) }),
|
|
547
|
+
/* @__PURE__ */ o(u.ItemText, { children: e })
|
|
548
548
|
]
|
|
549
549
|
}
|
|
550
550
|
);
|
|
@@ -554,10 +554,10 @@ function Qe({
|
|
|
554
554
|
...e
|
|
555
555
|
}) {
|
|
556
556
|
return /* @__PURE__ */ o(
|
|
557
|
-
|
|
557
|
+
u.Separator,
|
|
558
558
|
{
|
|
559
559
|
"data-slot": "select-separator",
|
|
560
|
-
className:
|
|
560
|
+
className: i("pointer-events-none -mx-1 my-1 h-px bg-border", t),
|
|
561
561
|
...e
|
|
562
562
|
}
|
|
563
563
|
);
|
|
@@ -567,10 +567,10 @@ function ye({
|
|
|
567
567
|
...e
|
|
568
568
|
}) {
|
|
569
569
|
return /* @__PURE__ */ o(
|
|
570
|
-
|
|
570
|
+
u.ScrollUpButton,
|
|
571
571
|
{
|
|
572
572
|
"data-slot": "select-scroll-up-button",
|
|
573
|
-
className:
|
|
573
|
+
className: i("flex cursor-default items-center justify-center py-1", t),
|
|
574
574
|
...e,
|
|
575
575
|
children: /* @__PURE__ */ o(ae, { className: "size-4" })
|
|
576
576
|
}
|
|
@@ -581,12 +581,12 @@ function we({
|
|
|
581
581
|
...e
|
|
582
582
|
}) {
|
|
583
583
|
return /* @__PURE__ */ o(
|
|
584
|
-
|
|
584
|
+
u.ScrollDownButton,
|
|
585
585
|
{
|
|
586
586
|
"data-slot": "select-scroll-down-button",
|
|
587
|
-
className:
|
|
587
|
+
className: i("flex cursor-default items-center justify-center py-1", t),
|
|
588
588
|
...e,
|
|
589
|
-
children: /* @__PURE__ */ o(
|
|
589
|
+
children: /* @__PURE__ */ o(j, { className: "size-4" })
|
|
590
590
|
}
|
|
591
591
|
);
|
|
592
592
|
}
|
|
@@ -596,7 +596,7 @@ const Ze = ({
|
|
|
596
596
|
namespace: a,
|
|
597
597
|
...r
|
|
598
598
|
}) => {
|
|
599
|
-
const s =
|
|
599
|
+
const s = C(a)(
|
|
600
600
|
t,
|
|
601
601
|
e == null ? void 0 : e.args
|
|
602
602
|
);
|
|
@@ -608,22 +608,22 @@ const Ze = ({
|
|
|
608
608
|
className: r,
|
|
609
609
|
tag: n = "div"
|
|
610
610
|
}) => {
|
|
611
|
-
const l =
|
|
611
|
+
const l = C(a)(
|
|
612
612
|
t,
|
|
613
613
|
e == null ? void 0 : e.args
|
|
614
614
|
);
|
|
615
615
|
return Y.createElement(n, { className: r, "data-testid": "translated-html" }, l);
|
|
616
616
|
};
|
|
617
|
-
var Ne = Object.defineProperty,
|
|
617
|
+
var Ne = Object.defineProperty, c = (t, e) => Ne(t, "name", { value: e, configurable: !0 }), E = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map();
|
|
618
618
|
function I(t, e) {
|
|
619
619
|
return `${t}:${JSON.stringify(e ?? {})}`;
|
|
620
620
|
}
|
|
621
|
-
|
|
621
|
+
c(I, "getFormatterKey");
|
|
622
622
|
function $(t) {
|
|
623
623
|
const e = typeof t == "string" || typeof t == "number" ? new Date(t) : t;
|
|
624
624
|
return e instanceof Date && !Number.isNaN(e.getTime()) ? e : null;
|
|
625
625
|
}
|
|
626
|
-
|
|
626
|
+
c($, "parseDate");
|
|
627
627
|
function B(t, e = "en", a) {
|
|
628
628
|
var s;
|
|
629
629
|
const r = $(t);
|
|
@@ -632,7 +632,7 @@ function B(t, e = "en", a) {
|
|
|
632
632
|
const n = I(e, a);
|
|
633
633
|
return E.has(n) || E.set(n, new Intl.DateTimeFormat(e, a)), ((s = E.get(n)) == null ? void 0 : s.format(r)) ?? "";
|
|
634
634
|
}
|
|
635
|
-
|
|
635
|
+
c(B, "formatDate");
|
|
636
636
|
function K(t, e = "en", a) {
|
|
637
637
|
var n;
|
|
638
638
|
if (typeof t != "number" || Number.isNaN(t))
|
|
@@ -640,7 +640,7 @@ function K(t, e = "en", a) {
|
|
|
640
640
|
const r = I(e, a);
|
|
641
641
|
return _.has(r) || _.set(r, new Intl.NumberFormat(e, a)), ((n = _.get(r)) == null ? void 0 : n.format(t)) ?? "";
|
|
642
642
|
}
|
|
643
|
-
|
|
643
|
+
c(K, "formatNumber");
|
|
644
644
|
var P = {
|
|
645
645
|
defaultLocale: "en",
|
|
646
646
|
supportedLocales: ["en", "es", "fr", "it", "pt-BR", "pt-PT"],
|
|
@@ -649,19 +649,19 @@ var P = {
|
|
|
649
649
|
function ke() {
|
|
650
650
|
return P.supportedLocales;
|
|
651
651
|
}
|
|
652
|
-
|
|
652
|
+
c(ke, "getSupportedLanguages");
|
|
653
653
|
function Le() {
|
|
654
654
|
return P.defaultLocale;
|
|
655
655
|
}
|
|
656
|
-
|
|
656
|
+
c(Le, "getDefaultLanguage");
|
|
657
657
|
function Pe() {
|
|
658
658
|
return P.fallbackLocale;
|
|
659
659
|
}
|
|
660
|
-
|
|
660
|
+
c(Pe, "getFallbackLanguage");
|
|
661
661
|
function Se(t) {
|
|
662
662
|
return P.supportedLocales.includes(t);
|
|
663
663
|
}
|
|
664
|
-
|
|
664
|
+
c(Se, "isSupportedLanguage");
|
|
665
665
|
var p = /* @__PURE__ */ new Map();
|
|
666
666
|
function Ee({
|
|
667
667
|
value: t,
|
|
@@ -676,11 +676,11 @@ function Ee({
|
|
|
676
676
|
const s = O(a, r).select(t), l = U(e, s) ?? e.other ?? Object.values(e)[0];
|
|
677
677
|
return l ? z(l, t) : "";
|
|
678
678
|
}
|
|
679
|
-
|
|
679
|
+
c(Ee, "pluralize");
|
|
680
680
|
function R(t, e) {
|
|
681
681
|
return `${t}:${e}`;
|
|
682
682
|
}
|
|
683
|
-
|
|
683
|
+
c(R, "getPluralRulesKey");
|
|
684
684
|
var _e = /{count}|#/g;
|
|
685
685
|
function U(t, e) {
|
|
686
686
|
switch (e) {
|
|
@@ -700,15 +700,15 @@ function U(t, e) {
|
|
|
700
700
|
return;
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
|
-
|
|
703
|
+
c(U, "selectTemplate");
|
|
704
704
|
function G(t, e) {
|
|
705
705
|
return typeof t == "number" && e && typeof e == "object";
|
|
706
706
|
}
|
|
707
|
-
|
|
707
|
+
c(G, "isValidInput");
|
|
708
708
|
function z(t, e) {
|
|
709
709
|
return t.replaceAll(_e, e.toString());
|
|
710
710
|
}
|
|
711
|
-
|
|
711
|
+
c(z, "replacePlaceholders");
|
|
712
712
|
function O(t, e) {
|
|
713
713
|
const a = R(t, e);
|
|
714
714
|
if (!p.has(a))
|
|
@@ -719,16 +719,16 @@ function O(t, e) {
|
|
|
719
719
|
}
|
|
720
720
|
return p.get(a) ?? L(a, e);
|
|
721
721
|
}
|
|
722
|
-
|
|
722
|
+
c(O, "getPluralRules");
|
|
723
723
|
function L(t, e) {
|
|
724
724
|
const a = R("en", e);
|
|
725
725
|
p.has(a) || p.set(a, new Intl.PluralRules("en", { type: e }));
|
|
726
726
|
const r = p.get(a) ?? L(a, e);
|
|
727
727
|
return p.set(t, r), r;
|
|
728
728
|
}
|
|
729
|
-
|
|
730
|
-
var
|
|
731
|
-
|
|
729
|
+
c(L, "getFallbackPluralRules");
|
|
730
|
+
var f;
|
|
731
|
+
f = class {
|
|
732
732
|
constructor() {
|
|
733
733
|
k(this, "fallbackLocale");
|
|
734
734
|
this.fallbackLocale = "en";
|
|
@@ -738,7 +738,7 @@ g = class {
|
|
|
738
738
|
* @returns {LocaleDetector} The singleton instance.
|
|
739
739
|
*/
|
|
740
740
|
static getInstance() {
|
|
741
|
-
return
|
|
741
|
+
return f.instance || (f.instance = new f()), f.instance;
|
|
742
742
|
}
|
|
743
743
|
/**
|
|
744
744
|
* Detect locale using server-side request or client-side settings.
|
|
@@ -755,8 +755,8 @@ g = class {
|
|
|
755
755
|
* @private
|
|
756
756
|
*/
|
|
757
757
|
detectFromRequest(e) {
|
|
758
|
-
var s, l,
|
|
759
|
-
const a = (s = e.url.split("?")[1]) == null ? void 0 : s.split("=")[1], r = e.headers.get("accept-language"), n = (
|
|
758
|
+
var s, l, d;
|
|
759
|
+
const a = (s = e.url.split("?")[1]) == null ? void 0 : s.split("=")[1], r = e.headers.get("accept-language"), n = (d = (l = e.headers.get("cookie")) == null ? void 0 : l.split("; ").find((m) => m.startsWith("locale="))) == null ? void 0 : d.split("=")[1];
|
|
760
760
|
return a ?? n ?? this.parseAcceptLanguage(r ?? "") ?? this.fallbackLocale;
|
|
761
761
|
}
|
|
762
762
|
/**
|
|
@@ -793,9 +793,9 @@ g = class {
|
|
|
793
793
|
setFallbackLocale(e) {
|
|
794
794
|
this.fallbackLocale = e;
|
|
795
795
|
}
|
|
796
|
-
},
|
|
797
|
-
var
|
|
798
|
-
|
|
796
|
+
}, c(f, "LocaleDetector"), k(f, "instance");
|
|
797
|
+
var b;
|
|
798
|
+
b = class {
|
|
799
799
|
constructor(e) {
|
|
800
800
|
k(this, "namespaces");
|
|
801
801
|
this.namespaces = e ? new Map(e) : /* @__PURE__ */ new Map();
|
|
@@ -844,16 +844,16 @@ v = class {
|
|
|
844
844
|
validateNamespace(e, a) {
|
|
845
845
|
const r = this.namespaces.get(e);
|
|
846
846
|
return r ? a ? Object.entries(a).every(([n, s]) => {
|
|
847
|
-
var
|
|
848
|
-
const l = (
|
|
847
|
+
var d;
|
|
848
|
+
const l = (d = Object.getOwnPropertyDescriptor(r, n)) == null ? void 0 : d.value;
|
|
849
849
|
return l !== void 0 && typeof l === s;
|
|
850
850
|
}) : !0 : !1;
|
|
851
851
|
}
|
|
852
|
-
},
|
|
852
|
+
}, c(b, "NamespaceManager");
|
|
853
853
|
function W(t) {
|
|
854
854
|
return /^\w+$/.test(t);
|
|
855
855
|
}
|
|
856
|
-
|
|
856
|
+
c(W, "isSafeKey");
|
|
857
857
|
const Xe = ({
|
|
858
858
|
date: t,
|
|
859
859
|
formatOptions: e,
|
|
@@ -879,15 +879,54 @@ function et({
|
|
|
879
879
|
disabled: n
|
|
880
880
|
}) {
|
|
881
881
|
return /* @__PURE__ */ y(pe, { value: t, onValueChange: a, disabled: n, children: [
|
|
882
|
-
/* @__PURE__ */ o(
|
|
883
|
-
/* @__PURE__ */ o(
|
|
882
|
+
/* @__PURE__ */ o(ve, { children: /* @__PURE__ */ o(xe, { placeholder: r(t) }) }),
|
|
883
|
+
/* @__PURE__ */ o(be, { children: e.map((s) => /* @__PURE__ */ o(he, { value: s, children: r(s) }, s)) })
|
|
884
884
|
] });
|
|
885
885
|
}
|
|
886
|
+
function tt({
|
|
887
|
+
className: t,
|
|
888
|
+
reverse: e = !1,
|
|
889
|
+
pauseOnHover: a = !1,
|
|
890
|
+
paused: r = !1,
|
|
891
|
+
children: n,
|
|
892
|
+
vertical: s = !1,
|
|
893
|
+
repeat: l = 4,
|
|
894
|
+
...d
|
|
895
|
+
}) {
|
|
896
|
+
return /* @__PURE__ */ o(
|
|
897
|
+
"div",
|
|
898
|
+
{
|
|
899
|
+
...d,
|
|
900
|
+
className: i(
|
|
901
|
+
"group flex overflow-hidden p-2 [--duration:40s] [--gap:1rem] [gap:var(--gap)]",
|
|
902
|
+
{
|
|
903
|
+
"flex-row": !s,
|
|
904
|
+
"flex-col": s
|
|
905
|
+
},
|
|
906
|
+
t
|
|
907
|
+
),
|
|
908
|
+
children: Array(l).fill(0).map((m, g) => /* @__PURE__ */ o(
|
|
909
|
+
"div",
|
|
910
|
+
{
|
|
911
|
+
className: i("flex shrink-0 justify-around [gap:var(--gap)]", {
|
|
912
|
+
"animate-marquee flex-row": !s,
|
|
913
|
+
"animate-marquee-vertical flex-col": s,
|
|
914
|
+
"group-hover:[animation-play-state:paused]": a,
|
|
915
|
+
"[animation-direction:reverse]": e,
|
|
916
|
+
"[animation-play-state:paused]": r
|
|
917
|
+
}),
|
|
918
|
+
children: n
|
|
919
|
+
},
|
|
920
|
+
g
|
|
921
|
+
))
|
|
922
|
+
}
|
|
923
|
+
);
|
|
924
|
+
}
|
|
886
925
|
export {
|
|
887
|
-
|
|
926
|
+
me as AuroraText,
|
|
888
927
|
w as Box,
|
|
889
928
|
Oe as Button,
|
|
890
|
-
|
|
929
|
+
Fe as Container,
|
|
891
930
|
Be as ExternalLink,
|
|
892
931
|
De as Flex,
|
|
893
932
|
Xe as FormattedDate,
|
|
@@ -896,17 +935,18 @@ export {
|
|
|
896
935
|
$e as Heading,
|
|
897
936
|
We as Input,
|
|
898
937
|
et as LanguageSelector,
|
|
938
|
+
tt as Marquee,
|
|
899
939
|
Ke as Paragraph,
|
|
900
940
|
Ue as Section,
|
|
901
941
|
pe as Select,
|
|
902
|
-
|
|
903
|
-
|
|
942
|
+
be as SelectContent,
|
|
943
|
+
qe as SelectGroup,
|
|
904
944
|
he as SelectItem,
|
|
905
|
-
|
|
945
|
+
He as SelectLabel,
|
|
906
946
|
we as SelectScrollDownButton,
|
|
907
947
|
ye as SelectScrollUpButton,
|
|
908
948
|
Qe as SelectSeparator,
|
|
909
|
-
|
|
949
|
+
ve as SelectTrigger,
|
|
910
950
|
xe as SelectValue,
|
|
911
951
|
Ge as Stack,
|
|
912
952
|
N as Text,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
interface MarqueeProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* Optional CSS class name to apply custom styles
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Whether to reverse the animation direction
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
reverse?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Whether to pause the animation on hover
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
pauseOnHover?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Content to be displayed in the marquee
|
|
19
|
+
*/
|
|
20
|
+
paused?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Whether to animate vertically instead of horizontally
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* Whether to animate vertically instead of horizontally
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
vertical?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Number of times to repeat the content
|
|
33
|
+
* @default 4
|
|
34
|
+
*/
|
|
35
|
+
repeat?: number;
|
|
36
|
+
}
|
|
37
|
+
export declare function Marquee({ className, reverse, pauseOnHover, paused, children, vertical, repeat, ...props }: MarqueeProps): import("react").JSX.Element;
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=Marquee.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Marquee.d.ts","sourceRoot":"","sources":["../../../../src/components/Marquee/Marquee.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAItD,UAAU,YAAa,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IAC5D;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,OAAO,CAAC,EACtB,SAAS,EACT,OAAe,EACf,YAAoB,EACpB,MAAc,EACd,QAAQ,EACR,QAAgB,EAChB,MAAU,EACV,GAAG,KAAK,EACT,EAAE,YAAY,+BA+Bd"}
|