@pantheon-systems/pds-toolkit-react 2.0.0-beta.1 → 2.0.0-beta.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/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/css/component-css/pds-bookmarks-panel.css +1 -1
- package/dist/css/component-css/pds-index.css +2 -2
- package/dist/css/component-css/pds-workspace-selector-panel.css +1 -1
- package/dist/css/layout-css/pds-sidebar-layout.css +1 -1
- package/dist/css/pds-components.css +2 -2
- package/dist/index.css +1 -1
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/dist/layouts/SidebarLayout/SidebarLayout.d.ts +9 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13427,11 +13427,15 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13427
13427
|
},
|
|
13428
13428
|
...s
|
|
13429
13429
|
}, f && /* @__PURE__ */ e.createElement("aside", { className: `${c}__sidebar` }, /* @__PURE__ */ e.createElement("div", { className: `${c}__sidebar-inner` }, f)), /* @__PURE__ */ e.createElement("div", { className: `${c}__content` }, d));
|
|
13430
|
-
}, Ls = ({ children: t, className: n, gridGap: r = "xl", mobileGridGap: i, secondSidebarMobileLocation: a = "after", secondSidebarWidth: o, secondSidebarWidthMax: s, secondSidebarWidthMin: c, sidebarLocation: l = "right", sidebarMobileLocation: u = "after", sidebarWidth: d = "33%", sidebarWidthMax: f = 25, sidebarWidthMin: p = 15,
|
|
13431
|
-
let
|
|
13430
|
+
}, Ls = ({ children: t, className: n, gridGap: r = "xl", mobileGridGap: i, secondSidebarMobileLocation: a = "after", secondSidebarWidth: o, secondSidebarWidthMax: s, secondSidebarWidthMin: c, sidebarLocation: l = "right", sidebarMobileLocation: u = "after", sidebarWidth: d = "33%", sidebarWidthMax: f = 25, sidebarWidthMin: p = 15, stackSidebarsBelow: m, ...h }) => {
|
|
13431
|
+
let g = "pds-sidebar-layout", _ = (e) => e === "none" ? "0" : `var(--pds-spacing-${e})`, v = _(r), y = _(i ?? r), b = _t(t), x = !!b["second-sidebar"], S = !!m && x;
|
|
13432
13432
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13433
|
-
className: Z([
|
|
13434
|
-
|
|
13433
|
+
className: Z([
|
|
13434
|
+
g,
|
|
13435
|
+
S ? `${g}--stack-container` : null,
|
|
13436
|
+
n ?? ""
|
|
13437
|
+
]),
|
|
13438
|
+
"data-second-sidebar-mobile-location": x ? a : void 0,
|
|
13435
13439
|
"data-sidebar-location": l,
|
|
13436
13440
|
"data-sidebar-mobile-location": u,
|
|
13437
13441
|
style: {
|
|
@@ -13441,11 +13445,11 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13441
13445
|
"--second-sidebar-width": o ?? d,
|
|
13442
13446
|
"--second-sidebar-width-max": `${s ?? f}rem`,
|
|
13443
13447
|
"--second-sidebar-width-min": `${c ?? p}rem`,
|
|
13444
|
-
"--pds-sidebar-layout-gap":
|
|
13445
|
-
"--pds-sidebar-layout-gap-mobile":
|
|
13448
|
+
"--pds-sidebar-layout-gap": v,
|
|
13449
|
+
"--pds-sidebar-layout-gap-mobile": y
|
|
13446
13450
|
},
|
|
13447
|
-
...
|
|
13448
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${
|
|
13451
|
+
...h
|
|
13452
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${g}__main` }, b.__unslotted || b.content), S ? /* @__PURE__ */ e.createElement("div", { className: Z([`${g}__sides`, `${g}__sides--stack-${m}`]) }, /* @__PURE__ */ e.createElement("div", { className: `${g}__side` }, b.sidebar), /* @__PURE__ */ e.createElement("div", { className: `${g}__second-side` }, b["second-sidebar"])) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${g}__side` }, b.sidebar), x && /* @__PURE__ */ e.createElement("div", { className: `${g}__second-side` }, b["second-sidebar"])));
|
|
13449
13453
|
}, Rs = ({ children: n, className: r, maxColumns: i = 3, style: a, ...o }) => {
|
|
13450
13454
|
let s = "pds-stat-panel-group", c = `${s}--max-${i}`, l = {
|
|
13451
13455
|
"--max-columns": i,
|