@julseb-lib/react 1.1.0 → 1.1.1

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Image
3
- } from "./chunk-TN4HZFI3.js";
3
+ } from "./chunk-2MIHOGHB.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-YPZDN7Z5.js.map
14
+ //# sourceMappingURL=Image-RZGG6J4R.js.map
@@ -1361,27 +1361,24 @@ var Table = ({
1361
1361
  );
1362
1362
  };
1363
1363
 
1364
- // src/lib/utils/options-markdown.ts
1365
- var libOptionsMarkdown = {
1366
- forceBlock: true,
1367
- wrapper: "div",
1368
- overrides: {
1369
- h1: { component: Text, props: { tag: "h1" } },
1370
- h2: { component: Text, props: { tag: "h2" } },
1371
- h3: { component: Text, props: { tag: "h3" } },
1372
- h4: { component: Text, props: { tag: "h4" } },
1373
- h5: { component: Text, props: { tag: "h5" } },
1374
- h6: { component: Text, props: { tag: "h6" } },
1375
- p: { component: Text, props: { tag: "p" } },
1376
- strong: { component: Text, props: { tag: "strong" } },
1377
- em: { component: Text, props: { tag: "em" } },
1378
- ul: { component: Text, props: { tag: "ul" } },
1379
- ol: { component: Text, props: { tag: "ol" } },
1380
- dl: { component: Text, props: { tag: "dl" } },
1381
- small: { component: Text, props: { tag: "small" } },
1382
- blockquote: { component: Text, props: { tag: "blockquote" } },
1383
- table: { component: Table }
1384
- }
1364
+ // src/lib/utils/options-markdown.tsx
1365
+ import { jsx as jsx3 } from "react/jsx-runtime";
1366
+ var markdownComponents = {
1367
+ h1: (props) => /* @__PURE__ */ jsx3(Text, { tag: "h1", ...props }),
1368
+ h2: (props) => /* @__PURE__ */ jsx3(Text, { tag: "h2", ...props }),
1369
+ h3: (props) => /* @__PURE__ */ jsx3(Text, { tag: "h3", ...props }),
1370
+ h4: (props) => /* @__PURE__ */ jsx3(Text, { tag: "h4", ...props }),
1371
+ h5: (props) => /* @__PURE__ */ jsx3(Text, { tag: "h5", ...props }),
1372
+ h6: (props) => /* @__PURE__ */ jsx3(Text, { tag: "h6", ...props }),
1373
+ p: (props) => /* @__PURE__ */ jsx3(Text, { tag: "p", ...props }),
1374
+ small: (props) => /* @__PURE__ */ jsx3(Text, { tag: "small", ...props }),
1375
+ strong: (props) => /* @__PURE__ */ jsx3(Text, { tag: "strong", ...props }),
1376
+ em: (props) => /* @__PURE__ */ jsx3(Text, { tag: "em", ...props }),
1377
+ blockquote: (props) => /* @__PURE__ */ jsx3(Text, { tag: "blockquote", ...props }),
1378
+ ul: (props) => /* @__PURE__ */ jsx3(Text, { tag: "ul", ...props }),
1379
+ ol: (props) => /* @__PURE__ */ jsx3(Text, { tag: "ol", ...props }),
1380
+ dl: (props) => /* @__PURE__ */ jsx3(Text, { tag: "dl", ...props }),
1381
+ table: (props) => /* @__PURE__ */ jsx3(Table, { ...props })
1385
1382
  };
1386
1383
  var libMarkdownEditorOptions = {
1387
1384
  bold: true,
@@ -1462,7 +1459,7 @@ function scrollToTop() {
1462
1459
  }
1463
1460
 
1464
1461
  // src/lib/components/Text/templates/H1.tsx
1465
- import { jsx as jsx3 } from "react/jsx-runtime";
1462
+ import { jsx as jsx4 } from "react/jsx-runtime";
1466
1463
  var H1 = ({
1467
1464
  element = "h1",
1468
1465
  className,
@@ -1474,7 +1471,7 @@ var H1 = ({
1474
1471
  ...rest
1475
1472
  }) => {
1476
1473
  const Element = element;
1477
- return /* @__PURE__ */ jsx3(
1474
+ return /* @__PURE__ */ jsx4(
1478
1475
  Element,
1479
1476
  {
1480
1477
  className: clsx(
@@ -1495,7 +1492,7 @@ var H1 = ({
1495
1492
  };
1496
1493
 
1497
1494
  // src/lib/components/Text/templates/H2.tsx
1498
- import { jsx as jsx4 } from "react/jsx-runtime";
1495
+ import { jsx as jsx5 } from "react/jsx-runtime";
1499
1496
  var H2 = ({
1500
1497
  element = "h2",
1501
1498
  className,
@@ -1507,7 +1504,7 @@ var H2 = ({
1507
1504
  ...rest
1508
1505
  }) => {
1509
1506
  const Element = element;
1510
- return /* @__PURE__ */ jsx4(
1507
+ return /* @__PURE__ */ jsx5(
1511
1508
  Element,
1512
1509
  {
1513
1510
  className: clsx(
@@ -1528,7 +1525,7 @@ var H2 = ({
1528
1525
  };
1529
1526
 
1530
1527
  // src/lib/components/Text/templates/H3.tsx
1531
- import { jsx as jsx5 } from "react/jsx-runtime";
1528
+ import { jsx as jsx6 } from "react/jsx-runtime";
1532
1529
  var H3 = ({
1533
1530
  element = "h3",
1534
1531
  className,
@@ -1540,7 +1537,7 @@ var H3 = ({
1540
1537
  ...rest
1541
1538
  }) => {
1542
1539
  const Element = element;
1543
- return /* @__PURE__ */ jsx5(
1540
+ return /* @__PURE__ */ jsx6(
1544
1541
  Element,
1545
1542
  {
1546
1543
  className: clsx(
@@ -1561,7 +1558,7 @@ var H3 = ({
1561
1558
  };
1562
1559
 
1563
1560
  // src/lib/components/Text/templates/H4.tsx
1564
- import { jsx as jsx6 } from "react/jsx-runtime";
1561
+ import { jsx as jsx7 } from "react/jsx-runtime";
1565
1562
  var H4 = ({
1566
1563
  element = "h4",
1567
1564
  className,
@@ -1573,7 +1570,7 @@ var H4 = ({
1573
1570
  ...rest
1574
1571
  }) => {
1575
1572
  const Element = element;
1576
- return /* @__PURE__ */ jsx6(
1573
+ return /* @__PURE__ */ jsx7(
1577
1574
  Element,
1578
1575
  {
1579
1576
  className: clsx(
@@ -1594,7 +1591,7 @@ var H4 = ({
1594
1591
  };
1595
1592
 
1596
1593
  // src/lib/components/Text/templates/H5.tsx
1597
- import { jsx as jsx7 } from "react/jsx-runtime";
1594
+ import { jsx as jsx8 } from "react/jsx-runtime";
1598
1595
  var H5 = ({
1599
1596
  element = "h5",
1600
1597
  className,
@@ -1606,7 +1603,7 @@ var H5 = ({
1606
1603
  ...rest
1607
1604
  }) => {
1608
1605
  const Element = element;
1609
- return /* @__PURE__ */ jsx7(
1606
+ return /* @__PURE__ */ jsx8(
1610
1607
  Element,
1611
1608
  {
1612
1609
  className: clsx(
@@ -1627,7 +1624,7 @@ var H5 = ({
1627
1624
  };
1628
1625
 
1629
1626
  // src/lib/components/Text/templates/H6.tsx
1630
- import { jsx as jsx8 } from "react/jsx-runtime";
1627
+ import { jsx as jsx9 } from "react/jsx-runtime";
1631
1628
  var H6 = ({
1632
1629
  element = "h6",
1633
1630
  className,
@@ -1638,7 +1635,7 @@ var H6 = ({
1638
1635
  ...rest
1639
1636
  }) => {
1640
1637
  const Element = element;
1641
- return /* @__PURE__ */ jsx8(
1638
+ return /* @__PURE__ */ jsx9(
1642
1639
  Element,
1643
1640
  {
1644
1641
  className: clsx(
@@ -1659,7 +1656,7 @@ var H6 = ({
1659
1656
  };
1660
1657
 
1661
1658
  // src/lib/components/Text/templates/P.tsx
1662
- import { jsx as jsx9 } from "react/jsx-runtime";
1659
+ import { jsx as jsx10 } from "react/jsx-runtime";
1663
1660
  var P = ({
1664
1661
  element = "p",
1665
1662
  className,
@@ -1670,7 +1667,7 @@ var P = ({
1670
1667
  ...rest
1671
1668
  }) => {
1672
1669
  const Element = element;
1673
- return /* @__PURE__ */ jsx9(
1670
+ return /* @__PURE__ */ jsx10(
1674
1671
  Element,
1675
1672
  {
1676
1673
  className: clsx(
@@ -1690,7 +1687,7 @@ var P = ({
1690
1687
  };
1691
1688
 
1692
1689
  // src/lib/components/Text/templates/Small.tsx
1693
- import { jsx as jsx10 } from "react/jsx-runtime";
1690
+ import { jsx as jsx11 } from "react/jsx-runtime";
1694
1691
  var Small = ({
1695
1692
  element = "small",
1696
1693
  className,
@@ -1701,7 +1698,7 @@ var Small = ({
1701
1698
  ...rest
1702
1699
  }) => {
1703
1700
  const Element = element;
1704
- return /* @__PURE__ */ jsx10(
1701
+ return /* @__PURE__ */ jsx11(
1705
1702
  Element,
1706
1703
  {
1707
1704
  className: clsx(
@@ -1721,7 +1718,7 @@ var Small = ({
1721
1718
  };
1722
1719
 
1723
1720
  // src/lib/components/Text/templates/Strong.tsx
1724
- import { jsx as jsx11 } from "react/jsx-runtime";
1721
+ import { jsx as jsx12 } from "react/jsx-runtime";
1725
1722
  var Strong = ({
1726
1723
  element = "strong",
1727
1724
  className,
@@ -1732,7 +1729,7 @@ var Strong = ({
1732
1729
  ...rest
1733
1730
  }) => {
1734
1731
  const Element = element;
1735
- return /* @__PURE__ */ jsx11(
1732
+ return /* @__PURE__ */ jsx12(
1736
1733
  Element,
1737
1734
  {
1738
1735
  className: clsx(
@@ -1752,7 +1749,7 @@ var Strong = ({
1752
1749
  };
1753
1750
 
1754
1751
  // src/lib/components/Text/templates/Em.tsx
1755
- import { jsx as jsx12 } from "react/jsx-runtime";
1752
+ import { jsx as jsx13 } from "react/jsx-runtime";
1756
1753
  var Em = ({
1757
1754
  element = "em",
1758
1755
  className,
@@ -1763,7 +1760,7 @@ var Em = ({
1763
1760
  ...rest
1764
1761
  }) => {
1765
1762
  const Element = element;
1766
- return /* @__PURE__ */ jsx12(
1763
+ return /* @__PURE__ */ jsx13(
1767
1764
  Element,
1768
1765
  {
1769
1766
  className: clsx(
@@ -1783,7 +1780,7 @@ var Em = ({
1783
1780
  };
1784
1781
 
1785
1782
  // src/lib/components/Text/templates/Blockquote.tsx
1786
- import { jsx as jsx13 } from "react/jsx-runtime";
1783
+ import { jsx as jsx14 } from "react/jsx-runtime";
1787
1784
  var Blockquote = ({
1788
1785
  element = "blockquote",
1789
1786
  className,
@@ -1794,7 +1791,7 @@ var Blockquote = ({
1794
1791
  ...rest
1795
1792
  }) => {
1796
1793
  const Element = element;
1797
- return /* @__PURE__ */ jsx13(
1794
+ return /* @__PURE__ */ jsx14(
1798
1795
  Element,
1799
1796
  {
1800
1797
  className: clsx(
@@ -1815,7 +1812,7 @@ var Blockquote = ({
1815
1812
  };
1816
1813
 
1817
1814
  // src/lib/components/Text/templates/Ul.tsx
1818
- import { jsx as jsx14 } from "react/jsx-runtime";
1815
+ import { jsx as jsx15 } from "react/jsx-runtime";
1819
1816
  var Ul = ({
1820
1817
  element = "ul",
1821
1818
  className,
@@ -1826,7 +1823,7 @@ var Ul = ({
1826
1823
  ...rest
1827
1824
  }) => {
1828
1825
  const Element = element;
1829
- return /* @__PURE__ */ jsx14(
1826
+ return /* @__PURE__ */ jsx15(
1830
1827
  Element,
1831
1828
  {
1832
1829
  className: clsx(
@@ -1847,7 +1844,7 @@ var Ul = ({
1847
1844
  };
1848
1845
 
1849
1846
  // src/lib/components/Text/templates/Ol.tsx
1850
- import { jsx as jsx15 } from "react/jsx-runtime";
1847
+ import { jsx as jsx16 } from "react/jsx-runtime";
1851
1848
  var Ol = ({
1852
1849
  element = "ol",
1853
1850
  className,
@@ -1858,7 +1855,7 @@ var Ol = ({
1858
1855
  ...rest
1859
1856
  }) => {
1860
1857
  const Element = element;
1861
- return /* @__PURE__ */ jsx15(
1858
+ return /* @__PURE__ */ jsx16(
1862
1859
  Element,
1863
1860
  {
1864
1861
  className: clsx(
@@ -1879,7 +1876,7 @@ var Ol = ({
1879
1876
  };
1880
1877
 
1881
1878
  // src/lib/components/Text/templates/Dl.tsx
1882
- import { jsx as jsx16 } from "react/jsx-runtime";
1879
+ import { jsx as jsx17 } from "react/jsx-runtime";
1883
1880
  var Dl = ({
1884
1881
  element = "dl",
1885
1882
  className,
@@ -1890,7 +1887,7 @@ var Dl = ({
1890
1887
  ...rest
1891
1888
  }) => {
1892
1889
  const Element = element;
1893
- return /* @__PURE__ */ jsx16(
1890
+ return /* @__PURE__ */ jsx17(
1894
1891
  Element,
1895
1892
  {
1896
1893
  className: clsx(
@@ -1912,7 +1909,7 @@ var Dl = ({
1912
1909
  };
1913
1910
 
1914
1911
  // src/lib/components/Text/Text.tsx
1915
- import { jsx as jsx17 } from "react/jsx-runtime";
1912
+ import { jsx as jsx18 } from "react/jsx-runtime";
1916
1913
  var TEXT_BASE_CLASSES = clsx(
1917
1914
  "font-family-body",
1918
1915
  "[&_code]:font-family-code [&_code]:leading-8 [&_code]:p-1 [&_code]:text-primary-500 [&_code]:bg-gray-50 [&_code]:rounded-xs"
@@ -1920,40 +1917,40 @@ var TEXT_BASE_CLASSES = clsx(
1920
1917
  var Text = ({ tag = "p", ...rest }) => {
1921
1918
  switch (tag) {
1922
1919
  case "h1":
1923
- return /* @__PURE__ */ jsx17(H1, { ...rest });
1920
+ return /* @__PURE__ */ jsx18(H1, { ...rest });
1924
1921
  case "h2":
1925
- return /* @__PURE__ */ jsx17(H2, { ...rest });
1922
+ return /* @__PURE__ */ jsx18(H2, { ...rest });
1926
1923
  case "h3":
1927
- return /* @__PURE__ */ jsx17(H3, { ...rest });
1924
+ return /* @__PURE__ */ jsx18(H3, { ...rest });
1928
1925
  case "h4":
1929
- return /* @__PURE__ */ jsx17(H4, { ...rest });
1926
+ return /* @__PURE__ */ jsx18(H4, { ...rest });
1930
1927
  case "h5":
1931
- return /* @__PURE__ */ jsx17(H5, { ...rest });
1928
+ return /* @__PURE__ */ jsx18(H5, { ...rest });
1932
1929
  case "h6":
1933
- return /* @__PURE__ */ jsx17(H6, { ...rest });
1930
+ return /* @__PURE__ */ jsx18(H6, { ...rest });
1934
1931
  case "small":
1935
- return /* @__PURE__ */ jsx17(Small, { ...rest });
1932
+ return /* @__PURE__ */ jsx18(Small, { ...rest });
1936
1933
  case "strong":
1937
- return /* @__PURE__ */ jsx17(Strong, { ...rest });
1934
+ return /* @__PURE__ */ jsx18(Strong, { ...rest });
1938
1935
  case "em":
1939
- return /* @__PURE__ */ jsx17(Em, { ...rest });
1936
+ return /* @__PURE__ */ jsx18(Em, { ...rest });
1940
1937
  case "blockquote":
1941
- return /* @__PURE__ */ jsx17(Blockquote, { ...rest });
1938
+ return /* @__PURE__ */ jsx18(Blockquote, { ...rest });
1942
1939
  case "ul":
1943
- return /* @__PURE__ */ jsx17(Ul, { ...rest });
1940
+ return /* @__PURE__ */ jsx18(Ul, { ...rest });
1944
1941
  case "ol":
1945
- return /* @__PURE__ */ jsx17(Ol, { ...rest });
1942
+ return /* @__PURE__ */ jsx18(Ol, { ...rest });
1946
1943
  case "dl":
1947
- return /* @__PURE__ */ jsx17(Dl, { ...rest });
1944
+ return /* @__PURE__ */ jsx18(Dl, { ...rest });
1948
1945
  case "p":
1949
1946
  default:
1950
- return /* @__PURE__ */ jsx17(P, { ...rest });
1947
+ return /* @__PURE__ */ jsx18(P, { ...rest });
1951
1948
  }
1952
1949
  };
1953
1950
 
1954
1951
  // src/lib/components/Image/Image.tsx
1955
1952
  import "react";
1956
- import { jsx as jsx18, jsxs as jsxs3 } from "react/jsx-runtime";
1953
+ import { jsx as jsx19, jsxs as jsxs3 } from "react/jsx-runtime";
1957
1954
  var Image = ({
1958
1955
  className,
1959
1956
  ref,
@@ -1974,7 +1971,7 @@ var Image = ({
1974
1971
  className
1975
1972
  ),
1976
1973
  children: [
1977
- /* @__PURE__ */ jsx18(
1974
+ /* @__PURE__ */ jsx19(
1978
1975
  "img",
1979
1976
  {
1980
1977
  className: clsx(
@@ -1986,7 +1983,7 @@ var Image = ({
1986
1983
  ...rest
1987
1984
  }
1988
1985
  ),
1989
- /* @__PURE__ */ jsx18(
1986
+ /* @__PURE__ */ jsx19(
1990
1987
  "figcaption",
1991
1988
  {
1992
1989
  className: clsx(
@@ -2003,7 +2000,7 @@ var Image = ({
2003
2000
  }
2004
2001
  );
2005
2002
  }
2006
- return /* @__PURE__ */ jsx18(
2003
+ return /* @__PURE__ */ jsx19(
2007
2004
  Element,
2008
2005
  {
2009
2006
  ref,
@@ -2058,7 +2055,7 @@ export {
2058
2055
  TEXT_BASE_CLASSES,
2059
2056
  Text,
2060
2057
  Table,
2061
- libOptionsMarkdown,
2058
+ markdownComponents,
2062
2059
  libMarkdownEditorOptions,
2063
2060
  genRingColor,
2064
2061
  genRingColorChildren,
@@ -2068,4 +2065,4 @@ export {
2068
2065
  scrollToTop,
2069
2066
  Image
2070
2067
  };
2071
- //# sourceMappingURL=chunk-TN4HZFI3.js.map
2068
+ //# sourceMappingURL=chunk-2MIHOGHB.js.map