@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.cjs +22 -4
- 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 +22 -4
- package/dist/index.js.map +1 -1
- package/dist/types/components-props.d.cts +12 -2
- package/dist/types/components-props.d.ts +12 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3032,7 +3032,7 @@ var useClickOutside = (ref, handler, isActive = true, delay = 100) => {
|
|
|
3032
3032
|
(0, import_react5.useEffect)(() => {
|
|
3033
3033
|
const handleClickOutside = (event) => {
|
|
3034
3034
|
if (ref.current && !ref.current.contains(event.target)) {
|
|
3035
|
-
handler();
|
|
3035
|
+
handler(event);
|
|
3036
3036
|
}
|
|
3037
3037
|
};
|
|
3038
3038
|
if (isActive) {
|
|
@@ -70848,8 +70848,7 @@ var Header = ({
|
|
|
70848
70848
|
ref: el
|
|
70849
70849
|
};
|
|
70850
70850
|
useKeyPress("Escape", handleClose);
|
|
70851
|
-
useClickOutside(el, (
|
|
70852
|
-
if (e.target?.closest(".header-burger")) return;
|
|
70851
|
+
useClickOutside(el, () => {
|
|
70853
70852
|
if (isOpen) handleClose();
|
|
70854
70853
|
});
|
|
70855
70854
|
return /* @__PURE__ */ (0, import_jsx_runtime373.jsxs)(
|
|
@@ -70988,6 +70987,8 @@ var Meta = ({
|
|
|
70988
70987
|
twitterCard = "summary",
|
|
70989
70988
|
appleTouchIcon,
|
|
70990
70989
|
themeColor,
|
|
70990
|
+
themeColorLight = themeColor,
|
|
70991
|
+
themeColorDark = themeColor,
|
|
70991
70992
|
appName
|
|
70992
70993
|
}) => {
|
|
70993
70994
|
return /* @__PURE__ */ (0, import_jsx_runtime375.jsxs)(import_jsx_runtime375.Fragment, { children: [
|
|
@@ -71015,7 +71016,8 @@ var Meta = ({
|
|
|
71015
71016
|
] }),
|
|
71016
71017
|
author && /* @__PURE__ */ (0, import_jsx_runtime375.jsxs)(import_jsx_runtime375.Fragment, { children: [
|
|
71017
71018
|
/* @__PURE__ */ (0, import_jsx_runtime375.jsx)("meta", { name: "author", content: author }),
|
|
71018
|
-
/* @__PURE__ */ (0, import_jsx_runtime375.jsx)("meta", { name: "twitter:creator", content: author })
|
|
71019
|
+
/* @__PURE__ */ (0, import_jsx_runtime375.jsx)("meta", { name: "twitter:creator", content: author }),
|
|
71020
|
+
/* @__PURE__ */ (0, import_jsx_runtime375.jsx)("meta", { name: "publisher", content: author })
|
|
71019
71021
|
] }),
|
|
71020
71022
|
url && /* @__PURE__ */ (0, import_jsx_runtime375.jsxs)(import_jsx_runtime375.Fragment, { children: [
|
|
71021
71023
|
/* @__PURE__ */ (0, import_jsx_runtime375.jsx)("meta", { property: "og:url", content: url }),
|
|
@@ -71040,6 +71042,22 @@ var Meta = ({
|
|
|
71040
71042
|
favicon && /* @__PURE__ */ (0, import_jsx_runtime375.jsx)("link", { rel: "icon", href: favicon }),
|
|
71041
71043
|
appleTouchIcon && /* @__PURE__ */ (0, import_jsx_runtime375.jsx)("link", { rel: "apple-touch-icon", href: appleTouchIcon }),
|
|
71042
71044
|
themeColor && /* @__PURE__ */ (0, import_jsx_runtime375.jsx)("meta", { name: "theme-color", content: themeColor }),
|
|
71045
|
+
themeColorLight && /* @__PURE__ */ (0, import_jsx_runtime375.jsx)(
|
|
71046
|
+
"meta",
|
|
71047
|
+
{
|
|
71048
|
+
name: "theme-color",
|
|
71049
|
+
media: "(prefers-color-scheme: light)",
|
|
71050
|
+
content: themeColorLight
|
|
71051
|
+
}
|
|
71052
|
+
),
|
|
71053
|
+
themeColorDark && /* @__PURE__ */ (0, import_jsx_runtime375.jsx)(
|
|
71054
|
+
"meta",
|
|
71055
|
+
{
|
|
71056
|
+
name: "theme-color",
|
|
71057
|
+
media: "(prefers-color-scheme: dark)",
|
|
71058
|
+
content: themeColorDark
|
|
71059
|
+
}
|
|
71060
|
+
),
|
|
71043
71061
|
children
|
|
71044
71062
|
] });
|
|
71045
71063
|
};
|