@pantheon-systems/pds-toolkit-react 2.0.0-beta.1 → 2.0.0-beta.3
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/components/panels/BookmarksPanel/BookmarksPanel.d.ts +13 -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 +176 -163
- 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
|
@@ -11222,44 +11222,53 @@ var Qr = {
|
|
|
11222
11222
|
className: `${s}__content`,
|
|
11223
11223
|
style: d
|
|
11224
11224
|
}, l), vt(u) && /* @__PURE__ */ e.createElement("div", { className: `${s}__footer` }, u));
|
|
11225
|
-
}, po = "Bookmark pages you visit often for quick access.", mo = ({ bookmarks: t = [], className: n, contentMaxHeight: r, createLabel: i = "Create bookmark", getMenuAriaLabel: a = (e) => `Actions for ${e.title}`, getRemoveCriticalLabel: o, heading: s = "Bookmarks",
|
|
11226
|
-
let
|
|
11225
|
+
}, po = "Bookmark pages you visit often for quick access.", mo = 5, ho = ({ bookmarks: t = [], className: n, contentMaxHeight: r, createLabel: i = "Create bookmark", getMenuAriaLabel: a = (e) => `Actions for ${e.title}`, getRemoveCriticalLabel: o, heading: s = "Bookmarks", isLoading: c = !1, loadingRowCount: l = mo, noResultsText: u = po, onCreateBookmark: d, removeLabel: f, renameLabel: p, ...m }) => {
|
|
11226
|
+
let h = "pds-bookmarks-panel", g = `${h}__item`, _ = [...Array(l)].map((t, n) => /* @__PURE__ */ e.createElement("li", {
|
|
11227
|
+
key: n,
|
|
11228
|
+
className: `${g} ${g}--loading`
|
|
11229
|
+
}, /* @__PURE__ */ e.createElement(zr, {
|
|
11230
|
+
shape: "rounded",
|
|
11231
|
+
size: {
|
|
11232
|
+
height: 1.125,
|
|
11233
|
+
width: "100%"
|
|
11234
|
+
}
|
|
11235
|
+
}))), v = t.map((t) => {
|
|
11227
11236
|
let n = t.linkContent, r = n.type;
|
|
11228
11237
|
return /* @__PURE__ */ e.createElement("li", {
|
|
11229
11238
|
key: t.id ?? t.title,
|
|
11230
|
-
className:
|
|
11239
|
+
className: g
|
|
11231
11240
|
}, /* @__PURE__ */ e.createElement($i, {
|
|
11232
11241
|
menuAriaLabel: a(t),
|
|
11233
11242
|
menuItems: ea(t, {
|
|
11234
11243
|
getRemoveCriticalLabel: o,
|
|
11235
|
-
removeLabel:
|
|
11236
|
-
renameLabel:
|
|
11244
|
+
removeLabel: f,
|
|
11245
|
+
renameLabel: p
|
|
11237
11246
|
}),
|
|
11238
11247
|
variant: "panel"
|
|
11239
|
-
}, /* @__PURE__ */ e.createElement(r, n.props, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
11240
|
-
className: `${
|
|
11248
|
+
}, /* @__PURE__ */ e.createElement(r, n.props, /* @__PURE__ */ e.createElement("span", { className: `${g}-label` }, /* @__PURE__ */ e.createElement("span", {
|
|
11249
|
+
className: `${g}-title`,
|
|
11241
11250
|
title: t.title
|
|
11242
11251
|
}, t.title), t.subtitle && /* @__PURE__ */ e.createElement("span", {
|
|
11243
|
-
className: `${
|
|
11252
|
+
className: `${g}-subtitle`,
|
|
11244
11253
|
title: t.subtitle
|
|
11245
11254
|
}, t.subtitle)))));
|
|
11246
|
-
}),
|
|
11255
|
+
}), y = d && /* @__PURE__ */ e.createElement(An, {
|
|
11247
11256
|
displayType: "icon-end",
|
|
11248
11257
|
iconName: "plus",
|
|
11249
11258
|
label: i,
|
|
11250
|
-
onClick:
|
|
11259
|
+
onClick: d,
|
|
11251
11260
|
size: "s",
|
|
11252
11261
|
slot: "footer",
|
|
11253
11262
|
variant: "link"
|
|
11254
11263
|
});
|
|
11255
11264
|
return /* @__PURE__ */ e.createElement(fo, {
|
|
11256
|
-
className: Z([
|
|
11265
|
+
className: Z([h, n ?? ""]),
|
|
11257
11266
|
contentMaxHeight: r,
|
|
11258
11267
|
heading: s,
|
|
11259
11268
|
icon: "bookmark",
|
|
11260
|
-
...
|
|
11261
|
-
}, t.length === 0 ? /* @__PURE__ */ e.createElement(ta, { text:
|
|
11262
|
-
},
|
|
11269
|
+
...m
|
|
11270
|
+
}, c ? /* @__PURE__ */ e.createElement("ul", { className: `${h}__list ${h}__list--loading` }, _) : t.length === 0 ? /* @__PURE__ */ e.createElement(ta, { text: u }) : /* @__PURE__ */ e.createElement("ul", { className: `${h}__list` }, v), !c && y);
|
|
11271
|
+
}, go = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
|
|
11263
11272
|
let [c, l] = _(i), u = f(), p = r ?? `expansion-panel-${u}`, m = "pds-expansion-panel", h = a ? null : `${m}--no-border`, v = g(null);
|
|
11264
11273
|
return d(() => {
|
|
11265
11274
|
let e = v.current;
|
|
@@ -11283,7 +11292,7 @@ var Qr = {
|
|
|
11283
11292
|
className: `${m}__icon ${c ? "rotated" : ""}`,
|
|
11284
11293
|
iconName: "angleDown"
|
|
11285
11294
|
})), /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, t)));
|
|
11286
|
-
},
|
|
11295
|
+
}, _o = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
|
|
11287
11296
|
let a = "pds-expansion-panel-group", o = r === "standard" ? null : `${a}--${r}`;
|
|
11288
11297
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11289
11298
|
className: Z([
|
|
@@ -11293,7 +11302,7 @@ var Qr = {
|
|
|
11293
11302
|
]),
|
|
11294
11303
|
...i
|
|
11295
11304
|
}, t);
|
|
11296
|
-
},
|
|
11305
|
+
}, vo = ({ className: t, content: n, cta: r, dismissLabel: i = "Close", heading: a, image: o, imageVariant: s = "bleed", isDismissible: c, layout: l = "vertical", onDismiss: u, ...d }) => {
|
|
11297
11306
|
let f = "pds-feature-panel", p = l === "vertical" ? null : `${f}--${l}`, m = s === "bleed" ? null : `${f}--image-${s}`, h = c ? `${f}--hasDismiss` : null, g = o ? `${f}--has-image` : null, _ = r && "linkContent" in r;
|
|
11298
11307
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11299
11308
|
className: Z([
|
|
@@ -11320,7 +11329,7 @@ var Qr = {
|
|
|
11320
11329
|
size: "s",
|
|
11321
11330
|
variant: "brand"
|
|
11322
11331
|
}))));
|
|
11323
|
-
},
|
|
11332
|
+
}, yo = ({ children: t, className: n, padding: r = "standard", variant: i = "default", ...a }) => {
|
|
11324
11333
|
let o = "pds-panel", s = i === "default" ? null : `${o}--${i}`, c = `${o}__content`, l = r === "standard" ? null : `${c}--pad-${r}`;
|
|
11325
11334
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11326
11335
|
className: Z([
|
|
@@ -11330,7 +11339,7 @@ var Qr = {
|
|
|
11330
11339
|
]),
|
|
11331
11340
|
...a
|
|
11332
11341
|
}, /* @__PURE__ */ e.createElement("div", { className: Z([c, l]) }, t));
|
|
11333
|
-
},
|
|
11342
|
+
}, bo = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
|
|
11334
11343
|
let s = "pds-panel-list", c = `pds-panel-list--${a}`, l = t === "default" ? null : `${s}--${t}`, u = i ? null : `${s}--borderless`;
|
|
11335
11344
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
11336
11345
|
className: Z([
|
|
@@ -11342,7 +11351,7 @@ var Qr = {
|
|
|
11342
11351
|
]),
|
|
11343
11352
|
...o
|
|
11344
11353
|
}, n);
|
|
11345
|
-
},
|
|
11354
|
+
}, xo = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, stackBelow: a = "m", ...o }) => {
|
|
11346
11355
|
let s = "pds-panel-row", c = `${s}--stack-${a}`, [l, u] = _(!1), d = _t(t), f = d["items-left"], p = d["items-right"], m = d["items-below"], h = () => {
|
|
11347
11356
|
u((e) => !e);
|
|
11348
11357
|
};
|
|
@@ -11374,10 +11383,10 @@ var Qr = {
|
|
|
11374
11383
|
opacity: "0"
|
|
11375
11384
|
}
|
|
11376
11385
|
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__items-inside` }, m)));
|
|
11377
|
-
},
|
|
11386
|
+
}, So = ({ children: t, className: n, ...r }) => /* @__PURE__ */ e.createElement("div", {
|
|
11378
11387
|
className: Z(["pds-panel-stack", n ?? ""]),
|
|
11379
11388
|
...r
|
|
11380
|
-
}, t),
|
|
11389
|
+
}, t), Co = ({ className: t, contentMaxHeight: n, createWorkspaceLink: r, filterLabel: i = "Filter workspaces", filterPlaceholder: a = "Find workspace...", heading: o = "Workspaces", minFilterItems: s = 8, noResultsText: c = "No results found", workspaceList: l = [], ...u }) => {
|
|
11381
11390
|
let d = "pds-workspace-selector-panel", f = `${d}__item`, [p, m] = _(""), g = l.length >= s, v = h(() => {
|
|
11382
11391
|
if (!p) return l;
|
|
11383
11392
|
let e = p.toLowerCase();
|
|
@@ -11429,7 +11438,7 @@ var Qr = {
|
|
|
11429
11438
|
"aria-label": o,
|
|
11430
11439
|
className: `${d}__nav`
|
|
11431
11440
|
}, v.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${d}__no-results` }, c) : /* @__PURE__ */ e.createElement("ul", { className: `${d}__list` }, v)), y);
|
|
11432
|
-
},
|
|
11441
|
+
}, wo = /* @__PURE__ */ e.createElement("svg", {
|
|
11433
11442
|
"aria-label": "Pantheon",
|
|
11434
11443
|
fill: "none",
|
|
11435
11444
|
focusable: "false",
|
|
@@ -11491,7 +11500,7 @@ var Qr = {
|
|
|
11491
11500
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
11492
11501
|
d: "M161.5 16.65H161V16.35H162.5V16.65H162V18.25H161.6V16.65H161.5ZM163.6 18.25L163.1 16.75V18.25H162.7V16.35H163.3L163.8 17.85L164.3 16.35H164.9V18.25H164.5V16.75L164 18.25H163.6Z",
|
|
11493
11502
|
fill: "var(--pds-color-foreground-default)"
|
|
11494
|
-
})),
|
|
11503
|
+
})), To = /* @__PURE__ */ e.createElement("svg", {
|
|
11495
11504
|
"aria-label": "Pantheon",
|
|
11496
11505
|
fill: "none",
|
|
11497
11506
|
focusable: "false",
|
|
@@ -11526,7 +11535,7 @@ var Qr = {
|
|
|
11526
11535
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
11527
11536
|
d: "M5.4 24.2L3.7 19.9H7.6L9.4 24.2H13.1L9.8 16.3H1.7C1.1 16.3 0.7 16.3 0.4 17.2C0.0999996 18.3 0 20.4 0 24.5C0 28.6 -3.8743e-07 30.7 0.4 31.8C0.7 32.7 1 32.7 1.7 32.7H8.8L5.4 24.2Z",
|
|
11528
11537
|
fill: "var(--pds-color-foreground-default)"
|
|
11529
|
-
})),
|
|
11538
|
+
})), Eo = /* @__PURE__ */ e.createElement("svg", {
|
|
11530
11539
|
"aria-label": "Pantheon",
|
|
11531
11540
|
fill: "none",
|
|
11532
11541
|
focusable: "false",
|
|
@@ -11561,17 +11570,17 @@ var Qr = {
|
|
|
11561
11570
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
11562
11571
|
d: "M135.7 0.299999H135.2V0H136.7V0.299999H136.2V1.9H135.8V0.299999H135.7ZM137.8 1.9L137.3 0.4V1.9H136.9V0H137.5L138 1.5L138.5 0H139.1V1.9H138.7V0.4L138.2 1.9H137.8Z",
|
|
11563
11572
|
fill: "var(--pds-color-foreground-default)"
|
|
11564
|
-
})),
|
|
11573
|
+
})), Do = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...o }) => {
|
|
11565
11574
|
let c = "pds-pantheon-logo", l = r && r !== "full" ? `${c}--${r}` : null, u = n && n !== "default" ? `${c}--${n}` : null, d = a === "m" ? null : `${c}--${a}`, f;
|
|
11566
11575
|
switch (r) {
|
|
11567
11576
|
case "full":
|
|
11568
|
-
f =
|
|
11577
|
+
f = wo;
|
|
11569
11578
|
break;
|
|
11570
11579
|
case "icon":
|
|
11571
|
-
f =
|
|
11580
|
+
f = To;
|
|
11572
11581
|
break;
|
|
11573
11582
|
case "wordmark":
|
|
11574
|
-
f =
|
|
11583
|
+
f = Eo;
|
|
11575
11584
|
break;
|
|
11576
11585
|
}
|
|
11577
11586
|
let p = s(i) && typeof i.props.children == "string" ? i.props.children : "", m = s(i) ? i.type : null, h = s(i) && m ? /* @__PURE__ */ e.createElement(m, Object.assign({}, i.props, {
|
|
@@ -11588,7 +11597,7 @@ var Qr = {
|
|
|
11588
11597
|
]),
|
|
11589
11598
|
...o
|
|
11590
11599
|
}, i ? h : f);
|
|
11591
|
-
},
|
|
11600
|
+
}, Oo = 8, ko = 14, Ao = ({ className: t, classNameContainer: n, closeButtonLabel: r = "Close", content: i, customTrigger: a = !1, hasCloseButton: o = !1, offsetValue: s = 0, onClose: c = () => {}, placement: l = "top", popoverIsOpen: u = !1, setPopoverIsOpen: f = () => {}, title: p, triggerAccessibleText: m = "Show more information", triggerIcon: h = "circleInfo", triggerIconSize: v = "m", ...x }) => {
|
|
11592
11601
|
let [S, w] = _(u);
|
|
11593
11602
|
d(() => {
|
|
11594
11603
|
w(u);
|
|
@@ -11615,12 +11624,12 @@ var Qr = {
|
|
|
11615
11624
|
M(R),
|
|
11616
11625
|
N(R),
|
|
11617
11626
|
H(R)
|
|
11618
|
-
]), te = B.arrow?.x ?? 0, ne = B.arrow?.y ?? 0, re = te +
|
|
11627
|
+
]), te = B.arrow?.x ?? 0, ne = B.arrow?.y ?? 0, re = te + ko / 2, J = ne + Oo, { isMounted: ie } = U(R, {
|
|
11619
11628
|
initial: { transform: "scale(0)" },
|
|
11620
11629
|
common: ({ side: e }) => ({ transformOrigin: {
|
|
11621
|
-
top: `${re}px calc(100% + ${
|
|
11630
|
+
top: `${re}px calc(100% + ${Oo}px)`,
|
|
11622
11631
|
bottom: `${re}px -8px`,
|
|
11623
|
-
left: `calc(100% + ${
|
|
11632
|
+
left: `calc(100% + ${Oo}px) ${J}px`,
|
|
11624
11633
|
right: `-8px ${J}px`
|
|
11625
11634
|
}[e] })
|
|
11626
11635
|
});
|
|
@@ -11655,23 +11664,23 @@ var Qr = {
|
|
|
11655
11664
|
className: `${j}__arrow`,
|
|
11656
11665
|
context: R,
|
|
11657
11666
|
fill: "var(--pds-color-surface-default)",
|
|
11658
|
-
height:
|
|
11667
|
+
height: Oo,
|
|
11659
11668
|
stroke: "var(--pds-color-border-default)",
|
|
11660
11669
|
strokeWidth: 1,
|
|
11661
11670
|
tipRadius: 0,
|
|
11662
|
-
width:
|
|
11671
|
+
width: ko
|
|
11663
11672
|
}), /* @__PURE__ */ e.createElement("div", { className: `${j}__container-inner` }, p && /* @__PURE__ */ e.createElement("div", { className: `${j}__title` }, p), i && /* @__PURE__ */ e.createElement("div", { className: `${j}__content` }, i), o && /* @__PURE__ */ e.createElement("div", { className: `${j}__close-wrapper` }, /* @__PURE__ */ e.createElement(Fn, {
|
|
11664
11673
|
ariaLabel: r,
|
|
11665
11674
|
onClick: G,
|
|
11666
11675
|
size: "s"
|
|
11667
11676
|
})))))));
|
|
11668
|
-
},
|
|
11677
|
+
}, jo = {
|
|
11669
11678
|
neutral: "--pds-color-status-neutral-indicator",
|
|
11670
11679
|
info: "--pds-color-status-info-fill",
|
|
11671
11680
|
success: "--pds-color-status-success-fill",
|
|
11672
11681
|
warning: "--pds-color-status-warning-fill",
|
|
11673
11682
|
critical: "--pds-color-status-critical-fill"
|
|
11674
|
-
},
|
|
11683
|
+
}, Mo = ({ className: t, colorBreakpoints: n = [{
|
|
11675
11684
|
colorType: "info",
|
|
11676
11685
|
percentage: 0
|
|
11677
11686
|
}, {
|
|
@@ -11692,7 +11701,7 @@ var Qr = {
|
|
|
11692
11701
|
id: m
|
|
11693
11702
|
}, i), (x || l) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, x && b, l && /* @__PURE__ */ e.createElement("div", {
|
|
11694
11703
|
className: `${h}__percentage`,
|
|
11695
|
-
style: { color: `hsl(from var(${
|
|
11704
|
+
style: { color: `hsl(from var(${jo[y]}) h s calc(l - 7))` }
|
|
11696
11705
|
}, s, "%")), /* @__PURE__ */ e.createElement("div", { className: `${h}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
|
|
11697
11706
|
"aria-labelledby": m,
|
|
11698
11707
|
"aria-valuenow": v,
|
|
@@ -11702,16 +11711,16 @@ var Qr = {
|
|
|
11702
11711
|
className: `${h}__bar`,
|
|
11703
11712
|
style: {
|
|
11704
11713
|
width: `${v}%`,
|
|
11705
|
-
backgroundColor: `var(${
|
|
11714
|
+
backgroundColor: `var(${jo[y]})`
|
|
11706
11715
|
}
|
|
11707
11716
|
}))), S && b);
|
|
11708
|
-
},
|
|
11717
|
+
}, No = {
|
|
11709
11718
|
neutral: "--pds-color-status-neutral-indicator",
|
|
11710
11719
|
info: "--pds-color-status-info-fill",
|
|
11711
11720
|
success: "--pds-color-status-success-fill",
|
|
11712
11721
|
warning: "--pds-color-status-warning-fill",
|
|
11713
11722
|
critical: "--pds-color-status-critical-fill"
|
|
11714
|
-
},
|
|
11723
|
+
}, Po = ({ className: t, colorBreakpoints: n = [{
|
|
11715
11724
|
colorType: "info",
|
|
11716
11725
|
percentage: 0
|
|
11717
11726
|
}, {
|
|
@@ -11760,7 +11769,7 @@ var Qr = {
|
|
|
11760
11769
|
strokeDasharray: x,
|
|
11761
11770
|
strokeDashoffset: S,
|
|
11762
11771
|
strokeWidth: y,
|
|
11763
|
-
style: { stroke: `var(${
|
|
11772
|
+
style: { stroke: `var(${No[C]})` },
|
|
11764
11773
|
transform: `rotate(-90 ${v / 2} ${v / 2})`
|
|
11765
11774
|
}), /* @__PURE__ */ e.createElement("text", {
|
|
11766
11775
|
alignmentBaseline: "middle",
|
|
@@ -11770,29 +11779,29 @@ var Qr = {
|
|
|
11770
11779
|
x: "50%",
|
|
11771
11780
|
y: "51%"
|
|
11772
11781
|
}, w))));
|
|
11773
|
-
},
|
|
11782
|
+
}, Fo = {
|
|
11774
11783
|
of: "of",
|
|
11775
11784
|
showing: "Showing",
|
|
11776
11785
|
unitPlural: "results",
|
|
11777
11786
|
unitSingular: "result"
|
|
11778
|
-
},
|
|
11787
|
+
}, Io = (e, t, n, r) => new Intl.PluralRules(r).select(e) === "one" ? t : n, Lo = ({ className: t, countMatching: n, countTotal: r, labelStrings: i, locale: a, ...o }) => {
|
|
11779
11788
|
let s = "pds-result-count", c = `${s}__number`, { of: l, showing: u, unitPlural: d, unitSingular: f } = {
|
|
11780
|
-
...
|
|
11789
|
+
...Fo,
|
|
11781
11790
|
...i
|
|
11782
|
-
}, p = n !== void 0, m =
|
|
11791
|
+
}, p = n !== void 0, m = Io(r, f, d, a);
|
|
11783
11792
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11784
11793
|
"aria-live": "polite",
|
|
11785
11794
|
className: Z([s, t ?? ""]),
|
|
11786
11795
|
...o
|
|
11787
11796
|
}, /* @__PURE__ */ e.createElement("span", null, p && /* @__PURE__ */ e.createElement(e.Fragment, null, u && `${u} `, /* @__PURE__ */ e.createElement("span", { className: c }, n), ` ${l} `), /* @__PURE__ */ e.createElement("span", { className: c }, r), ` ${m}`));
|
|
11788
|
-
},
|
|
11797
|
+
}, Ro = {
|
|
11789
11798
|
privacy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"),
|
|
11790
11799
|
dataSubjectRequest: /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"),
|
|
11791
11800
|
cookiePolicy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"),
|
|
11792
11801
|
termsOfUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"),
|
|
11793
11802
|
acceptableUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"),
|
|
11794
11803
|
accessibilityStatement: /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")
|
|
11795
|
-
},
|
|
11804
|
+
}, zo = (e) => typeof e == "string", Bo = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
|
|
11796
11805
|
"privacy",
|
|
11797
11806
|
"dataSubjectRequest",
|
|
11798
11807
|
"cookiePolicy",
|
|
@@ -11809,8 +11818,8 @@ var Qr = {
|
|
|
11809
11818
|
r ?? ""
|
|
11810
11819
|
]),
|
|
11811
11820
|
...c
|
|
11812
|
-
}, /* @__PURE__ */ e.createElement("div", { className: f }, n && /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${l}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${l}__copyright` }, "© ", p, " Pantheon Systems, Inc."), o.map((t, n) =>
|
|
11813
|
-
},
|
|
11821
|
+
}, /* @__PURE__ */ e.createElement("div", { className: f }, n && /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${l}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${l}__copyright` }, "© ", p, " Pantheon Systems, Inc."), o.map((t, n) => zo(t) ? /* @__PURE__ */ e.createElement(e.Fragment, { key: t }, Ro[t]) : /* @__PURE__ */ e.createElement(e.Fragment, { key: n }, t)))));
|
|
11822
|
+
}, Vo = ({ className: t, option: n, ...r }) => {
|
|
11814
11823
|
let i = "pds-site-option-display", a = n.type ? Jn[n.type] : "boltSolid", o = g(null), [s] = Je(o), c = s.width / 16 - 7.5, l, u;
|
|
11815
11824
|
n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
|
|
11816
11825
|
let d = /* @__PURE__ */ e.createElement(wn, {
|
|
@@ -11833,7 +11842,7 @@ var Qr = {
|
|
|
11833
11842
|
className: `${i}__status`,
|
|
11834
11843
|
style: { pointerEvents: "none" }
|
|
11835
11844
|
}, d));
|
|
11836
|
-
},
|
|
11845
|
+
}, Ho = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
|
|
11837
11846
|
clearButton: "Clear input text",
|
|
11838
11847
|
inputInstructions: "Type to search options"
|
|
11839
11848
|
}, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
|
|
@@ -11845,7 +11854,7 @@ var Qr = {
|
|
|
11845
11854
|
id: n,
|
|
11846
11855
|
label: i,
|
|
11847
11856
|
value: r ?? i,
|
|
11848
|
-
optionDisplay: /* @__PURE__ */ e.createElement(
|
|
11857
|
+
optionDisplay: /* @__PURE__ */ e.createElement(Vo, { option: t }),
|
|
11849
11858
|
siteData: t
|
|
11850
11859
|
};
|
|
11851
11860
|
});
|
|
@@ -11874,7 +11883,7 @@ var Qr = {
|
|
|
11874
11883
|
};
|
|
11875
11884
|
//#endregion
|
|
11876
11885
|
//#region src/components/SortableList/sortable-utils.ts
|
|
11877
|
-
function
|
|
11886
|
+
function Uo(e, t, n = null, r = 0, i = []) {
|
|
11878
11887
|
return e.reduce((e, a, o) => {
|
|
11879
11888
|
let s = !!a.children?.length, c = t.has(a.id);
|
|
11880
11889
|
return e.push({
|
|
@@ -11886,10 +11895,10 @@ function Ho(e, t, n = null, r = 0, i = []) {
|
|
|
11886
11895
|
index: o,
|
|
11887
11896
|
isExpanded: c,
|
|
11888
11897
|
parentId: n
|
|
11889
|
-
}), s && c && a.children && e.push(...
|
|
11898
|
+
}), s && c && a.children && e.push(...Uo(a.children, t, a.id, r + 1, [...i, a.id])), e;
|
|
11890
11899
|
}, []);
|
|
11891
11900
|
}
|
|
11892
|
-
function
|
|
11901
|
+
function Wo(e) {
|
|
11893
11902
|
let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
|
|
11894
11903
|
for (let i of e) {
|
|
11895
11904
|
let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
|
|
@@ -11902,28 +11911,28 @@ function Uo(e) {
|
|
|
11902
11911
|
e && (e.children || (e.children = []), e.children.push(o));
|
|
11903
11912
|
}
|
|
11904
11913
|
}
|
|
11905
|
-
return
|
|
11914
|
+
return Go(r);
|
|
11906
11915
|
}
|
|
11907
|
-
function
|
|
11916
|
+
function Go(e) {
|
|
11908
11917
|
return e.map((e) => {
|
|
11909
11918
|
if (e.children?.length) return {
|
|
11910
11919
|
...e,
|
|
11911
|
-
children:
|
|
11920
|
+
children: Go(e.children)
|
|
11912
11921
|
};
|
|
11913
11922
|
let { children: t, ...n } = e;
|
|
11914
11923
|
return n;
|
|
11915
11924
|
});
|
|
11916
11925
|
}
|
|
11917
|
-
function
|
|
11926
|
+
function Ko(e, t) {
|
|
11918
11927
|
for (let n of e) {
|
|
11919
11928
|
if (n.id === t) return n;
|
|
11920
11929
|
if (n.children) {
|
|
11921
|
-
let e =
|
|
11930
|
+
let e = Ko(n.children, t);
|
|
11922
11931
|
if (e) return e;
|
|
11923
11932
|
}
|
|
11924
11933
|
}
|
|
11925
11934
|
}
|
|
11926
|
-
function
|
|
11935
|
+
function qo(e, t, n, r, i, a, o) {
|
|
11927
11936
|
let s = e.findIndex((e) => e.id === n);
|
|
11928
11937
|
if (s === -1) return 0;
|
|
11929
11938
|
let c = e[s], l = Math.round(r / i), u = e.find((e) => e.id === t), d = (o ?? u?.depth ?? c.depth) + l, f = e[s - 1], p = f ? f.depth + 1 : 0, m = e.slice(s + 1).find((e) => e.id !== t && !e.ancestorIds.includes(t) && !e.ancestorIds.includes(n)), h = m ? m.depth : 0;
|
|
@@ -11931,7 +11940,7 @@ function Ko(e, t, n, r, i, a, o) {
|
|
|
11931
11940
|
}
|
|
11932
11941
|
//#endregion
|
|
11933
11942
|
//#region src/components/SortableList/SortableListHeader.tsx
|
|
11934
|
-
var
|
|
11943
|
+
var Jo = ({ children: t, className: n, columns: r, ...i }) => {
|
|
11935
11944
|
if (!r && !t) return null;
|
|
11936
11945
|
let a = r ? {
|
|
11937
11946
|
display: "grid",
|
|
@@ -11952,13 +11961,13 @@ var qo = ({ children: t, className: n, columns: r, ...i }) => {
|
|
|
11952
11961
|
};
|
|
11953
11962
|
//#endregion
|
|
11954
11963
|
//#region src/components/SortableList/useSortableTree.ts
|
|
11955
|
-
function
|
|
11964
|
+
function Yo({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
|
|
11956
11965
|
let i = n !== void 0, [a, o] = _(() => n ?? e ?? []), [s, c] = _(/* @__PURE__ */ new Set()), u = g(null), d = g(t);
|
|
11957
11966
|
t && !d.current && (u.current = {
|
|
11958
11967
|
items: i ? n : a,
|
|
11959
11968
|
expandedIds: s
|
|
11960
|
-
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 &&
|
|
11961
|
-
let f = i ? n : a, p = h(() =>
|
|
11969
|
+
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 && Zo("SortableList received both `items` and `defaultItems`. `items` will be used and `defaultItems` will be ignored.");
|
|
11970
|
+
let f = i ? n : a, p = h(() => Uo(f, s), [f, s]), m = h(() => p.map((e) => e.id), [p]), v = l((e) => {
|
|
11962
11971
|
c((t) => {
|
|
11963
11972
|
let n = new Set(t);
|
|
11964
11973
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -11976,7 +11985,7 @@ function Jo({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
11976
11985
|
}, []),
|
|
11977
11986
|
flatNodes: p,
|
|
11978
11987
|
handleReorder: l((e) => {
|
|
11979
|
-
let t =
|
|
11988
|
+
let t = Wo(e);
|
|
11980
11989
|
i || o(t), r?.(t);
|
|
11981
11990
|
}, [i, r]),
|
|
11982
11991
|
resetToSnapshot: l(() => {
|
|
@@ -11988,24 +11997,24 @@ function Jo({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
11988
11997
|
toggleExpand: v
|
|
11989
11998
|
};
|
|
11990
11999
|
}
|
|
11991
|
-
var
|
|
11992
|
-
function
|
|
11993
|
-
|
|
12000
|
+
var Xo = /* @__PURE__ */ new Set();
|
|
12001
|
+
function Zo(e) {
|
|
12002
|
+
Xo.has(e) || (Xo.add(e), console.warn(e));
|
|
11994
12003
|
}
|
|
11995
12004
|
//#endregion
|
|
11996
12005
|
//#region src/components/SortableList/SortableList.tsx
|
|
11997
|
-
var
|
|
12006
|
+
var Qo = 24, $o = { droppable: { strategy: Qe.Always } }, es = o(function({ children: n, className: r, columns: i, defaultItems: a, getItemLabel: o = (e) => String(e.id), isDragEnabled: c, isItemLocked: u = () => !1, isNestingLocked: d = () => !1, items: f, maxDepth: m = 0, onReorder: v, renderRow: y, reorderMode: b = "always", screenReaderInstructions: x, ...S }, C) {
|
|
11998
12007
|
let w = "pds-sortable-list", [T, E] = _(null), D = g(null), [O, k] = _(!1), A = g(!1), [j, M] = _(null), N = g(0), P = g(0), F = g("pointer"), I = g(0), L = g(null), [R, z] = _(0), ee = g(0), [B, V] = _(0), H = g(0), U = l((e, t) => {
|
|
11999
12008
|
if (m > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
12000
12009
|
e.preventDefault();
|
|
12001
12010
|
let n = e.key === "ArrowRight" ? 1 : -1, r = ee.current, i = Math.max(-m, Math.min(m, r + n)), a = i - r;
|
|
12002
12011
|
return ee.current = i, z(i), {
|
|
12003
|
-
x: t.currentCoordinates.x + a *
|
|
12012
|
+
x: t.currentCoordinates.x + a * Qo,
|
|
12004
12013
|
y: t.currentCoordinates.y
|
|
12005
12014
|
};
|
|
12006
12015
|
}
|
|
12007
12016
|
return it(e, t);
|
|
12008
|
-
}, [m]), W = b === "always" || b === "toggle" && (c ?? !1), { currentItems: G, expandItem: K, flatNodes: q, handleReorder: te, resetToSnapshot: ne, sortableIds: re, toggleExpand: J } =
|
|
12017
|
+
}, [m]), W = b === "always" || b === "toggle" && (c ?? !1), { currentItems: G, expandItem: K, flatNodes: q, handleReorder: te, resetToSnapshot: ne, sortableIds: re, toggleExpand: J } = Yo({
|
|
12009
12018
|
defaultItems: a,
|
|
12010
12019
|
isDragEnabled: W,
|
|
12011
12020
|
items: f,
|
|
@@ -12032,9 +12041,9 @@ var Zo = 24, Qo = { droppable: { strategy: Qe.Always } }, $o = o(function({ chil
|
|
|
12032
12041
|
se,
|
|
12033
12042
|
Y,
|
|
12034
12043
|
j
|
|
12035
|
-
]).size > 0, ue = h(() => T ? q.find((e) => e.id === T) ?? null : null, [T, q]), de = h(() => T ?
|
|
12044
|
+
]).size > 0, ue = h(() => T ? q.find((e) => e.id === T) ?? null : null, [T, q]), de = h(() => T ? Ko(G, String(T)) ?? null : null, [T, G]), fe = h(() => {
|
|
12036
12045
|
let e = ue?.depth ?? 0;
|
|
12037
|
-
return !T || !j || O || m === 0 ? e :
|
|
12046
|
+
return !T || !j || O || m === 0 ? e : qo(q, String(T), String(j), B * Qo, Qo, m);
|
|
12038
12047
|
}, [
|
|
12039
12048
|
T,
|
|
12040
12049
|
ue,
|
|
@@ -12046,7 +12055,7 @@ var Zo = 24, Qo = { droppable: { strategy: Qe.Always } }, $o = o(function({ chil
|
|
|
12046
12055
|
]), pe = h(() => {
|
|
12047
12056
|
if (!T || O || fe === 0 || j && se(j)) return null;
|
|
12048
12057
|
let e = q.findIndex((e) => e.id === T);
|
|
12049
|
-
return e === -1 ? null :
|
|
12058
|
+
return e === -1 ? null : ts(q, e, fe);
|
|
12050
12059
|
}, [
|
|
12051
12060
|
T,
|
|
12052
12061
|
q,
|
|
@@ -12092,19 +12101,19 @@ var Zo = 24, Qo = { droppable: { strategy: Qe.Always } }, $o = o(function({ chil
|
|
|
12092
12101
|
}, [q, Y]), _e = l((e) => {
|
|
12093
12102
|
let t = e.delta.x;
|
|
12094
12103
|
if (P.current = t, A.current || m === 0) return;
|
|
12095
|
-
let n = Math.floor(t /
|
|
12096
|
-
(n > r || n < r && t < r *
|
|
12104
|
+
let n = Math.floor(t / Qo), r = H.current;
|
|
12105
|
+
(n > r || n < r && t < r * Qo - Qo * .4) && (H.current = n, V(n));
|
|
12097
12106
|
}, [m]), ve = l((e) => {
|
|
12098
12107
|
let { active: t, over: n } = e, r = A.current, i = ee.current, a = H.current;
|
|
12099
12108
|
E(null), D.current = null, k(!1), A.current = !1, M(null), H.current = 0, V(0), L.current && (K(L.current), L.current = null);
|
|
12100
|
-
let o = q.findIndex((e) => e.id === t.id), s = r ? i *
|
|
12109
|
+
let o = q.findIndex((e) => e.id === t.id), s = r ? i * Qo : a * Qo, c = !n || t.id === n.id, l = n?.id ?? null;
|
|
12101
12110
|
if (r && i > 0 && c && o > 0 && (l = q[o - 1].id), !l || t.id === l) {
|
|
12102
12111
|
if (o === -1) return;
|
|
12103
12112
|
let e = q[o];
|
|
12104
12113
|
if (!e) return;
|
|
12105
|
-
let n =
|
|
12114
|
+
let n = qo(q, String(t.id), String(t.id), s, Qo, m);
|
|
12106
12115
|
if (n === e.depth) return;
|
|
12107
|
-
let r = [...q], [i] = r.splice(o, 1), a =
|
|
12116
|
+
let r = [...q], [i] = r.splice(o, 1), a = ts(r, o, n);
|
|
12108
12117
|
if (a && oe.has(a)) return;
|
|
12109
12118
|
let c = {
|
|
12110
12119
|
...i,
|
|
@@ -12126,9 +12135,9 @@ var Zo = 24, Qo = { droppable: { strategy: Qe.Always } }, $o = o(function({ chil
|
|
|
12126
12135
|
let e = q[u];
|
|
12127
12136
|
_ = Math.min(e.depth + 1, m), v = String(l);
|
|
12128
12137
|
} else {
|
|
12129
|
-
_ =
|
|
12138
|
+
_ = qo(d, String(t.id), String(l), s, Qo, m, p.depth);
|
|
12130
12139
|
let e = d[g];
|
|
12131
|
-
v = e && e.depth === _ - 1 ? String(l) :
|
|
12140
|
+
v = e && e.depth === _ - 1 ? String(l) : ts(d, g, _);
|
|
12132
12141
|
}
|
|
12133
12142
|
if (v && oe.has(v)) return;
|
|
12134
12143
|
let y = {
|
|
@@ -12151,24 +12160,24 @@ var Zo = 24, Qo = { droppable: { strategy: Qe.Always } }, $o = o(function({ chil
|
|
|
12151
12160
|
E(null), D.current = null, k(!1), A.current = !1, M(null), P.current = 0, H.current = 0, V(0), ee.current = 0, z(0), L.current && (K(L.current), L.current = null);
|
|
12152
12161
|
}, [K]), ye = h(() => ({
|
|
12153
12162
|
onDragStart({ active: e }) {
|
|
12154
|
-
let t = q.find((t) => t.id === e.id), n =
|
|
12163
|
+
let t = q.find((t) => t.id === e.id), n = Ko(G, String(e.id));
|
|
12155
12164
|
return `Picked up ${n ? o(n) : String(e.id)}. Current position: ${t ? q.indexOf(t) + 1 : "?"} of ${q.length} at depth ${t?.depth ?? 0}.`;
|
|
12156
12165
|
},
|
|
12157
12166
|
onDragOver({ active: e, over: t }) {
|
|
12158
12167
|
if (!t) return;
|
|
12159
12168
|
let n = q.findIndex((e) => e.id === t.id);
|
|
12160
12169
|
if (n === -1) return;
|
|
12161
|
-
let r =
|
|
12170
|
+
let r = Ko(G, String(e.id)), i = r ? o(r) : String(e.id), a = qo(q, String(e.id), String(t.id), P.current, Qo, m);
|
|
12162
12171
|
return `Moving ${i}. Target position: ${n + 1} of ${q.length} at depth ${a}.`;
|
|
12163
12172
|
},
|
|
12164
12173
|
onDragEnd({ active: e, over: t }) {
|
|
12165
|
-
let n =
|
|
12174
|
+
let n = Ko(G, String(e.id)), r = n ? o(n) : String(e.id);
|
|
12166
12175
|
if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
|
|
12167
|
-
let i = q.findIndex((e) => e.id === t.id), a =
|
|
12176
|
+
let i = q.findIndex((e) => e.id === t.id), a = qo(q, String(e.id), String(t.id), P.current, Qo, m);
|
|
12168
12177
|
return `${r} dropped at position ${i + 1} of ${q.length} at depth ${a}.`;
|
|
12169
12178
|
},
|
|
12170
12179
|
onDragCancel({ active: e }) {
|
|
12171
|
-
let t = q.find((t) => t.id === e.id), n =
|
|
12180
|
+
let t = q.find((t) => t.id === e.id), n = Ko(G, String(e.id));
|
|
12172
12181
|
return `Sorting cancelled. ${n ? o(n) : String(e.id)} returned to position ${t ? q.indexOf(t) + 1 : "?"} of ${q.length}.`;
|
|
12173
12182
|
}
|
|
12174
12183
|
}), [
|
|
@@ -12176,14 +12185,14 @@ var Zo = 24, Qo = { droppable: { strategy: Qe.Always } }, $o = o(function({ chil
|
|
|
12176
12185
|
q,
|
|
12177
12186
|
o,
|
|
12178
12187
|
m
|
|
12179
|
-
]), be = { columns: i }, xe = t.map(n, (t) => s(t) && t.type ===
|
|
12188
|
+
]), be = { columns: i }, xe = t.map(n, (t) => s(t) && t.type === Jo ? e.cloneElement(t, be) : t);
|
|
12180
12189
|
return /* @__PURE__ */ e.createElement(Ye, {
|
|
12181
12190
|
accessibility: {
|
|
12182
12191
|
announcements: ye,
|
|
12183
12192
|
...x ? { screenReaderInstructions: { draggable: x } } : {}
|
|
12184
12193
|
},
|
|
12185
12194
|
collisionDetection: he,
|
|
12186
|
-
measuring:
|
|
12195
|
+
measuring: $o,
|
|
12187
12196
|
onDragCancel: X,
|
|
12188
12197
|
onDragEnd: ve,
|
|
12189
12198
|
onDragMove: _e,
|
|
@@ -12258,14 +12267,14 @@ var Zo = 24, Qo = { droppable: { strategy: Qe.Always } }, $o = o(function({ chil
|
|
|
12258
12267
|
return s(a) ? e.cloneElement(a, o) : a;
|
|
12259
12268
|
})()) : null));
|
|
12260
12269
|
});
|
|
12261
|
-
function
|
|
12270
|
+
function ts(e, t, n) {
|
|
12262
12271
|
if (n === 0) return null;
|
|
12263
12272
|
for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
|
|
12264
12273
|
return null;
|
|
12265
12274
|
}
|
|
12266
12275
|
//#endregion
|
|
12267
12276
|
//#region src/components/SortableList/SortableRow.tsx
|
|
12268
|
-
var
|
|
12277
|
+
var ns = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a = !1, id: o, isDragActive: s = !1, isDragging: c = !1, isDropTarget: l = !1, isExpanded: u = !1, isLocked: d = !1, isProjectedParent: f = !1, onToggleExpand: p, projectedDepthDelta: m, ...h }) => {
|
|
12269
12278
|
let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = at({
|
|
12270
12279
|
attributes: {
|
|
12271
12280
|
role: "listitem",
|
|
@@ -12320,7 +12329,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12320
12329
|
key: t.id,
|
|
12321
12330
|
className: `${w}__cell`
|
|
12322
12331
|
}, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
|
|
12323
|
-
},
|
|
12332
|
+
}, rs = ({ actionCallback: t, actionIcon: n = "barsFilter", actionLabel: r, className: i, description: a, icon: o, iconColor: s = "neutral", isActive: c = !1, isLoading: l = !1, stat: u, title: d, ...p }) => {
|
|
12324
12333
|
let m = "pds-stat-panel", h = s === "neutral" ? null : `${m}--${s}`, g = c ? `${m}--active` : null, _ = f(), v = n && r && t;
|
|
12325
12334
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12326
12335
|
"aria-labelledby": _,
|
|
@@ -12356,11 +12365,11 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12356
12365
|
size: { width: 6 },
|
|
12357
12366
|
textSize: "xl"
|
|
12358
12367
|
}) : u && /* @__PURE__ */ e.createElement("span", { className: `${m}__stat` }, u)), a && /* @__PURE__ */ e.createElement("p", { className: `${m}__description` }, a));
|
|
12359
|
-
},
|
|
12368
|
+
}, is = [
|
|
12360
12369
|
"default",
|
|
12361
12370
|
"working",
|
|
12362
12371
|
"checked"
|
|
12363
|
-
],
|
|
12372
|
+
], as = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
|
|
12364
12373
|
let l = {
|
|
12365
12374
|
checkForUpdates: "Check for updates",
|
|
12366
12375
|
checking: "Checking...",
|
|
@@ -12408,7 +12417,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12408
12417
|
triggerIconColor: "default",
|
|
12409
12418
|
triggerIconSize: "xs"
|
|
12410
12419
|
}), t === "left" && g));
|
|
12411
|
-
},
|
|
12420
|
+
}, os = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
|
|
12412
12421
|
let o = "pds-status-indicator", c = `${o}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(Cn, {
|
|
12413
12422
|
className: `${o}__spinner`,
|
|
12414
12423
|
size: "m"
|
|
@@ -12425,23 +12434,23 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12425
12434
|
]),
|
|
12426
12435
|
...a
|
|
12427
12436
|
}, r ? d : l);
|
|
12428
|
-
},
|
|
12437
|
+
}, ss = {
|
|
12429
12438
|
frozen: "snowflake",
|
|
12430
12439
|
restricted: "lock"
|
|
12431
|
-
},
|
|
12440
|
+
}, cs = {
|
|
12432
12441
|
frozen: "Frozen",
|
|
12433
12442
|
restricted: "Restricted"
|
|
12434
|
-
},
|
|
12443
|
+
}, ls = ({ className: t, label: n, status: r, ...i }) => {
|
|
12435
12444
|
let a = "pds-status-scrim";
|
|
12436
12445
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12437
12446
|
className: Z([a, t ?? ""]),
|
|
12438
12447
|
...i
|
|
12439
12448
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
12440
12449
|
className: `${a}__icon`,
|
|
12441
|
-
iconName:
|
|
12450
|
+
iconName: ss[r],
|
|
12442
12451
|
size: "3xl"
|
|
12443
|
-
}), /* @__PURE__ */ e.createElement("span", { className: `${a}__label` }, n ??
|
|
12444
|
-
},
|
|
12452
|
+
}), /* @__PURE__ */ e.createElement("span", { className: `${a}__label` }, n ?? cs[r]));
|
|
12453
|
+
}, us = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
|
|
12445
12454
|
let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
|
|
12446
12455
|
let a = /* @__PURE__ */ e.createElement("div", { className: `${o}__number` }, /* @__PURE__ */ e.createElement("span", null, i + 1)), s = /* @__PURE__ */ e.createElement("div", { className: `${o}__header` }, r), c = t ? /* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, t) : null, l = `${o}__step`;
|
|
12447
12456
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -12459,7 +12468,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12459
12468
|
style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
|
|
12460
12469
|
...a
|
|
12461
12470
|
}, l);
|
|
12462
|
-
},
|
|
12471
|
+
}, ds = ({ className: t, steps: n, translatableLabels: r = {
|
|
12463
12472
|
step: "Step",
|
|
12464
12473
|
completed: "completed",
|
|
12465
12474
|
hasError: "has an error",
|
|
@@ -12523,7 +12532,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12523
12532
|
key: t.id,
|
|
12524
12533
|
className: `${o}__step`,
|
|
12525
12534
|
id: `${t.id}--mobile`
|
|
12526
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
12535
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(Po, {
|
|
12527
12536
|
innerLabel: n,
|
|
12528
12537
|
label: "Step progress",
|
|
12529
12538
|
percentage: i,
|
|
@@ -12549,7 +12558,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12549
12558
|
"data-steps": u,
|
|
12550
12559
|
...i
|
|
12551
12560
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, p)));
|
|
12552
|
-
},
|
|
12561
|
+
}, fs = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
|
|
12553
12562
|
let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
|
|
12554
12563
|
return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
|
|
12555
12564
|
className: Z([...p]),
|
|
@@ -12575,14 +12584,14 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12575
12584
|
size: "s",
|
|
12576
12585
|
variant: "highlight"
|
|
12577
12586
|
})))));
|
|
12578
|
-
},
|
|
12587
|
+
}, ps = ({ className: t, labelStrings: n = {
|
|
12579
12588
|
step: "Step",
|
|
12580
12589
|
completed: "completed",
|
|
12581
12590
|
hasError: "has an error"
|
|
12582
12591
|
}, steps: r, ...i }) => {
|
|
12583
12592
|
let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
|
|
12584
12593
|
let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
|
|
12585
|
-
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(
|
|
12594
|
+
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(fs, {
|
|
12586
12595
|
key: `s${i}`,
|
|
12587
12596
|
_isFirstStep: c,
|
|
12588
12597
|
"aria-current": a ? "step" : null,
|
|
@@ -12603,12 +12612,12 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12603
12612
|
className: Z([a, t ?? ""]),
|
|
12604
12613
|
...i
|
|
12605
12614
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
|
|
12606
|
-
},
|
|
12615
|
+
}, ms = typeof window < "u" ? m : d, hs = (e) => {
|
|
12607
12616
|
let t = g(e);
|
|
12608
|
-
return
|
|
12617
|
+
return ms(() => {
|
|
12609
12618
|
t.current = e;
|
|
12610
12619
|
}), l((...e) => t.current(...e), []);
|
|
12611
|
-
},
|
|
12620
|
+
}, gs = c(function({ baseClass: t, checkboxId: n, columns: r, disabledReason: i, getRowClassName: a, hasSelection: o, isInspectable: s, isInspected: c, isSelectable: l, isSelected: u, onInspect: d, onToggleSelect: f, row: p, rowId: m, selectLabel: h }) {
|
|
12612
12621
|
return /* @__PURE__ */ e.createElement("tr", {
|
|
12613
12622
|
"aria-selected": s ? c : void 0,
|
|
12614
12623
|
className: Z([
|
|
@@ -12633,7 +12642,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12633
12642
|
key: `${m}-${t.id}`,
|
|
12634
12643
|
className: t.cellClassName
|
|
12635
12644
|
}, p[t.id])));
|
|
12636
|
-
}),
|
|
12645
|
+
}), _s = c(function({ baseClass: t, cardColumns: n, disabledReason: r, getRowClassName: i, hasSelection: a, isInspected: o, isSelectable: s, isSelected: c, isTappable: l, onInspect: u, onToggleSelect: d, row: f, rowId: p, selectLabel: m }) {
|
|
12637
12646
|
let [h, ...g] = n, _ = /* @__PURE__ */ e.createElement("div", { className: `${t}__card-main` }, a && /* @__PURE__ */ e.createElement("span", {
|
|
12638
12647
|
"aria-hidden": "true",
|
|
12639
12648
|
className: "pds-checkbox"
|
|
@@ -12668,7 +12677,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12668
12677
|
onClick: () => u(f, p),
|
|
12669
12678
|
type: "button"
|
|
12670
12679
|
}, _) : /* @__PURE__ */ e.createElement("div", { className: v }, _));
|
|
12671
|
-
}),
|
|
12680
|
+
}), vs = ({ className: t, closeDetailPanelLabel: n = "Close detail panel", columns: r, currentPage: i, defaultSortKey: a, defaultSortOrder: o = "asc", density: s = "standard", detailPanelNav: c = !0, detailPanelTitle: l, detailPanelWidth: u, emptyState: p, emptyStateHeading: m = "No results found.", emptyStateMessage: v, footer: y, getDetailPanelPositionLabel: b = (e, t) => `${e} of ${t}`, getPageSizeLabel: x = (e) => `Show ${e} rows per page`, getRowClassName: S, getRowId: C, getRowSelectDisabledReason: w, getSelectRowLabel: T = (e, t) => `Select row ${t}`, getSortLabel: E = (e) => `Sort by ${e}`, hasDesktopDetailPanel: D = !1, hasMobileCards: O = !1, hasMobileDetailSheet: k = !0, hasPanel: A = !1, inspectedRowId: j, isLoading: M = !1, isRowSelectable: N = () => !0, itemsPerPage: P, loadingRowCount: F = 5, maxHeight: I, minHeight: L, nextDetailPanelRowLabel: R = "Next row", onDetailPanelNext: z, onDetailPanelPrev: ee, onPageChange: B, onPageSizeChange: V, onRowInspect: H, onRowSelectionChange: U, onSort: W, pageSizeOptions: G, pageSizeSelectLabel: K = "Rows per page", paginationLabels: q, prevDetailPanelRowLabel: te = "Previous row", renderDetailPanel: ne, renderDetailPanelFooter: re, rowData: J, selectAllLabel: ie = "Select all rows", selectedRows: ae, sortKey: Y, sortOrder: oe, totalItemCount: se, ...ce }) => {
|
|
12672
12681
|
let le = "pds-table", ue = f(), de = f(), fe = g(null), pe = ya() === "sm" && O, me = A && !pe, he = h(() => r.some((e) => e.cardVisible) ? r.filter((e) => e.cardVisible) : r.slice(0, 1), [r]), ge = ne !== void 0 || H === void 0 && k, _e = ne !== void 0 || H !== void 0 || k, ve = W !== void 0, X = B !== void 0, ye = V !== void 0, be = X || P !== void 0 || G !== void 0, xe = J.length > 0 || X && (se ?? 0) > 0, [Se, Ce] = _({
|
|
12673
12682
|
key: a ?? "",
|
|
12674
12683
|
order: a === void 0 ? "asc" : o
|
|
@@ -12701,7 +12710,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12701
12710
|
je,
|
|
12702
12711
|
C,
|
|
12703
12712
|
We
|
|
12704
|
-
]), qe = Ke >= 0 ? we[Ke] : null, Je =
|
|
12713
|
+
]), qe = Ke >= 0 ? we[Ke] : null, Je = hs((e, t) => {
|
|
12705
12714
|
(pe ? ge : ne !== void 0 && D) && j === void 0 && Ae(t), H?.(e, t);
|
|
12706
12715
|
}), Ye = () => {
|
|
12707
12716
|
j === void 0 && Ae(null);
|
|
@@ -12782,7 +12791,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12782
12791
|
}, ut = ot.reduce((e, t, n) => {
|
|
12783
12792
|
let r = Ge(t, n);
|
|
12784
12793
|
return N(t, r) && e.push(r), e;
|
|
12785
|
-
}, []), dt = ut.length > 0 && ut.every((e) => Ue.has(e)), ft = !dt && ut.some((e) => Ue.has(e)), pt =
|
|
12794
|
+
}, []), dt = ut.length > 0 && ut.every((e) => Ue.has(e)), ft = !dt && ut.some((e) => Ue.has(e)), pt = hs((e) => {
|
|
12786
12795
|
let t = new Set(Ue);
|
|
12787
12796
|
t.has(e) ? t.delete(e) : t.add(e), ze || Ve(t), U?.(Array.from(t));
|
|
12788
12797
|
}), mt = () => {
|
|
@@ -12816,7 +12825,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12816
12825
|
};
|
|
12817
12826
|
}, yt = (t, n) => {
|
|
12818
12827
|
let i = Ge(t, n);
|
|
12819
|
-
return /* @__PURE__ */ e.createElement(
|
|
12828
|
+
return /* @__PURE__ */ e.createElement(gs, {
|
|
12820
12829
|
key: `row-${i}`,
|
|
12821
12830
|
baseClass: le,
|
|
12822
12831
|
checkboxId: `${de}-row-${i}`,
|
|
@@ -12841,7 +12850,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12841
12850
|
message: v
|
|
12842
12851
|
})), Ct = (t, n) => {
|
|
12843
12852
|
let r = Ge(t, n);
|
|
12844
|
-
return /* @__PURE__ */ e.createElement(
|
|
12853
|
+
return /* @__PURE__ */ e.createElement(_s, {
|
|
12845
12854
|
key: `card-${r}`,
|
|
12846
12855
|
baseClass: le,
|
|
12847
12856
|
cardColumns: he,
|
|
@@ -12972,8 +12981,8 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12972
12981
|
size: "s",
|
|
12973
12982
|
variant: "standard"
|
|
12974
12983
|
}))))));
|
|
12975
|
-
return me ? /* @__PURE__ */ e.createElement(
|
|
12976
|
-
},
|
|
12984
|
+
return me ? /* @__PURE__ */ e.createElement(yo, { padding: "none" }, Et) : Et;
|
|
12985
|
+
}, ys = [
|
|
12977
12986
|
" ",
|
|
12978
12987
|
"/",
|
|
12979
12988
|
".",
|
|
@@ -12991,7 +13000,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12991
13000
|
"=",
|
|
12992
13001
|
"|",
|
|
12993
13002
|
"~"
|
|
12994
|
-
],
|
|
13003
|
+
], bs = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), xs = (e) => {
|
|
12995
13004
|
let t = [];
|
|
12996
13005
|
return e.forEach((e) => {
|
|
12997
13006
|
let { id: n, innerText: r } = e;
|
|
@@ -13004,18 +13013,18 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13004
13013
|
title: r
|
|
13005
13014
|
});
|
|
13006
13015
|
}), t;
|
|
13007
|
-
},
|
|
13016
|
+
}, Ss = (e, t, n) => {
|
|
13008
13017
|
let [r, i] = _([]);
|
|
13009
13018
|
return d(() => {
|
|
13010
13019
|
let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
|
|
13011
13020
|
let e = Array.from(document.querySelectorAll(r));
|
|
13012
13021
|
e.forEach((e) => {
|
|
13013
|
-
|
|
13014
|
-
e.id.includes(t) && (e.id = e.id.replace(new RegExp(
|
|
13022
|
+
ys.forEach((t) => {
|
|
13023
|
+
e.id.includes(t) && (e.id = e.id.replace(new RegExp(bs(t), "g"), "-"));
|
|
13015
13024
|
});
|
|
13016
13025
|
}), e.forEach((e, t) => {
|
|
13017
13026
|
e.id || (e.id = `${n}-item-${t}`);
|
|
13018
|
-
}), i(
|
|
13027
|
+
}), i(xs(e));
|
|
13019
13028
|
};
|
|
13020
13029
|
a();
|
|
13021
13030
|
let o = document.getElementById(e);
|
|
@@ -13031,7 +13040,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13031
13040
|
t,
|
|
13032
13041
|
n
|
|
13033
13042
|
]), { nestedHeadings: r };
|
|
13034
|
-
},
|
|
13043
|
+
}, Cs = (e, t) => {
|
|
13035
13044
|
let [n, r] = _(void 0), i = g({});
|
|
13036
13045
|
return d(() => {
|
|
13037
13046
|
let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
|
|
@@ -13050,7 +13059,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13050
13059
|
o.disconnect(), r(void 0);
|
|
13051
13060
|
};
|
|
13052
13061
|
}, [e, t]), n;
|
|
13053
|
-
},
|
|
13062
|
+
}, ws = ({ activeID: t, baseClass: n, headings: r, onLinkClick: i }) => /* @__PURE__ */ e.createElement("ul", { className: `${n}__list ${n}__list--top-level` }, r.map((r) => /* @__PURE__ */ e.createElement("li", {
|
|
13054
13063
|
key: r.id,
|
|
13055
13064
|
className: `${n}__list-item`
|
|
13056
13065
|
}, /* @__PURE__ */ e.createElement("a", {
|
|
@@ -13066,8 +13075,8 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13066
13075
|
className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
|
|
13067
13076
|
href: `#${r.id}`,
|
|
13068
13077
|
onClick: (e) => i(e, r.id)
|
|
13069
|
-
}, r.title))))))),
|
|
13070
|
-
let u = "pds-toc", { nestedHeadings: d } =
|
|
13078
|
+
}, r.title))))))), Ts = ({ appendIds: t = !1, ariaLabel: n = "Table of contents", className: r, headingLevel: i = "h2", headingText: a = "Table of contents", ignoreClass: o = "pds-toc-ignore", showHeading: s = !1, sourceID: c = "pds-toc-source", ...l }) => {
|
|
13079
|
+
let u = "pds-toc", { nestedHeadings: d } = Ss(c, o, f()), p = Cs(c, o), m = (e) => {
|
|
13071
13080
|
typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
|
|
13072
13081
|
}, h = (e) => {
|
|
13073
13082
|
document.querySelector(`#${e}`)?.scrollIntoView({
|
|
@@ -13085,13 +13094,13 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13085
13094
|
baseClass: u,
|
|
13086
13095
|
className: `${s ? "" : "visually-hidden"}`,
|
|
13087
13096
|
level: i
|
|
13088
|
-
}, a), /* @__PURE__ */ e.createElement(
|
|
13097
|
+
}, a), /* @__PURE__ */ e.createElement(ws, {
|
|
13089
13098
|
activeID: p,
|
|
13090
13099
|
baseClass: u,
|
|
13091
13100
|
headings: d,
|
|
13092
13101
|
onLinkClick: g
|
|
13093
13102
|
}));
|
|
13094
|
-
},
|
|
13103
|
+
}, Es = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
|
|
13095
13104
|
let c = "pds-tabs", [l, u] = _(a ?? r);
|
|
13096
13105
|
d(() => {
|
|
13097
13106
|
a !== void 0 && u(a);
|
|
@@ -13205,7 +13214,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13205
13214
|
className: `${c}__panel-content`,
|
|
13206
13215
|
hidden: o !== l
|
|
13207
13216
|
}, r)))));
|
|
13208
|
-
},
|
|
13217
|
+
}, Ds = [
|
|
13209
13218
|
"orange",
|
|
13210
13219
|
"stone",
|
|
13211
13220
|
"gold",
|
|
@@ -13219,7 +13228,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13219
13228
|
"magenta",
|
|
13220
13229
|
"rose",
|
|
13221
13230
|
"red"
|
|
13222
|
-
],
|
|
13231
|
+
], Os = [
|
|
13223
13232
|
"orange-solid",
|
|
13224
13233
|
"teal-solid",
|
|
13225
13234
|
"indigo-solid",
|
|
@@ -13229,14 +13238,14 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13229
13238
|
"lime-solid",
|
|
13230
13239
|
"sky-solid",
|
|
13231
13240
|
"slate-solid"
|
|
13232
|
-
],
|
|
13241
|
+
], ks = [
|
|
13233
13242
|
"success-solid",
|
|
13234
13243
|
"warning-solid",
|
|
13235
13244
|
"critical-solid",
|
|
13236
13245
|
"info-solid",
|
|
13237
13246
|
"discovery-solid"
|
|
13238
|
-
],
|
|
13239
|
-
let [f, p] = _(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${
|
|
13247
|
+
], As = [...Os, ...ks], js = [...Ds, ...Os], Ms = (e) => js[parseInt(fe(e), 16) % js.length], Ns = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, Ps = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: o = "s", tagColor: c, tagLabel: l, truncationLength: u = 18, ...d }) => {
|
|
13248
|
+
let [f, p] = _(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${Ms(l)}`, g = `${m}--${o}`, v = f ? null : "pds-tag--hide", y = () => {
|
|
13240
13249
|
p((e) => !e);
|
|
13241
13250
|
}, b, x, S;
|
|
13242
13251
|
if (r && !n && s(r)) {
|
|
@@ -13258,7 +13267,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13258
13267
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
13259
13268
|
className: `${m}__label`,
|
|
13260
13269
|
title: l
|
|
13261
|
-
}, u > 0 ?
|
|
13270
|
+
}, u > 0 ? Ns(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
|
|
13262
13271
|
"aria-label": `${a}: ${l}`,
|
|
13263
13272
|
className: `${m}__remove`,
|
|
13264
13273
|
onClick: () => {
|
|
@@ -13270,7 +13279,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13270
13279
|
iconName: "xmark",
|
|
13271
13280
|
size: "m"
|
|
13272
13281
|
})) : null);
|
|
13273
|
-
},
|
|
13282
|
+
}, Fs = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
|
|
13274
13283
|
let o = "pds-utility-bar", s = t === "transparent" ? null : `${o}--bg-${t}`, c = i === "none" ? null : `${o}--pad-${i}`, l = _t(n), u = l["items-left"], d = l["items-right"] ?? l.__unslotted;
|
|
13275
13284
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13276
13285
|
className: Z([
|
|
@@ -13281,7 +13290,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13281
13290
|
]),
|
|
13282
13291
|
...a
|
|
13283
13292
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__layout` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-left` }, u), /* @__PURE__ */ e.createElement("div", { className: `${o}__items-right` }, d)));
|
|
13284
|
-
},
|
|
13293
|
+
}, Is = ({ children: t, className: n, drawerContent: r, drawerProps: i, hasDrawerToggle: o, hasSidebarToggle: s, isDrawerOpen: c = !1, isSidebarCollapsed: l, keyboardShortcuts: u = !0, labels: f, mainBackground: p, mainContentElement: h = "main", mainContentMaxWidth: v = 1600, mainContentProps: y, onDrawerToggle: b, onSidebarToggle: x, scrollableContent: S, sidebarBackground: C, sidebarCollapsedWidth: w = 4, sidebarExpandedWidth: T = "15%", sidebarExpandedWidthMax: E = 18, sidebarExpandedWidthMin: D = 14.75, sidebarProps: O, topOffset: k, ...A }) => {
|
|
13285
13294
|
let [j, M] = _(l || !1);
|
|
13286
13295
|
d(() => {
|
|
13287
13296
|
M(l || !1);
|
|
@@ -13409,7 +13418,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13409
13418
|
!e && c && b && b();
|
|
13410
13419
|
}
|
|
13411
13420
|
}, r));
|
|
13412
|
-
},
|
|
13421
|
+
}, Ls = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
|
|
13413
13422
|
let c = "pds-docs-layout", l = {
|
|
13414
13423
|
"--docs-sidebar-max-width": `${i}rem`,
|
|
13415
13424
|
"--docs-sidebar-min-width": `${a}rem`,
|
|
@@ -13427,11 +13436,15 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13427
13436
|
},
|
|
13428
13437
|
...s
|
|
13429
13438
|
}, 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
|
-
},
|
|
13431
|
-
let
|
|
13439
|
+
}, Rs = ({ 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 }) => {
|
|
13440
|
+
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
13441
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13433
|
-
className: Z([
|
|
13434
|
-
|
|
13442
|
+
className: Z([
|
|
13443
|
+
g,
|
|
13444
|
+
S ? `${g}--stack-container` : null,
|
|
13445
|
+
n ?? ""
|
|
13446
|
+
]),
|
|
13447
|
+
"data-second-sidebar-mobile-location": x ? a : void 0,
|
|
13435
13448
|
"data-sidebar-location": l,
|
|
13436
13449
|
"data-sidebar-mobile-location": u,
|
|
13437
13450
|
style: {
|
|
@@ -13441,12 +13454,12 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13441
13454
|
"--second-sidebar-width": o ?? d,
|
|
13442
13455
|
"--second-sidebar-width-max": `${s ?? f}rem`,
|
|
13443
13456
|
"--second-sidebar-width-min": `${c ?? p}rem`,
|
|
13444
|
-
"--pds-sidebar-layout-gap":
|
|
13445
|
-
"--pds-sidebar-layout-gap-mobile":
|
|
13457
|
+
"--pds-sidebar-layout-gap": v,
|
|
13458
|
+
"--pds-sidebar-layout-gap-mobile": y
|
|
13446
13459
|
},
|
|
13447
|
-
...
|
|
13448
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${
|
|
13449
|
-
},
|
|
13460
|
+
...h
|
|
13461
|
+
}, /* @__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"])));
|
|
13462
|
+
}, zs = ({ children: n, className: r, maxColumns: i = 3, style: a, ...o }) => {
|
|
13450
13463
|
let s = "pds-stat-panel-group", c = `${s}--max-${i}`, l = {
|
|
13451
13464
|
"--max-columns": i,
|
|
13452
13465
|
...a
|
|
@@ -13465,7 +13478,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13465
13478
|
className: `${s}__item`,
|
|
13466
13479
|
role: "listitem"
|
|
13467
13480
|
}, t))));
|
|
13468
|
-
},
|
|
13481
|
+
}, Bs = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
|
|
13469
13482
|
let o = _t(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" ? `${l}--full-width` : null, d = /* @__PURE__ */ e.createElement(ha, {
|
|
13470
13483
|
className: Z([
|
|
13471
13484
|
l,
|
|
@@ -13475,8 +13488,8 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13475
13488
|
width: "wide",
|
|
13476
13489
|
...a
|
|
13477
13490
|
}, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stepper-container` }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${l}__form-container` }, c));
|
|
13478
|
-
return i ? /* @__PURE__ */ e.createElement(
|
|
13479
|
-
},
|
|
13491
|
+
return i ? /* @__PURE__ */ e.createElement(yo, null, d) : d;
|
|
13492
|
+
}, Vs = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
|
|
13480
13493
|
let o = "pds-three-item-layout", s = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, c = `${o}--${i}`, l = _t(t), u = [
|
|
13481
13494
|
l["first-item"],
|
|
13482
13495
|
l["second-item"],
|
|
@@ -13494,7 +13507,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13494
13507
|
key: n,
|
|
13495
13508
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
13496
13509
|
}, t)));
|
|
13497
|
-
},
|
|
13510
|
+
}, Hs = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
|
|
13498
13511
|
let s = "pds-two-item-layout", c = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, l = `${s}--${a}`, u = ["pds-grid-item--md-6"], d = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], f = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], p = ["pds-grid-item", "pds-grid-item--sm-4"], m, h;
|
|
13499
13512
|
switch (i) {
|
|
13500
13513
|
case "equal":
|
|
@@ -13515,7 +13528,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13515
13528
|
]),
|
|
13516
13529
|
...o
|
|
13517
13530
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
13518
|
-
},
|
|
13531
|
+
}, Us = ({ alignContent: t = "flex-start", alignItems: n = "stretch", asContainer: r = !1, children: i, className: a, containerAlignContent: o, containerAlignItems: s, containerFlexDirection: c, containerFlexWrap: l, containerGap: u, containerJustifyContent: d, containerQueryPriority: f = "container", flexDirection: p = "row", flexWrap: m = "nowrap", gap: h = "xl", justifyContent: g = "flex-start", mobileAlignContent: _, mobileAlignItems: v, mobileFlexDirection: y, mobileFlexWrap: b, mobileGap: x, mobileJustifyContent: S, stackBelow: C, style: w, ...T }) => {
|
|
13519
13532
|
let E = "pds-flex", D = `${E}-container`, O = {
|
|
13520
13533
|
"--pds-flex-align-content": t,
|
|
13521
13534
|
"--pds-flex-align-items": n,
|
|
@@ -13563,20 +13576,20 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13563
13576
|
...O
|
|
13564
13577
|
}
|
|
13565
13578
|
}, i));
|
|
13566
|
-
},
|
|
13579
|
+
}, Ws = [
|
|
13567
13580
|
"light",
|
|
13568
13581
|
"dark",
|
|
13569
13582
|
"system"
|
|
13570
|
-
],
|
|
13583
|
+
], Gs = (e) => typeof e == "string" && Ws.includes(e), Ks = i(null), qs = {
|
|
13571
13584
|
resolvedTheme: "light",
|
|
13572
13585
|
setTheme: () => {},
|
|
13573
13586
|
theme: "light"
|
|
13574
|
-
},
|
|
13587
|
+
}, Js = ({ defaultTheme: e = "light", storageKey: t = "pds-theme" } = {}) => `(function(){try{var t=localStorage.getItem(${JSON.stringify(t)})||${JSON.stringify(e)};if(t==='system'){t=matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}document.documentElement.setAttribute('data-theme',t);}catch(e){}})();`, Ys = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: s = "pds-theme", theme: c }) => {
|
|
13575
13588
|
let u = c !== void 0, f = !r && !u && o && !i, [p, m] = _(n), [h, g] = _(!1), v = u ? c : p, y = an("(prefers-color-scheme: dark)"), b = v === "system" ? h && y ? "dark" : "light" : v;
|
|
13576
13589
|
d(() => {
|
|
13577
13590
|
if (g(!0), !(u || !o || typeof window > "u")) try {
|
|
13578
13591
|
let e = window.localStorage.getItem(s);
|
|
13579
|
-
|
|
13592
|
+
Gs(e) && m(e);
|
|
13580
13593
|
} catch {}
|
|
13581
13594
|
}, []), d(() => {
|
|
13582
13595
|
typeof document > "u" || (i?.current ?? document.documentElement).setAttribute("data-theme", b);
|
|
@@ -13596,20 +13609,20 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13596
13609
|
]),
|
|
13597
13610
|
theme: v
|
|
13598
13611
|
};
|
|
13599
|
-
return /* @__PURE__ */ e.createElement(
|
|
13612
|
+
return /* @__PURE__ */ e.createElement(Ks.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: Js({
|
|
13600
13613
|
defaultTheme: n,
|
|
13601
13614
|
storageKey: s
|
|
13602
13615
|
}) } }), t);
|
|
13603
|
-
},
|
|
13616
|
+
}, Xs = () => u(Ks) ?? qs, Zs = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
|
|
13604
13617
|
d(() => {
|
|
13605
13618
|
let e = document.documentElement, t = () => {
|
|
13606
13619
|
window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
|
|
13607
13620
|
};
|
|
13608
13621
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
13609
13622
|
}, [r]);
|
|
13610
|
-
let a = n ? /* @__PURE__ */ e.createElement(
|
|
13623
|
+
let a = n ? /* @__PURE__ */ e.createElement(Ys, i, t) : t;
|
|
13611
13624
|
return /* @__PURE__ */ e.createElement(tn, null, a);
|
|
13612
|
-
},
|
|
13625
|
+
}, Qs = ({ children: t, className: n, gap: r = "xl", itemMinWidth: i, maxColumns: a, mobileGap: o, ...s }) => {
|
|
13613
13626
|
let c = "pds-auto-grid", l = r === "xl" ? null : `${c}--gap-${r}`, u = a ? `${c}--capped` : null, d = o ?? r, f = d === r ? null : `${c}-gap-mobile--${d}`;
|
|
13614
13627
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13615
13628
|
className: Z([
|
|
@@ -13625,7 +13638,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13625
13638
|
},
|
|
13626
13639
|
...s
|
|
13627
13640
|
}, t);
|
|
13628
|
-
},
|
|
13641
|
+
}, $s = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
|
|
13629
13642
|
let l = "pds-grid", u = a === "xl" ? null : `${l}--gap-${a}`, d = i ? `${l}--dense` : null, f = t || s ? `${l}--container` : null, p = s ? `${l}--stack-${s}` : null, m = o ?? a, h = m === a ? null : `${l}-gap-mobile--${m}`;
|
|
13630
13643
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13631
13644
|
className: Z([
|
|
@@ -13639,7 +13652,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13639
13652
|
]),
|
|
13640
13653
|
...c
|
|
13641
13654
|
}, n);
|
|
13642
|
-
},
|
|
13655
|
+
}, ec = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
|
|
13643
13656
|
let f = "pds-grid-item", p = [
|
|
13644
13657
|
l ? `${f}--sm-${l}` : null,
|
|
13645
13658
|
c ? `${f}--md-${c}` : null,
|
|
@@ -13658,7 +13671,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13658
13671
|
]),
|
|
13659
13672
|
...d
|
|
13660
13673
|
}, t);
|
|
13661
|
-
},
|
|
13674
|
+
}, tc = (e, t, n) => {
|
|
13662
13675
|
let { altKey: r = !1, ctrlKey: i = !1, enabled: a = !0, metaKey: o = !1, shiftKey: s = !1 } = n ?? {}, [c, u] = _(!1), f = l((e) => e.altKey === r && e.ctrlKey === i && e.metaKey === o && e.shiftKey === s, [
|
|
13663
13676
|
r,
|
|
13664
13677
|
i,
|
|
@@ -13682,7 +13695,7 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13682
13695
|
m,
|
|
13683
13696
|
a
|
|
13684
13697
|
]), c;
|
|
13685
|
-
},
|
|
13698
|
+
}, nc = () => {
|
|
13686
13699
|
let e = typeof window < "u", [t, n] = _(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
|
|
13687
13700
|
return d(() => {
|
|
13688
13701
|
if (!e) return;
|
|
@@ -13696,6 +13709,6 @@ var ts = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13696
13709
|
}, [e]), t;
|
|
13697
13710
|
};
|
|
13698
13711
|
//#endregion
|
|
13699
|
-
export { br as ActionCard,
|
|
13712
|
+
export { br as ActionCard, Is as AppLayout, Qs as AutoGrid, ui as Avatar, di as AvatarLabel, wt as Badge, Ia as Banner, Ur as BarChart, ta as BookmarksEmptyState, ra as BookmarksMenu, ho as BookmarksPanel, to as BottomSheet, En as BranchDiff, ia as Breadcrumb, no as BulkActionBar, An as Button, jn as ButtonLink, ma as ButtonNav, Yi as CTALink, yr as Callout, xr as Card, Sr as CardSelect, pi as Checkbox, mi as CheckboxFieldset, hi as CheckboxGroup, Pn as ClipboardButton, Fn as CloseButton, $r as CodeBlock, gi as Combobox, vi as ComboboxMultiselect, Cr as CompactEmptyState, ti as ComparisonList, ha as Container, zi as Datepicker, Ls as DocsLayout, ro as Drawer, $n as Dropdown, pa as DropdownMenu, go as ExpansionPanel, _o as ExpansionPanelGroup, vo as FeaturePanel, ai as FileDiff, Bi as FileUpload, ur as FilterButton, Us as FlexContainer, io as FullScreenOverlay, Zs as GlobalWrapper, $s as Grid, ec as GridItem, ri as HorizontalEmptyState, Q as Icon, Nn as IconButton, fi as IdentityBlock, Ra as InlineMessage, Vi as InputGroup, Gr as LineChart, Xi as LinkNewWindow, Va as MIN_AUTO_CLOSE_DURATION, Yn as MenuButton, ao as Modal, _a as Navbar, co as Pagination, lo as PaginationChapter, uo as PaginationCompact, yo as Panel, bo as PanelList, xo as PanelRow, So as PanelStack, Do as PantheonLogo, si as PaymentIcon, Qi as Picture, qr as PieChart, mr as PlatformIcon, Ao as Popover, Mo as ProgressBar, Po as ProgressRing, Yr as ProportionBar, Hi as RadioGroup, Lo as ResultCount, $i as RowActionsMenu, gr as SSOButton, Ba as SectionMessage, dr as SegmentedButton, Tr as Select, fr as SelectButton, wr as SelectOptionGroup, va as SideNav, xa as SideNavGlobal, ba as SideNavGlobalItem, Rs as SidebarLayout, Bo as SiteFooter, Ca as SiteMenu, Vo as SiteOptionDisplay, Ho as SiteSearch, Jn as SiteTypeIcon, qn as SiteTypeLabel, zr as Skeleton, Zi as Skiplink, es as SortableList, Jo as SortableListHeader, ns as SortableRow, Cn as Spinner, pr as SplitButton, rs as StatPanel, zs as StatPanelGroup, wn as StatusBadge, as as StatusChecker, os as StatusIndicator, ls as StatusScrim, Hn as StatusTypeLabels, us as StepList, ds as Stepper, Bs as StepperLayout, Ui as Switch, Ta as TabMenu, vs as Table, Ts as TableOfContents, Es as Tabs, Ps as Tag, Gi as TagsInput, Tn as Tally, Ji as TextInput, Ki as Textarea, Ks as ThemeContext, Ys as ThemeContextProvider, ka as ThemeSwitcher, Vs as ThreeItemLayout, Ci as Timepicker, Ja as Toast, Ya as ToastType, Ga as Toaster, Ua as ToasterContext, on as Tooltip, Da as TreeNav, Hs as TwoItemLayout, Aa as UserMenu, Fs as UtilityBar, _r as UtilityButton, ii as VerticalEmptyState, ps as VerticalStepper, ni as VideoEmbed, fo as WidgetPanel, Ma as WorkspaceSelector, Co as WorkspaceSelectorPanel, ea as buildBookmarkMenuItems, Fi as getPresetDateRange, Js as getThemeInitScript, St as iconList, Wn as isHeadingItemType, Gn as isLinkItemType, Kn as isNodeItemType, Un as isSeparatorItemType, is as statusCheckerStates, Ds as tagColors, As as tagSolidColors, Os as tagSolidHueColors, ks as tagSolidStatusColors, ya as useBreakpoint, Mn as useClipboard, Ln as useDropdown, Qt as useIsMobile, tc as useKeyPress, rn as useKeyboardShortcut, an as useMediaQuery, Xs as useTheme, Xa as useToast, nc as useWindowWidth };
|
|
13700
13713
|
|
|
13701
13714
|
//# sourceMappingURL=index.js.map
|