@julseb-lib/react 1.0.4 → 1.0.6
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 +10 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -13
- package/dist/index.d.ts +19 -13
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3056,26 +3056,28 @@ declare const Drawer: FC$1<ILibDrawer>;
|
|
|
3056
3056
|
* </nav>
|
|
3057
3057
|
* </Header>
|
|
3058
3058
|
*
|
|
3059
|
-
* @extends
|
|
3059
|
+
* @extends ILibHeader
|
|
3060
3060
|
*
|
|
3061
3061
|
* @prop {string} [props.className] - Additional CSS classes to apply to the header container.
|
|
3062
|
-
* @prop {React.ElementType} [props.element="header"] - HTML element type to render as the container.
|
|
3062
|
+
* @prop {React.ElementType} [props.element="header"] - HTML element type to render as the container. Default: "header".
|
|
3063
3063
|
* @prop {React.Ref<HTMLDivElement>} [props.ref] - Ref to the header element.
|
|
3064
|
-
* @prop {React.ReactNode} [props.logo] - Logo content to display in the header.
|
|
3065
|
-
* @prop {"left" | "right"} [props.burgerPosition="right"] - Position of the burger menu button.
|
|
3066
|
-
* @prop {LibColorsHover | object} [props.burgerColor="white"] - Color for the burger menu button, can be a single color or object with open/closed states.
|
|
3067
3064
|
* @prop {React.ReactNode} [props.children] - Content to display in the navigation area.
|
|
3068
|
-
* @prop {
|
|
3069
|
-
* @prop {"
|
|
3065
|
+
* @prop {React.ReactNode} [props.logo] - Logo content to display in the header.
|
|
3066
|
+
* @prop {"left" | "right"} [props.burgerPosition="right"] - Position of the burger menu button. Possible values: "left", "right". Default: "right".
|
|
3067
|
+
* @prop {LibColorsHover | { open: LibColorsHover; closed: LibColorsHover }} [props.burgerColor="white"] - Color for the burger menu button, can be a single color or object with open/closed states. Default: "white".
|
|
3068
|
+
* @prop {"left" | "right"} [props.navDesktopPosition="right"] - Position of the navigation on desktop screens. Possible values: "left", "right". Default: "right".
|
|
3069
|
+
* @prop {"drawer" | "full" | "top"} [props.navMobileVariant="drawer"] - Variant for mobile navigation display. Possible values: "drawer", "full", "top". Default: "drawer".
|
|
3070
3070
|
* @prop {boolean} [props.enableScrollingOpen] - Whether to allow page scrolling when mobile menu is open.
|
|
3071
3071
|
* @prop {React.ReactNode} [props.search] - Search component to display in the header.
|
|
3072
|
-
* @prop {"relative" | "absolute" | "fixed"} [props.position="relative"] - CSS position property for the header.
|
|
3072
|
+
* @prop {"relative" | "absolute" | "fixed"} [props.position="relative"] - CSS position property for the header. Possible values: "relative", "absolute", "fixed". Default: "relative".
|
|
3073
3073
|
* @prop {boolean | number} [props.hideOnScroll] - Whether to hide header on scroll, or scroll threshold in pixels.
|
|
3074
3074
|
* @prop {Array<React.ReactNode>} [props.links] - Array of link elements for navigation.
|
|
3075
3075
|
* @prop {React.ReactNode} [props.nav] - Navigation content to display.
|
|
3076
|
-
* @prop {LibAllColors} [props.backgroundColor="primary"] - Background color for the header.
|
|
3077
|
-
* @prop {LibAllColors} [props.
|
|
3078
|
-
* @prop {
|
|
3076
|
+
* @prop {LibAllColors} [props.backgroundColor="primary"] - Background color for the header. Default: "primary".
|
|
3077
|
+
* @prop {LibAllColors} [props.navMobileBackground=backgroundColor] - Background color for mobile navigation. Default: backgroundColor value.
|
|
3078
|
+
* @prop {LibAllColors} [props.textColor="white"] - Text color for header content. Default: "white".
|
|
3079
|
+
* @prop {LibColorsHover} [props.linksColor="white"] - Color for navigation links. Default: "white".
|
|
3080
|
+
* @prop {LibAllColors} [props.headerOpenMobileBackground=backgroundColor] - Background color when mobile menu is open. Default: backgroundColor value.
|
|
3079
3081
|
*
|
|
3080
3082
|
* @returns {JSX.Element} The rendered Header component.
|
|
3081
3083
|
*
|
|
@@ -3137,6 +3139,8 @@ declare const Footer: FC$1<ILibFooter>;
|
|
|
3137
3139
|
* url="https://mywebsite.com"
|
|
3138
3140
|
* />
|
|
3139
3141
|
*
|
|
3142
|
+
* @extends ILibMeta
|
|
3143
|
+
*
|
|
3140
3144
|
* @prop {React.ReactNode} [props.children] - Additional meta tags or head elements to include.
|
|
3141
3145
|
* @prop {string} [props.title] - Page title for the document and social media.
|
|
3142
3146
|
* @prop {string} [props.favicon] - URL path to the favicon icon file.
|
|
@@ -3146,7 +3150,7 @@ declare const Footer: FC$1<ILibFooter>;
|
|
|
3146
3150
|
* @prop {string} [props.author] - Author name for the page content.
|
|
3147
3151
|
* @prop {string} [props.authorUrl] - URL to the author's profile or website.
|
|
3148
3152
|
* @prop {string} [props.publisher] - Publisher name for the content.
|
|
3149
|
-
* @prop {string} [props.type] - Open Graph type
|
|
3153
|
+
* @prop {string} [props.type="website"] - Open Graph type. Possible values: "website", "article". Default: "website".
|
|
3150
3154
|
* @prop {string} [props.cover] - URL to the cover image for social media sharing.
|
|
3151
3155
|
* @prop {string} [props.siteName] - Name of the website or application.
|
|
3152
3156
|
* @prop {string} [props.language] - Language locale code (e.g., "en-US").
|
|
@@ -3155,7 +3159,9 @@ declare const Footer: FC$1<ILibFooter>;
|
|
|
3155
3159
|
* @prop {string} [props.creator] - Creator name for the content.
|
|
3156
3160
|
* @prop {string} [props.manifest] - URL path to the web app manifest file.
|
|
3157
3161
|
* @prop {string} [props.category] - Category classification for the content.
|
|
3158
|
-
* @prop {string} [props.twitterCard] - Twitter Card type
|
|
3162
|
+
* @prop {string} [props.twitterCard="summary"] - Twitter Card type. Possible values: "summary", "summary_large_image". Default: "summary".
|
|
3163
|
+
* @prop {string} [props.appleTouchIcon] - URL path to the Apple touch icon file.
|
|
3164
|
+
* @prop {string} [props.themeColor] - Theme color for the browser interface.
|
|
3159
3165
|
*
|
|
3160
3166
|
* @returns {JSX.Element} The rendered Meta component with HTML head elements.
|
|
3161
3167
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -3056,26 +3056,28 @@ declare const Drawer: FC$1<ILibDrawer>;
|
|
|
3056
3056
|
* </nav>
|
|
3057
3057
|
* </Header>
|
|
3058
3058
|
*
|
|
3059
|
-
* @extends
|
|
3059
|
+
* @extends ILibHeader
|
|
3060
3060
|
*
|
|
3061
3061
|
* @prop {string} [props.className] - Additional CSS classes to apply to the header container.
|
|
3062
|
-
* @prop {React.ElementType} [props.element="header"] - HTML element type to render as the container.
|
|
3062
|
+
* @prop {React.ElementType} [props.element="header"] - HTML element type to render as the container. Default: "header".
|
|
3063
3063
|
* @prop {React.Ref<HTMLDivElement>} [props.ref] - Ref to the header element.
|
|
3064
|
-
* @prop {React.ReactNode} [props.logo] - Logo content to display in the header.
|
|
3065
|
-
* @prop {"left" | "right"} [props.burgerPosition="right"] - Position of the burger menu button.
|
|
3066
|
-
* @prop {LibColorsHover | object} [props.burgerColor="white"] - Color for the burger menu button, can be a single color or object with open/closed states.
|
|
3067
3064
|
* @prop {React.ReactNode} [props.children] - Content to display in the navigation area.
|
|
3068
|
-
* @prop {
|
|
3069
|
-
* @prop {"
|
|
3065
|
+
* @prop {React.ReactNode} [props.logo] - Logo content to display in the header.
|
|
3066
|
+
* @prop {"left" | "right"} [props.burgerPosition="right"] - Position of the burger menu button. Possible values: "left", "right". Default: "right".
|
|
3067
|
+
* @prop {LibColorsHover | { open: LibColorsHover; closed: LibColorsHover }} [props.burgerColor="white"] - Color for the burger menu button, can be a single color or object with open/closed states. Default: "white".
|
|
3068
|
+
* @prop {"left" | "right"} [props.navDesktopPosition="right"] - Position of the navigation on desktop screens. Possible values: "left", "right". Default: "right".
|
|
3069
|
+
* @prop {"drawer" | "full" | "top"} [props.navMobileVariant="drawer"] - Variant for mobile navigation display. Possible values: "drawer", "full", "top". Default: "drawer".
|
|
3070
3070
|
* @prop {boolean} [props.enableScrollingOpen] - Whether to allow page scrolling when mobile menu is open.
|
|
3071
3071
|
* @prop {React.ReactNode} [props.search] - Search component to display in the header.
|
|
3072
|
-
* @prop {"relative" | "absolute" | "fixed"} [props.position="relative"] - CSS position property for the header.
|
|
3072
|
+
* @prop {"relative" | "absolute" | "fixed"} [props.position="relative"] - CSS position property for the header. Possible values: "relative", "absolute", "fixed". Default: "relative".
|
|
3073
3073
|
* @prop {boolean | number} [props.hideOnScroll] - Whether to hide header on scroll, or scroll threshold in pixels.
|
|
3074
3074
|
* @prop {Array<React.ReactNode>} [props.links] - Array of link elements for navigation.
|
|
3075
3075
|
* @prop {React.ReactNode} [props.nav] - Navigation content to display.
|
|
3076
|
-
* @prop {LibAllColors} [props.backgroundColor="primary"] - Background color for the header.
|
|
3077
|
-
* @prop {LibAllColors} [props.
|
|
3078
|
-
* @prop {
|
|
3076
|
+
* @prop {LibAllColors} [props.backgroundColor="primary"] - Background color for the header. Default: "primary".
|
|
3077
|
+
* @prop {LibAllColors} [props.navMobileBackground=backgroundColor] - Background color for mobile navigation. Default: backgroundColor value.
|
|
3078
|
+
* @prop {LibAllColors} [props.textColor="white"] - Text color for header content. Default: "white".
|
|
3079
|
+
* @prop {LibColorsHover} [props.linksColor="white"] - Color for navigation links. Default: "white".
|
|
3080
|
+
* @prop {LibAllColors} [props.headerOpenMobileBackground=backgroundColor] - Background color when mobile menu is open. Default: backgroundColor value.
|
|
3079
3081
|
*
|
|
3080
3082
|
* @returns {JSX.Element} The rendered Header component.
|
|
3081
3083
|
*
|
|
@@ -3137,6 +3139,8 @@ declare const Footer: FC$1<ILibFooter>;
|
|
|
3137
3139
|
* url="https://mywebsite.com"
|
|
3138
3140
|
* />
|
|
3139
3141
|
*
|
|
3142
|
+
* @extends ILibMeta
|
|
3143
|
+
*
|
|
3140
3144
|
* @prop {React.ReactNode} [props.children] - Additional meta tags or head elements to include.
|
|
3141
3145
|
* @prop {string} [props.title] - Page title for the document and social media.
|
|
3142
3146
|
* @prop {string} [props.favicon] - URL path to the favicon icon file.
|
|
@@ -3146,7 +3150,7 @@ declare const Footer: FC$1<ILibFooter>;
|
|
|
3146
3150
|
* @prop {string} [props.author] - Author name for the page content.
|
|
3147
3151
|
* @prop {string} [props.authorUrl] - URL to the author's profile or website.
|
|
3148
3152
|
* @prop {string} [props.publisher] - Publisher name for the content.
|
|
3149
|
-
* @prop {string} [props.type] - Open Graph type
|
|
3153
|
+
* @prop {string} [props.type="website"] - Open Graph type. Possible values: "website", "article". Default: "website".
|
|
3150
3154
|
* @prop {string} [props.cover] - URL to the cover image for social media sharing.
|
|
3151
3155
|
* @prop {string} [props.siteName] - Name of the website or application.
|
|
3152
3156
|
* @prop {string} [props.language] - Language locale code (e.g., "en-US").
|
|
@@ -3155,7 +3159,9 @@ declare const Footer: FC$1<ILibFooter>;
|
|
|
3155
3159
|
* @prop {string} [props.creator] - Creator name for the content.
|
|
3156
3160
|
* @prop {string} [props.manifest] - URL path to the web app manifest file.
|
|
3157
3161
|
* @prop {string} [props.category] - Category classification for the content.
|
|
3158
|
-
* @prop {string} [props.twitterCard] - Twitter Card type
|
|
3162
|
+
* @prop {string} [props.twitterCard="summary"] - Twitter Card type. Possible values: "summary", "summary_large_image". Default: "summary".
|
|
3163
|
+
* @prop {string} [props.appleTouchIcon] - URL path to the Apple touch icon file.
|
|
3164
|
+
* @prop {string} [props.themeColor] - Theme color for the browser interface.
|
|
3159
3165
|
*
|
|
3160
3166
|
* @returns {JSX.Element} The rendered Meta component with HTML head elements.
|
|
3161
3167
|
*
|
package/dist/index.js
CHANGED
|
@@ -1831,7 +1831,7 @@ var Table = ({
|
|
|
1831
1831
|
{
|
|
1832
1832
|
ref,
|
|
1833
1833
|
className: clsx(
|
|
1834
|
-
"table bg-background w-full h-[1px] border-collapse border-spacing-0 table-fixed
|
|
1834
|
+
"table bg-background w-full h-[1px] border-collapse border-spacing-0 table-fixed",
|
|
1835
1835
|
TEXT_BASE_CLASSES,
|
|
1836
1836
|
"text-(length:--font-size-small)",
|
|
1837
1837
|
genLinkColor["primary"],
|
|
@@ -1859,13 +1859,16 @@ var Table = ({
|
|
|
1859
1859
|
headers && /* @__PURE__ */ jsx17("thead", { className: clsx(genVAlign[vAlign]), children: /* @__PURE__ */ jsx17("tr", { className: clsx(genVAlign[vAlign]), children: headers.map((header) => /* @__PURE__ */ jsx17(
|
|
1860
1860
|
"th",
|
|
1861
1861
|
{
|
|
1862
|
-
className: clsx(
|
|
1862
|
+
className: clsx(
|
|
1863
|
+
genVAlign[vAlign],
|
|
1864
|
+
"no-scrollbar"
|
|
1865
|
+
),
|
|
1863
1866
|
children: linkify && typeof header === "string" ? linkifyText(header, blank) : header
|
|
1864
1867
|
},
|
|
1865
1868
|
uuid2()
|
|
1866
1869
|
)) }) }),
|
|
1867
|
-
data ? /* @__PURE__ */ jsx17("tbody", { className: clsx(genVAlign[vAlign]), children: data.map((row) => /* @__PURE__ */ jsx17("tr", { children: row.map((col) => /* @__PURE__ */ jsx17("td", { children: linkify && typeof col === "string" ? linkifyText(col, blank) : col }, uuid2())) }, uuid2())) }) : /* @__PURE__ */ jsx17("tbody", { children }),
|
|
1868
|
-
footers && /* @__PURE__ */ jsx17("tfoot", { children: /* @__PURE__ */ jsx17("tr", { children: footers.map((footer) => /* @__PURE__ */ jsx17("td", { children: linkify && typeof footer === "string" ? linkifyText(footer, blank) : footer }, uuid2())) }) })
|
|
1870
|
+
data ? /* @__PURE__ */ jsx17("tbody", { className: clsx(genVAlign[vAlign]), children: data.map((row) => /* @__PURE__ */ jsx17("tr", { children: row.map((col) => /* @__PURE__ */ jsx17("td", { className: "no-scrollbar", children: linkify && typeof col === "string" ? linkifyText(col, blank) : col }, uuid2())) }, uuid2())) }) : /* @__PURE__ */ jsx17("tbody", { children }),
|
|
1871
|
+
footers && /* @__PURE__ */ jsx17("tfoot", { children: /* @__PURE__ */ jsx17("tr", { children: footers.map((footer) => /* @__PURE__ */ jsx17("td", { className: "no-scrollbar", children: linkify && typeof footer === "string" ? linkifyText(footer, blank) : footer }, uuid2())) }) })
|
|
1869
1872
|
]
|
|
1870
1873
|
}
|
|
1871
1874
|
);
|
|
@@ -69410,7 +69413,7 @@ var Header = ({
|
|
|
69410
69413
|
links,
|
|
69411
69414
|
nav,
|
|
69412
69415
|
backgroundColor = "primary",
|
|
69413
|
-
navMobileBackground,
|
|
69416
|
+
navMobileBackground = backgroundColor,
|
|
69414
69417
|
textColor = "white",
|
|
69415
69418
|
linksColor = "white",
|
|
69416
69419
|
headerOpenMobileBackground = backgroundColor,
|
|
@@ -69459,7 +69462,7 @@ var Header = ({
|
|
|
69459
69462
|
isMobile && /* @__PURE__ */ jsx366(HeaderSearch, { ...searchProps })
|
|
69460
69463
|
] }),
|
|
69461
69464
|
className: clsx(
|
|
69462
|
-
"z-999 flex gap-2 [&>a]:outline-none transition-all duration-200 ease-in-out",
|
|
69465
|
+
"z-999 flex gap-2 [&>a]:outline-none w-fit transition-all duration-200 ease-in-out",
|
|
69463
69466
|
"fixed md:relative",
|
|
69464
69467
|
"flex-col md:flex-row px-[5%] md:px-0",
|
|
69465
69468
|
genRingColorChildren[linksColor],
|
|
@@ -69747,7 +69750,7 @@ var CodeContainer = ({
|
|
|
69747
69750
|
"pre",
|
|
69748
69751
|
{
|
|
69749
69752
|
style,
|
|
69750
|
-
className: "relative max-w-full overflow-x-scroll
|
|
69753
|
+
className: "relative max-w-full overflow-x-scroll no-scrollbar",
|
|
69751
69754
|
children: tokens.map((line, i) => /* @__PURE__ */ jsxs296("div", { ...getLineProps({ line }), children: [
|
|
69752
69755
|
showNumbers && /* @__PURE__ */ jsx371("span", { className: "mr-6", children: i + 1 }),
|
|
69753
69756
|
line.map((token, key) => /* @__PURE__ */ jsx371(
|