@julseb-lib/react 1.0.12 → 1.0.13

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/index.js CHANGED
@@ -66824,10 +66824,10 @@ var AccordionTitle = ({
66824
66824
  };
66825
66825
 
66826
66826
  // src/lib/components/Accordion/AccordionContent.tsx
66827
- import "react";
66827
+ import { Fragment as Fragment9 } from "react";
66828
66828
  import { jsx as jsx327 } from "react/jsx-runtime";
66829
66829
  var AccordionContent = ({
66830
- element = Text,
66830
+ element,
66831
66831
  ref,
66832
66832
  className,
66833
66833
  variant = "basic",
@@ -66835,7 +66835,7 @@ var AccordionContent = ({
66835
66835
  children,
66836
66836
  ...rest
66837
66837
  }) => {
66838
- const Element = element;
66838
+ const Element = element ?? (typeof children === "string" ? Text : Fragment9);
66839
66839
  return /* @__PURE__ */ jsx327(
66840
66840
  Element,
66841
66841
  {
@@ -67325,12 +67325,12 @@ var Modal = ({
67325
67325
  };
67326
67326
 
67327
67327
  // src/lib/components/DragList/DragList.tsx
67328
- import { useRef as useRef13, useState as useState20, Fragment as Fragment10 } from "react";
67328
+ import { useRef as useRef13, useState as useState20, Fragment as Fragment11 } from "react";
67329
67329
 
67330
67330
  // src/lib/components/DragList/DragListItem.tsx
67331
67331
  import "react";
67332
67332
  import { BiDotsVerticalRounded } from "react-icons/bi";
67333
- import { Fragment as Fragment9, jsx as jsx337, jsxs as jsxs280 } from "react/jsx-runtime";
67333
+ import { Fragment as Fragment10, jsx as jsx337, jsxs as jsxs280 } from "react/jsx-runtime";
67334
67334
  var DragListItem = ({
67335
67335
  className,
67336
67336
  element = "div",
@@ -67379,7 +67379,7 @@ var DragListItem = ({
67379
67379
  "flex flex-col gap-1 grow",
67380
67380
  "drag-list-item-content"
67381
67381
  ),
67382
- children: item ? /* @__PURE__ */ jsxs280(Fragment9, { children: [
67382
+ children: item ? /* @__PURE__ */ jsxs280(Fragment10, { children: [
67383
67383
  typeof item.title === "string" ? /* @__PURE__ */ jsx337(Text, { tag: "h6", className: "drag-list-item-title", children: item.title }) : item.title,
67384
67384
  item.body && (typeof item.body === "string" ? /* @__PURE__ */ jsx337(Text, { className: "drag-list-item-body", children: item.body }) : item.body)
67385
67385
  ] }) : children
@@ -67438,7 +67438,7 @@ var DragList = ({
67438
67438
  className
67439
67439
  ),
67440
67440
  ...rest,
67441
- children: items ? items.map((item, i) => /* @__PURE__ */ jsxs281(Fragment10, { children: [
67441
+ children: items ? items.map((item, i) => /* @__PURE__ */ jsxs281(Fragment11, { children: [
67442
67442
  /* @__PURE__ */ createElement3(
67443
67443
  DragListItem,
67444
67444
  {
@@ -67499,7 +67499,7 @@ var PaginationButton = ({
67499
67499
  };
67500
67500
 
67501
67501
  // src/lib/components/Pagination/Pagination.tsx
67502
- import { Fragment as Fragment11, jsx as jsx340, jsxs as jsxs282 } from "react/jsx-runtime";
67502
+ import { Fragment as Fragment12, jsx as jsx340, jsxs as jsxs282 } from "react/jsx-runtime";
67503
67503
  var Pagination = ({
67504
67504
  className,
67505
67505
  element = "div",
@@ -67537,7 +67537,7 @@ var Pagination = ({
67537
67537
  className
67538
67538
  ),
67539
67539
  ...rest,
67540
- children: totalPages ? /* @__PURE__ */ jsxs282(Fragment11, { children: [
67540
+ children: totalPages ? /* @__PURE__ */ jsxs282(Fragment12, { children: [
67541
67541
  /* @__PURE__ */ jsx340(
67542
67542
  PaginationButton,
67543
67543
  {
@@ -67548,7 +67548,7 @@ var Pagination = ({
67548
67548
  children: icons?.prev ?? /* @__PURE__ */ jsx340(BiLeftArrowAlt, { size: 24 })
67549
67549
  }
67550
67550
  ),
67551
- paginationGroup[0] !== 1 && /* @__PURE__ */ jsxs282(Fragment11, { children: [
67551
+ paginationGroup[0] !== 1 && /* @__PURE__ */ jsxs282(Fragment12, { children: [
67552
67552
  /* @__PURE__ */ jsx340(
67553
67553
  PaginationButton,
67554
67554
  {
@@ -67577,7 +67577,7 @@ var Pagination = ({
67577
67577
  },
67578
67578
  n
67579
67579
  )),
67580
- paginationGroup[paginationGroup.length - 1] !== totalPages && /* @__PURE__ */ jsxs282(Fragment11, { children: [
67580
+ paginationGroup[paginationGroup.length - 1] !== totalPages && /* @__PURE__ */ jsxs282(Fragment12, { children: [
67581
67581
  /* @__PURE__ */ jsx340(
67582
67582
  PaginationButton,
67583
67583
  {
@@ -68207,7 +68207,7 @@ var outlineColor = {
68207
68207
  };
68208
68208
 
68209
68209
  // src/lib/components/Slideshow/Slideshow.tsx
68210
- import { Fragment as Fragment12, jsx as jsx351, jsxs as jsxs286 } from "react/jsx-runtime";
68210
+ import { Fragment as Fragment13, jsx as jsx351, jsxs as jsxs286 } from "react/jsx-runtime";
68211
68211
  var Slideshow = ({
68212
68212
  className,
68213
68213
  element = "div",
@@ -68408,7 +68408,7 @@ var Slideshow = ({
68408
68408
  )
68409
68409
  }
68410
68410
  ),
68411
- !hideControls && totalSlides > 1 && /* @__PURE__ */ jsxs286(Fragment12, { children: [
68411
+ !hideControls && totalSlides > 1 && /* @__PURE__ */ jsxs286(Fragment13, { children: [
68412
68412
  /* @__PURE__ */ jsx351(
68413
68413
  SlideshowButton,
68414
68414
  {
@@ -69404,7 +69404,7 @@ var HeaderSearch = ({ search, handleClose }) => {
69404
69404
  };
69405
69405
 
69406
69406
  // src/lib/components/Header/Header.tsx
69407
- import { Fragment as Fragment13, jsx as jsx366, jsxs as jsxs292 } from "react/jsx-runtime";
69407
+ import { Fragment as Fragment14, jsx as jsx366, jsxs as jsxs292 } from "react/jsx-runtime";
69408
69408
  var Header = ({
69409
69409
  className,
69410
69410
  element = "header",
@@ -69466,7 +69466,7 @@ var Header = ({
69466
69466
  };
69467
69467
  const searchProps = { search, handleClose };
69468
69468
  const navProps = {
69469
- children: /* @__PURE__ */ jsxs292(Fragment13, { children: [
69469
+ children: /* @__PURE__ */ jsxs292(Fragment14, { children: [
69470
69470
  links ? links.map((link) => link) : nav ? nav : children,
69471
69471
  isMobile && /* @__PURE__ */ jsx366(HeaderSearch, { ...searchProps })
69472
69472
  ] }),
@@ -69552,7 +69552,7 @@ var Header = ({
69552
69552
  };
69553
69553
 
69554
69554
  // src/lib/components/Footer/Footer.tsx
69555
- import { Children as Children4, Fragment as Fragment14 } from "react";
69555
+ import { Children as Children4, Fragment as Fragment15 } from "react";
69556
69556
  import { uuid as uuid13 } from "@julseb-lib/utils";
69557
69557
  import { jsx as jsx367, jsxs as jsxs293 } from "react/jsx-runtime";
69558
69558
  var Footer = ({
@@ -69588,7 +69588,7 @@ var Footer = ({
69588
69588
  ...rest,
69589
69589
  children: [
69590
69590
  typeof logo === "string" ? /* @__PURE__ */ jsx367(Text, { children: logo }) : logo,
69591
- /* @__PURE__ */ jsx367("div", { className: "flex items-container gap-2", children: items?.map((item, i) => /* @__PURE__ */ jsxs293(Fragment14, { children: [
69591
+ /* @__PURE__ */ jsx367("div", { className: "flex items-container gap-2", children: items?.map((item, i) => /* @__PURE__ */ jsxs293(Fragment15, { children: [
69592
69592
  item,
69593
69593
  i !== items.length - 1 && !hideLinksSeparator && /* @__PURE__ */ jsx367(
69594
69594
  "span",
@@ -69599,7 +69599,7 @@ var Footer = ({
69599
69599
  children: linksSeparator === "dot" ? "\u2022" : "-"
69600
69600
  }
69601
69601
  )
69602
- ] }, uuid13())) ?? childrenArray.map((child, i) => /* @__PURE__ */ jsxs293(Fragment14, { children: [
69602
+ ] }, uuid13())) ?? childrenArray.map((child, i) => /* @__PURE__ */ jsxs293(Fragment15, { children: [
69603
69603
  child,
69604
69604
  i !== childrenArray.length - 1 && !hideLinksSeparator && (linksSeparator === "dot" ? "\u2022" : "-")
69605
69605
  ] }, uuid13())) })
@@ -69610,7 +69610,7 @@ var Footer = ({
69610
69610
 
69611
69611
  // src/lib/components/Meta/Meta.tsx
69612
69612
  import "react";
69613
- import { Fragment as Fragment15, jsx as jsx368, jsxs as jsxs294 } from "react/jsx-runtime";
69613
+ import { Fragment as Fragment16, jsx as jsx368, jsxs as jsxs294 } from "react/jsx-runtime";
69614
69614
  var Meta = ({
69615
69615
  children,
69616
69616
  title,
@@ -69634,7 +69634,7 @@ var Meta = ({
69634
69634
  appleTouchIcon,
69635
69635
  themeColor
69636
69636
  }) => {
69637
- return /* @__PURE__ */ jsxs294(Fragment15, { children: [
69637
+ return /* @__PURE__ */ jsxs294(Fragment16, { children: [
69638
69638
  /* @__PURE__ */ jsx368("meta", { charSet: "utf-8" }),
69639
69639
  /* @__PURE__ */ jsx368(
69640
69640
  "meta",
@@ -69643,29 +69643,29 @@ var Meta = ({
69643
69643
  content: "width=device-width, initial-scale=1"
69644
69644
  }
69645
69645
  ),
69646
- title && /* @__PURE__ */ jsxs294(Fragment15, { children: [
69646
+ title && /* @__PURE__ */ jsxs294(Fragment16, { children: [
69647
69647
  /* @__PURE__ */ jsx368("title", { children: title }),
69648
69648
  /* @__PURE__ */ jsx368("meta", { property: "og:title", content: title }),
69649
69649
  /* @__PURE__ */ jsx368("meta", { name: "twitter:title", content: title })
69650
69650
  ] }),
69651
- description && /* @__PURE__ */ jsxs294(Fragment15, { children: [
69651
+ description && /* @__PURE__ */ jsxs294(Fragment16, { children: [
69652
69652
  /* @__PURE__ */ jsx368("meta", { name: "description", content: description }),
69653
69653
  /* @__PURE__ */ jsx368("meta", { property: "og:description", content: description }),
69654
69654
  /* @__PURE__ */ jsx368("meta", { name: "twitter:description", content: description })
69655
69655
  ] }),
69656
- siteName && /* @__PURE__ */ jsxs294(Fragment15, { children: [
69656
+ siteName && /* @__PURE__ */ jsxs294(Fragment16, { children: [
69657
69657
  /* @__PURE__ */ jsx368("meta", { name: "application-name", content: siteName }),
69658
69658
  /* @__PURE__ */ jsx368("meta", { property: "og:site_name", content: siteName })
69659
69659
  ] }),
69660
- author && /* @__PURE__ */ jsxs294(Fragment15, { children: [
69660
+ author && /* @__PURE__ */ jsxs294(Fragment16, { children: [
69661
69661
  /* @__PURE__ */ jsx368("meta", { name: "author", content: author }),
69662
69662
  /* @__PURE__ */ jsx368("meta", { name: "twitter:creator", content: author })
69663
69663
  ] }),
69664
- url && /* @__PURE__ */ jsxs294(Fragment15, { children: [
69664
+ url && /* @__PURE__ */ jsxs294(Fragment16, { children: [
69665
69665
  /* @__PURE__ */ jsx368("meta", { property: "og:url", content: url }),
69666
69666
  /* @__PURE__ */ jsx368("meta", { name: "twitter:site", content: url })
69667
69667
  ] }),
69668
- cover && /* @__PURE__ */ jsxs294(Fragment15, { children: [
69668
+ cover && /* @__PURE__ */ jsxs294(Fragment16, { children: [
69669
69669
  /* @__PURE__ */ jsx368("meta", { property: "og:image", content: cover }),
69670
69670
  /* @__PURE__ */ jsx368("meta", { name: "twitter:image", content: cover })
69671
69671
  ] }),
@@ -69689,7 +69689,7 @@ var Meta = ({
69689
69689
 
69690
69690
  // src/lib/components/PageLayout/PageLayout.tsx
69691
69691
  import { isValidElement } from "react";
69692
- import { Fragment as Fragment16, jsx as jsx369, jsxs as jsxs295 } from "react/jsx-runtime";
69692
+ import { Fragment as Fragment17, jsx as jsx369, jsxs as jsxs295 } from "react/jsx-runtime";
69693
69693
  var PageLayout = ({
69694
69694
  children,
69695
69695
  meta,
@@ -69700,7 +69700,7 @@ var PageLayout = ({
69700
69700
  noWrapper,
69701
69701
  noMain
69702
69702
  }) => {
69703
- return /* @__PURE__ */ jsxs295(Fragment16, { children: [
69703
+ return /* @__PURE__ */ jsxs295(Fragment17, { children: [
69704
69704
  meta && /* @__PURE__ */ jsx369(Meta, { ...meta }),
69705
69705
  isValidElement(header) ? header : /* @__PURE__ */ jsx369(Header, { ...header }),
69706
69706
  !noWrapper ? /* @__PURE__ */ jsx369(Wrapper, { ...wrapperProps, children: !noMain ? /* @__PURE__ */ jsx369(Main, { ...mainProps, children }) : children }) : children,