@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/codemods/v1-to-v2/mappings.json +8 -0
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/components/panels/PanelList/PanelRow.d.ts +9 -1
- package/dist/css/component-css/pds-dropdown.css +1 -1
- package/dist/css/component-css/pds-index.css +3 -3
- package/dist/css/component-css/pds-input-utilities.css +1 -1
- package/dist/css/component-css/pds-panel-list.css +1 -1
- package/dist/css/component-css/pds-spinner.css +1 -1
- package/dist/css/layout-css/pds-app-layout.css +1 -1
- package/dist/css/layout-css/pds-index.css +1 -1
- package/dist/css/layout-css/pds-sidebar-layout.css +2 -2
- package/dist/css/pds-components.css +3 -3
- package/dist/css/pds-core.css +1 -1
- package/dist/css/pds-layouts.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +35 -33
- package/dist/index.js.map +1 -1
- package/dist/layouts/SidebarLayout/SidebarLayout.d.ts +6 -1
- package/dist/libs/types/layout-types.d.ts +1 -0
- package/dist/utilities/FlexContainer/FlexContainer.d.ts +1 -1
- package/dist/utilities/grid/Grid.d.ts +2 -4
- package/package.json +1 -1
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 :
|
|
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,
|
|
10968
|
-
let
|
|
10969
|
-
|
|
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
|
-
|
|
10974
|
-
|
|
10973
|
+
s,
|
|
10974
|
+
c,
|
|
10975
|
+
l ? "is-expanded" : null,
|
|
10975
10976
|
n ?? ""
|
|
10976
10977
|
]),
|
|
10977
|
-
...
|
|
10978
|
-
}, /* @__PURE__ */ e.createElement("div", { className: Z([`${
|
|
10979
|
-
"aria-expanded":
|
|
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: `${
|
|
10982
|
-
onClick:
|
|
10982
|
+
className: `${s}__expand-button`,
|
|
10983
|
+
onClick: h
|
|
10983
10984
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
10984
|
-
className: `${
|
|
10985
|
+
className: `${s}__expand-icon ${l ? "rotated" : ""}`,
|
|
10985
10986
|
iconName: "angleDown"
|
|
10986
|
-
}))), i &&
|
|
10987
|
-
className: `${
|
|
10988
|
-
style:
|
|
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: `${
|
|
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",
|
|
12975
|
-
let
|
|
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([
|
|
12978
|
-
"data-second-sidebar-mobile-location":
|
|
12979
|
-
"data-sidebar-location":
|
|
12980
|
-
"data-sidebar-mobile-location":
|
|
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":
|
|
12983
|
-
"--sidebar-width-max": `${
|
|
12984
|
-
"--sidebar-width-min": `${
|
|
12985
|
-
"--second-sidebar-width":
|
|
12986
|
-
"--second-sidebar-width-max": `${
|
|
12987
|
-
"--second-sidebar-width-min": `${
|
|
12988
|
-
gap:
|
|
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
|
-
...
|
|
12991
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${
|
|
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
|
|
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}`;
|