@wso2/oxygen-ui 0.8.0 → 0.8.1

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.js CHANGED
@@ -130,7 +130,7 @@ var __objRest = (source, exclude) => {
130
130
  // package.json
131
131
  var package_default = {
132
132
  name: "@wso2/oxygen-ui",
133
- version: "0.8.0",
133
+ version: "0.8.1",
134
134
  description: "WSO2 Oxygen UI | Design System - Powered with Material-UI component library with TypeScript support",
135
135
  type: "module",
136
136
  main: "./dist/index.js",
@@ -2423,7 +2423,14 @@ var PageContentInner = styled7(Box3, {
2423
2423
  slot: "Inner",
2424
2424
  shouldForwardProp: (prop) => prop !== "maxWidth" && prop !== "centered" && prop !== "fullWidth" && prop !== "noPadding"
2425
2425
  })(({ theme, maxWidth = "1400px", centered = true, fullWidth = false, noPadding = false }) => __spreadValues(__spreadValues(__spreadValues({
2426
- width: "100%"
2426
+ // Use fit-content so the inner container expands to accommodate children that have a
2427
+ // min-width (e.g. responsive data tables). minWidth: 100% ensures it still fills the
2428
+ // parent when the content is narrower, preserving the normal full-width layout.
2429
+ // Together these mean: width = max(100% of scroll-parent, intrinsic min-content).
2430
+ // When content exceeds the viewport, PageContentRoot (overflow:auto) shows a horizontal
2431
+ // scrollbar for the entire content area rather than only the inner table element.
2432
+ width: "fit-content",
2433
+ minWidth: "100%"
2427
2434
  }, !fullWidth && { maxWidth }), centered && { marginLeft: "auto", marginRight: "auto" }), !noPadding && { padding: theme.spacing(8) }));
2428
2435
  var PageContent = (_a) => {
2429
2436
  var _b = _a, {
@@ -5814,7 +5821,7 @@ var AppShell = (_a) => {
5814
5821
  slots.navbar && /* @__PURE__ */ jsx91(layouts_default.Navbar, { children: slots.navbar }),
5815
5822
  /* @__PURE__ */ jsxs31(layouts_default, { sx: { flex: 1, overflow: "hidden" }, children: [
5816
5823
  slots.sidebar && /* @__PURE__ */ jsx91(layouts_default.Sidebar, { children: slots.sidebar }),
5817
- /* @__PURE__ */ jsxs31(layouts_default.Content, { sx: { flex: 1, display: "flex", flexDirection: "column" }, children: [
5824
+ /* @__PURE__ */ jsxs31(layouts_default.Content, { sx: { flex: 1, display: "flex", flexDirection: "column", overflow: "auto" }, children: [
5818
5825
  /* @__PURE__ */ jsx91(Box35, { sx: { flex: 1, overflow: "auto", display: "flex" }, children: slots.main }),
5819
5826
  slots.footer
5820
5827
  ] })