@julseb-lib/react 0.1.33 → 0.1.35
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/chunk-KBQTBZDK.js +1 -0
- package/dist/index.cjs +184 -257
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -34
- package/dist/index.d.ts +2 -34
- package/dist/index.js +106 -178
- package/dist/index.js.map +1 -1
- package/dist/types/components-props.cjs.map +1 -1
- package/dist/types/components-props.d.cts +1 -32
- package/dist/types/components-props.d.ts +1 -32
- package/dist/types/components-props.js +1 -1
- package/dist/types/index.d.cts +1 -2
- package/dist/types/index.d.ts +1 -2
- package/dist/types/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-OOIPIHXS.js +0 -1
- /package/dist/{chunk-OOIPIHXS.js.map → chunk-KBQTBZDK.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -2664,31 +2664,37 @@ import { useState as useState10, useEffect as useEffect8, createContext, useCont
|
|
|
2664
2664
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
2665
2665
|
var ThemeContext = createContext(null);
|
|
2666
2666
|
var ThemeProviderWrapper = ({ children }) => {
|
|
2667
|
-
const
|
|
2668
|
-
const [theme, setTheme] = useState10(storedTheme != null ? storedTheme : "light");
|
|
2667
|
+
const [theme, setTheme] = useState10("light");
|
|
2669
2668
|
const docEl = document.documentElement;
|
|
2670
2669
|
const switchToLight = () => {
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2670
|
+
if (typeof window !== "undefined") {
|
|
2671
|
+
docEl.classList.add("light");
|
|
2672
|
+
docEl.classList.remove("dark");
|
|
2673
|
+
setTheme("light");
|
|
2674
|
+
localStorage.setItem("theme", "light");
|
|
2675
|
+
}
|
|
2675
2676
|
};
|
|
2676
2677
|
const switchToDark = () => {
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2678
|
+
if (typeof window !== "undefined") {
|
|
2679
|
+
docEl.classList.remove("light");
|
|
2680
|
+
docEl.classList.add("dark");
|
|
2681
|
+
setTheme("dark");
|
|
2682
|
+
localStorage.setItem("theme", "dark");
|
|
2683
|
+
}
|
|
2681
2684
|
};
|
|
2682
2685
|
useEffect8(() => {
|
|
2683
|
-
if (
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2686
|
+
if (typeof window !== "undefined") {
|
|
2687
|
+
const storedTheme = localStorage.getItem("theme");
|
|
2688
|
+
if (storedTheme) {
|
|
2689
|
+
if (theme === "light") switchToLight();
|
|
2690
|
+
else switchToDark();
|
|
2691
|
+
} else {
|
|
2692
|
+
if (window.matchMedia("(prefers-color-scheme: dark)").matches)
|
|
2693
|
+
switchToDark();
|
|
2694
|
+
else switchToLight();
|
|
2695
|
+
}
|
|
2690
2696
|
}
|
|
2691
|
-
}, [theme,
|
|
2697
|
+
}, [theme, docEl]);
|
|
2692
2698
|
const switchTheme = () => {
|
|
2693
2699
|
if (theme === "light") switchToDark();
|
|
2694
2700
|
else switchToLight();
|
|
@@ -10843,86 +10849,9 @@ var MarkdownContainer = (_a) => {
|
|
|
10843
10849
|
);
|
|
10844
10850
|
};
|
|
10845
10851
|
|
|
10846
|
-
// src/lib/components/CodeContainer/CodeContainer.tsx
|
|
10847
|
-
import { useState as useState26 } from "react";
|
|
10848
|
-
import SyntaxHighlighter from "react-syntax-highlighter";
|
|
10849
|
-
import atomOneDark from "react-syntax-highlighter/dist/esm/styles/hljs/atom-one-dark.js";
|
|
10850
|
-
import { BiCheck as BiCheck2, BiClipboard } from "react-icons/bi";
|
|
10851
|
-
import { jsx as jsx120, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
10852
|
-
var CodeContainer = (_a) => {
|
|
10853
|
-
var _b = _a, {
|
|
10854
|
-
className,
|
|
10855
|
-
element,
|
|
10856
|
-
ref,
|
|
10857
|
-
children,
|
|
10858
|
-
highlighterProps,
|
|
10859
|
-
textColor,
|
|
10860
|
-
backgroundColor,
|
|
10861
|
-
style = atomOneDark,
|
|
10862
|
-
hideCopyButton,
|
|
10863
|
-
tooltipTexts,
|
|
10864
|
-
icons
|
|
10865
|
-
} = _b, rest = __objRest(_b, [
|
|
10866
|
-
"className",
|
|
10867
|
-
"element",
|
|
10868
|
-
"ref",
|
|
10869
|
-
"children",
|
|
10870
|
-
"highlighterProps",
|
|
10871
|
-
"textColor",
|
|
10872
|
-
"backgroundColor",
|
|
10873
|
-
"style",
|
|
10874
|
-
"hideCopyButton",
|
|
10875
|
-
"tooltipTexts",
|
|
10876
|
-
"icons"
|
|
10877
|
-
]);
|
|
10878
|
-
var _a2, _b2, _c, _d;
|
|
10879
|
-
const Element = element != null ? element : textColor || backgroundColor ? "pre" : "div";
|
|
10880
|
-
const [hasCopied, setHasCopied] = useState26(false);
|
|
10881
|
-
const copyToClipboard = () => {
|
|
10882
|
-
if (children) {
|
|
10883
|
-
let copyString = children.toString();
|
|
10884
|
-
if (copyString[0] === "$") {
|
|
10885
|
-
copyString = copyString.replace("$ ", "");
|
|
10886
|
-
}
|
|
10887
|
-
navigator.clipboard.writeText(copyString);
|
|
10888
|
-
setHasCopied(true);
|
|
10889
|
-
}
|
|
10890
|
-
setTimeout(() => setHasCopied(false), 1e3);
|
|
10891
|
-
};
|
|
10892
|
-
return /* @__PURE__ */ jsxs50(
|
|
10893
|
-
Element,
|
|
10894
|
-
__spreadProps(__spreadValues({
|
|
10895
|
-
ref,
|
|
10896
|
-
className: clsx(
|
|
10897
|
-
"relative outline-none",
|
|
10898
|
-
"code-container-wrapper",
|
|
10899
|
-
"[&>pre]:bg-gray-800! [&>pre]:p-4!",
|
|
10900
|
-
textColor && genTextAllColor[textColor],
|
|
10901
|
-
genRingColor["primary"],
|
|
10902
|
-
className
|
|
10903
|
-
)
|
|
10904
|
-
}, rest), {
|
|
10905
|
-
children: [
|
|
10906
|
-
/* @__PURE__ */ jsx120(SyntaxHighlighter, { style, children }),
|
|
10907
|
-
!hideCopyButton && /* @__PURE__ */ jsx120(
|
|
10908
|
-
ButtonIcon,
|
|
10909
|
-
{
|
|
10910
|
-
className: clsx("size-8", "copy-button"),
|
|
10911
|
-
onClick: copyToClipboard,
|
|
10912
|
-
icon: hasCopied ? (_a2 = icons == null ? void 0 : icons.copied) != null ? _a2 : /* @__PURE__ */ jsx120(BiCheck2, { size: 16 }) : (_b2 = icons == null ? void 0 : icons.copy) != null ? _b2 : /* @__PURE__ */ jsx120(BiClipboard, { size: 16 }),
|
|
10913
|
-
tooltip: hasCopied ? (_c = tooltipTexts == null ? void 0 : tooltipTexts.copied) != null ? _c : "Copied!" : (_d = tooltipTexts == null ? void 0 : tooltipTexts.copy) != null ? _d : "Copy",
|
|
10914
|
-
color: hasCopied ? "success" : "primary",
|
|
10915
|
-
showTooltip: { className: "absolute top-4 right-4" }
|
|
10916
|
-
}
|
|
10917
|
-
)
|
|
10918
|
-
]
|
|
10919
|
-
})
|
|
10920
|
-
);
|
|
10921
|
-
};
|
|
10922
|
-
|
|
10923
10852
|
// src/lib/components/Fade/Fade.tsx
|
|
10924
|
-
import { useState as
|
|
10925
|
-
import { jsx as
|
|
10853
|
+
import { useState as useState26, useRef as useRef19, useEffect as useEffect16 } from "react";
|
|
10854
|
+
import { jsx as jsx120 } from "react/jsx-runtime";
|
|
10926
10855
|
var Fade = (_a) => {
|
|
10927
10856
|
var _b = _a, {
|
|
10928
10857
|
className,
|
|
@@ -10936,7 +10865,7 @@ var Fade = (_a) => {
|
|
|
10936
10865
|
"children"
|
|
10937
10866
|
]);
|
|
10938
10867
|
const Element = element;
|
|
10939
|
-
const [isVisible, setIsVisible] =
|
|
10868
|
+
const [isVisible, setIsVisible] = useState26(true);
|
|
10940
10869
|
const fadeRef = useRef19(null);
|
|
10941
10870
|
useEffect16(() => {
|
|
10942
10871
|
const observer = new IntersectionObserver((entries) => {
|
|
@@ -10944,7 +10873,7 @@ var Fade = (_a) => {
|
|
|
10944
10873
|
});
|
|
10945
10874
|
observer.observe(fadeRef.current);
|
|
10946
10875
|
}, []);
|
|
10947
|
-
return /* @__PURE__ */
|
|
10876
|
+
return /* @__PURE__ */ jsx120(
|
|
10948
10877
|
Element,
|
|
10949
10878
|
__spreadProps(__spreadValues({
|
|
10950
10879
|
ref: useMergeRefs([ref, fadeRef]),
|
|
@@ -10962,15 +10891,15 @@ var Fade = (_a) => {
|
|
|
10962
10891
|
};
|
|
10963
10892
|
|
|
10964
10893
|
// src/lib/components/BackToTop/BackToTop.tsx
|
|
10965
|
-
import { useEffect as useEffect17, useState as
|
|
10894
|
+
import { useEffect as useEffect17, useState as useState27 } from "react";
|
|
10966
10895
|
import { BiUpArrowAlt } from "react-icons/bi";
|
|
10967
10896
|
import { scrollToTop as scrollToTop2 } from "@julseb-lib/utils";
|
|
10968
|
-
import { jsx as
|
|
10897
|
+
import { jsx as jsx121 } from "react/jsx-runtime";
|
|
10969
10898
|
var BackToTop = (_a) => {
|
|
10970
10899
|
var _b = _a, {
|
|
10971
10900
|
className,
|
|
10972
10901
|
ref,
|
|
10973
|
-
icon = /* @__PURE__ */
|
|
10902
|
+
icon = /* @__PURE__ */ jsx121(BiUpArrowAlt, {}),
|
|
10974
10903
|
color = "primary",
|
|
10975
10904
|
tooltip = "Back to top",
|
|
10976
10905
|
showTooltip
|
|
@@ -10982,7 +10911,7 @@ var BackToTop = (_a) => {
|
|
|
10982
10911
|
"tooltip",
|
|
10983
10912
|
"showTooltip"
|
|
10984
10913
|
]);
|
|
10985
|
-
const [isVisible, setIsVisible] =
|
|
10914
|
+
const [isVisible, setIsVisible] = useState27(false);
|
|
10986
10915
|
useEffect17(() => {
|
|
10987
10916
|
const scrollFn = () => {
|
|
10988
10917
|
if (window.scrollY >= 200) {
|
|
@@ -11003,7 +10932,7 @@ var BackToTop = (_a) => {
|
|
|
11003
10932
|
document.documentElement.classList.remove("smooth");
|
|
11004
10933
|
}, 1e3);
|
|
11005
10934
|
};
|
|
11006
|
-
return /* @__PURE__ */
|
|
10935
|
+
return /* @__PURE__ */ jsx121(
|
|
11007
10936
|
ButtonIcon,
|
|
11008
10937
|
__spreadValues({
|
|
11009
10938
|
ref,
|
|
@@ -11032,7 +10961,7 @@ var BackToTop = (_a) => {
|
|
|
11032
10961
|
import { useEffect as useEffect18, useRef as useRef20 } from "react";
|
|
11033
10962
|
import { BiX as BiX5 } from "react-icons/bi";
|
|
11034
10963
|
import { disableScroll as disableScroll2, enableScroll as enableScroll2, stringifyPx } from "@julseb-lib/utils";
|
|
11035
|
-
import { jsx as
|
|
10964
|
+
import { jsx as jsx122, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
11036
10965
|
var Drawer = (_a) => {
|
|
11037
10966
|
var _b = _a, {
|
|
11038
10967
|
className,
|
|
@@ -11079,7 +11008,7 @@ var Drawer = (_a) => {
|
|
|
11079
11008
|
if (!enableScrollingOpen && isOpen) disableScroll2();
|
|
11080
11009
|
else enableScroll2();
|
|
11081
11010
|
}, [enableScrollingOpen, isOpen]);
|
|
11082
|
-
return /* @__PURE__ */
|
|
11011
|
+
return /* @__PURE__ */ jsxs50(
|
|
11083
11012
|
Element,
|
|
11084
11013
|
__spreadProps(__spreadValues({
|
|
11085
11014
|
ref,
|
|
@@ -11092,7 +11021,7 @@ var Drawer = (_a) => {
|
|
|
11092
11021
|
)
|
|
11093
11022
|
}, rest), {
|
|
11094
11023
|
children: [
|
|
11095
|
-
/* @__PURE__ */
|
|
11024
|
+
/* @__PURE__ */ jsx122(
|
|
11096
11025
|
"div",
|
|
11097
11026
|
{
|
|
11098
11027
|
className: clsx(
|
|
@@ -11105,7 +11034,7 @@ var Drawer = (_a) => {
|
|
|
11105
11034
|
onClick: () => setIsOpen(false)
|
|
11106
11035
|
}
|
|
11107
11036
|
),
|
|
11108
|
-
/* @__PURE__ */
|
|
11037
|
+
/* @__PURE__ */ jsxs50(
|
|
11109
11038
|
"div",
|
|
11110
11039
|
{
|
|
11111
11040
|
className: clsx(
|
|
@@ -11123,10 +11052,10 @@ var Drawer = (_a) => {
|
|
|
11123
11052
|
ref: el,
|
|
11124
11053
|
children: [
|
|
11125
11054
|
children,
|
|
11126
|
-
!hideCloseButton && /* @__PURE__ */
|
|
11055
|
+
!hideCloseButton && /* @__PURE__ */ jsx122(
|
|
11127
11056
|
ButtonIcon,
|
|
11128
11057
|
{
|
|
11129
|
-
icon: /* @__PURE__ */
|
|
11058
|
+
icon: /* @__PURE__ */ jsx122(BiX5, { size: 24 }),
|
|
11130
11059
|
color: "white",
|
|
11131
11060
|
variant: "transparent",
|
|
11132
11061
|
className: "top-2 right-2 absolute size-12",
|
|
@@ -11142,12 +11071,12 @@ var Drawer = (_a) => {
|
|
|
11142
11071
|
};
|
|
11143
11072
|
|
|
11144
11073
|
// src/lib/components/Header/Header.tsx
|
|
11145
|
-
import { useState as
|
|
11074
|
+
import { useState as useState28, useEffect as useEffect19, useRef as useRef21 } from "react";
|
|
11146
11075
|
import { enableScroll as enableScroll3, disableScroll as disableScroll3 } from "@julseb-lib/utils";
|
|
11147
11076
|
|
|
11148
11077
|
// src/lib/components/Header/HeaderSearch.tsx
|
|
11149
11078
|
import { stringifyPx as stringifyPx2 } from "@julseb-lib/utils";
|
|
11150
|
-
import { jsx as
|
|
11079
|
+
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
11151
11080
|
var HeaderSearch = ({ search, handleClose }) => {
|
|
11152
11081
|
if (!search) return null;
|
|
11153
11082
|
const {
|
|
@@ -11164,7 +11093,7 @@ var HeaderSearch = ({ search, handleClose }) => {
|
|
|
11164
11093
|
maxWidth: maxWidth2 = 400,
|
|
11165
11094
|
clearSearch
|
|
11166
11095
|
} = search;
|
|
11167
|
-
return /* @__PURE__ */
|
|
11096
|
+
return /* @__PURE__ */ jsx123(
|
|
11168
11097
|
"form",
|
|
11169
11098
|
{
|
|
11170
11099
|
onSubmit: (e) => {
|
|
@@ -11173,7 +11102,7 @@ var HeaderSearch = ({ search, handleClose }) => {
|
|
|
11173
11102
|
},
|
|
11174
11103
|
className: clsx("w-full max-w-(--form-max-width)", "search-form"),
|
|
11175
11104
|
style: { ["--form-max-width"]: stringifyPx2(maxWidth2) },
|
|
11176
|
-
children: /* @__PURE__ */
|
|
11105
|
+
children: /* @__PURE__ */ jsx123(
|
|
11177
11106
|
Input,
|
|
11178
11107
|
{
|
|
11179
11108
|
type: "search",
|
|
@@ -11195,7 +11124,7 @@ var HeaderSearch = ({ search, handleClose }) => {
|
|
|
11195
11124
|
};
|
|
11196
11125
|
|
|
11197
11126
|
// src/lib/components/Header/Header.tsx
|
|
11198
|
-
import { Fragment as Fragment13, jsx as
|
|
11127
|
+
import { Fragment as Fragment13, jsx as jsx124, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
11199
11128
|
var Header = (_a) => {
|
|
11200
11129
|
var _b = _a, {
|
|
11201
11130
|
className,
|
|
@@ -11239,8 +11168,8 @@ var Header = (_a) => {
|
|
|
11239
11168
|
const Element = element;
|
|
11240
11169
|
const isMobile = useMaxWidth(16 * 48);
|
|
11241
11170
|
const el = useRef21(null);
|
|
11242
|
-
const [isOpen, setIsOpen] =
|
|
11243
|
-
const [isHidden, setIsHidden] =
|
|
11171
|
+
const [isOpen, setIsOpen] = useState28(false);
|
|
11172
|
+
const [isHidden, setIsHidden] = useState28(false);
|
|
11244
11173
|
const handleOpen = () => {
|
|
11245
11174
|
if (!enableScrollingOpen) disableScroll3();
|
|
11246
11175
|
setIsOpen(true);
|
|
@@ -11274,9 +11203,9 @@ var Header = (_a) => {
|
|
|
11274
11203
|
};
|
|
11275
11204
|
const searchProps = { search, handleClose };
|
|
11276
11205
|
const navProps = {
|
|
11277
|
-
children: /* @__PURE__ */
|
|
11206
|
+
children: /* @__PURE__ */ jsxs51(Fragment13, { children: [
|
|
11278
11207
|
links ? links.map((link) => link) : nav ? nav : children,
|
|
11279
|
-
isMobile && /* @__PURE__ */
|
|
11208
|
+
isMobile && /* @__PURE__ */ jsx124(HeaderSearch, __spreadValues({}, searchProps))
|
|
11280
11209
|
] }),
|
|
11281
11210
|
className: clsx(
|
|
11282
11211
|
"z-999 flex gap-2 [&>a]:outline-none transition-all duration-200 ease-in-out",
|
|
@@ -11305,7 +11234,7 @@ var Header = (_a) => {
|
|
|
11305
11234
|
useClickOutside(el, () => {
|
|
11306
11235
|
if (isOpen) handleClose();
|
|
11307
11236
|
});
|
|
11308
|
-
return /* @__PURE__ */
|
|
11237
|
+
return /* @__PURE__ */ jsxs51(
|
|
11309
11238
|
Element,
|
|
11310
11239
|
__spreadProps(__spreadValues({
|
|
11311
11240
|
ref,
|
|
@@ -11323,8 +11252,8 @@ var Header = (_a) => {
|
|
|
11323
11252
|
)
|
|
11324
11253
|
}, rest), {
|
|
11325
11254
|
children: [
|
|
11326
|
-
burgerPosition === "left" && /* @__PURE__ */
|
|
11327
|
-
/* @__PURE__ */
|
|
11255
|
+
burgerPosition === "left" && /* @__PURE__ */ jsx124(Burger, __spreadValues({}, burgerProps)),
|
|
11256
|
+
/* @__PURE__ */ jsx124(
|
|
11328
11257
|
"span",
|
|
11329
11258
|
{
|
|
11330
11259
|
className: clsx(
|
|
@@ -11334,10 +11263,10 @@ var Header = (_a) => {
|
|
|
11334
11263
|
children: logo
|
|
11335
11264
|
}
|
|
11336
11265
|
),
|
|
11337
|
-
navDesktopPosition === "left" && /* @__PURE__ */
|
|
11338
|
-
!isMobile && navDesktopPosition === "right" && /* @__PURE__ */
|
|
11339
|
-
burgerPosition === "right" && /* @__PURE__ */
|
|
11340
|
-
isMobile && navMobileVariant === "drawer" && /* @__PURE__ */
|
|
11266
|
+
navDesktopPosition === "left" && /* @__PURE__ */ jsx124("nav", __spreadValues({}, navProps)),
|
|
11267
|
+
!isMobile && navDesktopPosition === "right" && /* @__PURE__ */ jsx124(HeaderSearch, __spreadValues({}, searchProps)),
|
|
11268
|
+
burgerPosition === "right" && /* @__PURE__ */ jsx124(Burger, __spreadValues({}, burgerProps)),
|
|
11269
|
+
isMobile && navMobileVariant === "drawer" && /* @__PURE__ */ jsx124(
|
|
11341
11270
|
"div",
|
|
11342
11271
|
{
|
|
11343
11272
|
className: clsx(
|
|
@@ -11349,8 +11278,8 @@ var Header = (_a) => {
|
|
|
11349
11278
|
onClick: handleClose
|
|
11350
11279
|
}
|
|
11351
11280
|
),
|
|
11352
|
-
navDesktopPosition === "right" && /* @__PURE__ */
|
|
11353
|
-
!isMobile && navDesktopPosition === "left" && /* @__PURE__ */
|
|
11281
|
+
navDesktopPosition === "right" && /* @__PURE__ */ jsx124("nav", __spreadValues({}, navProps)),
|
|
11282
|
+
!isMobile && navDesktopPosition === "left" && /* @__PURE__ */ jsx124(HeaderSearch, __spreadValues({}, searchProps))
|
|
11354
11283
|
]
|
|
11355
11284
|
})
|
|
11356
11285
|
);
|
|
@@ -11359,7 +11288,7 @@ var Header = (_a) => {
|
|
|
11359
11288
|
// src/lib/components/Footer/Footer.tsx
|
|
11360
11289
|
import { Children as Children4, Fragment as Fragment14 } from "react";
|
|
11361
11290
|
import { uuid as uuid14 } from "@julseb-lib/utils";
|
|
11362
|
-
import { jsx as
|
|
11291
|
+
import { jsx as jsx125, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
11363
11292
|
var Footer = (_a) => {
|
|
11364
11293
|
var _b = _a, {
|
|
11365
11294
|
className,
|
|
@@ -11389,7 +11318,7 @@ var Footer = (_a) => {
|
|
|
11389
11318
|
var _a2;
|
|
11390
11319
|
const Element = element;
|
|
11391
11320
|
const childrenArray = Children4.toArray(children);
|
|
11392
|
-
return /* @__PURE__ */
|
|
11321
|
+
return /* @__PURE__ */ jsxs52(
|
|
11393
11322
|
Element,
|
|
11394
11323
|
__spreadProps(__spreadValues({
|
|
11395
11324
|
ref,
|
|
@@ -11403,9 +11332,9 @@ var Footer = (_a) => {
|
|
|
11403
11332
|
}, rest), {
|
|
11404
11333
|
children: [
|
|
11405
11334
|
logo,
|
|
11406
|
-
/* @__PURE__ */
|
|
11335
|
+
/* @__PURE__ */ jsx125("div", { className: "flex items-container gap-2", children: (_a2 = items == null ? void 0 : items.map((item, i) => /* @__PURE__ */ jsxs52(Fragment14, { children: [
|
|
11407
11336
|
item,
|
|
11408
|
-
i !== items.length - 1 && !hideLinksSeparator && /* @__PURE__ */
|
|
11337
|
+
i !== items.length - 1 && !hideLinksSeparator && /* @__PURE__ */ jsx125(
|
|
11409
11338
|
"span",
|
|
11410
11339
|
{
|
|
11411
11340
|
className: clsx(
|
|
@@ -11414,7 +11343,7 @@ var Footer = (_a) => {
|
|
|
11414
11343
|
children: linksSeparator === "dot" ? "\u2022" : "-"
|
|
11415
11344
|
}
|
|
11416
11345
|
)
|
|
11417
|
-
] }, uuid14()))) != null ? _a2 : childrenArray.map((child, i) => /* @__PURE__ */
|
|
11346
|
+
] }, uuid14()))) != null ? _a2 : childrenArray.map((child, i) => /* @__PURE__ */ jsxs52(Fragment14, { children: [
|
|
11418
11347
|
child,
|
|
11419
11348
|
i !== childrenArray.length - 1 && !hideLinksSeparator && (linksSeparator === "dot" ? "\u2022" : "-")
|
|
11420
11349
|
] }, uuid14())) })
|
|
@@ -11424,7 +11353,7 @@ var Footer = (_a) => {
|
|
|
11424
11353
|
};
|
|
11425
11354
|
|
|
11426
11355
|
// src/lib/components/Meta/Meta.tsx
|
|
11427
|
-
import { Fragment as Fragment15, jsx as
|
|
11356
|
+
import { Fragment as Fragment15, jsx as jsx126, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
11428
11357
|
var Meta = ({
|
|
11429
11358
|
children,
|
|
11430
11359
|
title,
|
|
@@ -11446,59 +11375,59 @@ var Meta = ({
|
|
|
11446
11375
|
category,
|
|
11447
11376
|
twitterCard = "summary"
|
|
11448
11377
|
}) => {
|
|
11449
|
-
return /* @__PURE__ */
|
|
11450
|
-
/* @__PURE__ */
|
|
11451
|
-
/* @__PURE__ */
|
|
11378
|
+
return /* @__PURE__ */ jsxs53(Fragment15, { children: [
|
|
11379
|
+
/* @__PURE__ */ jsx126("meta", { charSet: "utf-8" }),
|
|
11380
|
+
/* @__PURE__ */ jsx126(
|
|
11452
11381
|
"meta",
|
|
11453
11382
|
{
|
|
11454
11383
|
name: "viewport",
|
|
11455
11384
|
content: "width=device-width, initial-scale=1"
|
|
11456
11385
|
}
|
|
11457
11386
|
),
|
|
11458
|
-
title && /* @__PURE__ */
|
|
11459
|
-
/* @__PURE__ */
|
|
11460
|
-
/* @__PURE__ */
|
|
11461
|
-
/* @__PURE__ */
|
|
11387
|
+
title && /* @__PURE__ */ jsxs53(Fragment15, { children: [
|
|
11388
|
+
/* @__PURE__ */ jsx126("title", { children: title }),
|
|
11389
|
+
/* @__PURE__ */ jsx126("meta", { property: "og:title", content: title }),
|
|
11390
|
+
/* @__PURE__ */ jsx126("meta", { name: "twitter:title", content: title })
|
|
11462
11391
|
] }),
|
|
11463
|
-
description && /* @__PURE__ */
|
|
11464
|
-
/* @__PURE__ */
|
|
11465
|
-
/* @__PURE__ */
|
|
11466
|
-
/* @__PURE__ */
|
|
11392
|
+
description && /* @__PURE__ */ jsxs53(Fragment15, { children: [
|
|
11393
|
+
/* @__PURE__ */ jsx126("meta", { name: "description", content: description }),
|
|
11394
|
+
/* @__PURE__ */ jsx126("meta", { property: "og:description", content: description }),
|
|
11395
|
+
/* @__PURE__ */ jsx126("meta", { name: "twitter:description", content: description })
|
|
11467
11396
|
] }),
|
|
11468
|
-
siteName && /* @__PURE__ */
|
|
11469
|
-
/* @__PURE__ */
|
|
11470
|
-
/* @__PURE__ */
|
|
11397
|
+
siteName && /* @__PURE__ */ jsxs53(Fragment15, { children: [
|
|
11398
|
+
/* @__PURE__ */ jsx126("meta", { name: "application-name", content: siteName }),
|
|
11399
|
+
/* @__PURE__ */ jsx126("meta", { property: "og:site_name", content: siteName })
|
|
11471
11400
|
] }),
|
|
11472
|
-
author && /* @__PURE__ */
|
|
11473
|
-
/* @__PURE__ */
|
|
11474
|
-
/* @__PURE__ */
|
|
11401
|
+
author && /* @__PURE__ */ jsxs53(Fragment15, { children: [
|
|
11402
|
+
/* @__PURE__ */ jsx126("meta", { name: "author", content: author }),
|
|
11403
|
+
/* @__PURE__ */ jsx126("meta", { name: "twitter:creator", content: author })
|
|
11475
11404
|
] }),
|
|
11476
|
-
url && /* @__PURE__ */
|
|
11477
|
-
/* @__PURE__ */
|
|
11478
|
-
/* @__PURE__ */
|
|
11405
|
+
url && /* @__PURE__ */ jsxs53(Fragment15, { children: [
|
|
11406
|
+
/* @__PURE__ */ jsx126("meta", { property: "og:url", content: url }),
|
|
11407
|
+
/* @__PURE__ */ jsx126("meta", { name: "twitter:site", content: url })
|
|
11479
11408
|
] }),
|
|
11480
|
-
cover && /* @__PURE__ */
|
|
11481
|
-
/* @__PURE__ */
|
|
11482
|
-
/* @__PURE__ */
|
|
11409
|
+
cover && /* @__PURE__ */ jsxs53(Fragment15, { children: [
|
|
11410
|
+
/* @__PURE__ */ jsx126("meta", { property: "og:image", content: cover }),
|
|
11411
|
+
/* @__PURE__ */ jsx126("meta", { name: "twitter:image", content: cover })
|
|
11483
11412
|
] }),
|
|
11484
|
-
authorUrl && /* @__PURE__ */
|
|
11485
|
-
manifest && /* @__PURE__ */
|
|
11486
|
-
generator && /* @__PURE__ */
|
|
11487
|
-
keywords && /* @__PURE__ */
|
|
11488
|
-
creator && /* @__PURE__ */
|
|
11489
|
-
publisher && /* @__PURE__ */
|
|
11490
|
-
category && /* @__PURE__ */
|
|
11491
|
-
language && /* @__PURE__ */
|
|
11492
|
-
email && /* @__PURE__ */
|
|
11493
|
-
type && /* @__PURE__ */
|
|
11494
|
-
twitterCard && /* @__PURE__ */
|
|
11495
|
-
favicon && /* @__PURE__ */
|
|
11413
|
+
authorUrl && /* @__PURE__ */ jsx126("link", { rel: "author", href: authorUrl }),
|
|
11414
|
+
manifest && /* @__PURE__ */ jsx126("link", { rel: "manifest", href: manifest }),
|
|
11415
|
+
generator && /* @__PURE__ */ jsx126("meta", { name: "generator", content: generator }),
|
|
11416
|
+
keywords && /* @__PURE__ */ jsx126("meta", { name: "keywords", content: keywords == null ? void 0 : keywords.join(",") }),
|
|
11417
|
+
creator && /* @__PURE__ */ jsx126("meta", { name: "creator", content: creator }),
|
|
11418
|
+
publisher && /* @__PURE__ */ jsx126("meta", { name: "publisher", content: publisher }),
|
|
11419
|
+
category && /* @__PURE__ */ jsx126("meta", { name: "category", content: category }),
|
|
11420
|
+
language && /* @__PURE__ */ jsx126("meta", { property: "og:locale", content: language }),
|
|
11421
|
+
email && /* @__PURE__ */ jsx126("meta", { property: "og:email", content: email }),
|
|
11422
|
+
type && /* @__PURE__ */ jsx126("meta", { property: "og:type", content: type }),
|
|
11423
|
+
twitterCard && /* @__PURE__ */ jsx126("meta", { name: "twitter:card", content: twitterCard }),
|
|
11424
|
+
favicon && /* @__PURE__ */ jsx126("link", { rel: "icon", href: favicon }),
|
|
11496
11425
|
children
|
|
11497
11426
|
] });
|
|
11498
11427
|
};
|
|
11499
11428
|
|
|
11500
11429
|
// src/lib/components/PageLayout/PageLayout.tsx
|
|
11501
|
-
import { Fragment as Fragment16, jsx as
|
|
11430
|
+
import { Fragment as Fragment16, jsx as jsx127, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
11502
11431
|
var PageLayout = ({
|
|
11503
11432
|
children,
|
|
11504
11433
|
meta,
|
|
@@ -11509,19 +11438,19 @@ var PageLayout = ({
|
|
|
11509
11438
|
noWrapper,
|
|
11510
11439
|
noMain
|
|
11511
11440
|
}) => {
|
|
11512
|
-
return /* @__PURE__ */
|
|
11513
|
-
meta && /* @__PURE__ */
|
|
11514
|
-
header && /* @__PURE__ */
|
|
11515
|
-
!noWrapper && /* @__PURE__ */
|
|
11516
|
-
footer && /* @__PURE__ */
|
|
11441
|
+
return /* @__PURE__ */ jsxs54(Fragment16, { children: [
|
|
11442
|
+
meta && /* @__PURE__ */ jsx127(Meta, __spreadValues({}, meta)),
|
|
11443
|
+
header && /* @__PURE__ */ jsx127(Header, __spreadValues({}, header)),
|
|
11444
|
+
!noWrapper && /* @__PURE__ */ jsx127(Wrapper, __spreadProps(__spreadValues({}, wrapperProps), { children: !noMain ? /* @__PURE__ */ jsx127(Main, __spreadProps(__spreadValues({}, mainProps), { children })) : children })),
|
|
11445
|
+
footer && /* @__PURE__ */ jsx127(Footer, __spreadValues({}, footer))
|
|
11517
11446
|
] });
|
|
11518
11447
|
};
|
|
11519
11448
|
|
|
11520
11449
|
// src/lib/components/SrOnly/SrOnly.tsx
|
|
11521
|
-
import { jsx as
|
|
11450
|
+
import { jsx as jsx128 } from "react/jsx-runtime";
|
|
11522
11451
|
var SrOnly = ({ element = "div", ref, children }) => {
|
|
11523
11452
|
const Element = element;
|
|
11524
|
-
return /* @__PURE__ */
|
|
11453
|
+
return /* @__PURE__ */ jsx128(Element, { ref, className: clsx("sr-only"), children });
|
|
11525
11454
|
};
|
|
11526
11455
|
export {
|
|
11527
11456
|
Accordion,
|
|
@@ -11538,7 +11467,6 @@ export {
|
|
|
11538
11467
|
ButtonGroup,
|
|
11539
11468
|
ButtonIcon,
|
|
11540
11469
|
COLORS,
|
|
11541
|
-
CodeContainer,
|
|
11542
11470
|
Cover,
|
|
11543
11471
|
DROP_SHADOWS,
|
|
11544
11472
|
DragList,
|