@mirror-physics/fractal-ui 0.2.0-next.34 → 0.2.0-next.36
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 +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +32 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1515,11 +1515,12 @@ function SurfaceGhost({ className, title, lines = 3, ...props }) {
|
|
|
1515
1515
|
var React11 = __toESM(require("react"), 1);
|
|
1516
1516
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1517
1517
|
var Sidebar = React11.forwardRef(
|
|
1518
|
-
({ className, width, style, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1518
|
+
({ className, width, compact = false, style, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1519
1519
|
"aside",
|
|
1520
1520
|
{
|
|
1521
1521
|
ref,
|
|
1522
1522
|
className: cn("fractal-sidebar", className),
|
|
1523
|
+
"data-compact": compact || void 0,
|
|
1523
1524
|
style: { ...style, ...width ? { "--fractal-sidebar-width": width } : {} },
|
|
1524
1525
|
...props
|
|
1525
1526
|
}
|
|
@@ -1539,6 +1540,7 @@ function SidebarAccountMenu({
|
|
|
1539
1540
|
items,
|
|
1540
1541
|
onSelect,
|
|
1541
1542
|
triggerLabel = "Account menu",
|
|
1543
|
+
icon,
|
|
1542
1544
|
className
|
|
1543
1545
|
}) {
|
|
1544
1546
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
@@ -1551,7 +1553,10 @@ function SidebarAccountMenu({
|
|
|
1551
1553
|
panelClassName: "fractal-sidebar__account-panel",
|
|
1552
1554
|
selectedValue: "",
|
|
1553
1555
|
triggerClassName: "fractal-sidebar__account-trigger",
|
|
1554
|
-
triggerContent: /* @__PURE__ */ (0, import_jsx_runtime22.
|
|
1556
|
+
triggerContent: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
|
|
1557
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "fractal-sidebar__account-icon", "aria-hidden": "true", children: icon }),
|
|
1558
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "fractal-sidebar__account-name", children: name })
|
|
1559
|
+
] }),
|
|
1555
1560
|
triggerLabel,
|
|
1556
1561
|
triggerVariant: "tertiary"
|
|
1557
1562
|
}
|