@julseb-lib/react 1.1.14 → 1.1.15
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.cjs +3 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/types/components-props.d.cts +0 -1
- package/dist/types/components-props.d.ts +0 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -556,7 +556,7 @@ declare const usePagination: ({ currentPage, setCurrentPage, totalPages, }: ILib
|
|
|
556
556
|
*/
|
|
557
557
|
declare const useTextLineCount: (text: string, fontSize?: number) => {
|
|
558
558
|
visualLines: number;
|
|
559
|
-
elementRef: react.RefObject<
|
|
559
|
+
elementRef: react.RefObject<HTMLTextAreaElement | HTMLInputElement | null>;
|
|
560
560
|
};
|
|
561
561
|
|
|
562
562
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -556,7 +556,7 @@ declare const usePagination: ({ currentPage, setCurrentPage, totalPages, }: ILib
|
|
|
556
556
|
*/
|
|
557
557
|
declare const useTextLineCount: (text: string, fontSize?: number) => {
|
|
558
558
|
visualLines: number;
|
|
559
|
-
elementRef: react.RefObject<
|
|
559
|
+
elementRef: react.RefObject<HTMLTextAreaElement | HTMLInputElement | null>;
|
|
560
560
|
};
|
|
561
561
|
|
|
562
562
|
/**
|
package/dist/index.js
CHANGED
|
@@ -67739,7 +67739,6 @@ var Header = ({
|
|
|
67739
67739
|
textColor = "white",
|
|
67740
67740
|
linksColor = "white",
|
|
67741
67741
|
headerOpenMobileBackground = "primary",
|
|
67742
|
-
noNav,
|
|
67743
67742
|
...rest
|
|
67744
67743
|
}) => {
|
|
67745
67744
|
const Element = element;
|
|
@@ -67843,11 +67842,10 @@ var Header = ({
|
|
|
67843
67842
|
children: logo
|
|
67844
67843
|
}
|
|
67845
67844
|
) : logo,
|
|
67846
|
-
navDesktopPosition === "left" &&
|
|
67847
|
-
navDesktopPosition === "left" && noNav && children,
|
|
67845
|
+
navDesktopPosition === "left" && /* @__PURE__ */ jsx350("nav", { ...navProps }),
|
|
67848
67846
|
!isMobile && navDesktopPosition === "right" && /* @__PURE__ */ jsx350(HeaderSearch, { ...searchProps }),
|
|
67849
67847
|
burgerPosition === "right" && /* @__PURE__ */ jsx350(Burger, { ...burgerProps }),
|
|
67850
|
-
isMobile && navMobileVariant === "drawer" &&
|
|
67848
|
+
isMobile && navMobileVariant === "drawer" && /* @__PURE__ */ jsx350(
|
|
67851
67849
|
"div",
|
|
67852
67850
|
{
|
|
67853
67851
|
className: clsx(
|
|
@@ -67859,8 +67857,7 @@ var Header = ({
|
|
|
67859
67857
|
onClick: handleClose
|
|
67860
67858
|
}
|
|
67861
67859
|
),
|
|
67862
|
-
navDesktopPosition === "right" &&
|
|
67863
|
-
navDesktopPosition === "right" && noNav && children,
|
|
67860
|
+
navDesktopPosition === "right" && /* @__PURE__ */ jsx350("nav", { ...navProps }),
|
|
67864
67861
|
!isMobile && navDesktopPosition === "left" && /* @__PURE__ */ jsx350(HeaderSearch, { ...searchProps })
|
|
67865
67862
|
]
|
|
67866
67863
|
}
|