@julseb-lib/react 1.1.27 → 1.1.30

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.d.cts CHANGED
@@ -560,7 +560,7 @@ declare const usePagination: ({ currentPage, setCurrentPage, totalPages, }: ILib
560
560
  */
561
561
  declare const useTextLineCount: (text: string, fontSize?: number) => {
562
562
  visualLines: number;
563
- elementRef: react.RefObject<HTMLInputElement | HTMLTextAreaElement | null>;
563
+ elementRef: react.RefObject<HTMLTextAreaElement | HTMLInputElement | null>;
564
564
  };
565
565
 
566
566
  /**
package/dist/index.d.ts CHANGED
@@ -560,7 +560,7 @@ declare const usePagination: ({ currentPage, setCurrentPage, totalPages, }: ILib
560
560
  */
561
561
  declare const useTextLineCount: (text: string, fontSize?: number) => {
562
562
  visualLines: number;
563
- elementRef: react.RefObject<HTMLInputElement | HTMLTextAreaElement | null>;
563
+ elementRef: react.RefObject<HTMLTextAreaElement | HTMLInputElement | null>;
564
564
  };
565
565
 
566
566
  /**
package/dist/index.js CHANGED
@@ -140,7 +140,7 @@ var useClickOutside = (ref, handler, isActive = true, delay = 100) => {
140
140
  useEffect(() => {
141
141
  const handleClickOutside = (event) => {
142
142
  if (ref.current && !ref.current.contains(event.target)) {
143
- handler();
143
+ handler(event);
144
144
  }
145
145
  };
146
146
  if (isActive) {
@@ -67841,8 +67841,7 @@ var Header = ({
67841
67841
  ref: el
67842
67842
  };
67843
67843
  useKeyPress("Escape", handleClose);
67844
- useClickOutside(el, (e) => {
67845
- if (e.target?.closest(".header-burger")) return;
67844
+ useClickOutside(el, () => {
67846
67845
  if (isOpen) handleClose();
67847
67846
  });
67848
67847
  return /* @__PURE__ */ jsxs291(
@@ -67979,6 +67978,8 @@ var Meta = ({
67979
67978
  twitterCard = "summary",
67980
67979
  appleTouchIcon,
67981
67980
  themeColor,
67981
+ themeColorLight = themeColor,
67982
+ themeColorDark = themeColor,
67982
67983
  appName
67983
67984
  }) => {
67984
67985
  return /* @__PURE__ */ jsxs293(Fragment14, { children: [
@@ -68006,7 +68007,8 @@ var Meta = ({
68006
68007
  ] }),
68007
68008
  author && /* @__PURE__ */ jsxs293(Fragment14, { children: [
68008
68009
  /* @__PURE__ */ jsx353("meta", { name: "author", content: author }),
68009
- /* @__PURE__ */ jsx353("meta", { name: "twitter:creator", content: author })
68010
+ /* @__PURE__ */ jsx353("meta", { name: "twitter:creator", content: author }),
68011
+ /* @__PURE__ */ jsx353("meta", { name: "publisher", content: author })
68010
68012
  ] }),
68011
68013
  url && /* @__PURE__ */ jsxs293(Fragment14, { children: [
68012
68014
  /* @__PURE__ */ jsx353("meta", { property: "og:url", content: url }),
@@ -68031,6 +68033,22 @@ var Meta = ({
68031
68033
  favicon && /* @__PURE__ */ jsx353("link", { rel: "icon", href: favicon }),
68032
68034
  appleTouchIcon && /* @__PURE__ */ jsx353("link", { rel: "apple-touch-icon", href: appleTouchIcon }),
68033
68035
  themeColor && /* @__PURE__ */ jsx353("meta", { name: "theme-color", content: themeColor }),
68036
+ themeColorLight && /* @__PURE__ */ jsx353(
68037
+ "meta",
68038
+ {
68039
+ name: "theme-color",
68040
+ media: "(prefers-color-scheme: light)",
68041
+ content: themeColorLight
68042
+ }
68043
+ ),
68044
+ themeColorDark && /* @__PURE__ */ jsx353(
68045
+ "meta",
68046
+ {
68047
+ name: "theme-color",
68048
+ media: "(prefers-color-scheme: dark)",
68049
+ content: themeColorDark
68050
+ }
68051
+ ),
68034
68052
  children
68035
68053
  ] });
68036
68054
  };