@fluid-app/portal-sdk 0.1.443 → 0.1.444
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 +18 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +18 -36
- package/dist/index.mjs.map +1 -1
- package/dist/styles/packages.css +2 -0
- package/package.json +16 -16
- package/styles/packages.css +1 -0
package/dist/index.cjs
CHANGED
|
@@ -90,6 +90,7 @@ let tailwind_merge = require("tailwind-merge");
|
|
|
90
90
|
let _radix_ui_react_slot = require("@radix-ui/react-slot");
|
|
91
91
|
let class_variance_authority = require("class-variance-authority");
|
|
92
92
|
let react_dom_client = require("react-dom/client");
|
|
93
|
+
let _fluid_app_ui_components_components_MobileBottomSheet = require("@fluid-app/ui-components/components/MobileBottomSheet");
|
|
93
94
|
//#region src/types/page-template.ts
|
|
94
95
|
/**
|
|
95
96
|
* Built-in page category IDs
|
|
@@ -958,7 +959,7 @@ function AppShellLayout({ sidebarContent, headerContent, children, sidebarHeader
|
|
|
958
959
|
ref: screenContentRef,
|
|
959
960
|
"data-fluid-portal-screen-area": "",
|
|
960
961
|
tabIndex: -1,
|
|
961
|
-
className: "ring-foreground/5 scrollbar-none bg-background text-foreground h-full overflow-auto rounded-xl shadow-sm ring-1",
|
|
962
|
+
className: "ring-foreground/5 scrollbar-none bg-background text-foreground h-full overflow-auto rounded-xl shadow-sm ring-1 max-md:rounded-none max-md:shadow-none max-md:ring-0",
|
|
962
963
|
children
|
|
963
964
|
})
|
|
964
965
|
})]
|
|
@@ -1272,41 +1273,22 @@ function SdkBottomNav({ navItems, currentSlug, onNavigate, appDefinitionId = 0,
|
|
|
1272
1273
|
className: `flex flex-1 flex-col items-center justify-center gap-0.5 py-2 text-[10px] font-medium transition-colors ${overflowItems.some((item) => isInSection(item, currentSlug)) ? "text-primary" : "text-muted-foreground"}`,
|
|
1273
1274
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Ellipsis, { className: "size-5" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("nav_more") })]
|
|
1274
1275
|
})]
|
|
1275
|
-
}),
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
className:
|
|
1285
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
className: "text-muted-foreground hover:bg-sidebar-accent flex items-center justify-center rounded-full p-1",
|
|
1292
|
-
"aria-label": t("nav_close"),
|
|
1293
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.X, { className: "size-5" })
|
|
1294
|
-
})]
|
|
1295
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1296
|
-
className: "px-2 pb-4",
|
|
1297
|
-
children: overflowItems.map((item) => {
|
|
1298
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
1299
|
-
type: "button",
|
|
1300
|
-
onClick: () => handleItemClick(item),
|
|
1301
|
-
className: `flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm font-medium transition-colors ${isInSection(item, currentSlug) ? "bg-sidebar-primary text-sidebar-primary-foreground" : "text-sidebar-foreground hover:bg-sidebar-accent"}`,
|
|
1302
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(RepIcon, {
|
|
1303
|
-
name: item.icon || "file",
|
|
1304
|
-
className: "size-5"
|
|
1305
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: translateNavLabel(shellApi, item.slug, item.label) })]
|
|
1306
|
-
}, item.id ?? item.slug ?? item.label);
|
|
1307
|
-
})
|
|
1308
|
-
})]
|
|
1309
|
-
})]
|
|
1276
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_fluid_app_ui_components_components_MobileBottomSheet.MobileBottomSheet, {
|
|
1277
|
+
open: moreOpen,
|
|
1278
|
+
onOpenChange: setMoreOpen,
|
|
1279
|
+
title: t("nav_more"),
|
|
1280
|
+
surface: "sidebar",
|
|
1281
|
+
children: overflowItems.map((item) => {
|
|
1282
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
1283
|
+
type: "button",
|
|
1284
|
+
onClick: () => handleItemClick(item),
|
|
1285
|
+
className: `flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm font-medium transition-colors ${isInSection(item, currentSlug) ? "bg-sidebar-primary text-sidebar-primary-foreground" : "text-sidebar-foreground hover:bg-sidebar-accent"}`,
|
|
1286
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(RepIcon, {
|
|
1287
|
+
name: item.icon || "file",
|
|
1288
|
+
className: "size-5"
|
|
1289
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: translateNavLabel(shellApi, item.slug, item.label) })]
|
|
1290
|
+
}, item.id ?? item.slug ?? item.label);
|
|
1291
|
+
})
|
|
1310
1292
|
})] });
|
|
1311
1293
|
}
|
|
1312
1294
|
//#endregion
|