@kiefer-tek/sophea-design-system 0.15.6 → 0.15.8

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 CHANGED
@@ -7709,8 +7709,13 @@ tbody tr:hover .sn-Table-module__td--jv9tA {
7709
7709
  align-items: center;
7710
7710
  gap: 10px;
7711
7711
  min-width: 200px;
7712
- background: var(--surface-s3);
7713
- border: 1px solid var(--border-04); /* >=3:1 vs adjacent surfaces in both themes (SC 1.4.11); --border-04 darkened to #7f8da1/#6b7a90 clears the floor */
7712
+ /* Defaults: an elevated field on a page (s3 fill + a >=3:1 border that clears
7713
+ SC 1.4.11 in both themes --border-04 = #7f8da1/#6b7a90). Both are tunable
7714
+ so a host can soften them where the default reads as a bright floating box
7715
+ — e.g. a search field seated in the app-shell header over a flat-dark /
7716
+ glass surface. */
7717
+ background: var(--search-input-bg, var(--surface-s3));
7718
+ border: 1px solid var(--search-input-border, var(--border-04));
7714
7719
  border-radius: 10px;
7715
7720
  padding: 10px 12px;
7716
7721
  transition:
@@ -10904,6 +10909,34 @@ tbody tr:hover .sn-Table-module__td--jv9tA {
10904
10909
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
10905
10910
  }
10906
10911
 
10912
+ /* SingleSidebar — full-height flush panel for the one-sidebar shell variant.
10913
+ Width is set inline (collapsed/expanded px); a flex column so the consumer's
10914
+ content fills and an `mt-auto` footer pins. The Root's overflow:hidden +
10915
+ border-radius clip its outer corners; the right edge is square against Main
10916
+ with a divider. */
10917
+ .sn-AppShell-module__singleSidebar--lYabJ {
10918
+ position: relative;
10919
+ display: flex;
10920
+ flex-direction: column;
10921
+ flex-shrink: 0;
10922
+ height: 100%;
10923
+ overflow: hidden;
10924
+ border-inline-end: 1px solid var(--shell-divider);
10925
+ /* Glass (default): frosted over the aurora — mirrors the rail glass. */
10926
+ background: var(--shell-region-glass);
10927
+ -webkit-backdrop-filter: blur(12px);
10928
+ backdrop-filter: blur(12px);
10929
+ transition: width 0.2s cubic-bezier(0.22, 1, 0.36, 1);
10930
+ }
10931
+
10932
+ /* Solid: opaque surface, no blur — a shade below the s2 widgets inside it so
10933
+ they still read as elevated cards. */
10934
+ .sn-AppShell-module__singleSidebar--lYabJ[data-glass="false"] {
10935
+ background: var(--shell-solid-sidebar, var(--surface-s1));
10936
+ -webkit-backdrop-filter: none;
10937
+ backdrop-filter: none;
10938
+ }
10939
+
10907
10940
  @media (min-width: 768px) {
10908
10941
  .sn-AppShell-module__sidebar--9-Zb9 {
10909
10942
  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,