@pantheon-systems/pds-toolkit-react 2.0.0-alpha.80 → 2.0.0-alpha.82

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
@@ -4616,7 +4616,7 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4616
4616
  className: `${c}__swatch`,
4617
4617
  style: { backgroundColor: l(n, t.color, t.paletteIndex) }
4618
4618
  }), t.label)));
4619
- }, Rr = (e) => typeof e == "number" ? `${e}rem` : typeof e == "string" && e.endsWith("%") ? e : `${Wt[`SPACING_${e.toUpperCase()}`]}rem`, zr = ({ className: t, colorType: n = "regular", isAnimated: r = !0, shape: i = "rounded", size: a, textIsJustified: o, textLineCount: s = 1, textSize: c = "m", ...l }) => {
4619
+ }, Rr = (e) => typeof e == "number" ? `${e}rem` : typeof e == "string" && e.endsWith("%") ? e : Wt[`SPACING_${e.toUpperCase()}`], zr = ({ className: t, colorType: n = "regular", isAnimated: r = !0, shape: i = "rounded", size: a, textIsJustified: o, textLineCount: s = 1, textSize: c = "m", ...l }) => {
4620
4620
  let u = "pds-skeleton", d = `${u}--${i}`, f = r ? `pds-pulse pds-pulse--${n}` : `${u}--${n}`, p = [
4621
4621
  "text-block",
4622
4622
  "code-block",
@@ -10964,28 +10964,29 @@ var Qr = {
10964
10964
  ]),
10965
10965
  ...o
10966
10966
  }, n);
