@knkcs/anker 2.10.0 → 2.10.2
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/components/index.js
CHANGED
|
@@ -665,7 +665,7 @@ var ContextRailRoot = ({ storageKey, children }) => {
|
|
|
665
665
|
"data-testid": "context-rail",
|
|
666
666
|
"data-collapsed": collapsed ? "true" : "false",
|
|
667
667
|
w: collapsed ? COLLAPSED_WIDTH : EXPANDED_WIDTH,
|
|
668
|
-
|
|
668
|
+
h: "full",
|
|
669
669
|
transition: "width 250ms ease-out",
|
|
670
670
|
position: "relative",
|
|
671
671
|
children: [
|
|
@@ -2217,6 +2217,7 @@ var SidebarRoot = ({
|
|
|
2217
2217
|
w: collapsed ? COLLAPSED_WIDTH2 : EXPANDED_WIDTH2,
|
|
2218
2218
|
transition: "width 250ms ease-out",
|
|
2219
2219
|
flexShrink: 0,
|
|
2220
|
+
h: "full",
|
|
2220
2221
|
children: [
|
|
2221
2222
|
/* @__PURE__ */ jsx(
|
|
2222
2223
|
Flex,
|
|
@@ -2225,7 +2226,7 @@ var SidebarRoot = ({
|
|
|
2225
2226
|
"data-collapsed": collapsed ? "true" : "false",
|
|
2226
2227
|
direction: "column",
|
|
2227
2228
|
w: "full",
|
|
2228
|
-
|
|
2229
|
+
h: "full",
|
|
2229
2230
|
bg: "bg-canvas",
|
|
2230
2231
|
borderRightWidth: "1px",
|
|
2231
2232
|
borderRightColor: "border",
|
|
@@ -2263,9 +2264,19 @@ var SidebarRoot = ({
|
|
|
2263
2264
|
SidebarRoot.displayName = "Sidebar";
|
|
2264
2265
|
var SidebarHeader = ({ children }) => /* @__PURE__ */ jsx(Box, { p: "4", borderBottomWidth: "1px", borderBottomColor: "border", children });
|
|
2265
2266
|
SidebarHeader.displayName = "Sidebar.Header";
|
|
2266
|
-
var SidebarBody = ({ children }) => /* @__PURE__ */ jsx(Box, { flex: "1", overflowY: "auto", py: "3", children });
|
|
2267
|
+
var SidebarBody = ({ children }) => /* @__PURE__ */ jsx(Box, { "data-testid": "sidebar-body", flex: "1", minH: "0", overflowY: "auto", py: "3", children });
|
|
2267
2268
|
SidebarBody.displayName = "Sidebar.Body";
|
|
2268
|
-
var SidebarFooter = ({ children }) => /* @__PURE__ */ jsx(
|
|
2269
|
+
var SidebarFooter = ({ children }) => /* @__PURE__ */ jsx(
|
|
2270
|
+
Box,
|
|
2271
|
+
{
|
|
2272
|
+
"data-testid": "sidebar-footer",
|
|
2273
|
+
flexShrink: 0,
|
|
2274
|
+
p: "3",
|
|
2275
|
+
borderTopWidth: "1px",
|
|
2276
|
+
borderTopColor: "border",
|
|
2277
|
+
children
|
|
2278
|
+
}
|
|
2279
|
+
);
|
|
2269
2280
|
SidebarFooter.displayName = "Sidebar.Footer";
|
|
2270
2281
|
var SidebarLogo = ({ productName }) => {
|
|
2271
2282
|
const { collapsed } = useSidebarContext();
|