docstra 1.1.0 → 1.1.1
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/client/index.js +3 -3
- package/dist/client/index.mjs +3 -3
- package/dist/styles.css +6 -0
- package/package.json +1 -1
package/dist/client/index.js
CHANGED
|
@@ -269,7 +269,7 @@ function DocstraSidebar() {
|
|
|
269
269
|
"aside",
|
|
270
270
|
{
|
|
271
271
|
className: cn(
|
|
272
|
-
"sticky md:top-18 h-[calc(100svh-72px)] scrollbar-y w-screen z-21 md:w-72 pb-10 text-base md:text-sm shrink-0 border-r border-gray-200 p-4 max-md:fixed bg-white overflow-y-auto transition-all duration-300",
|
|
272
|
+
"sticky md:top-18 h-[calc(100svh-72px)] scrollbar-y w-screen max-md:rounded-t-lg z-21 md:w-72 pb-10 text-base md:text-sm shrink-0 border-r border-gray-200 p-4 max-md:fixed bg-white overflow-y-auto transition-all duration-300",
|
|
273
273
|
openSidebar ? "top-32" : "top-full"
|
|
274
274
|
),
|
|
275
275
|
children: [
|
|
@@ -277,7 +277,7 @@ function DocstraSidebar() {
|
|
|
277
277
|
"div",
|
|
278
278
|
{
|
|
279
279
|
className: "flex items-center gap-2 cursor-pointer mt-6 mb-4 p-2.5 text-gray-500 border border-gray-200 rounded-lg hover:bg-gray-50",
|
|
280
|
-
onClick: () => import_react_toast_msg2.toast.
|
|
280
|
+
onClick: () => import_react_toast_msg2.toast.warning("Search is not available yet!"),
|
|
281
281
|
children: [
|
|
282
282
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react3.SearchIcon, { className: "size-4.5" }),
|
|
283
283
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { children: "Search" }),
|
|
@@ -298,7 +298,7 @@ function DocstraSidebar() {
|
|
|
298
298
|
href: link.href,
|
|
299
299
|
onNavigate: () => openSidebar && setOpenSidebar(false),
|
|
300
300
|
className: cn(
|
|
301
|
-
"flex items-center gap-2 text-gray-500 hover:bg-gray-100 py-2 px-2.5 rounded-lg
|
|
301
|
+
"flex items-center gap-2 text-gray-500 hover:bg-gray-100 py-2 px-2.5 rounded-lg",
|
|
302
302
|
pathname === link.href && "bg-gray-100 text-gray-800"
|
|
303
303
|
),
|
|
304
304
|
children: [
|
package/dist/client/index.mjs
CHANGED
|
@@ -227,7 +227,7 @@ function DocstraSidebar() {
|
|
|
227
227
|
"aside",
|
|
228
228
|
{
|
|
229
229
|
className: cn(
|
|
230
|
-
"sticky md:top-18 h-[calc(100svh-72px)] scrollbar-y w-screen z-21 md:w-72 pb-10 text-base md:text-sm shrink-0 border-r border-gray-200 p-4 max-md:fixed bg-white overflow-y-auto transition-all duration-300",
|
|
230
|
+
"sticky md:top-18 h-[calc(100svh-72px)] scrollbar-y w-screen max-md:rounded-t-lg z-21 md:w-72 pb-10 text-base md:text-sm shrink-0 border-r border-gray-200 p-4 max-md:fixed bg-white overflow-y-auto transition-all duration-300",
|
|
231
231
|
openSidebar ? "top-32" : "top-full"
|
|
232
232
|
),
|
|
233
233
|
children: [
|
|
@@ -235,7 +235,7 @@ function DocstraSidebar() {
|
|
|
235
235
|
"div",
|
|
236
236
|
{
|
|
237
237
|
className: "flex items-center gap-2 cursor-pointer mt-6 mb-4 p-2.5 text-gray-500 border border-gray-200 rounded-lg hover:bg-gray-50",
|
|
238
|
-
onClick: () => toast.
|
|
238
|
+
onClick: () => toast.warning("Search is not available yet!"),
|
|
239
239
|
children: [
|
|
240
240
|
/* @__PURE__ */ jsx5(SearchIcon2, { className: "size-4.5" }),
|
|
241
241
|
/* @__PURE__ */ jsx5("p", { children: "Search" }),
|
|
@@ -256,7 +256,7 @@ function DocstraSidebar() {
|
|
|
256
256
|
href: link.href,
|
|
257
257
|
onNavigate: () => openSidebar && setOpenSidebar(false),
|
|
258
258
|
className: cn(
|
|
259
|
-
"flex items-center gap-2 text-gray-500 hover:bg-gray-100 py-2 px-2.5 rounded-lg
|
|
259
|
+
"flex items-center gap-2 text-gray-500 hover:bg-gray-100 py-2 px-2.5 rounded-lg",
|
|
260
260
|
pathname === link.href && "bg-gray-100 text-gray-800"
|
|
261
261
|
),
|
|
262
262
|
children: [
|
package/dist/styles.css
CHANGED
|
@@ -996,6 +996,12 @@
|
|
|
996
996
|
overflow: hidden;
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
|
+
.max-md\:rounded-t-lg {
|
|
1000
|
+
@media (width < 48rem) {
|
|
1001
|
+
border-top-left-radius: var(--radius-lg);
|
|
1002
|
+
border-top-right-radius: var(--radius-lg);
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
999
1005
|
.max-md\:px-4 {
|
|
1000
1006
|
@media (width < 48rem) {
|
|
1001
1007
|
padding-inline: calc(var(--spacing) * 4);
|