@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
|
@@ -1299,17 +1299,38 @@ var Loader = React22.forwardRef(
|
|
|
1299
1299
|
);
|
|
1300
1300
|
Loader.displayName = "Loader";
|
|
1301
1301
|
|
|
1302
|
-
// src/components/
|
|
1302
|
+
// src/components/atoms/ui/separator.tsx
|
|
1303
1303
|
import * as React23 from "react";
|
|
1304
|
+
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
1305
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1306
|
+
var Separator2 = React23.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
1307
|
+
SeparatorPrimitive.Root,
|
|
1308
|
+
{
|
|
1309
|
+
ref,
|
|
1310
|
+
decorative,
|
|
1311
|
+
orientation,
|
|
1312
|
+
className: cn(
|
|
1313
|
+
"shrink-0 bg-border",
|
|
1314
|
+
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
1315
|
+
className,
|
|
1316
|
+
"alq--separator"
|
|
1317
|
+
),
|
|
1318
|
+
...props
|
|
1319
|
+
}
|
|
1320
|
+
));
|
|
1321
|
+
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
1322
|
+
|
|
1323
|
+
// src/components/hooks/use-toast.ts
|
|
1324
|
+
import * as React24 from "react";
|
|
1304
1325
|
|
|
1305
1326
|
// src/components/atoms/ui/toaster.tsx
|
|
1306
|
-
import { jsx as
|
|
1327
|
+
import { jsx as jsx29, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1307
1328
|
|
|
1308
1329
|
// src/components/atoms/ui/think-indicator.tsx
|
|
1309
|
-
import * as
|
|
1330
|
+
import * as React25 from "react";
|
|
1310
1331
|
import { useState as useState2, useEffect as useEffect2 } from "react";
|
|
1311
1332
|
import { cva as cva8 } from "class-variance-authority";
|
|
1312
|
-
import { jsx as
|
|
1333
|
+
import { jsx as jsx30, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1313
1334
|
var thinkIndicatorVariants = cva8(
|
|
1314
1335
|
"flex items-center gap-3",
|
|
1315
1336
|
{
|
|
@@ -1331,7 +1352,7 @@ var thinkIndicatorVariants = cva8(
|
|
|
1331
1352
|
}
|
|
1332
1353
|
}
|
|
1333
1354
|
);
|
|
1334
|
-
var ThinkIndicator =
|
|
1355
|
+
var ThinkIndicator = React25.forwardRef(
|
|
1335
1356
|
({
|
|
1336
1357
|
className,
|
|
1337
1358
|
variant,
|
|
@@ -1369,7 +1390,7 @@ var ThinkIndicator = React24.forwardRef(
|
|
|
1369
1390
|
className: cn(thinkIndicatorVariants({ variant, size }), className, "alq--think-indicator"),
|
|
1370
1391
|
...props,
|
|
1371
1392
|
children: [
|
|
1372
|
-
loader || /* @__PURE__ */
|
|
1393
|
+
loader || /* @__PURE__ */ jsx30(
|
|
1373
1394
|
Loader,
|
|
1374
1395
|
{
|
|
1375
1396
|
className: cn(
|
|
@@ -1377,7 +1398,7 @@ var ThinkIndicator = React24.forwardRef(
|
|
|
1377
1398
|
)
|
|
1378
1399
|
}
|
|
1379
1400
|
),
|
|
1380
|
-
/* @__PURE__ */
|
|
1401
|
+
/* @__PURE__ */ jsx30(
|
|
1381
1402
|
"div",
|
|
1382
1403
|
{
|
|
1383
1404
|
className: cn(
|
|
@@ -1396,16 +1417,16 @@ var ThinkIndicator = React24.forwardRef(
|
|
|
1396
1417
|
ThinkIndicator.displayName = "ThinkIndicator";
|
|
1397
1418
|
|
|
1398
1419
|
// src/components/templates/cards/with-image-heading-description.tsx
|
|
1399
|
-
import { jsx as
|
|
1420
|
+
import { jsx as jsx31, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1400
1421
|
var CardWithImageHeadingDescriptionVertical = (props) => {
|
|
1401
1422
|
const { showBorder, image, heading, description } = props;
|
|
1402
1423
|
return /* @__PURE__ */ jsxs11(Card, { className: cn("w-[360px]", !showBorder && "border-none shadow-none"), children: [
|
|
1403
1424
|
image,
|
|
1404
1425
|
/* @__PURE__ */ jsxs11(CardHeader, { children: [
|
|
1405
|
-
/* @__PURE__ */
|
|
1406
|
-
/* @__PURE__ */
|
|
1426
|
+
/* @__PURE__ */ jsx31(CardTitle, { children: heading }),
|
|
1427
|
+
/* @__PURE__ */ jsx31(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
|
|
1407
1428
|
] }),
|
|
1408
|
-
/* @__PURE__ */
|
|
1429
|
+
/* @__PURE__ */ jsx31(CardContent, {})
|
|
1409
1430
|
] });
|
|
1410
1431
|
};
|
|
1411
1432
|
var CardImageWithHeadingAndDescriptionHorizontal = (props) => {
|
|
@@ -1420,24 +1441,24 @@ var CardImageWithHeadingAndDescriptionHorizontal = (props) => {
|
|
|
1420
1441
|
children: [
|
|
1421
1442
|
image,
|
|
1422
1443
|
/* @__PURE__ */ jsxs11(CardHeader, { children: [
|
|
1423
|
-
/* @__PURE__ */
|
|
1424
|
-
/* @__PURE__ */
|
|
1444
|
+
/* @__PURE__ */ jsx31(CardTitle, { children: heading }),
|
|
1445
|
+
/* @__PURE__ */ jsx31(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
|
|
1425
1446
|
] }),
|
|
1426
|
-
/* @__PURE__ */
|
|
1447
|
+
/* @__PURE__ */ jsx31(CardContent, {})
|
|
1427
1448
|
]
|
|
1428
1449
|
}
|
|
1429
1450
|
);
|
|
1430
1451
|
};
|
|
1431
1452
|
|
|
1432
1453
|
// src/components/templates/cards/with-image-heading-description-avatar.tsx
|
|
1433
|
-
import { jsx as
|
|
1454
|
+
import { jsx as jsx32, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1434
1455
|
var AvatarInfo = (props) => {
|
|
1435
1456
|
const { userName, email, avatarImage } = props;
|
|
1436
1457
|
return /* @__PURE__ */ jsxs12("div", { className: "flex space-x-2 items-center", children: [
|
|
1437
|
-
/* @__PURE__ */
|
|
1458
|
+
/* @__PURE__ */ jsx32(Avatar, { className: "w-16 h-16", children: /* @__PURE__ */ jsx32(AvatarImage, { src: avatarImage }) }),
|
|
1438
1459
|
/* @__PURE__ */ jsxs12("div", { children: [
|
|
1439
|
-
/* @__PURE__ */
|
|
1440
|
-
/* @__PURE__ */
|
|
1460
|
+
/* @__PURE__ */ jsx32(Typography, { typeStyle: "small", className: "font-semibold", children: userName }),
|
|
1461
|
+
/* @__PURE__ */ jsx32(Typography, { typeStyle: "tiny", className: "text-font-weak-color", children: email })
|
|
1441
1462
|
] })
|
|
1442
1463
|
] });
|
|
1443
1464
|
};
|
|
@@ -1446,10 +1467,10 @@ var CardWithImageHeadingDescriptionAvatarVertical = (props) => {
|
|
|
1446
1467
|
return /* @__PURE__ */ jsxs12(Card, { className: cn("w-[360px]", !showBorder && "border-none shadow-none"), children: [
|
|
1447
1468
|
image,
|
|
1448
1469
|
/* @__PURE__ */ jsxs12(CardHeader, { children: [
|
|
1449
|
-
/* @__PURE__ */
|
|
1450
|
-
/* @__PURE__ */
|
|
1470
|
+
/* @__PURE__ */ jsx32(CardTitle, { children: heading }),
|
|
1471
|
+
/* @__PURE__ */ jsx32(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
|
|
1451
1472
|
] }),
|
|
1452
|
-
/* @__PURE__ */
|
|
1473
|
+
/* @__PURE__ */ jsx32(CardContent, { children: /* @__PURE__ */ jsx32(AvatarInfo, { ...props }) })
|
|
1453
1474
|
] });
|
|
1454
1475
|
};
|
|
1455
1476
|
var CardImageWithHeadingAndDescriptionAvatarHorizontal = (props) => {
|
|
@@ -1465,10 +1486,10 @@ var CardImageWithHeadingAndDescriptionAvatarHorizontal = (props) => {
|
|
|
1465
1486
|
image,
|
|
1466
1487
|
/* @__PURE__ */ jsxs12("div", { children: [
|
|
1467
1488
|
/* @__PURE__ */ jsxs12(CardHeader, { children: [
|
|
1468
|
-
/* @__PURE__ */
|
|
1469
|
-
/* @__PURE__ */
|
|
1489
|
+
/* @__PURE__ */ jsx32(CardTitle, { children: heading }),
|
|
1490
|
+
/* @__PURE__ */ jsx32(Typography, { typeStyle: "small", className: "text-font-weak-color", children: description })
|
|
1470
1491
|
] }),
|
|
1471
|
-
/* @__PURE__ */
|
|
1492
|
+
/* @__PURE__ */ jsx32(CardContent, { children: /* @__PURE__ */ jsx32(AvatarInfo, { ...props }) })
|
|
1472
1493
|
] })
|
|
1473
1494
|
]
|
|
1474
1495
|
}
|