10967
- }, no = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, ...a }) => {
10968
- let o = "pds-panel-row", [s, c] = g(!1), l = ht(t), u = l["items-left"], d = l["items-right"], f = l["items-below"], p = () => {
10969
- c((e) => !e);
10967
+ }, no = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, stackBelow: a = "m", ...o }) => {
10968
+ let s = "pds-panel-row", c = `${s}--stack-${a}`, [l, u] = g(!1), d = ht(t), f = d["items-left"], p = d["items-right"], m = d["items-below"], h = () => {
10969
+ u((e) => !e);
10970
10970
  };
10971
10971
  return /* @__PURE__ */ e.createElement("li", {
10972
10972
  className: Z([
10973
- o,
10974
- s ? "is-expanded" : null,
10973
+ s,
10974
+ c,
10975
+ l ? "is-expanded" : null,
10975
10976
  n ?? ""
10976
10977
  ]),
10977
- ...a
10978
- }, /* @__PURE__ */ e.createElement("div", { className: Z([`${o}__main`, i ? "is-expandable" : ""]) }, u && /* @__PURE__ */ e.createElement("div", { className: `${o}__items ${o}__items--left` }, u), d && /* @__PURE__ */ e.createElement("div", { className: `${o}__items ${o}__items--right` }, d), i && /* @__PURE__ */ e.createElement("button", {
10979
- "aria-expanded": s,
10978
+ ...o
10979
+ }, /* @__PURE__ */ e.createElement("div", { className: Z([`${s}__main`, i ? "is-expandable" : ""]) }, f && /* @__PURE__ */ e.createElement("div", { className: `${s}__items ${s}__items--left` }, f), p && /* @__PURE__ */ e.createElement("div", { className: `${s}__items ${s}__items--right` }, p), i && /* @__PURE__ */ e.createElement("button", {
10980
+ "aria-expanded": l,
10980
10981
  "aria-label": r,
10981
- className: `${o}__expand-button`,
10982
- onClick: p
10982
+ className: `${s}__expand-button`,
10983
+ onClick: h
10983
10984
  }, /* @__PURE__ */ e.createElement(Q, {
10984
- className: `${o}__expand-icon ${s ? "rotated" : ""}`,
10985
+ className: `${s}__expand-icon ${l ? "rotated" : ""}`,
10985
10986
  iconName: "angleDown"
10986
- }))), i && f && /* @__PURE__ */ e.createElement("div", {
10987
- className: `${o}__items ${o}__items--below`,
10988
- style: s ? {
10987
+ }))), i && m && /* @__PURE__ */ e.createElement("div", {
10988
+ className: `${s}__items ${s}__items--below`,
10989
+ style: l ? {
10989
10990
  display: "block",
10990
10991
  height: "auto",
10991
10992
  opacity: "1"
@@ -10994,7 +10995,7 @@ var Qr = {
10994
10995
  height: "0",
10995
10996
  opacity: "0"
10996
10997
  }
10997
- }, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-inside` }, f)));
10998
+ }, /* @__PURE__ */ e.createElement("div", { className: `${s}__items-inside` }, m)));
10998
10999
  }, ro = ({ children: t, className: n, ...r }) => /* @__PURE__ */ e.createElement("div", {
10999
11000
  className: Z(["pds-panel-stack", n ?? ""]),
11000
11001
  ...r
@@ -12971,24 +12972,25 @@ var zo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12971
12972
  },
12972
12973
  ...s
12973
12974
  }, 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));
12974
- }, hs = ({ children: t, className: n, gridGap: r = "xl", secondSidebarMobileLocation: i = "after", secondSidebarWidth: a, secondSidebarWidthMax: o, secondSidebarWidthMin: s, sidebarLocation: c = "right", sidebarMobileLocation: l = "after", sidebarWidth: u = "33%", sidebarWidthMax: d = 25, sidebarWidthMin: f = 15, ...p }) => {
12975
- let m = "pds-sidebar-layout", h = r === "none" ? "0" : `var(--pds-spacing-${r})`, g = ht(t), _ = !!g["second-sidebar"];
12975
+ }, hs = ({ 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, ...m }) => {
12976
+ let h = "pds-sidebar-layout", g = (e) => e === "none" ? "0" : `var(--pds-spacing-${e})`, _ = g(r), v = g(i ?? r), y = ht(t), b = !!y["second-sidebar"];
12976
12977
  return /* @__PURE__ */ e.createElement("div", {
12977
- className: Z([m, n ?? ""]),
12978
- "data-second-sidebar-mobile-location": _ ? i : void 0,
12979
- "data-sidebar-location": c,
12980
- "data-sidebar-mobile-location": l,
12978
+ className: Z([h, n ?? ""]),
12979
+ "data-second-sidebar-mobile-location": b ? a : void 0,
12980
+ "data-sidebar-location": l,
12981
+ "data-sidebar-mobile-location": u,
12981
12982
  style: {
12982
- "--sidebar-width": u,
12983
- "--sidebar-width-max": `${d}rem`,
12984
- "--sidebar-width-min": `${f}rem`,
12985
- "--second-sidebar-width": a ?? u,
12986
- "--second-sidebar-width-max": `${o ?? d}rem`,
12987
- "--second-sidebar-width-min": `${s ?? f}rem`,
12988
- gap: h
12983
+ "--sidebar-width": d,
12984
+ "--sidebar-width-max": `${f}rem`,
12985
+ "--sidebar-width-min": `${p}rem`,
12986
+ "--second-sidebar-width": o ?? d,
12987
+ "--second-sidebar-width-max": `${s ?? f}rem`,
12988
+ "--second-sidebar-width-min": `${c ?? p}rem`,
12989
+ "--pds-sidebar-layout-gap": _,
12990
+ "--pds-sidebar-layout-gap-mobile": v
12989
12991
  },
12990
- ...p
12991
- }, /* @__PURE__ */ e.createElement("div", { className: `${m}__main` }, g.__unslotted || g.content), /* @__PURE__ */ e.createElement("div", { className: `${m}__side` }, g.sidebar), _ && /* @__PURE__ */ e.createElement("div", { className: `${m}__second-side` }, g["second-sidebar"]));
12992
+ ...m
12993
+ }, /* @__PURE__ */ e.createElement("div", { className: `${h}__main` }, y.__unslotted || y.content), /* @__PURE__ */ e.createElement("div", { className: `${h}__side` }, y.sidebar), b && /* @__PURE__ */ e.createElement("div", { className: `${h}__second-side` }, y["second-sidebar"]));
12992
12994
  }, gs = ({ children: n, className: r, maxColumns: i = 3, style: a, ...o }) => {
12993
12995
  let s = "pds-stat-panel-group", c = `${s}--max-${i}`, l = {
12994
12996
  "--max-columns": i,
@@ -13058,7 +13060,7 @@ var zo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13058
13060
  ]),
13059
13061
  ...o
13060
13062
  }, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
13061
- }, bs = ({ alignContent: t = "flex-start", alignItems: n = "stretch", children: r, className: i, flexDirection: a = "row", flexWrap: o = "nowrap", gap: s = "xl", justifyContent: c = "flex-start", mobileAlignContent: l, mobileAlignItems: u, mobileFlexDirection: d = "column", mobileFlexWrap: f, mobileGap: p, mobileJustifyContent: m, style: h, ...g }) => {
13063
+ }, bs = ({ alignContent: t = "flex-start", alignItems: n = "stretch", children: r, className: i, flexDirection: a = "row", flexWrap: o = "nowrap", gap: s = "xl", justifyContent: c = "flex-start", mobileAlignContent: l, mobileAlignItems: u, mobileFlexDirection: d, mobileFlexWrap: f, mobileGap: p, mobileJustifyContent: m, style: h, ...g }) => {
13062
13064
  let _ = "pds-flex", v = `${_}-container`, y = {
13063
13065
  "--pds-flex-align-content": t,
13064
13066
  "--pds-flex-align-items": n,
@@ -13067,7 +13069,7 @@ var zo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13067
13069
  "--pds-flex-wrap": o,
13068
13070
  "--pds-flex-align-content-mobile": l ?? t,
13069
13071
  "--pds-flex-align-items-mobile": u ?? n,
13070
- "--pds-flex-direction-mobile": d,
13072
+ "--pds-flex-direction-mobile": d ?? a,
13071
13073
  "--pds-flex-justify-content-mobile": m ?? c,
13072
13074
  "--pds-flex-wrap-mobile": f ?? o
13073
13075
  }, b = p ?? s, x = s === "none" ? null : `${_}-gap--${s}`, S = b === s ? null : `${_}-gap-mobile--${b}`;