@julseb-lib/react 1.1.10 → 1.1.12
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/{Image-SUXJNFL6.js → Image-PU6L33RI.js} +2 -2
- package/dist/{chunk-BGER7RTC.js → chunk-YKOO6XXS.js} +214 -111
- package/dist/chunk-YKOO6XXS.js.map +1 -0
- package/dist/index.cjs +250 -185
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16036 -16091
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-BGER7RTC.js.map +0 -1
- /package/dist/{Image-SUXJNFL6.js.map → Image-PU6L33RI.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Image
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YKOO6XXS.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/components/LazyImage/Image.tsx
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -11,4 +11,4 @@ var Image_default = Image2;
|
|
|
11
11
|
export {
|
|
12
12
|
Image_default as default
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=Image-
|
|
14
|
+
//# sourceMappingURL=Image-PU6L33RI.js.map
|
|
@@ -1295,7 +1295,65 @@ import "react";
|
|
|
1295
1295
|
// src/lib/components/Table/Table.tsx
|
|
1296
1296
|
import "react";
|
|
1297
1297
|
import { uuid as uuid2 } from "@julseb-lib/utils";
|
|
1298
|
-
|
|
1298
|
+
|
|
1299
|
+
// src/lib/components/Flexbox/Flexbox.tsx
|
|
1300
|
+
import "react";
|
|
1301
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
1302
|
+
var Flexbox = ({
|
|
1303
|
+
className,
|
|
1304
|
+
element = "div",
|
|
1305
|
+
ref,
|
|
1306
|
+
children,
|
|
1307
|
+
inline,
|
|
1308
|
+
flexDirection = "row",
|
|
1309
|
+
flexWrap = "nowrap",
|
|
1310
|
+
justifyContent = "start",
|
|
1311
|
+
alignItems = "stretch",
|
|
1312
|
+
justifyItems = "stretch",
|
|
1313
|
+
alignContent = "normal",
|
|
1314
|
+
gap = "0px",
|
|
1315
|
+
colGap = "0px",
|
|
1316
|
+
rowGap = "0px",
|
|
1317
|
+
...rest
|
|
1318
|
+
}) => {
|
|
1319
|
+
const Element = element;
|
|
1320
|
+
return /* @__PURE__ */ jsx2(
|
|
1321
|
+
Element,
|
|
1322
|
+
{
|
|
1323
|
+
ref,
|
|
1324
|
+
className: clsx(
|
|
1325
|
+
inline ? "inline-flex" : "flex",
|
|
1326
|
+
genFlexWrap[flexWrap],
|
|
1327
|
+
genFlexDirection[flexDirection],
|
|
1328
|
+
genJustifyContent[justifyContent],
|
|
1329
|
+
genAlignItems[alignItems],
|
|
1330
|
+
genJustifyItems[justifyItems],
|
|
1331
|
+
genAlignContent[alignContent],
|
|
1332
|
+
genGap[gap],
|
|
1333
|
+
genColGap[colGap],
|
|
1334
|
+
genRowGap[rowGap],
|
|
1335
|
+
"flexbox",
|
|
1336
|
+
className
|
|
1337
|
+
),
|
|
1338
|
+
...rest,
|
|
1339
|
+
children
|
|
1340
|
+
}
|
|
1341
|
+
);
|
|
1342
|
+
};
|
|
1343
|
+
var genFlexDirection = {
|
|
1344
|
+
row: "flex-row",
|
|
1345
|
+
"row-reverse": "flex-row-reverse",
|
|
1346
|
+
col: "flex-col",
|
|
1347
|
+
"col-reverse": "flex-col-reverse"
|
|
1348
|
+
};
|
|
1349
|
+
var genFlexWrap = {
|
|
1350
|
+
nowrap: "flex-nowrap",
|
|
1351
|
+
wrap: "flex-wrap",
|
|
1352
|
+
"wrap-reverse": "flex-wrap-reverse"
|
|
1353
|
+
};
|
|
1354
|
+
|
|
1355
|
+
// src/lib/components/Table/Table.tsx
|
|
1356
|
+
import { Fragment as Fragment2, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
1299
1357
|
var Table = ({
|
|
1300
1358
|
className,
|
|
1301
1359
|
ref,
|
|
@@ -1310,72 +1368,114 @@ var Table = ({
|
|
|
1310
1368
|
data,
|
|
1311
1369
|
...rest
|
|
1312
1370
|
}) => {
|
|
1313
|
-
return /* @__PURE__ */ jsxs2(
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
"
|
|
1328
|
-
"
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
{
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1371
|
+
return /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
1372
|
+
/* @__PURE__ */ jsxs2(
|
|
1373
|
+
"table",
|
|
1374
|
+
{
|
|
1375
|
+
ref,
|
|
1376
|
+
className: clsx(
|
|
1377
|
+
"bg-background w-full h-px border-collapse border-spacing-0 table-fixed",
|
|
1378
|
+
TEXT_BASE_CLASSES,
|
|
1379
|
+
data ? "hidden! md:table!" : "table",
|
|
1380
|
+
"text-(length:--font-size-small)",
|
|
1381
|
+
genLinkColor["primary"],
|
|
1382
|
+
genButtonColor["primary"],
|
|
1383
|
+
"[&_thead]:bg-primary-500 [&_thead]:text-white [&_thead]:font-bold",
|
|
1384
|
+
"[&_td]:overflow-x-scroll [&_td]:px-2 [&_td]:py-1 [&_th]:overflow-x-scroll [&_th]:px-2 [&_th]:py-1",
|
|
1385
|
+
"md:[&_td]:table-cell md:[&_th]:table-cell [&_td]:block [&_th]:block",
|
|
1386
|
+
variant === "bordered" && [
|
|
1387
|
+
"border border-gray-200",
|
|
1388
|
+
"[&_thead_th:not(:last-child)]:border-r [&_thead_th:not(:last-child)]:border-background [&_td]:border [&_td]:border-gray-200"
|
|
1389
|
+
],
|
|
1390
|
+
variant === "stripped" && [
|
|
1391
|
+
"[&_tbody_tr:nth-child(even)]:bg-gray-100"
|
|
1392
|
+
],
|
|
1393
|
+
variant === "border-bottom" && [
|
|
1394
|
+
"[&_tbody_tr]:border-b [&_tbody_tr]:border-b-gray-200"
|
|
1395
|
+
],
|
|
1396
|
+
genVAlign[vAlign],
|
|
1397
|
+
genTextAlign[textAlign],
|
|
1398
|
+
"table",
|
|
1399
|
+
className
|
|
1400
|
+
),
|
|
1401
|
+
...rest,
|
|
1402
|
+
children: [
|
|
1403
|
+
headers && /* @__PURE__ */ jsx3("thead", { className: clsx(genVAlign[vAlign]), children: /* @__PURE__ */ jsx3("tr", { className: clsx(genVAlign[vAlign]), children: headers.map((header) => /* @__PURE__ */ jsx3(
|
|
1404
|
+
"th",
|
|
1405
|
+
{
|
|
1406
|
+
className: clsx(
|
|
1407
|
+
genVAlign[vAlign],
|
|
1408
|
+
"no-scrollbar"
|
|
1409
|
+
),
|
|
1410
|
+
children: linkify && typeof header === "string" ? linkifyText(header, blank) : header
|
|
1411
|
+
},
|
|
1412
|
+
uuid2()
|
|
1413
|
+
)) }) }),
|
|
1414
|
+
data ? /* @__PURE__ */ jsx3("tbody", { className: clsx(genVAlign[vAlign]), children: data.map((row) => /* @__PURE__ */ jsx3("tr", { children: row.map((col) => /* @__PURE__ */ jsx3("td", { className: "no-scrollbar", children: linkify && typeof col === "string" ? linkifyText(col, blank) : col }, uuid2())) }, uuid2())) }) : /* @__PURE__ */ jsx3("tbody", { children }),
|
|
1415
|
+
footers && /* @__PURE__ */ jsx3("tfoot", { children: /* @__PURE__ */ jsx3("tr", { children: footers.map((footer) => /* @__PURE__ */ jsx3("td", { className: "no-scrollbar", children: linkify && typeof footer === "string" ? linkifyText(footer, blank) : footer }, uuid2())) }) })
|
|
1416
|
+
]
|
|
1417
|
+
}
|
|
1418
|
+
),
|
|
1419
|
+
data && /* @__PURE__ */ jsx3(Flexbox, { className: "md:hidden", flexDirection: "col", gap: "md", children: data.map((row, i) => /* @__PURE__ */ jsxs2(
|
|
1420
|
+
Flexbox,
|
|
1421
|
+
{
|
|
1422
|
+
flexDirection: "col",
|
|
1423
|
+
gap: "xs",
|
|
1424
|
+
className: clsx("border border-gray-200"),
|
|
1425
|
+
children: [
|
|
1426
|
+
/* @__PURE__ */ jsx3(
|
|
1427
|
+
Text,
|
|
1428
|
+
{
|
|
1429
|
+
tag: "small",
|
|
1430
|
+
className: "bg-primary-500 w-full font-bold text-white",
|
|
1431
|
+
children: row[0]
|
|
1432
|
+
}
|
|
1433
|
+
),
|
|
1434
|
+
headers.slice(1).map((header, j) => /* @__PURE__ */ jsxs2(
|
|
1435
|
+
Flexbox,
|
|
1436
|
+
{
|
|
1437
|
+
className: clsx(
|
|
1438
|
+
"flex gap-6 overflow-x-scroll",
|
|
1439
|
+
(variant === "bordered" || variant === "border-bottom") && [
|
|
1440
|
+
"border-b border-b-gray-200"
|
|
1441
|
+
],
|
|
1442
|
+
variant === "stripped" && [
|
|
1443
|
+
j % 2 === 0 && "bg-gray-100"
|
|
1444
|
+
]
|
|
1445
|
+
),
|
|
1446
|
+
gap: "sm",
|
|
1447
|
+
children: [
|
|
1448
|
+
/* @__PURE__ */ jsx3(Text, { tag: "small", children: /* @__PURE__ */ jsx3(Text, { tag: "strong", children: header }) }),
|
|
1449
|
+
/* @__PURE__ */ jsx3(Text, { tag: "small", children: linkifyText(row[j + 1]) })
|
|
1450
|
+
]
|
|
1451
|
+
},
|
|
1452
|
+
j
|
|
1453
|
+
))
|
|
1454
|
+
]
|
|
1455
|
+
},
|
|
1456
|
+
i
|
|
1457
|
+
)) })
|
|
1458
|
+
] });
|
|
1359
1459
|
};
|
|
1360
1460
|
|
|
1361
1461
|
// src/lib/utils/options-markdown.tsx
|
|
1362
|
-
import { jsx as
|
|
1462
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
1363
1463
|
var libMarkdownComponents = {
|
|
1364
|
-
h1: (props) => /* @__PURE__ */
|
|
1365
|
-
h2: (props) => /* @__PURE__ */
|
|
1366
|
-
h3: (props) => /* @__PURE__ */
|
|
1367
|
-
h4: (props) => /* @__PURE__ */
|
|
1368
|
-
h5: (props) => /* @__PURE__ */
|
|
1369
|
-
h6: (props) => /* @__PURE__ */
|
|
1370
|
-
p: (props) => /* @__PURE__ */
|
|
1371
|
-
small: (props) => /* @__PURE__ */
|
|
1372
|
-
strong: (props) => /* @__PURE__ */
|
|
1373
|
-
em: (props) => /* @__PURE__ */
|
|
1374
|
-
blockquote: (props) => /* @__PURE__ */
|
|
1375
|
-
ul: (props) => /* @__PURE__ */
|
|
1376
|
-
ol: (props) => /* @__PURE__ */
|
|
1377
|
-
dl: (props) => /* @__PURE__ */
|
|
1378
|
-
table: (props) => /* @__PURE__ */
|
|
1464
|
+
h1: (props) => /* @__PURE__ */ jsx4(Text, { tag: "h1", ...props }),
|
|
1465
|
+
h2: (props) => /* @__PURE__ */ jsx4(Text, { tag: "h2", ...props }),
|
|
1466
|
+
h3: (props) => /* @__PURE__ */ jsx4(Text, { tag: "h3", ...props }),
|
|
1467
|
+
h4: (props) => /* @__PURE__ */ jsx4(Text, { tag: "h4", ...props }),
|
|
1468
|
+
h5: (props) => /* @__PURE__ */ jsx4(Text, { tag: "h5", ...props }),
|
|
1469
|
+
h6: (props) => /* @__PURE__ */ jsx4(Text, { tag: "h6", ...props }),
|
|
1470
|
+
p: (props) => /* @__PURE__ */ jsx4(Text, { tag: "p", ...props }),
|
|
1471
|
+
small: (props) => /* @__PURE__ */ jsx4(Text, { tag: "small", ...props }),
|
|
1472
|
+
strong: (props) => /* @__PURE__ */ jsx4(Text, { tag: "strong", ...props }),
|
|
1473
|
+
em: (props) => /* @__PURE__ */ jsx4(Text, { tag: "em", ...props }),
|
|
1474
|
+
blockquote: (props) => /* @__PURE__ */ jsx4(Text, { tag: "blockquote", ...props }),
|
|
1475
|
+
ul: (props) => /* @__PURE__ */ jsx4(Text, { tag: "ul", ...props }),
|
|
1476
|
+
ol: (props) => /* @__PURE__ */ jsx4(Text, { tag: "ol", ...props }),
|
|
1477
|
+
dl: (props) => /* @__PURE__ */ jsx4(Text, { tag: "dl", ...props }),
|
|
1478
|
+
table: (props) => /* @__PURE__ */ jsx4(Table, { ...props })
|
|
1379
1479
|
};
|
|
1380
1480
|
var libMarkdownEditorOptions = {
|
|
1381
1481
|
bold: true,
|
|
@@ -1441,6 +1541,8 @@ function disableScroll() {
|
|
|
1441
1541
|
);
|
|
1442
1542
|
document.body.style.overflow = "hidden";
|
|
1443
1543
|
document.body.style.height = "100vh";
|
|
1544
|
+
const scrollPosition = window.scrollY;
|
|
1545
|
+
document.body.style.top = `-${scrollPosition}px`;
|
|
1444
1546
|
}
|
|
1445
1547
|
}
|
|
1446
1548
|
|
|
@@ -1466,7 +1568,7 @@ function scrollToTop() {
|
|
|
1466
1568
|
}
|
|
1467
1569
|
|
|
1468
1570
|
// src/lib/components/Text/templates/H1.tsx
|
|
1469
|
-
import { jsx as
|
|
1571
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
1470
1572
|
var H1 = ({
|
|
1471
1573
|
element = "h1",
|
|
1472
1574
|
className,
|
|
@@ -1478,7 +1580,7 @@ var H1 = ({
|
|
|
1478
1580
|
...rest
|
|
1479
1581
|
}) => {
|
|
1480
1582
|
const Element = element;
|
|
1481
|
-
return /* @__PURE__ */
|
|
1583
|
+
return /* @__PURE__ */ jsx5(
|
|
1482
1584
|
Element,
|
|
1483
1585
|
{
|
|
1484
1586
|
className: clsx(
|
|
@@ -1499,7 +1601,7 @@ var H1 = ({
|
|
|
1499
1601
|
};
|
|
1500
1602
|
|
|
1501
1603
|
// src/lib/components/Text/templates/H2.tsx
|
|
1502
|
-
import { jsx as
|
|
1604
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
1503
1605
|
var H2 = ({
|
|
1504
1606
|
element = "h2",
|
|
1505
1607
|
className,
|
|
@@ -1511,7 +1613,7 @@ var H2 = ({
|
|
|
1511
1613
|
...rest
|
|
1512
1614
|
}) => {
|
|
1513
1615
|
const Element = element;
|
|
1514
|
-
return /* @__PURE__ */
|
|
1616
|
+
return /* @__PURE__ */ jsx6(
|
|
1515
1617
|
Element,
|
|
1516
1618
|
{
|
|
1517
1619
|
className: clsx(
|
|
@@ -1532,7 +1634,7 @@ var H2 = ({
|
|
|
1532
1634
|
};
|
|
1533
1635
|
|
|
1534
1636
|
// src/lib/components/Text/templates/H3.tsx
|
|
1535
|
-
import { jsx as
|
|
1637
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
1536
1638
|
var H3 = ({
|
|
1537
1639
|
element = "h3",
|
|
1538
1640
|
className,
|
|
@@ -1544,7 +1646,7 @@ var H3 = ({
|
|
|
1544
1646
|
...rest
|
|
1545
1647
|
}) => {
|
|
1546
1648
|
const Element = element;
|
|
1547
|
-
return /* @__PURE__ */
|
|
1649
|
+
return /* @__PURE__ */ jsx7(
|
|
1548
1650
|
Element,
|
|
1549
1651
|
{
|
|
1550
1652
|
className: clsx(
|
|
@@ -1565,7 +1667,7 @@ var H3 = ({
|
|
|
1565
1667
|
};
|
|
1566
1668
|
|
|
1567
1669
|
// src/lib/components/Text/templates/H4.tsx
|
|
1568
|
-
import { jsx as
|
|
1670
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
1569
1671
|
var H4 = ({
|
|
1570
1672
|
element = "h4",
|
|
1571
1673
|
className,
|
|
@@ -1577,7 +1679,7 @@ var H4 = ({
|
|
|
1577
1679
|
...rest
|
|
1578
1680
|
}) => {
|
|
1579
1681
|
const Element = element;
|
|
1580
|
-
return /* @__PURE__ */
|
|
1682
|
+
return /* @__PURE__ */ jsx8(
|
|
1581
1683
|
Element,
|
|
1582
1684
|
{
|
|
1583
1685
|
className: clsx(
|
|
@@ -1598,7 +1700,7 @@ var H4 = ({
|
|
|
1598
1700
|
};
|
|
1599
1701
|
|
|
1600
1702
|
// src/lib/components/Text/templates/H5.tsx
|
|
1601
|
-
import { jsx as
|
|
1703
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
1602
1704
|
var H5 = ({
|
|
1603
1705
|
element = "h5",
|
|
1604
1706
|
className,
|
|
@@ -1610,7 +1712,7 @@ var H5 = ({
|
|
|
1610
1712
|
...rest
|
|
1611
1713
|
}) => {
|
|
1612
1714
|
const Element = element;
|
|
1613
|
-
return /* @__PURE__ */
|
|
1715
|
+
return /* @__PURE__ */ jsx9(
|
|
1614
1716
|
Element,
|
|
1615
1717
|
{
|
|
1616
1718
|
className: clsx(
|
|
@@ -1631,7 +1733,7 @@ var H5 = ({
|
|
|
1631
1733
|
};
|
|
1632
1734
|
|
|
1633
1735
|
// src/lib/components/Text/templates/H6.tsx
|
|
1634
|
-
import { jsx as
|
|
1736
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
1635
1737
|
var H6 = ({
|
|
1636
1738
|
element = "h6",
|
|
1637
1739
|
className,
|
|
@@ -1642,7 +1744,7 @@ var H6 = ({
|
|
|
1642
1744
|
...rest
|
|
1643
1745
|
}) => {
|
|
1644
1746
|
const Element = element;
|
|
1645
|
-
return /* @__PURE__ */
|
|
1747
|
+
return /* @__PURE__ */ jsx10(
|
|
1646
1748
|
Element,
|
|
1647
1749
|
{
|
|
1648
1750
|
className: clsx(
|
|
@@ -1663,7 +1765,7 @@ var H6 = ({
|
|
|
1663
1765
|
};
|
|
1664
1766
|
|
|
1665
1767
|
// src/lib/components/Text/templates/P.tsx
|
|
1666
|
-
import { jsx as
|
|
1768
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
1667
1769
|
var P = ({
|
|
1668
1770
|
element = "p",
|
|
1669
1771
|
className,
|
|
@@ -1674,7 +1776,7 @@ var P = ({
|
|
|
1674
1776
|
...rest
|
|
1675
1777
|
}) => {
|
|
1676
1778
|
const Element = element;
|
|
1677
|
-
return /* @__PURE__ */
|
|
1779
|
+
return /* @__PURE__ */ jsx11(
|
|
1678
1780
|
Element,
|
|
1679
1781
|
{
|
|
1680
1782
|
className: clsx(
|
|
@@ -1694,7 +1796,7 @@ var P = ({
|
|
|
1694
1796
|
};
|
|
1695
1797
|
|
|
1696
1798
|
// src/lib/components/Text/templates/Small.tsx
|
|
1697
|
-
import { jsx as
|
|
1799
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1698
1800
|
var Small = ({
|
|
1699
1801
|
element = "small",
|
|
1700
1802
|
className,
|
|
@@ -1705,7 +1807,7 @@ var Small = ({
|
|
|
1705
1807
|
...rest
|
|
1706
1808
|
}) => {
|
|
1707
1809
|
const Element = element;
|
|
1708
|
-
return /* @__PURE__ */
|
|
1810
|
+
return /* @__PURE__ */ jsx12(
|
|
1709
1811
|
Element,
|
|
1710
1812
|
{
|
|
1711
1813
|
className: clsx(
|
|
@@ -1725,7 +1827,7 @@ var Small = ({
|
|
|
1725
1827
|
};
|
|
1726
1828
|
|
|
1727
1829
|
// src/lib/components/Text/templates/Strong.tsx
|
|
1728
|
-
import { jsx as
|
|
1830
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
1729
1831
|
var Strong = ({
|
|
1730
1832
|
element = "strong",
|
|
1731
1833
|
className,
|
|
@@ -1736,7 +1838,7 @@ var Strong = ({
|
|
|
1736
1838
|
...rest
|
|
1737
1839
|
}) => {
|
|
1738
1840
|
const Element = element;
|
|
1739
|
-
return /* @__PURE__ */
|
|
1841
|
+
return /* @__PURE__ */ jsx13(
|
|
1740
1842
|
Element,
|
|
1741
1843
|
{
|
|
1742
1844
|
className: clsx(
|
|
@@ -1756,7 +1858,7 @@ var Strong = ({
|
|
|
1756
1858
|
};
|
|
1757
1859
|
|
|
1758
1860
|
// src/lib/components/Text/templates/Em.tsx
|
|
1759
|
-
import { jsx as
|
|
1861
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1760
1862
|
var Em = ({
|
|
1761
1863
|
element = "em",
|
|
1762
1864
|
className,
|
|
@@ -1767,7 +1869,7 @@ var Em = ({
|
|
|
1767
1869
|
...rest
|
|
1768
1870
|
}) => {
|
|
1769
1871
|
const Element = element;
|
|
1770
|
-
return /* @__PURE__ */
|
|
1872
|
+
return /* @__PURE__ */ jsx14(
|
|
1771
1873
|
Element,
|
|
1772
1874
|
{
|
|
1773
1875
|
className: clsx(
|
|
@@ -1787,7 +1889,7 @@ var Em = ({
|
|
|
1787
1889
|
};
|
|
1788
1890
|
|
|
1789
1891
|
// src/lib/components/Text/templates/Blockquote.tsx
|
|
1790
|
-
import { jsx as
|
|
1892
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1791
1893
|
var Blockquote = ({
|
|
1792
1894
|
element = "blockquote",
|
|
1793
1895
|
className,
|
|
@@ -1798,7 +1900,7 @@ var Blockquote = ({
|
|
|
1798
1900
|
...rest
|
|
1799
1901
|
}) => {
|
|
1800
1902
|
const Element = element;
|
|
1801
|
-
return /* @__PURE__ */
|
|
1903
|
+
return /* @__PURE__ */ jsx15(
|
|
1802
1904
|
Element,
|
|
1803
1905
|
{
|
|
1804
1906
|
className: clsx(
|
|
@@ -1819,7 +1921,7 @@ var Blockquote = ({
|
|
|
1819
1921
|
};
|
|
1820
1922
|
|
|
1821
1923
|
// src/lib/components/Text/templates/Ul.tsx
|
|
1822
|
-
import { jsx as
|
|
1924
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1823
1925
|
var Ul = ({
|
|
1824
1926
|
element = "ul",
|
|
1825
1927
|
className,
|
|
@@ -1830,7 +1932,7 @@ var Ul = ({
|
|
|
1830
1932
|
...rest
|
|
1831
1933
|
}) => {
|
|
1832
1934
|
const Element = element;
|
|
1833
|
-
return /* @__PURE__ */
|
|
1935
|
+
return /* @__PURE__ */ jsx16(
|
|
1834
1936
|
Element,
|
|
1835
1937
|
{
|
|
1836
1938
|
className: clsx(
|
|
@@ -1851,7 +1953,7 @@ var Ul = ({
|
|
|
1851
1953
|
};
|
|
1852
1954
|
|
|
1853
1955
|
// src/lib/components/Text/templates/Ol.tsx
|
|
1854
|
-
import { jsx as
|
|
1956
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1855
1957
|
var Ol = ({
|
|
1856
1958
|
element = "ol",
|
|
1857
1959
|
className,
|
|
@@ -1862,7 +1964,7 @@ var Ol = ({
|
|
|
1862
1964
|
...rest
|
|
1863
1965
|
}) => {
|
|
1864
1966
|
const Element = element;
|
|
1865
|
-
return /* @__PURE__ */
|
|
1967
|
+
return /* @__PURE__ */ jsx17(
|
|
1866
1968
|
Element,
|
|
1867
1969
|
{
|
|
1868
1970
|
className: clsx(
|
|
@@ -1883,7 +1985,7 @@ var Ol = ({
|
|
|
1883
1985
|
};
|
|
1884
1986
|
|
|
1885
1987
|
// src/lib/components/Text/templates/Dl.tsx
|
|
1886
|
-
import { jsx as
|
|
1988
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1887
1989
|
var Dl = ({
|
|
1888
1990
|
element = "dl",
|
|
1889
1991
|
className,
|
|
@@ -1894,7 +1996,7 @@ var Dl = ({
|
|
|
1894
1996
|
...rest
|
|
1895
1997
|
}) => {
|
|
1896
1998
|
const Element = element;
|
|
1897
|
-
return /* @__PURE__ */
|
|
1999
|
+
return /* @__PURE__ */ jsx18(
|
|
1898
2000
|
Element,
|
|
1899
2001
|
{
|
|
1900
2002
|
className: clsx(
|
|
@@ -1916,7 +2018,7 @@ var Dl = ({
|
|
|
1916
2018
|
};
|
|
1917
2019
|
|
|
1918
2020
|
// src/lib/components/Text/Text.tsx
|
|
1919
|
-
import { jsx as
|
|
2021
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1920
2022
|
var TEXT_BASE_CLASSES = clsx(
|
|
1921
2023
|
"font-family-body",
|
|
1922
2024
|
"[&_code]:font-family-code [&_code]:leading-8 [&_code]:p-1 [&_code]:text-primary-500 [&_code]:bg-gray-50 [&_code]:rounded-xs"
|
|
@@ -1924,40 +2026,40 @@ var TEXT_BASE_CLASSES = clsx(
|
|
|
1924
2026
|
var Text = ({ tag = "p", ...rest }) => {
|
|
1925
2027
|
switch (tag) {
|
|
1926
2028
|
case "h1":
|
|
1927
|
-
return /* @__PURE__ */
|
|
2029
|
+
return /* @__PURE__ */ jsx19(H1, { ...rest });
|
|
1928
2030
|
case "h2":
|
|
1929
|
-
return /* @__PURE__ */
|
|
2031
|
+
return /* @__PURE__ */ jsx19(H2, { ...rest });
|
|
1930
2032
|
case "h3":
|
|
1931
|
-
return /* @__PURE__ */
|
|
2033
|
+
return /* @__PURE__ */ jsx19(H3, { ...rest });
|
|
1932
2034
|
case "h4":
|
|
1933
|
-
return /* @__PURE__ */
|
|
2035
|
+
return /* @__PURE__ */ jsx19(H4, { ...rest });
|
|
1934
2036
|
case "h5":
|
|
1935
|
-
return /* @__PURE__ */
|
|
2037
|
+
return /* @__PURE__ */ jsx19(H5, { ...rest });
|
|
1936
2038
|
case "h6":
|
|
1937
|
-
return /* @__PURE__ */
|
|
2039
|
+
return /* @__PURE__ */ jsx19(H6, { ...rest });
|
|
1938
2040
|
case "small":
|
|
1939
|
-
return /* @__PURE__ */
|
|
2041
|
+
return /* @__PURE__ */ jsx19(Small, { ...rest });
|
|
1940
2042
|
case "strong":
|
|
1941
|
-
return /* @__PURE__ */
|
|
2043
|
+
return /* @__PURE__ */ jsx19(Strong, { ...rest });
|
|
1942
2044
|
case "em":
|
|
1943
|
-
return /* @__PURE__ */
|
|
2045
|
+
return /* @__PURE__ */ jsx19(Em, { ...rest });
|
|
1944
2046
|
case "blockquote":
|
|
1945
|
-
return /* @__PURE__ */
|
|
2047
|
+
return /* @__PURE__ */ jsx19(Blockquote, { ...rest });
|
|
1946
2048
|
case "ul":
|
|
1947
|
-
return /* @__PURE__ */
|
|
2049
|
+
return /* @__PURE__ */ jsx19(Ul, { ...rest });
|
|
1948
2050
|
case "ol":
|
|
1949
|
-
return /* @__PURE__ */
|
|
2051
|
+
return /* @__PURE__ */ jsx19(Ol, { ...rest });
|
|
1950
2052
|
case "dl":
|
|
1951
|
-
return /* @__PURE__ */
|
|
2053
|
+
return /* @__PURE__ */ jsx19(Dl, { ...rest });
|
|
1952
2054
|
case "p":
|
|
1953
2055
|
default:
|
|
1954
|
-
return /* @__PURE__ */
|
|
2056
|
+
return /* @__PURE__ */ jsx19(P, { ...rest });
|
|
1955
2057
|
}
|
|
1956
2058
|
};
|
|
1957
2059
|
|
|
1958
2060
|
// src/lib/components/Image/Image.tsx
|
|
1959
2061
|
import "react";
|
|
1960
|
-
import { jsx as
|
|
2062
|
+
import { jsx as jsx20, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1961
2063
|
var Image = ({
|
|
1962
2064
|
className,
|
|
1963
2065
|
ref,
|
|
@@ -1978,7 +2080,7 @@ var Image = ({
|
|
|
1978
2080
|
className
|
|
1979
2081
|
),
|
|
1980
2082
|
children: [
|
|
1981
|
-
/* @__PURE__ */
|
|
2083
|
+
/* @__PURE__ */ jsx20(
|
|
1982
2084
|
"img",
|
|
1983
2085
|
{
|
|
1984
2086
|
className: clsx(
|
|
@@ -1990,7 +2092,7 @@ var Image = ({
|
|
|
1990
2092
|
...rest
|
|
1991
2093
|
}
|
|
1992
2094
|
),
|
|
1993
|
-
/* @__PURE__ */
|
|
2095
|
+
/* @__PURE__ */ jsx20(
|
|
1994
2096
|
"figcaption",
|
|
1995
2097
|
{
|
|
1996
2098
|
className: clsx(
|
|
@@ -2007,7 +2109,7 @@ var Image = ({
|
|
|
2007
2109
|
}
|
|
2008
2110
|
);
|
|
2009
2111
|
}
|
|
2010
|
-
return /* @__PURE__ */
|
|
2112
|
+
return /* @__PURE__ */ jsx20(
|
|
2011
2113
|
Element,
|
|
2012
2114
|
{
|
|
2013
2115
|
ref,
|
|
@@ -2061,6 +2163,7 @@ export {
|
|
|
2061
2163
|
genVAlign,
|
|
2062
2164
|
TEXT_BASE_CLASSES,
|
|
2063
2165
|
Text,
|
|
2166
|
+
Flexbox,
|
|
2064
2167
|
Table,
|
|
2065
2168
|
libMarkdownComponents,
|
|
2066
2169
|
libMarkdownEditorOptions,
|
|
@@ -2072,4 +2175,4 @@ export {
|
|
|
2072
2175
|
scrollToTop,
|
|
2073
2176
|
Image
|
|
2074
2177
|
};
|
|
2075
|
-
//# sourceMappingURL=chunk-
|
|
2178
|
+
//# sourceMappingURL=chunk-YKOO6XXS.js.map
|