@alquimia-ai/ui 1.2.3 → 1.3.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/components/atoms/index.d.mts +4 -1
- package/dist/components/atoms/index.d.ts +4 -1
- package/dist/components/atoms/index.js +39 -17
- package/dist/components/atoms/index.js.map +1 -1
- package/dist/components/atoms/index.mjs +35 -13
- package/dist/components/atoms/index.mjs.map +1 -1
- package/dist/components/hooks/index.js +41 -32
- package/dist/components/hooks/index.js.map +1 -1
- package/dist/components/hooks/index.mjs +42 -33
- package/dist/components/hooks/index.mjs.map +1 -1
- package/dist/components/index.d.mts +2 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +39 -17
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +35 -13
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/molecules/documents/index.js +82 -52
- package/dist/components/molecules/documents/index.js.map +1 -1
- package/dist/components/molecules/documents/index.mjs +67 -37
- package/dist/components/molecules/documents/index.mjs.map +1 -1
- package/dist/components/molecules/index.js +186 -156
- package/dist/components/molecules/index.js.map +1 -1
- package/dist/components/molecules/index.mjs +179 -149
- package/dist/components/molecules/index.mjs.map +1 -1
- package/dist/components/molecules/viewers/index.js +31 -10
- package/dist/components/molecules/viewers/index.js.map +1 -1
- package/dist/components/molecules/viewers/index.mjs +30 -9
- package/dist/components/molecules/viewers/index.mjs.map +1 -1
- package/dist/components/organisms/index.d.mts +3 -1
- package/dist/components/organisms/index.d.ts +3 -1
- package/dist/components/organisms/index.js +228 -196
- package/dist/components/organisms/index.js.map +1 -1
- package/dist/components/organisms/index.mjs +217 -185
- package/dist/components/organisms/index.mjs.map +1 -1
- package/dist/components/templates/cards/index.js +57 -36
- package/dist/components/templates/cards/index.js.map +1 -1
- package/dist/components/templates/cards/index.mjs +45 -24
- package/dist/components/templates/cards/index.mjs.map +1 -1
- package/dist/components/templates/index.js +57 -36
- package/dist/components/templates/index.js.map +1 -1
- package/dist/components/templates/index.mjs +45 -24
- package/dist/components/templates/index.mjs.map +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +283 -250
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +262 -229
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +137 -0
- package/dist/types/index.d.mts +12 -1
- package/dist/types/index.d.ts +12 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/index.mjs.map +1 -1
- package/package.json +21 -3
|
@@ -1353,17 +1353,38 @@ var Loader = React22.forwardRef(
|
|
|
1353
1353
|
);
|
|
1354
1354
|
Loader.displayName = "Loader";
|
|
1355
1355
|
|
|
1356
|
-
// src/components/
|
|
1356
|
+
// src/components/atoms/ui/separator.tsx
|
|
1357
1357
|
import * as React23 from "react";
|
|
1358
|
+
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
1359
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1360
|
+
var Separator2 = React23.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
1361
|
+
SeparatorPrimitive.Root,
|
|
1362
|
+
{
|
|
1363
|
+
ref,
|
|
1364
|
+
decorative,
|
|
1365
|
+
orientation,
|
|
1366
|
+
className: cn(
|
|
1367
|
+
"shrink-0 bg-border",
|
|
1368
|
+
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
1369
|
+
className,
|
|
1370
|
+
"alq--separator"
|
|
1371
|
+
),
|
|
1372
|
+
...props
|
|
1373
|
+
}
|
|
1374
|
+
));
|
|
1375
|
+
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
1376
|
+
|
|
1377
|
+
// src/components/hooks/use-toast.ts
|
|
1378
|
+
import * as React24 from "react";
|
|
1358
1379
|
|
|
1359
1380
|
// src/components/atoms/ui/toaster.tsx
|
|
1360
|
-
import { jsx as
|
|
1381
|
+
import { jsx as jsx32, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1361
1382
|
|
|
1362
1383
|
// src/components/atoms/ui/think-indicator.tsx
|
|
1363
|
-
import * as
|
|
1384
|
+
import * as React25 from "react";
|
|
1364
1385
|
import { useState as useState2, useEffect as useEffect2 } from "react";
|
|
1365
1386
|
import { cva as cva8 } from "class-variance-authority";
|
|
1366
|
-
import { jsx as
|
|
1387
|
+
import { jsx as jsx33, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1367
1388
|
var thinkIndicatorVariants = cva8(
|
|
1368
1389
|
"flex items-center gap-3",
|
|
1369
1390
|
{
|
|
@@ -1385,7 +1406,7 @@ var thinkIndicatorVariants = cva8(
|
|
|
1385
1406
|
}
|
|
1386
1407
|
}
|
|
1387
1408
|
);
|
|
1388
|
-
var ThinkIndicator =
|
|
1409
|
+
var ThinkIndicator = React25.forwardRef(
|
|
1389
1410
|
({
|
|
1390
1411
|
className,
|
|
1391
1412
|
variant,
|
|
@@ -1423,7 +1444,7 @@ var ThinkIndicator = React24.forwardRef(
|
|
|
1423
1444
|
className: cn(thinkIndicatorVariants({ variant, size }), className, "alq--think-indicator"),
|
|
1424
1445
|
...props,
|
|
1425
1446
|
children: [
|
|
1426
|
-
loader || /* @__PURE__ */
|
|
1447
|
+
loader || /* @__PURE__ */ jsx33(
|
|
1427
1448
|
Loader,
|
|
1428
1449
|
{
|
|
1429
1450
|
className: cn(
|
|
@@ -1431,7 +1452,7 @@ var ThinkIndicator = React24.forwardRef(
|
|
|
1431
1452
|
)
|
|
1432
1453
|
}
|
|
1433
1454
|
),
|
|
1434
|
-
/* @__PURE__ */
|
|
1455
|
+
/* @__PURE__ */ jsx33(
|
|
1435
1456
|
"div",
|
|
1436
1457
|
{
|
|
1437
1458
|
className: cn(
|
|
@@ -1450,16 +1471,16 @@ var ThinkIndicator = React24.forwardRef(
|
|
|
1450
1471
|
ThinkIndicator.displayName = "ThinkIndicator";
|
|
1451
1472
|
|
|
1452
1473
|
// src/components/templates/cards/with-image-heading-description.tsx
|
|
1453
|
-
import { jsx as
|
|
1474
|
+
import { jsx as jsx34, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1454
1475
|
var CardWithImageHeadingDescriptionVertical = (props) => {
|
|
1455
1476
|
const { showBorder, image, heading, description } = props;
|
|
1456
1477
|
return /* @__PURE__ */ jsxs11(Card, { className: cn("w-[360px]", !showBorder && "border-none shadow-none"), children: [
|
|
1457
1478
|
image,
|
|
1458
1479
|
/* @__PURE__ */ jsxs11(CardHeader, { children: [
|
|
1459
|
-
/* @__PURE__ */
|
|
1460
|
-
/* @__PURE__ */
|
|
1480
|
+
/* @__PURE__ */ jsx34(CardTitle, { children: heading }),
|
|
1481
|
+
/* @__PURE__ */ jsx34(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
|
|
1461
1482
|
] }),
|
|
1462
|
-
/* @__PURE__ */
|
|
1483
|
+
/* @__PURE__ */ jsx34(CardContent, {})
|
|
1463
1484
|
] });
|
|
1464
1485
|
};
|
|
1465
1486
|
var CardImageWithHeadingAndDescriptionHorizontal = (props) => {
|
|
@@ -1474,24 +1495,24 @@ var CardImageWithHeadingAndDescriptionHorizontal = (props) => {
|
|
|
1474
1495
|
children: [
|
|
1475
1496
|
image,
|
|
1476
1497
|
/* @__PURE__ */ jsxs11(CardHeader, { children: [
|
|
1477
|
-
/* @__PURE__ */
|
|
1478
|
-
/* @__PURE__ */
|
|
1498
|
+
/* @__PURE__ */ jsx34(CardTitle, { children: heading }),
|
|
1499
|
+
/* @__PURE__ */ jsx34(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
|
|
1479
1500
|
] }),
|
|
1480
|
-
/* @__PURE__ */
|
|
1501
|
+
/* @__PURE__ */ jsx34(CardContent, {})
|
|
1481
1502
|
]
|
|
1482
1503
|
}
|
|
1483
1504
|
);
|
|
1484
1505
|
};
|
|
1485
1506
|
|
|
1486
1507
|
// src/components/templates/cards/with-image-heading-description-avatar.tsx
|
|
1487
|
-
import { jsx as
|
|
1508
|
+
import { jsx as jsx35, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1488
1509
|
var AvatarInfo = (props) => {
|
|
1489
1510
|
const { userName, email, avatarImage } = props;
|
|
1490
1511
|
return /* @__PURE__ */ jsxs12("div", { className: "flex space-x-2 items-center", children: [
|
|
1491
|
-
/* @__PURE__ */
|
|
1512
|
+
/* @__PURE__ */ jsx35(Avatar, { className: "w-16 h-16", children: /* @__PURE__ */ jsx35(AvatarImage, { src: avatarImage }) }),
|
|
1492
1513
|
/* @__PURE__ */ jsxs12("div", { children: [
|
|
1493
|
-
/* @__PURE__ */
|
|
1494
|
-
/* @__PURE__ */
|
|
1514
|
+
/* @__PURE__ */ jsx35(Typography, { typeStyle: "small", className: "font-semibold", children: userName }),
|
|
1515
|
+
/* @__PURE__ */ jsx35(Typography, { typeStyle: "tiny", className: "text-font-weak-color", children: email })
|
|
1495
1516
|
] })
|
|
1496
1517
|
] });
|
|
1497
1518
|
};
|
|
@@ -1500,10 +1521,10 @@ var CardWithImageHeadingDescriptionAvatarVertical = (props) => {
|
|
|
1500
1521
|
return /* @__PURE__ */ jsxs12(Card, { className: cn("w-[360px]", !showBorder && "border-none shadow-none"), children: [
|
|
1501
1522
|
image,
|
|
1502
1523
|
/* @__PURE__ */ jsxs12(CardHeader, { children: [
|
|
1503
|
-
/* @__PURE__ */
|
|
1504
|
-
/* @__PURE__ */
|
|
1524
|
+
/* @__PURE__ */ jsx35(CardTitle, { children: heading }),
|
|
1525
|
+
/* @__PURE__ */ jsx35(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
|
|
1505
1526
|
] }),
|
|
1506
|
-
/* @__PURE__ */
|
|
1527
|
+
/* @__PURE__ */ jsx35(CardContent, { children: /* @__PURE__ */ jsx35(AvatarInfo, { ...props }) })
|
|
1507
1528
|
] });
|
|
1508
1529
|
};
|
|
1509
1530
|
var CardImageWithHeadingAndDescriptionAvatarHorizontal = (props) => {
|
|
@@ -1519,10 +1540,10 @@ var CardImageWithHeadingAndDescriptionAvatarHorizontal = (props) => {
|
|
|
1519
1540
|
image,
|
|
1520
1541
|
/* @__PURE__ */ jsxs12("div", { children: [
|
|
1521
1542
|
/* @__PURE__ */ jsxs12(CardHeader, { children: [
|
|
1522
|
-
/* @__PURE__ */
|
|
1523
|
-
/* @__PURE__ */
|
|
1543
|
+
/* @__PURE__ */ jsx35(CardTitle, { children: heading }),
|
|
1544
|
+
/* @__PURE__ */ jsx35(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
|
|
1524
1545
|
] }),
|
|
1525
|
-
/* @__PURE__ */
|
|
1546
|
+
/* @__PURE__ */ jsx35(CardContent, { children: /* @__PURE__ */ jsx35(AvatarInfo, { ...props }) })
|
|
1526
1547
|
] })
|
|
1527
1548
|
]
|
|
1528
1549
|
}
|