@the12company/ui 0.1.3 → 0.1.5
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/README.md +13 -0
- package/dist/index.d.ts +119 -16
- package/dist/index.js +515 -41
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
- package/src/tokens/utilities.css +32 -0
package/dist/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { clsx } from 'clsx';
|
|
2
2
|
import { twMerge } from 'tailwind-merge';
|
|
3
3
|
import * as React11 from 'react';
|
|
4
|
+
import { useRef, useEffect } from 'react';
|
|
4
5
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
5
|
-
import { ChevronDown, X, PanelLeft, ArrowLeft, ArrowRight, Check, Search, ChevronRight, Circle, Dot, ChevronUp, MoreHorizontal, ChevronLeft, GripVertical, ChevronsUpDown, Loader2, CircleX } from 'lucide-react';
|
|
6
|
+
import { ChevronDown, X, PanelLeft, Mail, Lock, EyeOff, Eye, ArrowLeft, ArrowRight, Check, Search, ChevronRight, Circle, Dot, ChevronUp, AlertCircle, CheckCircle2, MoreHorizontal, ChevronLeft, GripVertical, ChevronsUpDown, Loader2, CircleX } from 'lucide-react';
|
|
6
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
8
|
import { cva } from 'class-variance-authority';
|
|
8
9
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
@@ -11,6 +12,7 @@ import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
|
11
12
|
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
12
13
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
13
14
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
15
|
+
import { Renderer, Triangle, Program, Mesh, Color } from 'ogl';
|
|
14
16
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
15
17
|
import { DayPicker } from 'react-day-picker';
|
|
16
18
|
import useEmblaCarousel from 'embla-carousel-react';
|
|
@@ -1288,6 +1290,457 @@ function AppChromeSidebar({
|
|
|
1288
1290
|
);
|
|
1289
1291
|
}
|
|
1290
1292
|
var AspectRatio = AspectRatioPrimitive.Root;
|
|
1293
|
+
var VERT = `#version 300 es
|
|
1294
|
+
in vec2 position;
|
|
1295
|
+
void main() {
|
|
1296
|
+
gl_Position = vec4(position, 0.0, 1.0);
|
|
1297
|
+
}
|
|
1298
|
+
`;
|
|
1299
|
+
var FRAG = `#version 300 es
|
|
1300
|
+
precision highp float;
|
|
1301
|
+
|
|
1302
|
+
uniform float uTime;
|
|
1303
|
+
uniform float uAmplitude;
|
|
1304
|
+
uniform vec3 uColorStops[3];
|
|
1305
|
+
uniform vec2 uResolution;
|
|
1306
|
+
uniform float uBlend;
|
|
1307
|
+
|
|
1308
|
+
out vec4 fragColor;
|
|
1309
|
+
|
|
1310
|
+
vec3 permute(vec3 x) {
|
|
1311
|
+
return mod(((x * 34.0) + 1.0) * x, 289.0);
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
float snoise(vec2 v){
|
|
1315
|
+
const vec4 C = vec4(
|
|
1316
|
+
0.211324865405187, 0.366025403784439,
|
|
1317
|
+
-0.577350269189626, 0.024390243902439
|
|
1318
|
+
);
|
|
1319
|
+
vec2 i = floor(v + dot(v, C.yy));
|
|
1320
|
+
vec2 x0 = v - i + dot(i, C.xx);
|
|
1321
|
+
vec2 i1 = (x0.x > x0.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0);
|
|
1322
|
+
vec4 x12 = x0.xyxy + C.xxzz;
|
|
1323
|
+
x12.xy -= i1;
|
|
1324
|
+
i = mod(i, 289.0);
|
|
1325
|
+
|
|
1326
|
+
vec3 p = permute(
|
|
1327
|
+
permute(i.y + vec3(0.0, i1.y, 1.0))
|
|
1328
|
+
+ i.x + vec3(0.0, i1.x, 1.0)
|
|
1329
|
+
);
|
|
1330
|
+
|
|
1331
|
+
vec3 m = max(
|
|
1332
|
+
0.5 - vec3(
|
|
1333
|
+
dot(x0, x0),
|
|
1334
|
+
dot(x12.xy, x12.xy),
|
|
1335
|
+
dot(x12.zw, x12.zw)
|
|
1336
|
+
),
|
|
1337
|
+
0.0
|
|
1338
|
+
);
|
|
1339
|
+
m = m * m;
|
|
1340
|
+
m = m * m;
|
|
1341
|
+
|
|
1342
|
+
vec3 x = 2.0 * fract(p * C.www) - 1.0;
|
|
1343
|
+
vec3 h = abs(x) - 0.5;
|
|
1344
|
+
vec3 ox = floor(x + 0.5);
|
|
1345
|
+
vec3 a0 = x - ox;
|
|
1346
|
+
m *= 1.79284291400159 - 0.85373472095314 * (a0*a0 + h*h);
|
|
1347
|
+
|
|
1348
|
+
vec3 g;
|
|
1349
|
+
g.x = a0.x * x0.x + h.x * x0.y;
|
|
1350
|
+
g.yz = a0.yz * x12.xz + h.yz * x12.yw;
|
|
1351
|
+
return 130.0 * dot(m, g);
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
struct ColorStop {
|
|
1355
|
+
vec3 color;
|
|
1356
|
+
float position;
|
|
1357
|
+
};
|
|
1358
|
+
|
|
1359
|
+
#define COLOR_RAMP(colors, factor, finalColor) { int index = 0; for (int i = 0; i < 2; i++) { ColorStop currentColor = colors[i]; bool isInBetween = currentColor.position <= factor; index = int(mix(float(index), float(i), float(isInBetween))); } ColorStop currentColor = colors[index]; ColorStop nextColor = colors[index + 1]; float range = nextColor.position - currentColor.position; float lerpFactor = (factor - currentColor.position) / range; finalColor = mix(currentColor.color, nextColor.color, lerpFactor); }
|
|
1360
|
+
|
|
1361
|
+
void main() {
|
|
1362
|
+
vec2 uv = gl_FragCoord.xy / uResolution;
|
|
1363
|
+
|
|
1364
|
+
ColorStop colors[3];
|
|
1365
|
+
colors[0] = ColorStop(uColorStops[0], 0.0);
|
|
1366
|
+
colors[1] = ColorStop(uColorStops[1], 0.5);
|
|
1367
|
+
colors[2] = ColorStop(uColorStops[2], 1.0);
|
|
1368
|
+
|
|
1369
|
+
vec3 rampColor;
|
|
1370
|
+
COLOR_RAMP(colors, uv.x, rampColor);
|
|
1371
|
+
|
|
1372
|
+
float height = snoise(vec2(uv.x * 2.0 + uTime * 0.1, uTime * 0.25)) * 0.5 * uAmplitude;
|
|
1373
|
+
height = exp(height);
|
|
1374
|
+
height = (uv.y * 2.0 - height + 0.2);
|
|
1375
|
+
float intensity = 0.6 * height;
|
|
1376
|
+
|
|
1377
|
+
float midPoint = 0.20;
|
|
1378
|
+
float auroraAlpha = smoothstep(midPoint - uBlend * 0.5, midPoint + uBlend * 0.5, intensity);
|
|
1379
|
+
/* Steeper alpha at the toe: fewer pixels sit at \u201Cmedium \u03B1 + dark RGB\u201D, which composites
|
|
1380
|
+
to muddy gray on light backgrounds (premultiplied over white). */
|
|
1381
|
+
auroraAlpha = pow(clamp(auroraAlpha, 0.0, 1.0), 1.5);
|
|
1382
|
+
/* Lift low intensities slightly so color doesn\u2019t collapse toward black before the fade. */
|
|
1383
|
+
float tone = pow(clamp(intensity, 0.0, 1.25), 0.2);
|
|
1384
|
+
vec3 auroraColor = tone * rampColor;
|
|
1385
|
+
|
|
1386
|
+
fragColor = vec4(auroraColor * auroraAlpha, auroraAlpha);
|
|
1387
|
+
}
|
|
1388
|
+
`;
|
|
1389
|
+
var DEFAULT_STOPS = [
|
|
1390
|
+
"#5227FF",
|
|
1391
|
+
"#7cff67",
|
|
1392
|
+
"#5227FF"
|
|
1393
|
+
];
|
|
1394
|
+
function stopsToRgbTriples(hexes) {
|
|
1395
|
+
const padded = [...hexes];
|
|
1396
|
+
while (padded.length < 3) {
|
|
1397
|
+
padded.push(padded[padded.length - 1] ?? DEFAULT_STOPS[0]);
|
|
1398
|
+
}
|
|
1399
|
+
const three = padded.slice(0, 3);
|
|
1400
|
+
return three.map((hex) => {
|
|
1401
|
+
const c = new Color(hex);
|
|
1402
|
+
return [c.r, c.g, c.b];
|
|
1403
|
+
});
|
|
1404
|
+
}
|
|
1405
|
+
function Aurora(props) {
|
|
1406
|
+
const { colorStops = DEFAULT_STOPS, amplitude = 1, blend = 0.5 } = props;
|
|
1407
|
+
const propsRef = useRef(props);
|
|
1408
|
+
propsRef.current = props;
|
|
1409
|
+
const ctnDom = useRef(null);
|
|
1410
|
+
useEffect(() => {
|
|
1411
|
+
const ctn = ctnDom.current;
|
|
1412
|
+
if (!ctn) return;
|
|
1413
|
+
let renderer;
|
|
1414
|
+
let resize;
|
|
1415
|
+
let animateId = 0;
|
|
1416
|
+
let canvas;
|
|
1417
|
+
const cleanup = () => {
|
|
1418
|
+
if (animateId) {
|
|
1419
|
+
cancelAnimationFrame(animateId);
|
|
1420
|
+
}
|
|
1421
|
+
if (resize) {
|
|
1422
|
+
window.removeEventListener("resize", resize);
|
|
1423
|
+
}
|
|
1424
|
+
if (canvas?.parentNode === ctn) {
|
|
1425
|
+
ctn.removeChild(canvas);
|
|
1426
|
+
}
|
|
1427
|
+
renderer?.gl.getExtension("WEBGL_lose_context")?.loseContext();
|
|
1428
|
+
};
|
|
1429
|
+
try {
|
|
1430
|
+
renderer = new Renderer({
|
|
1431
|
+
alpha: true,
|
|
1432
|
+
premultipliedAlpha: true,
|
|
1433
|
+
antialias: true
|
|
1434
|
+
});
|
|
1435
|
+
const gl = renderer.gl;
|
|
1436
|
+
canvas = gl.canvas;
|
|
1437
|
+
gl.clearColor(0, 0, 0, 0);
|
|
1438
|
+
gl.enable(gl.BLEND);
|
|
1439
|
+
gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
|
|
1440
|
+
gl.canvas.style.backgroundColor = "transparent";
|
|
1441
|
+
const geometry = new Triangle(gl);
|
|
1442
|
+
if (geometry.attributes.uv) {
|
|
1443
|
+
delete geometry.attributes.uv;
|
|
1444
|
+
}
|
|
1445
|
+
const initialStops = propsRef.current.colorStops ?? colorStops;
|
|
1446
|
+
const colorStopsArray = stopsToRgbTriples(
|
|
1447
|
+
Array.isArray(initialStops) ? [...initialStops] : [...DEFAULT_STOPS]
|
|
1448
|
+
);
|
|
1449
|
+
const program = new Program(gl, {
|
|
1450
|
+
vertex: VERT,
|
|
1451
|
+
fragment: FRAG,
|
|
1452
|
+
uniforms: {
|
|
1453
|
+
uTime: { value: 0 },
|
|
1454
|
+
uAmplitude: { value: amplitude },
|
|
1455
|
+
uColorStops: { value: colorStopsArray },
|
|
1456
|
+
uResolution: { value: [ctn.offsetWidth, ctn.offsetHeight] },
|
|
1457
|
+
uBlend: { value: blend }
|
|
1458
|
+
}
|
|
1459
|
+
});
|
|
1460
|
+
resize = () => {
|
|
1461
|
+
if (!renderer) return;
|
|
1462
|
+
const width = ctn.offsetWidth;
|
|
1463
|
+
const height = ctn.offsetHeight;
|
|
1464
|
+
renderer.setSize(width, height);
|
|
1465
|
+
program.uniforms.uResolution.value = [width, height];
|
|
1466
|
+
};
|
|
1467
|
+
window.addEventListener("resize", resize);
|
|
1468
|
+
const mesh = new Mesh(gl, { geometry, program });
|
|
1469
|
+
ctn.appendChild(gl.canvas);
|
|
1470
|
+
const update = (t) => {
|
|
1471
|
+
animateId = requestAnimationFrame(update);
|
|
1472
|
+
const p = propsRef.current;
|
|
1473
|
+
const { time = t * 0.01, speed = 1 } = p;
|
|
1474
|
+
program.uniforms.uTime.value = time * speed * 0.1;
|
|
1475
|
+
program.uniforms.uAmplitude.value = p.amplitude ?? 1;
|
|
1476
|
+
program.uniforms.uBlend.value = p.blend ?? 0.5;
|
|
1477
|
+
const stops = p.colorStops ?? DEFAULT_STOPS;
|
|
1478
|
+
program.uniforms.uColorStops.value = stopsToRgbTriples(
|
|
1479
|
+
Array.isArray(stops) ? [...stops] : [...DEFAULT_STOPS]
|
|
1480
|
+
);
|
|
1481
|
+
renderer?.render({ scene: mesh });
|
|
1482
|
+
};
|
|
1483
|
+
animateId = requestAnimationFrame(update);
|
|
1484
|
+
resize();
|
|
1485
|
+
} catch {
|
|
1486
|
+
cleanup();
|
|
1487
|
+
return;
|
|
1488
|
+
}
|
|
1489
|
+
return cleanup;
|
|
1490
|
+
}, []);
|
|
1491
|
+
return /* @__PURE__ */ jsx("div", { ref: ctnDom, className: "h-full w-full" });
|
|
1492
|
+
}
|
|
1493
|
+
var authBannerVariants = cva(
|
|
1494
|
+
"flex items-center gap-3 rounded-lg border px-4 py-3 text-sm",
|
|
1495
|
+
{
|
|
1496
|
+
variants: {
|
|
1497
|
+
variant: {
|
|
1498
|
+
success: "border-primary/25 bg-primary/15 text-foreground dark:bg-primary/10",
|
|
1499
|
+
destructive: "border-destructive/25 bg-destructive/10 text-destructive dark:bg-destructive/5"
|
|
1500
|
+
}
|
|
1501
|
+
},
|
|
1502
|
+
defaultVariants: {
|
|
1503
|
+
variant: "success"
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
);
|
|
1507
|
+
var AuthBanner = React11.forwardRef(
|
|
1508
|
+
({ className, variant = "success", icon, children, ...props }, ref) => {
|
|
1509
|
+
const defaultIcon = variant === "destructive" ? /* @__PURE__ */ jsx(AlertCircle, { className: "h-4 w-4 shrink-0", "aria-hidden": true }) : /* @__PURE__ */ jsx(
|
|
1510
|
+
CheckCircle2,
|
|
1511
|
+
{
|
|
1512
|
+
className: "shrink-0 text-primary",
|
|
1513
|
+
"aria-hidden": true,
|
|
1514
|
+
size: 18
|
|
1515
|
+
}
|
|
1516
|
+
);
|
|
1517
|
+
return /* @__PURE__ */ jsxs(
|
|
1518
|
+
"div",
|
|
1519
|
+
{
|
|
1520
|
+
ref,
|
|
1521
|
+
role: variant === "destructive" ? "alert" : "status",
|
|
1522
|
+
className: cn(authBannerVariants({ variant }), className),
|
|
1523
|
+
...props,
|
|
1524
|
+
children: [
|
|
1525
|
+
icon ?? defaultIcon,
|
|
1526
|
+
/* @__PURE__ */ jsx(
|
|
1527
|
+
"div",
|
|
1528
|
+
{
|
|
1529
|
+
className: cn(
|
|
1530
|
+
"leading-relaxed",
|
|
1531
|
+
variant === "success" && "text-foreground opacity-80"
|
|
1532
|
+
),
|
|
1533
|
+
children
|
|
1534
|
+
}
|
|
1535
|
+
)
|
|
1536
|
+
]
|
|
1537
|
+
}
|
|
1538
|
+
);
|
|
1539
|
+
}
|
|
1540
|
+
);
|
|
1541
|
+
AuthBanner.displayName = "AuthBanner";
|
|
1542
|
+
var AuthBrand = React11.forwardRef(
|
|
1543
|
+
({ className, logo, title, description, ...props }, ref) => {
|
|
1544
|
+
return /* @__PURE__ */ jsxs(
|
|
1545
|
+
"header",
|
|
1546
|
+
{
|
|
1547
|
+
ref,
|
|
1548
|
+
className: cn(
|
|
1549
|
+
"mb-8 flex flex-col items-center text-center sm:mb-10",
|
|
1550
|
+
className
|
|
1551
|
+
),
|
|
1552
|
+
...props,
|
|
1553
|
+
children: [
|
|
1554
|
+
/* @__PURE__ */ jsx("div", { className: "mb-5 flex h-16 w-16 items-center justify-center rounded-2xl shadow-lg shadow-primary/30 ring-4 ring-primary/10 transition-all duration-500 hover:-translate-y-0.5 hover:shadow-xl hover:shadow-primary/30", children: logo }),
|
|
1555
|
+
/* @__PURE__ */ jsx("h1", { className: "text-balance text-2xl font-bold tracking-tight text-foreground sm:text-[1.75rem]", children: title }),
|
|
1556
|
+
description ? /* @__PURE__ */ jsx("p", { className: "mt-1 max-w-sm text-pretty text-sm font-normal leading-relaxed text-foreground opacity-80", children: description }) : null
|
|
1557
|
+
]
|
|
1558
|
+
}
|
|
1559
|
+
);
|
|
1560
|
+
}
|
|
1561
|
+
);
|
|
1562
|
+
AuthBrand.displayName = "AuthBrand";
|
|
1563
|
+
var AuthCard = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1564
|
+
"div",
|
|
1565
|
+
{
|
|
1566
|
+
ref,
|
|
1567
|
+
className: cn(
|
|
1568
|
+
"rounded-2xl bg-content-glass p-7 shadow-xl shadow-black/[0.06] backdrop-blur-md dark:shadow-black/25 sm:p-8",
|
|
1569
|
+
className
|
|
1570
|
+
),
|
|
1571
|
+
...props
|
|
1572
|
+
}
|
|
1573
|
+
));
|
|
1574
|
+
AuthCard.displayName = "AuthCard";
|
|
1575
|
+
var AuthCardHeader = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("mb-6", className), ...props }));
|
|
1576
|
+
AuthCardHeader.displayName = "AuthCardHeader";
|
|
1577
|
+
var AuthCardTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1578
|
+
"h2",
|
|
1579
|
+
{
|
|
1580
|
+
ref,
|
|
1581
|
+
className: cn(
|
|
1582
|
+
"text-lg font-semibold tracking-tight text-foreground",
|
|
1583
|
+
className
|
|
1584
|
+
),
|
|
1585
|
+
...props
|
|
1586
|
+
}
|
|
1587
|
+
));
|
|
1588
|
+
AuthCardTitle.displayName = "AuthCardTitle";
|
|
1589
|
+
var AuthCardDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1590
|
+
"p",
|
|
1591
|
+
{
|
|
1592
|
+
ref,
|
|
1593
|
+
className: cn("mt-0 text-sm text-muted-foreground", className),
|
|
1594
|
+
...props
|
|
1595
|
+
}
|
|
1596
|
+
));
|
|
1597
|
+
AuthCardDescription.displayName = "AuthCardDescription";
|
|
1598
|
+
var AuthFieldError = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1599
|
+
"p",
|
|
1600
|
+
{
|
|
1601
|
+
ref,
|
|
1602
|
+
className: cn("mt-2 text-xs text-destructive/80", className),
|
|
1603
|
+
...props
|
|
1604
|
+
}
|
|
1605
|
+
));
|
|
1606
|
+
AuthFieldError.displayName = "AuthFieldError";
|
|
1607
|
+
var AuthFooter = React11.forwardRef(
|
|
1608
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1609
|
+
"p",
|
|
1610
|
+
{
|
|
1611
|
+
ref,
|
|
1612
|
+
className: cn(
|
|
1613
|
+
"mx-auto mt-6 max-w-sm text-center text-sm text-muted-foreground",
|
|
1614
|
+
className
|
|
1615
|
+
),
|
|
1616
|
+
...props
|
|
1617
|
+
}
|
|
1618
|
+
)
|
|
1619
|
+
);
|
|
1620
|
+
AuthFooter.displayName = "AuthFooter";
|
|
1621
|
+
var AuthFooterLink = React11.forwardRef(
|
|
1622
|
+
({ className, asChild = false, ...props }, ref) => {
|
|
1623
|
+
const Comp = asChild ? Slot : "a";
|
|
1624
|
+
return /* @__PURE__ */ jsx(
|
|
1625
|
+
Comp,
|
|
1626
|
+
{
|
|
1627
|
+
ref,
|
|
1628
|
+
className: cn("font-medium text-primary hover-underline", className),
|
|
1629
|
+
...props
|
|
1630
|
+
}
|
|
1631
|
+
);
|
|
1632
|
+
}
|
|
1633
|
+
);
|
|
1634
|
+
AuthFooterLink.displayName = "AuthFooterLink";
|
|
1635
|
+
var AuthShell = React11.forwardRef(
|
|
1636
|
+
({ className, background, backgroundClassName, children, ...props }, ref) => {
|
|
1637
|
+
return /* @__PURE__ */ jsxs(
|
|
1638
|
+
"div",
|
|
1639
|
+
{
|
|
1640
|
+
ref,
|
|
1641
|
+
className: cn(
|
|
1642
|
+
"relative flex min-h-screen flex-col items-center justify-center overflow-hidden px-4 py-10 sm:py-14",
|
|
1643
|
+
className
|
|
1644
|
+
),
|
|
1645
|
+
...props,
|
|
1646
|
+
children: [
|
|
1647
|
+
background ? /* @__PURE__ */ jsx(
|
|
1648
|
+
"div",
|
|
1649
|
+
{
|
|
1650
|
+
className: cn(
|
|
1651
|
+
"pointer-events-none absolute inset-0 z-0 min-h-full opacity-80 dark:opacity-40",
|
|
1652
|
+
backgroundClassName
|
|
1653
|
+
),
|
|
1654
|
+
"aria-hidden": true,
|
|
1655
|
+
children: background
|
|
1656
|
+
}
|
|
1657
|
+
) : null,
|
|
1658
|
+
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 z-[1]", "aria-hidden": true }),
|
|
1659
|
+
/* @__PURE__ */ jsx("div", { className: "relative z-10 w-full max-w-[440px]", children })
|
|
1660
|
+
]
|
|
1661
|
+
}
|
|
1662
|
+
);
|
|
1663
|
+
}
|
|
1664
|
+
);
|
|
1665
|
+
AuthShell.displayName = "AuthShell";
|
|
1666
|
+
var EmailInput = React11.forwardRef(
|
|
1667
|
+
({
|
|
1668
|
+
className,
|
|
1669
|
+
variant = "outline",
|
|
1670
|
+
autoComplete = "email",
|
|
1671
|
+
placeholder = "Insira seu e-mail",
|
|
1672
|
+
...props
|
|
1673
|
+
}, ref) => {
|
|
1674
|
+
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
1675
|
+
/* @__PURE__ */ jsx(
|
|
1676
|
+
Mail,
|
|
1677
|
+
{
|
|
1678
|
+
className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground/70",
|
|
1679
|
+
"aria-hidden": true
|
|
1680
|
+
}
|
|
1681
|
+
),
|
|
1682
|
+
/* @__PURE__ */ jsx(
|
|
1683
|
+
Input,
|
|
1684
|
+
{
|
|
1685
|
+
ref,
|
|
1686
|
+
type: "email",
|
|
1687
|
+
variant,
|
|
1688
|
+
autoComplete,
|
|
1689
|
+
placeholder,
|
|
1690
|
+
className: cn("h-11 pl-10 text-[15px]", className),
|
|
1691
|
+
...props
|
|
1692
|
+
}
|
|
1693
|
+
)
|
|
1694
|
+
] });
|
|
1695
|
+
}
|
|
1696
|
+
);
|
|
1697
|
+
EmailInput.displayName = "EmailInput";
|
|
1698
|
+
var toggleIconClass = "text-muted-foreground/70 hover:text-muted-foreground/90 hover:scale-[1.05] transition-all duration-300";
|
|
1699
|
+
var PasswordInput = React11.forwardRef(
|
|
1700
|
+
({
|
|
1701
|
+
className,
|
|
1702
|
+
variant = "outline",
|
|
1703
|
+
autoComplete = "current-password",
|
|
1704
|
+
placeholder = "Insira sua senha",
|
|
1705
|
+
defaultVisible = false,
|
|
1706
|
+
...props
|
|
1707
|
+
}, ref) => {
|
|
1708
|
+
const [visible, setVisible] = React11.useState(defaultVisible);
|
|
1709
|
+
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
1710
|
+
/* @__PURE__ */ jsx(
|
|
1711
|
+
Lock,
|
|
1712
|
+
{
|
|
1713
|
+
className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground/70",
|
|
1714
|
+
"aria-hidden": true
|
|
1715
|
+
}
|
|
1716
|
+
),
|
|
1717
|
+
/* @__PURE__ */ jsx(
|
|
1718
|
+
Input,
|
|
1719
|
+
{
|
|
1720
|
+
ref,
|
|
1721
|
+
type: visible ? "text" : "password",
|
|
1722
|
+
variant,
|
|
1723
|
+
autoComplete,
|
|
1724
|
+
placeholder,
|
|
1725
|
+
className: cn("h-11 px-10 text-[15px]", className),
|
|
1726
|
+
...props
|
|
1727
|
+
}
|
|
1728
|
+
),
|
|
1729
|
+
/* @__PURE__ */ jsx(
|
|
1730
|
+
"button",
|
|
1731
|
+
{
|
|
1732
|
+
type: "button",
|
|
1733
|
+
tabIndex: -1,
|
|
1734
|
+
className: "absolute right-3 top-1/2 -translate-y-1/2 cursor-pointer",
|
|
1735
|
+
"aria-label": visible ? "Ocultar senha" : "Mostrar senha",
|
|
1736
|
+
onClick: () => setVisible((v) => !v),
|
|
1737
|
+
children: visible ? /* @__PURE__ */ jsx(EyeOff, { className: toggleIconClass, "aria-hidden": true, size: 18 }) : /* @__PURE__ */ jsx(Eye, { className: toggleIconClass, "aria-hidden": true, size: 18 })
|
|
1738
|
+
}
|
|
1739
|
+
)
|
|
1740
|
+
] });
|
|
1741
|
+
}
|
|
1742
|
+
);
|
|
1743
|
+
PasswordInput.displayName = "PasswordInput";
|
|
1291
1744
|
var Avatar = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1292
1745
|
AvatarPrimitive.Root,
|
|
1293
1746
|
{
|
|
@@ -2340,36 +2793,55 @@ var Drawer = ({
|
|
|
2340
2793
|
}
|
|
2341
2794
|
);
|
|
2342
2795
|
Drawer.displayName = "Drawer";
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
}
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2796
|
+
function DrawerTrigger({
|
|
2797
|
+
...props
|
|
2798
|
+
}) {
|
|
2799
|
+
return /* @__PURE__ */ jsx(Drawer$1.Trigger, { ...props });
|
|
2800
|
+
}
|
|
2801
|
+
DrawerTrigger.displayName = "DrawerTrigger";
|
|
2802
|
+
function DrawerPortal({
|
|
2803
|
+
...props
|
|
2804
|
+
}) {
|
|
2805
|
+
return /* @__PURE__ */ jsx(Drawer$1.Portal, { ...props });
|
|
2806
|
+
}
|
|
2807
|
+
DrawerPortal.displayName = "DrawerPortal";
|
|
2808
|
+
function DrawerClose({
|
|
2809
|
+
...props
|
|
2810
|
+
}) {
|
|
2811
|
+
return /* @__PURE__ */ jsx(Drawer$1.Close, { ...props });
|
|
2812
|
+
}
|
|
2813
|
+
DrawerClose.displayName = "DrawerClose";
|
|
2814
|
+
var DrawerOverlay = React11.forwardRef(
|
|
2815
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2816
|
+
Drawer$1.Overlay,
|
|
2359
2817
|
{
|
|
2360
2818
|
ref,
|
|
2361
|
-
className: cn(
|
|
2362
|
-
|
|
2363
|
-
className
|
|
2364
|
-
),
|
|
2365
|
-
...props,
|
|
2366
|
-
children: [
|
|
2367
|
-
/* @__PURE__ */ jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
2368
|
-
children
|
|
2369
|
-
]
|
|
2819
|
+
className: cn("fixed inset-0 z-50 bg-black/80", className),
|
|
2820
|
+
...props
|
|
2370
2821
|
}
|
|
2371
2822
|
)
|
|
2372
|
-
|
|
2823
|
+
);
|
|
2824
|
+
DrawerOverlay.displayName = "DrawerOverlay";
|
|
2825
|
+
var DrawerContent = React11.forwardRef(
|
|
2826
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DrawerPortal, { children: [
|
|
2827
|
+
/* @__PURE__ */ jsx(DrawerOverlay, {}),
|
|
2828
|
+
/* @__PURE__ */ jsxs(
|
|
2829
|
+
Drawer$1.Content,
|
|
2830
|
+
{
|
|
2831
|
+
ref,
|
|
2832
|
+
className: cn(
|
|
2833
|
+
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
|
2834
|
+
className
|
|
2835
|
+
),
|
|
2836
|
+
...props,
|
|
2837
|
+
children: [
|
|
2838
|
+
/* @__PURE__ */ jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
2839
|
+
children
|
|
2840
|
+
]
|
|
2841
|
+
}
|
|
2842
|
+
)
|
|
2843
|
+
] })
|
|
2844
|
+
);
|
|
2373
2845
|
DrawerContent.displayName = "DrawerContent";
|
|
2374
2846
|
var DrawerHeader = ({
|
|
2375
2847
|
className,
|
|
@@ -2393,18 +2865,20 @@ var DrawerFooter = ({
|
|
|
2393
2865
|
}
|
|
2394
2866
|
);
|
|
2395
2867
|
DrawerFooter.displayName = "DrawerFooter";
|
|
2396
|
-
var DrawerTitle = React11.forwardRef(
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2868
|
+
var DrawerTitle = React11.forwardRef(
|
|
2869
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2870
|
+
Drawer$1.Title,
|
|
2871
|
+
{
|
|
2872
|
+
ref,
|
|
2873
|
+
className: cn(
|
|
2874
|
+
"text-lg font-semibold leading-none tracking-tight",
|
|
2875
|
+
className
|
|
2876
|
+
),
|
|
2877
|
+
...props
|
|
2878
|
+
}
|
|
2879
|
+
)
|
|
2880
|
+
);
|
|
2881
|
+
DrawerTitle.displayName = "DrawerTitle";
|
|
2408
2882
|
var DrawerDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2409
2883
|
Drawer$1.Description,
|
|
2410
2884
|
{
|
|
@@ -2413,7 +2887,7 @@ var DrawerDescription = React11.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2413
2887
|
...props
|
|
2414
2888
|
}
|
|
2415
2889
|
));
|
|
2416
|
-
DrawerDescription.displayName =
|
|
2890
|
+
DrawerDescription.displayName = "DrawerDescription";
|
|
2417
2891
|
var Dropdown = React11.forwardRef(function Dropdown2({ open, isFiltered = false, className, ...props }, ref) {
|
|
2418
2892
|
return /* @__PURE__ */ jsx(
|
|
2419
2893
|
Button,
|
|
@@ -4315,6 +4789,6 @@ var ToggleGroupItem = React11.forwardRef(({ className, children, variant, size,
|
|
|
4315
4789
|
});
|
|
4316
4790
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
4317
4791
|
|
|
4318
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppChromeBrand, AppChromeHeader, AppChromeSidebar, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartCard, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Dropdown, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label3 as Label, ListingPagination, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup4 as RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, SearchableSelect, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Toaster as SonnerToaster, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster2 as Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buildRangeLabel, buildVisiblePages, buttonVariants, cn, inputVariants, navigationMenuTriggerStyle, toast, toggleVariants, useFormField, useIsMobile, useSidebar, useToast };
|
|
4792
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppChromeBrand, AppChromeHeader, AppChromeSidebar, AspectRatio, Aurora, AuthBanner, AuthBrand, AuthCard, AuthCardDescription, AuthCardHeader, AuthCardTitle, AuthFieldError, AuthFooter, AuthFooterLink, AuthShell, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartCard, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Dropdown, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmailInput, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label3 as Label, ListingPagination, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup4 as RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, SearchableSelect, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Toaster as SonnerToaster, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster2 as Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, authBannerVariants, badgeVariants, buildRangeLabel, buildVisiblePages, buttonVariants, cn, inputVariants, navigationMenuTriggerStyle, toast, toggleVariants, useFormField, useIsMobile, useSidebar, useToast };
|
|
4319
4793
|
//# sourceMappingURL=index.js.map
|
|
4320
4794
|
//# sourceMappingURL=index.js.map
|