@kiefer-tek/sophea-design-system 0.15.6 → 0.15.7
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.css +28 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -1
- package/dist/patterns/AppShell/AppShell.d.ts +13 -1
- package/dist/patterns/AppShell/AppShell.d.ts.map +1 -1
- package/dist/patterns/AppShell/index.d.ts +2 -2
- package/dist/patterns/AppShell/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -10904,6 +10904,34 @@ tbody tr:hover .sn-Table-module__td--jv9tA {
|
|
|
10904
10904
|
transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
|
|
10905
10905
|
}
|
|
10906
10906
|
|
|
10907
|
+
/* SingleSidebar — full-height flush panel for the one-sidebar shell variant.
|
|
10908
|
+
Width is set inline (collapsed/expanded px); a flex column so the consumer's
|
|
10909
|
+
content fills and an `mt-auto` footer pins. The Root's overflow:hidden +
|
|
10910
|
+
border-radius clip its outer corners; the right edge is square against Main
|
|
10911
|
+
with a divider. */
|
|
10912
|
+
.sn-AppShell-module__singleSidebar--lYabJ {
|
|
10913
|
+
position: relative;
|
|
10914
|
+
display: flex;
|
|
10915
|
+
flex-direction: column;
|
|
10916
|
+
flex-shrink: 0;
|
|
10917
|
+
height: 100%;
|
|
10918
|
+
overflow: hidden;
|
|
10919
|
+
border-inline-end: 1px solid var(--shell-divider);
|
|
10920
|
+
/* Glass (default): frosted over the aurora — mirrors the rail glass. */
|
|
10921
|
+
background: var(--shell-region-glass);
|
|
10922
|
+
-webkit-backdrop-filter: blur(12px);
|
|
10923
|
+
backdrop-filter: blur(12px);
|
|
10924
|
+
transition: width 0.2s cubic-bezier(0.22, 1, 0.36, 1);
|
|
10925
|
+
}
|
|
10926
|
+
|
|
10927
|
+
/* Solid: opaque surface, no blur — a shade below the s2 widgets inside it so
|
|
10928
|
+
they still read as elevated cards. */
|
|
10929
|
+
.sn-AppShell-module__singleSidebar--lYabJ[data-glass="false"] {
|
|
10930
|
+
background: var(--shell-solid-sidebar, var(--surface-s1));
|
|
10931
|
+
-webkit-backdrop-filter: none;
|
|
10932
|
+
backdrop-filter: none;
|
|
10933
|
+
}
|
|
10934
|
+
|
|
10907
10935
|
@media (min-width: 768px) {
|
|
10908
10936
|
.sn-AppShell-module__sidebar--9-Zb9 {
|
|
10909
10937
|
width: var(--shell-sidebar-width, 15rem);
|
package/dist/index.js
CHANGED
|
@@ -8334,6 +8334,7 @@ const railItemIconOnly = "sn-AppShell-module__railItemIconOnly--SKMyQ";
|
|
|
8334
8334
|
const railItemPill = "sn-AppShell-module__railItemPill--B67qF";
|
|
8335
8335
|
const railItemIcon = "sn-AppShell-module__railItemIcon--pLfnP";
|
|
8336
8336
|
const railItemLabel = "sn-AppShell-module__railItemLabel--1CFas";
|
|
8337
|
+
const singleSidebar = "sn-AppShell-module__singleSidebar--lYabJ";
|
|
8337
8338
|
const sidebarInner = "sn-AppShell-module__sidebarInner--8gOCY";
|
|
8338
8339
|
const sidebarToggle = "sn-AppShell-module__sidebarToggle--Pof9K";
|
|
8339
8340
|
const resizeHandle = "sn-AppShell-module__resizeHandle--uB0bK";
|
|
@@ -8362,6 +8363,7 @@ const styles$h = {
|
|
|
8362
8363
|
railItemPill,
|
|
8363
8364
|
railItemIcon,
|
|
8364
8365
|
railItemLabel,
|
|
8366
|
+
singleSidebar,
|
|
8365
8367
|
sidebarInner,
|
|
8366
8368
|
sidebarToggle,
|
|
8367
8369
|
resizeHandle,
|
|
@@ -8569,6 +8571,36 @@ const AppShellSidebar = forwardRef(function AppShellSidebar2({
|
|
|
8569
8571
|
);
|
|
8570
8572
|
});
|
|
8571
8573
|
AppShellSidebar[ROLE] = "drawer";
|
|
8574
|
+
const AppShellSingleSidebar = forwardRef(
|
|
8575
|
+
function AppShellSingleSidebar2({
|
|
8576
|
+
glass = true,
|
|
8577
|
+
collapsed,
|
|
8578
|
+
expandedWidth = 232,
|
|
8579
|
+
collapsedWidth = 64,
|
|
8580
|
+
children,
|
|
8581
|
+
className,
|
|
8582
|
+
style,
|
|
8583
|
+
"aria-label": ariaLabel,
|
|
8584
|
+
...rest
|
|
8585
|
+
}, ref) {
|
|
8586
|
+
const ctx = useContext(AppShellContext);
|
|
8587
|
+
const isCollapsed = collapsed ?? ctx?.sidebarFolded ?? false;
|
|
8588
|
+
return /* @__PURE__ */ jsx(
|
|
8589
|
+
"aside",
|
|
8590
|
+
{
|
|
8591
|
+
ref,
|
|
8592
|
+
className: cx$1(styles$h.singleSidebar, className),
|
|
8593
|
+
"data-glass": glass ? "true" : "false",
|
|
8594
|
+
"data-collapsed": isCollapsed ? "true" : "false",
|
|
8595
|
+
"aria-label": ariaLabel ?? "Sidebar",
|
|
8596
|
+
style: { width: isCollapsed ? collapsedWidth : expandedWidth, ...style },
|
|
8597
|
+
...rest,
|
|
8598
|
+
children
|
|
8599
|
+
}
|
|
8600
|
+
);
|
|
8601
|
+
}
|
|
8602
|
+
);
|
|
8603
|
+
AppShellSingleSidebar[ROLE] = "drawer";
|
|
8572
8604
|
const SidebarToggleIcon = (props) => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", fill: "none", width: 16, height: 16, ...props, children: [
|
|
8573
8605
|
/* @__PURE__ */ jsx("path", { stroke: "currentColor", strokeWidth: 1.5, d: "M2.5 9h19M8 21.5V9" }),
|
|
8574
8606
|
/* @__PURE__ */ jsx(
|
|
@@ -8643,6 +8675,7 @@ const AppShell = Object.assign(AppShellRoot, {
|
|
|
8643
8675
|
Rail: AppShellRail,
|
|
8644
8676
|
RailItem: AppShellRailItem,
|
|
8645
8677
|
Sidebar: AppShellSidebar,
|
|
8678
|
+
SingleSidebar: AppShellSingleSidebar,
|
|
8646
8679
|
SidebarToggle: AppShellSidebarToggle,
|
|
8647
8680
|
Main: AppShellMain,
|
|
8648
8681
|
Header: AppShellHeader,
|
|
@@ -11614,6 +11647,7 @@ export {
|
|
|
11614
11647
|
AppShellRoot,
|
|
11615
11648
|
AppShellSidebar,
|
|
11616
11649
|
AppShellSidebarToggle,
|
|
11650
|
+
AppShellSingleSidebar,
|
|
11617
11651
|
AspectRatio,
|
|
11618
11652
|
Attachment,
|
|
11619
11653
|
Avatar,
|