@pantheon-systems/pds-toolkit-react 2.0.0-beta.17 → 2.0.0-beta.18
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 +23 -2
- package/dist/components/media/Illustration/generated-illustration-data.d.ts +1 -1
- package/dist/components/notifications/SectionMessage/SectionMessage.d.ts +21 -6
- package/dist/components/panels/Panel/Panel.d.ts +12 -3
- package/dist/css/component-css/pds-dropdown-menu.css +1 -1
- package/dist/css/component-css/pds-index.css +3 -3
- package/dist/css/component-css/pds-panel.css +1 -1
- package/dist/css/component-css/pds-section-message.css +2 -2
- package/dist/css/pds-components.css +3 -3
- package/dist/css/pds-core.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +270 -242
- package/dist/index.js.map +1 -1
- package/dist/svg/badgePercent.svg +3 -0
- package/dist/svg/circleDollar.svg +3 -0
- package/dist/svg/gaugeSimpleHigh.svg +3 -0
- package/package.json +10 -20
package/dist/index.js
CHANGED
|
@@ -264,6 +264,13 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
|
|
|
264
264
|
svgPathData: "M224 0c13.3 0 24 10.7 24 24l0 190.3 164-95.1c11.5-6.7 26.2-2.7 32.8 8.7s2.7 26.2-8.7 32.8L271.8 256 436 351.2c11.5 6.6 15.4 21.3 8.7 32.8s-21.3 15.4-32.8 8.7L248 297.7 248 488c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-190.3-164 95.1c-11.5 6.7-26.2 2.7-32.8-8.7S.5 357.9 12 351.2L176.2 256 12 160.8C.5 154.1-3.4 139.4 3.2 128s21.3-15.4 32.8-8.7L200 214.3 200 24c0-13.3 10.7-24 24-24z",
|
|
265
265
|
width: 448
|
|
266
266
|
},
|
|
267
|
+
badgePercent: {
|
|
268
|
+
aliases: ["discount", "sale"],
|
|
269
|
+
categories: ["financial"],
|
|
270
|
+
height: 512,
|
|
271
|
+
svgPathData: "M200.3 81.5C210.9 61.5 231.9 48 256 48s45.1 13.5 55.7 33.5c5.4 10.2 17.2 15.1 28.2 11.7 21.6-6.6 46.1-1.4 63.1 15.7s22.3 41.5 15.7 63.1c-3.4 11 1.5 22.9 11.7 28.2 20 10.6 33.5 31.6 33.5 55.7s-13.5 45.1-33.5 55.7c-10.2 5.4-15.1 17.2-11.7 28.2 6.6 21.6 1.4 46.1-15.7 63.1s-41.5 22.3-63.1 15.7c-11-3.4-22.9 1.5-28.2 11.7-10.6 20-31.6 33.5-55.7 33.5s-45.1-13.5-55.7-33.5c-5.4-10.2-17.2-15.1-28.2-11.7-21.6 6.6-46.1 1.4-63.1-15.7S86.6 361.6 93.2 340c3.4-11-1.5-22.9-11.7-28.2-20-10.6-33.5-31.6-33.5-55.7s13.5-45.1 33.5-55.7c10.2-5.4 15.1-17.2 11.7-28.2-6.6-21.6-1.4-46.1 15.7-63.1S150.4 86.6 172 93.2c11 3.4 22.9-1.5 28.2-11.7zM256 0c-35.9 0-67.8 17-88.1 43.4-33-4.3-67.6 6.2-93 31.6s-35.9 60-31.6 93C17 188.2 0 220.1 0 256s17 67.8 43.4 88.1c-4.3 33 6.2 67.6 31.6 93s60 35.9 93 31.6C188.2 495 220.1 512 256 512s67.8-17 88.1-43.4c33 4.3 67.6-6.2 93-31.6s35.9-60 31.6-93C495 323.8 512 291.9 512 256s-17-67.8-43.4-88.1c4.3-33-6.2-67.6-31.6-93s-60-35.9-93-31.6C323.8 17 291.9 0 256 0zM192 224a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM320 352a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm17-177c-9.4-9.4-24.6-9.4-33.9 0L175 303c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0L337 209c9.4-9.4 9.4-24.6 0-33.9z",
|
|
272
|
+
width: 512
|
|
273
|
+
},
|
|
267
274
|
banBug: {
|
|
268
275
|
aliases: ["no bugs", "debug"],
|
|
269
276
|
categories: ["development", "security"],
|
|
@@ -637,6 +644,13 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
|
|
|
637
644
|
svgPathData: "M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-464a208 208 0 1 0 0 416 208 208 0 1 0 0-416zm70.7 121.9c7.8-10.7 22.8-13.1 33.5-5.3 10.7 7.8 13.1 22.8 5.3 33.5L243.4 366.1c-4.1 5.7-10.5 9.3-17.5 9.8-7 .5-13.9-2-18.8-6.9l-55.9-55.9c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l36 36 105.6-145.2z",
|
|
638
645
|
width: 512
|
|
639
646
|
},
|
|
647
|
+
circleDollar: {
|
|
648
|
+
aliases: ["coin", "money"],
|
|
649
|
+
categories: ["financial"],
|
|
650
|
+
height: 512,
|
|
651
|
+
svgPathData: "M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm24-368c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 8.3c-31.5 3.3-56 29.9-56 62.2 0 31.1 22.9 57.5 53.7 61.9l45.8 6.5c7.2 1 12.5 7.2 12.5 14.4 0 8-6.5 14.6-14.6 14.6L208 312c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 8c0 13.3 10.7 24 24 24s24-10.7 24-24l0-8.3c31.5-3.3 56-29.9 56-62.2 0-31.1-22.9-57.5-53.7-61.9L236.5 229c-7.2-1-12.5-7.2-12.5-14.4 0-8 6.5-14.6 14.6-14.6l57.4 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0-8z",
|
|
652
|
+
width: 512
|
|
653
|
+
},
|
|
640
654
|
circleExclamation: {
|
|
641
655
|
aliases: [
|
|
642
656
|
"warning",
|
|
@@ -1225,6 +1239,13 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
|
|
|
1225
1239
|
svgPathData: "M48 24C48 10.7 37.3 0 24 0S0 10.7 0 24L0 392c0 30.9 25.1 56 56 56l184 0 0-48-184 0c-4.4 0-8-3.6-8-8l0-232 192 0 0-48-192 0 0-88zM385.5 48l31.9 21.3c10.5 7 22.9 10.7 35.5 10.7l75.2 0 0 96-192 0 0-128 49.5 0zM288 48l0 128c0 26.5 21.5 48 48 48l192 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-75.2 0c-3.2 0-6.2-.9-8.9-2.7L412.1 8.1C404.2 2.8 394.9 0 385.5 0L336 0c-26.5 0-48 21.5-48 48zm97.5 288l33.9 22.6c9.2 6.1 20 9.4 31.1 9.4l77.6 0 0 96-192 0 0-128 49.5 0zM288 336l0 128c0 26.5 21.5 48 48 48l192 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-77.6 0c-1.6 0-3.1-.5-4.4-1.3l-33.9-22.6c-7.9-5.3-17.1-8.1-26.6-8.1L336 288c-26.5 0-48 21.5-48 48z",
|
|
1226
1240
|
width: 576
|
|
1227
1241
|
},
|
|
1242
|
+
gaugeSimpleHigh: {
|
|
1243
|
+
aliases: ["speedometer", "dashboard"],
|
|
1244
|
+
categories: ["data", "status"],
|
|
1245
|
+
height: 512,
|
|
1246
|
+
svgPathData: "M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm56-160c0-14.4-5.4-27.5-14.4-37.5l60.5-145.3c5.1-12.2-.7-26.3-12.9-31.4s-26.3 .7-31.4 12.9L253.3 296.1c-29.7 1.4-53.3 25.9-53.3 55.9 0 30.9 25.1 56 56 56s56-25.1 56-56z",
|
|
1247
|
+
width: 512
|
|
1248
|
+
},
|
|
1228
1249
|
gear: {
|
|
1229
1250
|
aliases: [
|
|
1230
1251
|
"settings",
|
|
@@ -2440,7 +2461,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
|
|
|
2440
2461
|
svgPathData: "M0 291.5748L240.7741 0L212.7775 227.4007H373.76L131.586 512L166.5823 291.5748H0Z",
|
|
2441
2462
|
width: 374
|
|
2442
2463
|
}
|
|
2443
|
-
}, At = /* @__PURE__ */ "angleDown.angleLeft.angleRight.anglesDown.anglesLeft.anglesRight.anglesUp.angleUp.arrowDownToLine.arrowDownWideShort.arrowLeft.arrowRight.arrowRightArrowLeft.arrowsRetweet.arrowUpShortWide.asterisk.banBug.bars.barsFilter.barsStaggered.bell.billboard.bitbucket.bluesky.bolt.boltPantheon.boltSolid.book.bookmark.bookmarkSolid.books.box.bracketRight.bracketsSquare.brainCircuit.broomWide.building.buildings.bullhorn.calendarDays.caretDown.caretLeft.caretRight.caretUp.ccAmex.ccApplePay.ccDiscover.ccGeneric.ccMC.ccPaypal.ccVisa.chartLine.chartNetwork.chartSimple.check.circle.circleCheck.circleExclamation.circleExclamationSolid.circleHalfStroke.circleInfo.circleInfoSolid.circleMinus.circleNotch.circlePlus.circleQuestion.circleQuestionSolid.circleUser.circleXmark.claude.clock.cloud.cloudArrowDown.cloudArrowUp.cloudPlus.code.codeBranch.codeMerge.collapseToCenter.command.comment.compress.copy.desktop.diagramVenn.diamondExclamation.diamonds4.discourse.display.dollarSign.download.drupal.ellipsis.ellipsisVertical.emptySet.envelope.envelopeOpen.exclamation.expand.expandFromCenter.externalLink.eye.eyeSlash.facebook.file.fileCheck.fileContract.fileCSV.fileDiff.fileExport.fileImport.fileLines.filePDF.files.fileZip.floppyDisk.folder.folders.folderTree.gear.gem.github.gitlab.globe.graduationCap.grid.grid2.gripDots.gripDotsVertical.handWave.heart.heartSolid.house.idCard.image.inputText.instagram.keySkeleton.landmark.laptop.laptopCode.leaf.lifeRing.link.linkedin.list.listCheck.locationCrosshairs.lock.lockOpen.magnifyingGlass.medal.memo.messages.minus.moon.move.nextJs.octagonExclamation.openai.paperclip.paperPlane.pause.pen.penField.penPaintbrush.phone.play.plus.question.quotesLeft.quotesRight.rectangleList.rectanglesMixed.reply.robot.rocketLaunch.rotate.rotateClock.rotateLeft.rotateRight.rss.save.server.shareNodes.shield.shieldQuartered.shovel.sidebar.siren.sirenOn.sitemap.slack.slashForward.slider.slidersSimple.snowflake.sparkles.sparklesSolid.squareCheck.squareCode.squareDashed.squareMinus.squarePen.squareQuestion.squareTerminal.star.starSolid.sun.sunBright.table.tableColumns.tableRows.terminal.text.threads.thumbsDown.thumbsUp.trash.triangleExclamation.twitter.unlink.upload.user.userAstronaut.userGear.userPlus.users.userSolid.video.wavePulse.windowRestore.wordpress.wreathLaurel.wrench.xmark.xmarkLarge.xTwitter.youtube.zappy".split("."), Q = ({ className: t, display: n = "inline-block", iconName: r, size: i = "xl", style: a, verticalAlign: o = "middle", ...s }) => {
|
|
2464
|
+
}, At = /* @__PURE__ */ "angleDown.angleLeft.angleRight.anglesDown.anglesLeft.anglesRight.anglesUp.angleUp.arrowDownToLine.arrowDownWideShort.arrowLeft.arrowRight.arrowRightArrowLeft.arrowsRetweet.arrowUpShortWide.asterisk.badgePercent.banBug.bars.barsFilter.barsStaggered.bell.billboard.bitbucket.bluesky.bolt.boltPantheon.boltSolid.book.bookmark.bookmarkSolid.books.box.bracketRight.bracketsSquare.brainCircuit.broomWide.building.buildings.bullhorn.calendarDays.caretDown.caretLeft.caretRight.caretUp.ccAmex.ccApplePay.ccDiscover.ccGeneric.ccMC.ccPaypal.ccVisa.chartLine.chartNetwork.chartSimple.check.circle.circleCheck.circleDollar.circleExclamation.circleExclamationSolid.circleHalfStroke.circleInfo.circleInfoSolid.circleMinus.circleNotch.circlePlus.circleQuestion.circleQuestionSolid.circleUser.circleXmark.claude.clock.cloud.cloudArrowDown.cloudArrowUp.cloudPlus.code.codeBranch.codeMerge.collapseToCenter.command.comment.compress.copy.desktop.diagramVenn.diamondExclamation.diamonds4.discourse.display.dollarSign.download.drupal.ellipsis.ellipsisVertical.emptySet.envelope.envelopeOpen.exclamation.expand.expandFromCenter.externalLink.eye.eyeSlash.facebook.file.fileCheck.fileContract.fileCSV.fileDiff.fileExport.fileImport.fileLines.filePDF.files.fileZip.floppyDisk.folder.folders.folderTree.gaugeSimpleHigh.gear.gem.github.gitlab.globe.graduationCap.grid.grid2.gripDots.gripDotsVertical.handWave.heart.heartSolid.house.idCard.image.inputText.instagram.keySkeleton.landmark.laptop.laptopCode.leaf.lifeRing.link.linkedin.list.listCheck.locationCrosshairs.lock.lockOpen.magnifyingGlass.medal.memo.messages.minus.moon.move.nextJs.octagonExclamation.openai.paperclip.paperPlane.pause.pen.penField.penPaintbrush.phone.play.plus.question.quotesLeft.quotesRight.rectangleList.rectanglesMixed.reply.robot.rocketLaunch.rotate.rotateClock.rotateLeft.rotateRight.rss.save.server.shareNodes.shield.shieldQuartered.shovel.sidebar.siren.sirenOn.sitemap.slack.slashForward.slider.slidersSimple.snowflake.sparkles.sparklesSolid.squareCheck.squareCode.squareDashed.squareMinus.squarePen.squareQuestion.squareTerminal.star.starSolid.sun.sunBright.table.tableColumns.tableRows.terminal.text.threads.thumbsDown.thumbsUp.trash.triangleExclamation.twitter.unlink.upload.user.userAstronaut.userGear.userPlus.users.userSolid.video.wavePulse.windowRestore.wordpress.wreathLaurel.wrench.xmark.xmarkLarge.xTwitter.youtube.zappy".split("."), Q = ({ className: t, display: n = "inline-block", iconName: r, size: i = "xl", style: a, verticalAlign: o = "middle", ...s }) => {
|
|
2444
2465
|
let c = "pds-icon", l = `${c} ${c}--${i} ${c}--${r}`, u = kt[r], d = `0 0 ${u.width} ${u.height}`, f = r in Ot ? Ot[r] : null, p;
|
|
2445
2466
|
if (f?.type === "complex") p = f.render();
|
|
2446
2467
|
else {
|
|
@@ -12421,78 +12442,83 @@ var xi = {
|
|
|
12421
12442
|
iconName: `${i}` in To ? To[i] : To.info,
|
|
12422
12443
|
size: "xl"
|
|
12423
12444
|
})), /* @__PURE__ */ e.createElement("div", { className: `${s}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, u), /* @__PURE__ */ e.createElement("div", { className: `${s}__title` }, r), /* @__PURE__ */ e.createElement("div", { className: `${s}__message` }, d)));
|
|
12424
|
-
}, Do = {
|
|
12445
|
+
}, Do = "Agentic", Oo = {
|
|
12425
12446
|
info: "circleInfo",
|
|
12426
12447
|
warning: "triangleExclamation",
|
|
12427
12448
|
success: "circleCheck",
|
|
12428
12449
|
critical: "diamondExclamation",
|
|
12429
12450
|
discovery: "handWave"
|
|
12430
|
-
},
|
|
12431
|
-
let
|
|
12432
|
-
|
|
12433
|
-
success: `${
|
|
12434
|
-
warning: `${
|
|
12435
|
-
info: `${
|
|
12436
|
-
critical: `${
|
|
12437
|
-
discovery: `${
|
|
12438
|
-
dismissing: `${
|
|
12439
|
-
dismissed: `${
|
|
12440
|
-
},
|
|
12451
|
+
}, ko = ({ agenticIconName: t, background: n = "default", badgeIcon: r, badgeLabel: i, className: a, ctaButton: o, ctaIcon: s, dismissLabel: c = "Dismiss", id: l, isDismissible: u, message: f, onDismiss: p, secondaryCta: m, title: h, type: _ = "info", typeLabels: v = er, ...y }) => {
|
|
12452
|
+
let b = g(null), x = g(void 0), S = "pds-section-message", C = {
|
|
12453
|
+
agentic: `${S}--agentic`,
|
|
12454
|
+
success: `${S}--success`,
|
|
12455
|
+
warning: `${S}--warning`,
|
|
12456
|
+
info: `${S}--info`,
|
|
12457
|
+
critical: `${S}--critical`,
|
|
12458
|
+
discovery: `${S}--discovery`,
|
|
12459
|
+
dismissing: `${S}--dismissing`,
|
|
12460
|
+
dismissed: `${S}--dismissed`
|
|
12461
|
+
}, w = u ? `${S}--hasDismiss` : null, T = h ? `${S}--hasTitle` : null, E = _ === "agentic", D = E && n === "secondary" ? `${S}--secondary-fill` : null, O = _ === "critical" ? "alert" : "status", k = E ? v.agentic ?? Do : v[_], A = `${k}: `, j = typeof f == "string" ? /* @__PURE__ */ e.createElement("p", null, f) : f;
|
|
12441
12462
|
d(() => () => {
|
|
12442
|
-
|
|
12463
|
+
x.current && clearTimeout(x.current);
|
|
12443
12464
|
}, []);
|
|
12444
|
-
let
|
|
12445
|
-
|
|
12446
|
-
},
|
|
12447
|
-
|
|
12448
|
-
},
|
|
12449
|
-
|
|
12450
|
-
|
|
12465
|
+
let M = () => {
|
|
12466
|
+
b.current?.addEventListener("animationend", N, { once: !0 });
|
|
12467
|
+
}, N = (e) => {
|
|
12468
|
+
p?.(e, l);
|
|
12469
|
+
}, P = () => {
|
|
12470
|
+
M(), b.current?.classList.toggle(C.dismissing), x.current = setTimeout(() => {
|
|
12471
|
+
b.current && (b.current.classList.toggle(C.dismissing), b.current.classList.toggle(C.dismissed));
|
|
12451
12472
|
}, 400);
|
|
12452
12473
|
};
|
|
12453
12474
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12454
|
-
ref:
|
|
12475
|
+
ref: b,
|
|
12455
12476
|
className: Z([
|
|
12456
|
-
b,
|
|
12457
|
-
x[m],
|
|
12458
12477
|
S,
|
|
12459
|
-
C,
|
|
12460
|
-
|
|
12478
|
+
C[_],
|
|
12479
|
+
w,
|
|
12480
|
+
T,
|
|
12481
|
+
D,
|
|
12482
|
+
a ?? ""
|
|
12461
12483
|
]),
|
|
12462
|
-
id:
|
|
12463
|
-
role:
|
|
12464
|
-
...
|
|
12465
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${
|
|
12466
|
-
iconName: `${m}` in Do ? Do[m] : Do.info,
|
|
12467
|
-
size: "xl"
|
|
12468
|
-
})), /* @__PURE__ */ e.createElement("div", { className: `${b}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, T), p && /* @__PURE__ */ e.createElement("div", { className: `${b}__header` }, /* @__PURE__ */ e.createElement("div", { className: `${b}__title` }, p), n && /* @__PURE__ */ e.createElement(Mt, {
|
|
12469
|
-
className: `${b}__badge`,
|
|
12470
|
-
color: m,
|
|
12484
|
+
id: l,
|
|
12485
|
+
role: O,
|
|
12486
|
+
...y
|
|
12487
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${S}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${S}__icon ${S}__icon-${_}` }, E ? /* @__PURE__ */ e.createElement(Ni, {
|
|
12471
12488
|
iconName: t,
|
|
12472
|
-
label:
|
|
12489
|
+
label: k,
|
|
12490
|
+
size: h ? "m" : "s"
|
|
12491
|
+
}) : /* @__PURE__ */ e.createElement(Q, {
|
|
12492
|
+
iconName: Oo[_] ?? Oo.info,
|
|
12493
|
+
size: "xl"
|
|
12494
|
+
})), /* @__PURE__ */ e.createElement("div", { className: `${S}__text` }, !E && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, A), h && /* @__PURE__ */ e.createElement("div", { className: `${S}__header` }, /* @__PURE__ */ e.createElement("div", { className: `${S}__title` }, h), i && /* @__PURE__ */ e.createElement(Mt, {
|
|
12495
|
+
className: `${S}__badge`,
|
|
12496
|
+
color: E ? "silver-muted" : _,
|
|
12497
|
+
iconName: r,
|
|
12498
|
+
label: i,
|
|
12473
12499
|
size: "s"
|
|
12474
|
-
})), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
12500
|
+
})), /* @__PURE__ */ e.createElement("div", { className: `${S}__message` }, j))), (o || m || u) && /* @__PURE__ */ e.createElement("div", { className: `${S}__actions` }, m && /* @__PURE__ */ e.createElement(Hn, {
|
|
12475
12501
|
variant: "link",
|
|
12476
|
-
...
|
|
12477
|
-
className: `${
|
|
12502
|
+
...m,
|
|
12503
|
+
className: `${S}__secondary`,
|
|
12478
12504
|
size: "s"
|
|
12479
|
-
}),
|
|
12480
|
-
...
|
|
12481
|
-
className: `${
|
|
12482
|
-
displayType:
|
|
12483
|
-
iconName:
|
|
12505
|
+
}), o && /* @__PURE__ */ e.createElement(Hn, {
|
|
12506
|
+
...o,
|
|
12507
|
+
className: `${S}__cta`,
|
|
12508
|
+
displayType: s ? "icon-start" : o.displayType,
|
|
12509
|
+
iconName: s ?? o.iconName,
|
|
12484
12510
|
size: "s",
|
|
12485
12511
|
variant: "secondary"
|
|
12486
|
-
}),
|
|
12487
|
-
ariaLabel:
|
|
12488
|
-
className: `${
|
|
12489
|
-
onClick:
|
|
12512
|
+
}), u && /* @__PURE__ */ e.createElement(qn, {
|
|
12513
|
+
ariaLabel: c,
|
|
12514
|
+
className: `${S}__dismiss`,
|
|
12515
|
+
onClick: P,
|
|
12490
12516
|
size: "m"
|
|
12491
12517
|
})));
|
|
12492
|
-
},
|
|
12518
|
+
}, Ao = 3e4, jo = {
|
|
12493
12519
|
pause: "Pause notification",
|
|
12494
12520
|
resume: "Resume notification"
|
|
12495
|
-
},
|
|
12521
|
+
}, Mo = i({ labelStrings: jo }), No = ({ ariaLabel: t, closeToast: n }) => /* @__PURE__ */ e.createElement(qn, {
|
|
12496
12522
|
ariaLabel: t || "Close",
|
|
12497
12523
|
className: "pds-toast__close-button",
|
|
12498
12524
|
onClick: (e) => {
|
|
@@ -12500,13 +12526,13 @@ var xi = {
|
|
|
12500
12526
|
},
|
|
12501
12527
|
size: "s",
|
|
12502
12528
|
tabIndex: 0
|
|
12503
|
-
}),
|
|
12529
|
+
}), Po = ({ className: t, labelStrings: n = jo, limit: r = 5, position: i = "bottom-right" }) => {
|
|
12504
12530
|
let a = Z(["pds-toaster", t]);
|
|
12505
|
-
return /* @__PURE__ */ e.createElement(
|
|
12531
|
+
return /* @__PURE__ */ e.createElement(Mo.Provider, { value: { labelStrings: n } }, /* @__PURE__ */ e.createElement(dt, {
|
|
12506
12532
|
newestOnTop: !0,
|
|
12507
12533
|
autoClose: !1,
|
|
12508
12534
|
className: a,
|
|
12509
|
-
closeButton:
|
|
12535
|
+
closeButton: No,
|
|
12510
12536
|
draggable: !1,
|
|
12511
12537
|
icon: !1,
|
|
12512
12538
|
limit: r,
|
|
@@ -12516,25 +12542,25 @@ var xi = {
|
|
|
12516
12542
|
role: "status",
|
|
12517
12543
|
transition: ut
|
|
12518
12544
|
}));
|
|
12519
|
-
},
|
|
12545
|
+
}, Fo = {
|
|
12520
12546
|
info: "circleInfo",
|
|
12521
12547
|
success: "circleCheck",
|
|
12522
12548
|
warning: "triangleExclamation",
|
|
12523
12549
|
critical: "diamondExclamation"
|
|
12524
|
-
},
|
|
12550
|
+
}, Io = {
|
|
12525
12551
|
info: "Information",
|
|
12526
12552
|
success: "Success",
|
|
12527
12553
|
warning: "Warning",
|
|
12528
12554
|
critical: "Critical",
|
|
12529
12555
|
working: "Working..."
|
|
12530
|
-
},
|
|
12556
|
+
}, Lo = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = Io }) => {
|
|
12531
12557
|
let c = "pds-toast", l = {
|
|
12532
12558
|
critical: `${c}--critical`,
|
|
12533
12559
|
info: `${c}--info`,
|
|
12534
12560
|
success: `${c}--success`,
|
|
12535
12561
|
warning: `${c}--warning`,
|
|
12536
12562
|
working: `${c}--working`
|
|
12537
|
-
}, d = `${s[o]} `, { labelStrings: f } = u(
|
|
12563
|
+
}, d = `${s[o]} `, { labelStrings: f } = u(Mo), [p, m] = _(!1), h = a !== void 0 && o !== "critical" && o !== "working" && typeof t == "number";
|
|
12538
12564
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12539
12565
|
className: Z([
|
|
12540
12566
|
c,
|
|
@@ -12544,7 +12570,7 @@ var xi = {
|
|
|
12544
12570
|
id: i
|
|
12545
12571
|
}, /* @__PURE__ */ e.createElement("div", { className: `${c}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(Fn, { size: "l" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
12546
12572
|
className: `${c}__icon ${c}__icon--${o}`,
|
|
12547
|
-
iconName:
|
|
12573
|
+
iconName: Fo[o],
|
|
12548
12574
|
size: "xl"
|
|
12549
12575
|
})), /* @__PURE__ */ e.createElement("div", { className: `${c}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), n), h && /* @__PURE__ */ e.createElement("button", {
|
|
12550
12576
|
"aria-label": p ? f.resume : f.pause,
|
|
@@ -12559,11 +12585,11 @@ var xi = {
|
|
|
12559
12585
|
iconName: p ? "play" : "pause",
|
|
12560
12586
|
size: "m"
|
|
12561
12587
|
})));
|
|
12562
|
-
},
|
|
12588
|
+
}, Ro = /* @__PURE__ */ function(e) {
|
|
12563
12589
|
return e.Critical = "critical", e.Info = "info", e.Success = "success", e.Warning = "warning", e.Working = "working", e;
|
|
12564
|
-
}({}),
|
|
12590
|
+
}({}), zo = () => {
|
|
12565
12591
|
let t = (t, n, r = {}) => {
|
|
12566
|
-
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" && Math.max(
|
|
12592
|
+
let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" && Math.max(Ao, r.autoClose), o = /* @__PURE__ */ e.createElement(Lo, {
|
|
12567
12593
|
autoCloseDuration: a || void 0,
|
|
12568
12594
|
toastId: i,
|
|
12569
12595
|
type: t
|
|
@@ -12591,7 +12617,7 @@ var xi = {
|
|
|
12591
12617
|
pt,
|
|
12592
12618
|
n
|
|
12593
12619
|
];
|
|
12594
|
-
},
|
|
12620
|
+
}, Bo = .35, Vo = .78, Ho = 80, Uo = 4, Wo = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close", disableOutsideClick: a, expandedHeight: o, hasCloseButton: s = !0, height: c, isOpen: u = !1, resizeLabel: f = "Close sheet", setIsOpen: p = () => {}, title: m, ...h }) => {
|
|
12595
12621
|
let v = Tt(n), y = v.__unslotted, b = v.footer, x = "pds-bottom-sheet", S = o !== null, w = {
|
|
12596
12622
|
"--pds-bottom-sheet-height": c,
|
|
12597
12623
|
"--pds-bottom-sheet-expanded-height": o
|
|
@@ -12642,15 +12668,15 @@ var xi = {
|
|
|
12642
12668
|
let t = F.current, n = N.current;
|
|
12643
12669
|
if (!t || !n) return;
|
|
12644
12670
|
let r = e.clientY - t.startY, i = S ? window.innerHeight * .96 : t.startHeight;
|
|
12645
|
-
n.style.height = `${Math.min(i, Math.max(
|
|
12671
|
+
n.style.height = `${Math.min(i, Math.max(Ho, t.startHeight - r))}px`;
|
|
12646
12672
|
}, [S]), W = l((e) => {
|
|
12647
12673
|
let t = F.current, n = N.current;
|
|
12648
12674
|
if (F.current = null, M(!1), !t || !n) return;
|
|
12649
|
-
let r = Math.abs(e.clientY - t.startY) >
|
|
12675
|
+
let r = Math.abs(e.clientY - t.startY) > Uo, i = n.getBoundingClientRect().height;
|
|
12650
12676
|
if (n.style.height = "", !r) return;
|
|
12651
12677
|
I.current = !0;
|
|
12652
12678
|
let a = window.innerHeight;
|
|
12653
|
-
i < a *
|
|
12679
|
+
i < a * Bo ? z() : S && i > a * Vo ? A(!0) : A(!1);
|
|
12654
12680
|
}, [S, z]);
|
|
12655
12681
|
return T ? /* @__PURE__ */ e.createElement(Zn.Provider, { value: !0 }, /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement(lt, {
|
|
12656
12682
|
active: D,
|
|
@@ -12694,7 +12720,7 @@ var xi = {
|
|
|
12694
12720
|
onClick: z,
|
|
12695
12721
|
size: "s"
|
|
12696
12722
|
}))), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))))) : null;
|
|
12697
|
-
},
|
|
12723
|
+
}, Go = ({ children: t, className: n, clearLabel: r = "Clear selection", count: i, getCountLabel: a = (e) => `${e} selected`, onClear: o, ...s }) => {
|
|
12698
12724
|
let c = "pds-bulk-action-bar";
|
|
12699
12725
|
return /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
|
|
12700
12726
|
className: Z([c, n ?? ""]),
|
|
@@ -12711,7 +12737,7 @@ var xi = {
|
|
|
12711
12737
|
size: "s",
|
|
12712
12738
|
variant: "reverse"
|
|
12713
12739
|
})), /* @__PURE__ */ e.createElement("div", { className: `${c}__actions` }, t)));
|
|
12714
|
-
},
|
|
12740
|
+
}, Ko = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close drawer", disableOutsideClick: a, hasCloseButton: o = !0, isOpen: s = !1, placement: c = "right", setIsOpen: u = () => {}, size: f = "m", title: p, width: m, ...h }) => {
|
|
12715
12741
|
let v = Tt(n), y = v.__unslotted, b = v.footer, x = "pds-drawer", S = m ? null : `${x}--${f}`, w = `${x}--${c}`, T = m ? { width: m } : void 0, [E, D] = _(s), [O, k] = _(!1), A = g(null), { closeOverlay: j, openOverlay: M } = pn();
|
|
12716
12742
|
d(() => {
|
|
12717
12743
|
s ? D(!0) : k(!1);
|
|
@@ -12776,7 +12802,7 @@ var xi = {
|
|
|
12776
12802
|
onClick: N,
|
|
12777
12803
|
size: "m"
|
|
12778
12804
|
})), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))))) : null;
|
|
12779
|
-
},
|
|
12805
|
+
}, qo = ({ ariaLabel: t, background: n = "default", children: r, className: i, closeButtonLabel: a = "Close", closeIconName: o = "compress", hasCloseButton: s = !0, isOpen: c, onClose: l, ...u }) => {
|
|
12780
12806
|
let f = "pds-full-screen-overlay", p = n === "default" ? null : `${f}--bg-${n}`, { closeOverlay: m, openOverlay: h } = pn();
|
|
12781
12807
|
d(() => {
|
|
12782
12808
|
if (h && m && c) return h(), () => m();
|
|
@@ -12842,7 +12868,7 @@ var xi = {
|
|
|
12842
12868
|
}),
|
|
12843
12869
|
zIndex: 9999
|
|
12844
12870
|
}), /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, r)))))) : null;
|
|
12845
|
-
},
|
|
12871
|
+
}, Jo = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close modal", contentMaxHeight: a, disableOutsideClick: o, hasCloseButton: s = !0, modalIsOpen: c = !1, setModalIsOpen: l = () => {}, size: u = "m", title: f, ...p }) => {
|
|
12846
12872
|
let m = Tt(n), h = m.__unslotted, g = m.footer, v = "pds-modal", y = u === "m" ? null : `${v}--${u}`, x = a ? {
|
|
12847
12873
|
maxHeight: a,
|
|
12848
12874
|
paddingInlineEnd: "1rem",
|
|
@@ -12921,27 +12947,27 @@ var xi = {
|
|
|
12921
12947
|
className: `${v}__content`,
|
|
12922
12948
|
style: x
|
|
12923
12949
|
}, h), g && /* @__PURE__ */ e.createElement("div", { className: `${v}__footer` }, g)))))) : null;
|
|
12924
|
-
},
|
|
12950
|
+
}, Yo = (e, t) => {
|
|
12925
12951
|
let n = t - e + 1;
|
|
12926
12952
|
return Array.from({ length: n }, (t, n) => n + e);
|
|
12927
|
-
},
|
|
12953
|
+
}, Xo = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => h(() => {
|
|
12928
12954
|
let i = Math.ceil(r / n), a = e + 5, o = i;
|
|
12929
|
-
if (a >= i) return
|
|
12955
|
+
if (a >= i) return Yo(1, i);
|
|
12930
12956
|
let s = Math.max(t - e, 1), c = Math.min(t + e, i), l = s > 2, u = c < i - 2;
|
|
12931
12957
|
if (!l && u) return [
|
|
12932
|
-
...
|
|
12958
|
+
...Yo(1, 3 + 2 * e),
|
|
12933
12959
|
"...",
|
|
12934
12960
|
i
|
|
12935
12961
|
];
|
|
12936
12962
|
if (l && !u) return [
|
|
12937
12963
|
1,
|
|
12938
12964
|
"...",
|
|
12939
|
-
...
|
|
12965
|
+
...Yo(i - (3 + 2 * e) + 1, i)
|
|
12940
12966
|
];
|
|
12941
12967
|
if (l && u) return [
|
|
12942
12968
|
1,
|
|
12943
12969
|
"...",
|
|
12944
|
-
...
|
|
12970
|
+
...Yo(s, c),
|
|
12945
12971
|
"...",
|
|
12946
12972
|
o
|
|
12947
12973
|
];
|
|
@@ -12950,11 +12976,11 @@ var xi = {
|
|
|
12950
12976
|
n,
|
|
12951
12977
|
e,
|
|
12952
12978
|
t
|
|
12953
|
-
]),
|
|
12979
|
+
]), Zo = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
|
|
12954
12980
|
previous: "Go to previous page",
|
|
12955
12981
|
next: "Go to next page"
|
|
12956
12982
|
}, onPageChange: c, size: l = "m", totalItemCount: u, ...d }) => {
|
|
12957
|
-
let f =
|
|
12983
|
+
let f = Xo({
|
|
12958
12984
|
currentPage: r,
|
|
12959
12985
|
totalItemCount: u,
|
|
12960
12986
|
bufferCount: t,
|
|
@@ -13010,7 +13036,7 @@ var xi = {
|
|
|
13010
13036
|
size: "m"
|
|
13011
13037
|
}))
|
|
13012
13038
|
}))));
|
|
13013
|
-
},
|
|
13039
|
+
}, Qo = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
13014
13040
|
next: "Next",
|
|
13015
13041
|
previous: "Previous"
|
|
13016
13042
|
}, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
|
|
@@ -13039,7 +13065,7 @@ var xi = {
|
|
|
13039
13065
|
iconName: "angleRight",
|
|
13040
13066
|
size: "m"
|
|
13041
13067
|
}))));
|
|
13042
|
-
},
|
|
13068
|
+
}, $o = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
|
|
13043
13069
|
next: "Go to next page",
|
|
13044
13070
|
of: "of",
|
|
13045
13071
|
page: "Page",
|
|
@@ -13130,7 +13156,7 @@ var xi = {
|
|
|
13130
13156
|
size: "s",
|
|
13131
13157
|
value: String(n)
|
|
13132
13158
|
}), /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.of, " ", m), /* @__PURE__ */ e.createElement("div", { className: `${b}__nav` }, k("prev"), k("next")));
|
|
13133
|
-
},
|
|
13159
|
+
}, es = ({ children: t, className: n, contentMaxHeight: r, heading: i, icon: a, ...o }) => {
|
|
13134
13160
|
let s = "pds-widget-panel", c = Tt(t), l = c.__unslotted, u = c.footer, d = r ? { maxHeight: r } : void 0;
|
|
13135
13161
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13136
13162
|
className: Z([s, n ?? ""]),
|
|
@@ -13143,9 +13169,9 @@ var xi = {
|
|
|
13143
13169
|
className: `${s}__content`,
|
|
13144
13170
|
style: d
|
|
13145
13171
|
}, l), Et(u) && /* @__PURE__ */ e.createElement("div", { className: `${s}__footer` }, u));
|
|
13146
|
-
},
|
|
13172
|
+
}, ts = ({ className: t, createLink: n, emptyText: r, filter: i, heading: a, items: o, ...s }) => {
|
|
13147
13173
|
let c = "pds-selector-panel", l = null;
|
|
13148
|
-
return o.length > 0 ? l = /* @__PURE__ */ e.createElement("ul", { className: `${c}__list` }, o) : r && (l = /* @__PURE__ */ e.createElement("p", { className: `${c}__no-results` }, r)), /* @__PURE__ */ e.createElement(
|
|
13174
|
+
return o.length > 0 ? l = /* @__PURE__ */ e.createElement("ul", { className: `${c}__list` }, o) : r && (l = /* @__PURE__ */ e.createElement("p", { className: `${c}__no-results` }, r)), /* @__PURE__ */ e.createElement(es, {
|
|
13149
13175
|
className: Z([c, t ?? ""]),
|
|
13150
13176
|
heading: a,
|
|
13151
13177
|
...s
|
|
@@ -13161,7 +13187,7 @@ var xi = {
|
|
|
13161
13187
|
slot: "footer",
|
|
13162
13188
|
variant: "link"
|
|
13163
13189
|
}));
|
|
13164
|
-
},
|
|
13190
|
+
}, ns = ({ children: t, className: n, link: r, onSelect: i, ...a }) => {
|
|
13165
13191
|
let o = r?.type;
|
|
13166
13192
|
return /* @__PURE__ */ e.createElement("li", {
|
|
13167
13193
|
className: Z(["pds-selector-panel__item", n ?? ""]),
|
|
@@ -13170,8 +13196,8 @@ var xi = {
|
|
|
13170
13196
|
onClick: () => i(),
|
|
13171
13197
|
type: "button"
|
|
13172
13198
|
}, t) : o && /* @__PURE__ */ e.createElement(o, Object.assign({}, r?.props), t));
|
|
13173
|
-
},
|
|
13174
|
-
let s = "pds-ba-selector-panel", c = `${s}__item`, l = t.map((t) => /* @__PURE__ */ e.createElement(
|
|
13199
|
+
}, rs = ({ businessAccounts: t = [], className: n, contentMaxHeight: r, createBusinessAccountLink: i, heading: a = "Business accounts", ...o }) => {
|
|
13200
|
+
let s = "pds-ba-selector-panel", c = `${s}__item`, l = t.map((t) => /* @__PURE__ */ e.createElement(ns, {
|
|
13175
13201
|
key: t.businessAccountId,
|
|
13176
13202
|
link: t.linkContent
|
|
13177
13203
|
}, /* @__PURE__ */ e.createElement("span", { className: `${c}-content` }, /* @__PURE__ */ e.createElement(Ii, {
|
|
@@ -13185,7 +13211,7 @@ var xi = {
|
|
|
13185
13211
|
className: `${c}-name`,
|
|
13186
13212
|
onMouseEnter: wt
|
|
13187
13213
|
}, t.displayName))));
|
|
13188
|
-
return /* @__PURE__ */ e.createElement(
|
|
13214
|
+
return /* @__PURE__ */ e.createElement(ts, {
|
|
13189
13215
|
className: Z([s, n ?? ""]),
|
|
13190
13216
|
contentMaxHeight: r,
|
|
13191
13217
|
createLink: i,
|
|
@@ -13194,7 +13220,7 @@ var xi = {
|
|
|
13194
13220
|
items: l,
|
|
13195
13221
|
...o
|
|
13196
13222
|
});
|
|
13197
|
-
},
|
|
13223
|
+
}, is = "Bookmark pages you visit often for quick access.", as = 5, os = ({ 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 = as, noResultsText: u = is, onCreateBookmark: d, removeLabel: f, renameLabel: p, ...m }) => {
|
|
13198
13224
|
let h = "pds-bookmarks-panel", g = `${h}__item`, _ = [...Array(l)].map((t, n) => /* @__PURE__ */ e.createElement("li", {
|
|
13199
13225
|
key: n,
|
|
13200
13226
|
className: `${g} ${g}--loading`
|
|
@@ -13233,14 +13259,14 @@ var xi = {
|
|
|
13233
13259
|
slot: "footer",
|
|
13234
13260
|
variant: "link"
|
|
13235
13261
|
});
|
|
13236
|
-
return /* @__PURE__ */ e.createElement(
|
|
13262
|
+
return /* @__PURE__ */ e.createElement(es, {
|
|
13237
13263
|
className: Z([h, n ?? ""]),
|
|
13238
13264
|
contentMaxHeight: r,
|
|
13239
13265
|
heading: s,
|
|
13240
13266
|
icon: "bookmark",
|
|
13241
13267
|
...m
|
|
13242
13268
|
}, c ? /* @__PURE__ */ e.createElement("ul", { className: `${h}__list ${h}__list--loading` }, _) : t.length === 0 ? /* @__PURE__ */ e.createElement(Ua, { text: u }) : /* @__PURE__ */ e.createElement("ul", { className: `${h}__list` }, v), !c && y);
|
|
13243
|
-
},
|
|
13269
|
+
}, ss = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
|
|
13244
13270
|
let [c, l] = _(i), u = f(), p = r ?? `expansion-panel-${u}`, m = "pds-expansion-panel", h = a ? null : `${m}--no-border`, v = g(null);
|
|
13245
13271
|
return d(() => {
|
|
13246
13272
|
let e = v.current;
|
|
@@ -13264,7 +13290,7 @@ var xi = {
|
|
|
13264
13290
|
className: `${m}__icon ${c ? "rotated" : ""}`,
|
|
13265
13291
|
iconName: "angleDown"
|
|
13266
13292
|
})), /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, t)));
|
|
13267
|
-
},
|
|
13293
|
+
}, cs = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
|
|
13268
13294
|
let a = "pds-expansion-panel-group", o = r === "standard" ? null : `${a}--${r}`;
|
|
13269
13295
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13270
13296
|
className: Z([
|
|
@@ -13274,7 +13300,7 @@ var xi = {
|
|
|
13274
13300
|
]),
|
|
13275
13301
|
...i
|
|
13276
13302
|
}, t);
|
|
13277
|
-
},
|
|
13303
|
+
}, ls = ({ className: t, content: n, cta: r, dismissLabel: i = "Close", heading: a, image: o, imageVariant: s = "bleed", isDismissible: c, layout: l = "vertical", onDismiss: u, ...d }) => {
|
|
13278
13304
|
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;
|
|
13279
13305
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13280
13306
|
className: Z([
|
|
@@ -13301,17 +13327,19 @@ var xi = {
|
|
|
13301
13327
|
size: "s",
|
|
13302
13328
|
variant: "brand"
|
|
13303
13329
|
}))));
|
|
13304
|
-
},
|
|
13305
|
-
let
|
|
13330
|
+
}, us = ({ children: t, className: n, isAnimated: r = !1, padding: i = "standard", variant: a = "default", ...o }) => {
|
|
13331
|
+
let s = "pds-panel", c = a.startsWith("agentic-"), l = c ? a.replace("agentic-", "") : a, u = l === "default" ? null : `${s}--${l}`, d = c ? `${s}--agentic` : null, f = c && r ? `${s}--animated` : null, p = `${s}__content`, m = i === "standard" ? null : `${p}--pad-${i}`;
|
|
13306
13332
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13307
13333
|
className: Z([
|
|
13308
|
-
o,
|
|
13309
13334
|
s,
|
|
13335
|
+
u,
|
|
13336
|
+
d,
|
|
13337
|
+
f,
|
|
13310
13338
|
n ?? ""
|
|
13311
13339
|
]),
|
|
13312
|
-
...
|
|
13313
|
-
}, /* @__PURE__ */ e.createElement("div", { className: Z([
|
|
13314
|
-
},
|
|
13340
|
+
...o
|
|
13341
|
+
}, /* @__PURE__ */ e.createElement("div", { className: Z([p, m]) }, t));
|
|
13342
|
+
}, ds = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
|
|
13315
13343
|
let s = "pds-panel-list", c = `pds-panel-list--${a}`, l = t === "default" ? null : `${s}--${t}`, u = i ? null : `${s}--borderless`;
|
|
13316
13344
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
13317
13345
|
className: Z([
|
|
@@ -13323,7 +13351,7 @@ var xi = {
|
|
|
13323
13351
|
]),
|
|
13324
13352
|
...o
|
|
13325
13353
|
}, n);
|
|
13326
|
-
},
|
|
13354
|
+
}, fs = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, stackBelow: a = "m", ...o }) => {
|
|
13327
13355
|
let s = "pds-panel-row", c = `${s}--stack-${a}`, [l, u] = _(!1), d = Tt(t), f = d["items-left"], p = d["items-right"], m = d["items-below"], h = () => {
|
|
13328
13356
|
u((e) => !e);
|
|
13329
13357
|
};
|
|
@@ -13355,17 +13383,17 @@ var xi = {
|
|
|
13355
13383
|
opacity: "0"
|
|
13356
13384
|
}
|
|
13357
13385
|
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__items-inside` }, m)));
|
|
13358
|
-
},
|
|
13386
|
+
}, ps = ({ children: t, className: n, ...r }) => /* @__PURE__ */ e.createElement("div", {
|
|
13359
13387
|
className: Z(["pds-panel-stack", n ?? ""]),
|
|
13360
13388
|
...r
|
|
13361
|
-
}, t),
|
|
13389
|
+
}, t), ms = ({ 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 }) => {
|
|
13362
13390
|
let d = "pds-workspace-selector-panel", f = `${d}__item`, [p, m] = _(""), g = l.length >= s, v = h(() => {
|
|
13363
13391
|
if (!p) return l;
|
|
13364
13392
|
let e = p.toLowerCase();
|
|
13365
13393
|
return l.filter((t) => t.displayName?.toLowerCase().includes(e));
|
|
13366
13394
|
}, [l, p]).map((t) => {
|
|
13367
13395
|
let n = t.isRestricted && t.onRestrictedSelection ? t.onRestrictedSelection : void 0;
|
|
13368
|
-
return /* @__PURE__ */ e.createElement(
|
|
13396
|
+
return /* @__PURE__ */ e.createElement(ns, {
|
|
13369
13397
|
key: t.workspaceId,
|
|
13370
13398
|
className: Z([
|
|
13371
13399
|
f,
|
|
@@ -13379,7 +13407,7 @@ var xi = {
|
|
|
13379
13407
|
workspace: t
|
|
13380
13408
|
}));
|
|
13381
13409
|
});
|
|
13382
|
-
return /* @__PURE__ */ e.createElement(
|
|
13410
|
+
return /* @__PURE__ */ e.createElement(ts, {
|
|
13383
13411
|
className: Z([d, t ?? ""]),
|
|
13384
13412
|
contentMaxHeight: n,
|
|
13385
13413
|
createLink: r,
|
|
@@ -13399,7 +13427,7 @@ var xi = {
|
|
|
13399
13427
|
items: v,
|
|
13400
13428
|
...u
|
|
13401
13429
|
});
|
|
13402
|
-
},
|
|
13430
|
+
}, hs = /* @__PURE__ */ e.createElement("svg", {
|
|
13403
13431
|
"aria-label": "Pantheon",
|
|
13404
13432
|
fill: "none",
|
|
13405
13433
|
focusable: "false",
|
|
@@ -13461,7 +13489,7 @@ var xi = {
|
|
|
13461
13489
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
13462
13490
|
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",
|
|
13463
13491
|
fill: "var(--pds-color-foreground-default)"
|
|
13464
|
-
})),
|
|
13492
|
+
})), gs = /* @__PURE__ */ e.createElement("svg", {
|
|
13465
13493
|
"aria-label": "Pantheon",
|
|
13466
13494
|
fill: "none",
|
|
13467
13495
|
focusable: "false",
|
|
@@ -13496,7 +13524,7 @@ var xi = {
|
|
|
13496
13524
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
13497
13525
|
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",
|
|
13498
13526
|
fill: "var(--pds-color-foreground-default)"
|
|
13499
|
-
})),
|
|
13527
|
+
})), _s = /* @__PURE__ */ e.createElement("svg", {
|
|
13500
13528
|
"aria-label": "Pantheon",
|
|
13501
13529
|
fill: "none",
|
|
13502
13530
|
focusable: "false",
|
|
@@ -13531,16 +13559,16 @@ var xi = {
|
|
|
13531
13559
|
}), /* @__PURE__ */ e.createElement("path", {
|
|
13532
13560
|
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",
|
|
13533
13561
|
fill: "var(--pds-color-foreground-default)"
|
|
13534
|
-
})),
|
|
13562
|
+
})), vs = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...o }) => {
|
|
13535
13563
|
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;
|
|
13536
13564
|
switch (r) {
|
|
13537
13565
|
case "full":
|
|
13538
|
-
f =
|
|
13566
|
+
f = hs;
|
|
13539
13567
|
break;
|
|
13540
13568
|
case "icon":
|
|
13541
|
-
f =
|
|
13569
|
+
f = gs;
|
|
13542
13570
|
break;
|
|
13543
|
-
case "wordmark": f =
|
|
13571
|
+
case "wordmark": f = _s;
|
|
13544
13572
|
}
|
|
13545
13573
|
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, {
|
|
13546
13574
|
children: f,
|
|
@@ -13556,7 +13584,7 @@ var xi = {
|
|
|
13556
13584
|
]),
|
|
13557
13585
|
...o
|
|
13558
13586
|
}, i ? h : f);
|
|
13559
|
-
},
|
|
13587
|
+
}, ys = 8, bs = 14, xs = ({ 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 }) => {
|
|
13560
13588
|
let [S, w] = _(u);
|
|
13561
13589
|
d(() => {
|
|
13562
13590
|
w(u);
|
|
@@ -13583,12 +13611,12 @@ var xi = {
|
|
|
13583
13611
|
K,
|
|
13584
13612
|
q,
|
|
13585
13613
|
te
|
|
13586
|
-
]), re = B.arrow?.x ?? 0, ie = B.arrow?.y ?? 0, Y = re +
|
|
13614
|
+
]), re = B.arrow?.x ?? 0, ie = B.arrow?.y ?? 0, Y = re + bs / 2, X = ie + ys, { isMounted: ae } = U(R, {
|
|
13587
13615
|
initial: { transform: "scale(0)" },
|
|
13588
13616
|
common: ({ side: e }) => ({ transformOrigin: {
|
|
13589
|
-
top: `${Y}px calc(100% + ${
|
|
13617
|
+
top: `${Y}px calc(100% + ${ys}px)`,
|
|
13590
13618
|
bottom: `${Y}px -8px`,
|
|
13591
|
-
left: `calc(100% + ${
|
|
13619
|
+
left: `calc(100% + ${ys}px) ${X}px`,
|
|
13592
13620
|
right: `-8px ${X}px`
|
|
13593
13621
|
}[e] })
|
|
13594
13622
|
});
|
|
@@ -13623,23 +13651,23 @@ var xi = {
|
|
|
13623
13651
|
className: `${j}__arrow`,
|
|
13624
13652
|
context: R,
|
|
13625
13653
|
fill: "var(--pds-color-surface-default)",
|
|
13626
|
-
height:
|
|
13654
|
+
height: ys,
|
|
13627
13655
|
stroke: "var(--pds-color-border-default)",
|
|
13628
13656
|
strokeWidth: 1,
|
|
13629
13657
|
tipRadius: 0,
|
|
13630
|
-
width:
|
|
13658
|
+
width: bs
|
|
13631
13659
|
}), /* @__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(qn, {
|
|
13632
13660
|
ariaLabel: r,
|
|
13633
13661
|
onClick: G,
|
|
13634
13662
|
size: "s"
|
|
13635
13663
|
})))))));
|
|
13636
|
-
},
|
|
13664
|
+
}, Ss = {
|
|
13637
13665
|
neutral: "--pds-color-status-neutral-indicator",
|
|
13638
13666
|
info: "--pds-color-status-info-fill",
|
|
13639
13667
|
success: "--pds-color-status-success-fill",
|
|
13640
13668
|
warning: "--pds-color-status-warning-fill",
|
|
13641
13669
|
critical: "--pds-color-status-critical-fill"
|
|
13642
|
-
},
|
|
13670
|
+
}, Cs = ({ className: t, colorBreakpoints: n = [{
|
|
13643
13671
|
colorType: "info",
|
|
13644
13672
|
percentage: 0
|
|
13645
13673
|
}, {
|
|
@@ -13660,7 +13688,7 @@ var xi = {
|
|
|
13660
13688
|
id: m
|
|
13661
13689
|
}, i), (x || l) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, x && b, l && /* @__PURE__ */ e.createElement("div", {
|
|
13662
13690
|
className: `${h}__percentage`,
|
|
13663
|
-
style: { color: `hsl(from var(${
|
|
13691
|
+
style: { color: `hsl(from var(${Ss[y]}) h s calc(l - 7))` }
|
|
13664
13692
|
}, s, "%")), /* @__PURE__ */ e.createElement("div", { className: `${h}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
|
|
13665
13693
|
"aria-labelledby": m,
|
|
13666
13694
|
"aria-valuenow": v,
|
|
@@ -13670,16 +13698,16 @@ var xi = {
|
|
|
13670
13698
|
className: `${h}__bar`,
|
|
13671
13699
|
style: {
|
|
13672
13700
|
width: `${v}%`,
|
|
13673
|
-
backgroundColor: `var(${
|
|
13701
|
+
backgroundColor: `var(${Ss[y]})`
|
|
13674
13702
|
}
|
|
13675
13703
|
}))), S && b);
|
|
13676
|
-
},
|
|
13704
|
+
}, ws = {
|
|
13677
13705
|
neutral: "--pds-color-status-neutral-indicator",
|
|
13678
13706
|
info: "--pds-color-status-info-fill",
|
|
13679
13707
|
success: "--pds-color-status-success-fill",
|
|
13680
13708
|
warning: "--pds-color-status-warning-fill",
|
|
13681
13709
|
critical: "--pds-color-status-critical-fill"
|
|
13682
|
-
},
|
|
13710
|
+
}, Ts = ({ className: t, colorBreakpoints: n = [{
|
|
13683
13711
|
colorType: "info",
|
|
13684
13712
|
percentage: 0
|
|
13685
13713
|
}, {
|
|
@@ -13728,7 +13756,7 @@ var xi = {
|
|
|
13728
13756
|
strokeDasharray: x,
|
|
13729
13757
|
strokeDashoffset: S,
|
|
13730
13758
|
strokeWidth: y,
|
|
13731
|
-
style: { stroke: `var(${
|
|
13759
|
+
style: { stroke: `var(${ws[C]})` },
|
|
13732
13760
|
transform: `rotate(-90 ${v / 2} ${v / 2})`
|
|
13733
13761
|
}), /* @__PURE__ */ e.createElement("text", {
|
|
13734
13762
|
alignmentBaseline: "middle",
|
|
@@ -13738,29 +13766,29 @@ var xi = {
|
|
|
13738
13766
|
x: "50%",
|
|
13739
13767
|
y: "51%"
|
|
13740
13768
|
}, w))));
|
|
13741
|
-
},
|
|
13769
|
+
}, Es = {
|
|
13742
13770
|
of: "of",
|
|
13743
13771
|
showing: "Showing",
|
|
13744
13772
|
unitPlural: "results",
|
|
13745
13773
|
unitSingular: "result"
|
|
13746
|
-
},
|
|
13774
|
+
}, Ds = (e, t, n, r) => new Intl.PluralRules(r).select(e) === "one" ? t : n, Os = ({ className: t, countMatching: n, countTotal: r, labelStrings: i, locale: a, ...o }) => {
|
|
13747
13775
|
let s = "pds-result-count", c = `${s}__number`, { of: l, showing: u, unitPlural: d, unitSingular: f } = {
|
|
13748
|
-
...
|
|
13776
|
+
...Es,
|
|
13749
13777
|
...i
|
|
13750
|
-
}, p = n !== void 0, m =
|
|
13778
|
+
}, p = n !== void 0, m = Ds(r, f, d, a);
|
|
13751
13779
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13752
13780
|
"aria-live": "polite",
|
|
13753
13781
|
className: Z([s, t ?? ""]),
|
|
13754
13782
|
...o
|
|
13755
13783
|
}, /* @__PURE__ */ e.createElement("span", null, p && /* @__PURE__ */ e.createElement(e.Fragment, null, u && /* @__PURE__ */ e.createElement("span", null, `${u} `), /* @__PURE__ */ e.createElement("span", { className: c }, n), /* @__PURE__ */ e.createElement("span", null, ` ${l} `)), /* @__PURE__ */ e.createElement("span", { className: c }, r), /* @__PURE__ */ e.createElement("span", null, ` ${m}`)));
|
|
13756
|
-
},
|
|
13784
|
+
}, ks = {
|
|
13757
13785
|
privacy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"),
|
|
13758
13786
|
dataSubjectRequest: /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"),
|
|
13759
13787
|
cookiePolicy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"),
|
|
13760
13788
|
termsOfUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"),
|
|
13761
13789
|
acceptableUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"),
|
|
13762
13790
|
accessibilityStatement: /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")
|
|
13763
|
-
},
|
|
13791
|
+
}, As = (e) => typeof e == "string", js = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
|
|
13764
13792
|
"privacy",
|
|
13765
13793
|
"dataSubjectRequest",
|
|
13766
13794
|
"cookiePolicy",
|
|
@@ -13777,8 +13805,8 @@ var xi = {
|
|
|
13777
13805
|
r ?? ""
|
|
13778
13806
|
]),
|
|
13779
13807
|
...c
|
|
13780
|
-
}, /* @__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) =>
|
|
13781
|
-
},
|
|
13808
|
+
}, /* @__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) => As(t) ? /* @__PURE__ */ e.createElement(e.Fragment, { key: t }, ks[t]) : /* @__PURE__ */ e.createElement(e.Fragment, { key: n }, t)))));
|
|
13809
|
+
}, Ms = ({ className: t, option: n, ...r }) => {
|
|
13782
13810
|
let i = "pds-site-option-display", a = n.type ? or[n.type] : "boltSolid", o = g(null), [s] = mt(o), c = s.width / 16 - 7.5, l, u;
|
|
13783
13811
|
n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
|
|
13784
13812
|
let d = /* @__PURE__ */ e.createElement(In, {
|
|
@@ -13801,7 +13829,7 @@ var xi = {
|
|
|
13801
13829
|
className: `${i}__status`,
|
|
13802
13830
|
style: { pointerEvents: "none" }
|
|
13803
13831
|
}, d));
|
|
13804
|
-
},
|
|
13832
|
+
}, Ns = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
|
|
13805
13833
|
clearButton: "Clear input text",
|
|
13806
13834
|
inputInstructions: "Type to search options"
|
|
13807
13835
|
}, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
|
|
@@ -13813,7 +13841,7 @@ var xi = {
|
|
|
13813
13841
|
id: n,
|
|
13814
13842
|
label: i,
|
|
13815
13843
|
value: r ?? i,
|
|
13816
|
-
optionDisplay: /* @__PURE__ */ e.createElement(
|
|
13844
|
+
optionDisplay: /* @__PURE__ */ e.createElement(Ms, { option: t }),
|
|
13817
13845
|
siteData: t
|
|
13818
13846
|
};
|
|
13819
13847
|
});
|
|
@@ -13841,7 +13869,7 @@ var xi = {
|
|
|
13841
13869
|
})));
|
|
13842
13870
|
};
|
|
13843
13871
|
// src/components/SortableList/sortable-utils.ts
|
|
13844
|
-
function
|
|
13872
|
+
function Ps(e, t, n = null, r = 0, i = []) {
|
|
13845
13873
|
return e.reduce((e, a, o) => {
|
|
13846
13874
|
let s = !!a.children?.length, c = t.has(a.id);
|
|
13847
13875
|
return e.push({
|
|
@@ -13853,10 +13881,10 @@ function Ns(e, t, n = null, r = 0, i = []) {
|
|
|
13853
13881
|
index: o,
|
|
13854
13882
|
isExpanded: c,
|
|
13855
13883
|
parentId: n
|
|
13856
|
-
}), s && c && a.children && e.push(...
|
|
13884
|
+
}), s && c && a.children && e.push(...Ps(a.children, t, a.id, r + 1, [...i, a.id])), e;
|
|
13857
13885
|
}, []);
|
|
13858
13886
|
}
|
|
13859
|
-
function
|
|
13887
|
+
function Fs(e) {
|
|
13860
13888
|
let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
|
|
13861
13889
|
for (let i of e) {
|
|
13862
13890
|
let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
|
|
@@ -13869,35 +13897,35 @@ function Ps(e) {
|
|
|
13869
13897
|
e && (e.children || (e.children = []), e.children.push(o));
|
|
13870
13898
|
}
|
|
13871
13899
|
}
|
|
13872
|
-
return
|
|
13900
|
+
return Is(r);
|
|
13873
13901
|
}
|
|
13874
|
-
function
|
|
13902
|
+
function Is(e) {
|
|
13875
13903
|
return e.map((e) => {
|
|
13876
13904
|
if (e.children?.length) return {
|
|
13877
13905
|
...e,
|
|
13878
|
-
children:
|
|
13906
|
+
children: Is(e.children)
|
|
13879
13907
|
};
|
|
13880
13908
|
let { children: t, ...n } = e;
|
|
13881
13909
|
return n;
|
|
13882
13910
|
});
|
|
13883
13911
|
}
|
|
13884
|
-
function
|
|
13912
|
+
function Ls(e, t) {
|
|
13885
13913
|
for (let n of e) {
|
|
13886
13914
|
if (n.id === t) return n;
|
|
13887
13915
|
if (n.children) {
|
|
13888
|
-
let e =
|
|
13916
|
+
let e = Ls(n.children, t);
|
|
13889
13917
|
if (e) return e;
|
|
13890
13918
|
}
|
|
13891
13919
|
}
|
|
13892
13920
|
}
|
|
13893
|
-
function
|
|
13921
|
+
function Rs(e, t, n, r, i, a, o) {
|
|
13894
13922
|
let s = e.findIndex((e) => e.id === n);
|
|
13895
13923
|
if (s === -1) return 0;
|
|
13896
13924
|
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;
|
|
13897
13925
|
return Math.min(Math.max(d, h), p, a);
|
|
13898
13926
|
}
|
|
13899
13927
|
// src/components/SortableList/SortableListHeader.tsx
|
|
13900
|
-
var
|
|
13928
|
+
var zs = ({ children: t, className: n, columns: r, ...i }) => {
|
|
13901
13929
|
if (!r && !t) return null;
|
|
13902
13930
|
let a = r ? {
|
|
13903
13931
|
display: "grid",
|
|
@@ -13917,13 +13945,13 @@ var Rs = ({ children: t, className: n, columns: r, ...i }) => {
|
|
|
13917
13945
|
}, r ? r.map((t) => /* @__PURE__ */ e.createElement("span", { key: t.id }, t.label)) : t));
|
|
13918
13946
|
};
|
|
13919
13947
|
// src/components/SortableList/useSortableTree.ts
|
|
13920
|
-
function
|
|
13948
|
+
function Bs({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
|
|
13921
13949
|
let i = n !== void 0, [a, o] = _(() => n ?? e ?? []), [s, c] = _(/* @__PURE__ */ new Set()), u = g(null), d = g(t);
|
|
13922
13950
|
t && !d.current && (u.current = {
|
|
13923
13951
|
items: i ? n : a,
|
|
13924
13952
|
expandedIds: s
|
|
13925
|
-
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 &&
|
|
13926
|
-
let f = i ? n : a, p = h(() =>
|
|
13953
|
+
}), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 && Hs("SortableList received both `items` and `defaultItems`. `items` will be used and `defaultItems` will be ignored.");
|
|
13954
|
+
let f = i ? n : a, p = h(() => Ps(f, s), [f, s]), m = h(() => p.map((e) => e.id), [p]), v = l((e) => {
|
|
13927
13955
|
c((t) => {
|
|
13928
13956
|
let n = new Set(t);
|
|
13929
13957
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -13941,7 +13969,7 @@ function zs({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
13941
13969
|
}, []),
|
|
13942
13970
|
flatNodes: p,
|
|
13943
13971
|
handleReorder: l((e) => {
|
|
13944
|
-
let t =
|
|
13972
|
+
let t = Fs(e);
|
|
13945
13973
|
i || o(t), r?.(t);
|
|
13946
13974
|
}, [i, r]),
|
|
13947
13975
|
resetToSnapshot: l(() => {
|
|
@@ -13953,23 +13981,23 @@ function zs({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
|
|
|
13953
13981
|
toggleExpand: v
|
|
13954
13982
|
};
|
|
13955
13983
|
}
|
|
13956
|
-
var
|
|
13957
|
-
function
|
|
13958
|
-
|
|
13984
|
+
var Vs = /* @__PURE__ */ new Set();
|
|
13985
|
+
function Hs(e) {
|
|
13986
|
+
Vs.has(e) || (Vs.add(e), console.warn(e));
|
|
13959
13987
|
}
|
|
13960
13988
|
// src/components/SortableList/SortableList.tsx
|
|
13961
|
-
var
|
|
13989
|
+
var Us = 24, Ws = { droppable: { strategy: Ze.Always } }, Gs = 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) {
|
|
13962
13990
|
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) => {
|
|
13963
13991
|
if (m > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
13964
13992
|
e.preventDefault();
|
|
13965
13993
|
let n = e.key === "ArrowRight" ? 1 : -1, r = ee.current, i = Math.max(-m, Math.min(m, r + n)), a = i - r;
|
|
13966
13994
|
return ee.current = i, z(i), {
|
|
13967
|
-
x: t.currentCoordinates.x + a *
|
|
13995
|
+
x: t.currentCoordinates.x + a * Us,
|
|
13968
13996
|
y: t.currentCoordinates.y
|
|
13969
13997
|
};
|
|
13970
13998
|
}
|
|
13971
13999
|
return at(e, t);
|
|
13972
|
-
}, [m]), W = b === "always" || b === "toggle" && (c ?? !1), { currentItems: G, expandItem: K, flatNodes: q, handleReorder: te, resetToSnapshot: J, sortableIds: ne, toggleExpand: re } =
|
|
14000
|
+
}, [m]), W = b === "always" || b === "toggle" && (c ?? !1), { currentItems: G, expandItem: K, flatNodes: q, handleReorder: te, resetToSnapshot: J, sortableIds: ne, toggleExpand: re } = Bs({
|
|
13973
14001
|
defaultItems: a,
|
|
13974
14002
|
isDragEnabled: W,
|
|
13975
14003
|
items: f,
|
|
@@ -13996,9 +14024,9 @@ var Hs = 24, Us = { droppable: { strategy: Ze.Always } }, Ws = o(function({ chil
|
|
|
13996
14024
|
oe,
|
|
13997
14025
|
X,
|
|
13998
14026
|
j
|
|
13999
|
-
]).size > 0, le = h(() => T ? q.find((e) => e.id === T) ?? null : null, [T, q]), ue = h(() => T ?
|
|
14027
|
+
]).size > 0, le = h(() => T ? q.find((e) => e.id === T) ?? null : null, [T, q]), ue = h(() => T ? Ls(G, String(T)) ?? null : null, [T, G]), de = h(() => {
|
|
14000
14028
|
let e = le?.depth ?? 0;
|
|
14001
|
-
return !T || !j || O || m === 0 ? e :
|
|
14029
|
+
return !T || !j || O || m === 0 ? e : Rs(q, String(T), String(j), B * Us, Us, m);
|
|
14002
14030
|
}, [
|
|
14003
14031
|
T,
|
|
14004
14032
|
le,
|
|
@@ -14010,7 +14038,7 @@ var Hs = 24, Us = { droppable: { strategy: Ze.Always } }, Ws = o(function({ chil
|
|
|
14010
14038
|
]), fe = h(() => {
|
|
14011
14039
|
if (!T || O || de === 0 || j && oe(j)) return null;
|
|
14012
14040
|
let e = q.findIndex((e) => e.id === T);
|
|
14013
|
-
return e === -1 ? null :
|
|
14041
|
+
return e === -1 ? null : Ks(q, e, de);
|
|
14014
14042
|
}, [
|
|
14015
14043
|
T,
|
|
14016
14044
|
q,
|
|
@@ -14056,19 +14084,19 @@ var Hs = 24, Us = { droppable: { strategy: Ze.Always } }, Ws = o(function({ chil
|
|
|
14056
14084
|
}, [q, X]), ge = l((e) => {
|
|
14057
14085
|
let t = e.delta.x;
|
|
14058
14086
|
if (P.current = t, A.current || m === 0) return;
|
|
14059
|
-
let n = Math.floor(t /
|
|
14060
|
-
(n > r || n < r && t < r *
|
|
14087
|
+
let n = Math.floor(t / Us), r = H.current;
|
|
14088
|
+
(n > r || n < r && t < r * Us - Us * .4) && (H.current = n, V(n));
|
|
14061
14089
|
}, [m]), _e = l((e) => {
|
|
14062
14090
|
let { active: t, over: n } = e, r = A.current, i = ee.current, a = H.current;
|
|
14063
14091
|
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);
|
|
14064
|
-
let o = q.findIndex((e) => e.id === t.id), s = r ? i *
|
|
14092
|
+
let o = q.findIndex((e) => e.id === t.id), s = r ? i * Us : a * Us, c = !n || t.id === n.id, l = n?.id ?? null;
|
|
14065
14093
|
if (r && i > 0 && c && o > 0 && (l = q[o - 1].id), !l || t.id === l) {
|
|
14066
14094
|
if (o === -1) return;
|
|
14067
14095
|
let e = q[o];
|
|
14068
14096
|
if (!e) return;
|
|
14069
|
-
let n =
|
|
14097
|
+
let n = Rs(q, String(t.id), String(t.id), s, Us, m);
|
|
14070
14098
|
if (n === e.depth) return;
|
|
14071
|
-
let r = [...q], [i] = r.splice(o, 1), a =
|
|
14099
|
+
let r = [...q], [i] = r.splice(o, 1), a = Ks(r, o, n);
|
|
14072
14100
|
if (a && ae.has(a)) return;
|
|
14073
14101
|
let c = {
|
|
14074
14102
|
...i,
|
|
@@ -14090,9 +14118,9 @@ var Hs = 24, Us = { droppable: { strategy: Ze.Always } }, Ws = o(function({ chil
|
|
|
14090
14118
|
let e = q[u];
|
|
14091
14119
|
_ = Math.min(e.depth + 1, m), v = String(l);
|
|
14092
14120
|
} else {
|
|
14093
|
-
_ =
|
|
14121
|
+
_ = Rs(d, String(t.id), String(l), s, Us, m, p.depth);
|
|
14094
14122
|
let e = d[g];
|
|
14095
|
-
v = e && e.depth === _ - 1 ? String(l) :
|
|
14123
|
+
v = e && e.depth === _ - 1 ? String(l) : Ks(d, g, _);
|
|
14096
14124
|
}
|
|
14097
14125
|
if (v && ae.has(v)) return;
|
|
14098
14126
|
let y = {
|
|
@@ -14115,24 +14143,24 @@ var Hs = 24, Us = { droppable: { strategy: Ze.Always } }, Ws = o(function({ chil
|
|
|
14115
14143
|
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);
|
|
14116
14144
|
}, [K]), ye = h(() => ({
|
|
14117
14145
|
onDragStart({ active: e }) {
|
|
14118
|
-
let t = q.find((t) => t.id === e.id), n =
|
|
14146
|
+
let t = q.find((t) => t.id === e.id), n = Ls(G, String(e.id));
|
|
14119
14147
|
return `Picked up ${n ? o(n) : String(e.id)}. Current position: ${t ? q.indexOf(t) + 1 : "?"} of ${q.length} at depth ${t?.depth ?? 0}.`;
|
|
14120
14148
|
},
|
|
14121
14149
|
onDragOver({ active: e, over: t }) {
|
|
14122
14150
|
if (!t) return;
|
|
14123
14151
|
let n = q.findIndex((e) => e.id === t.id);
|
|
14124
14152
|
if (n === -1) return;
|
|
14125
|
-
let r =
|
|
14153
|
+
let r = Ls(G, String(e.id)), i = r ? o(r) : String(e.id), a = Rs(q, String(e.id), String(t.id), P.current, Us, m);
|
|
14126
14154
|
return `Moving ${i}. Target position: ${n + 1} of ${q.length} at depth ${a}.`;
|
|
14127
14155
|
},
|
|
14128
14156
|
onDragEnd({ active: e, over: t }) {
|
|
14129
|
-
let n =
|
|
14157
|
+
let n = Ls(G, String(e.id)), r = n ? o(n) : String(e.id);
|
|
14130
14158
|
if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
|
|
14131
|
-
let i = q.findIndex((e) => e.id === t.id), a =
|
|
14159
|
+
let i = q.findIndex((e) => e.id === t.id), a = Rs(q, String(e.id), String(t.id), P.current, Us, m);
|
|
14132
14160
|
return `${r} dropped at position ${i + 1} of ${q.length} at depth ${a}.`;
|
|
14133
14161
|
},
|
|
14134
14162
|
onDragCancel({ active: e }) {
|
|
14135
|
-
let t = q.find((t) => t.id === e.id), n =
|
|
14163
|
+
let t = q.find((t) => t.id === e.id), n = Ls(G, String(e.id));
|
|
14136
14164
|
return `Sorting cancelled. ${n ? o(n) : String(e.id)} returned to position ${t ? q.indexOf(t) + 1 : "?"} of ${q.length}.`;
|
|
14137
14165
|
}
|
|
14138
14166
|
}), [
|
|
@@ -14140,14 +14168,14 @@ var Hs = 24, Us = { droppable: { strategy: Ze.Always } }, Ws = o(function({ chil
|
|
|
14140
14168
|
q,
|
|
14141
14169
|
o,
|
|
14142
14170
|
m
|
|
14143
|
-
]), be = { columns: i }, xe = t.map(n, (t) => s(t) && t.type ===
|
|
14171
|
+
]), be = { columns: i }, xe = t.map(n, (t) => s(t) && t.type === zs ? e.cloneElement(t, be) : t);
|
|
14144
14172
|
return /* @__PURE__ */ e.createElement(Je, {
|
|
14145
14173
|
accessibility: {
|
|
14146
14174
|
announcements: ye,
|
|
14147
14175
|
...x ? { screenReaderInstructions: { draggable: x } } : {}
|
|
14148
14176
|
},
|
|
14149
14177
|
collisionDetection: me,
|
|
14150
|
-
measuring:
|
|
14178
|
+
measuring: Ws,
|
|
14151
14179
|
onDragCancel: ve,
|
|
14152
14180
|
onDragEnd: _e,
|
|
14153
14181
|
onDragMove: ge,
|
|
@@ -14222,13 +14250,13 @@ var Hs = 24, Us = { droppable: { strategy: Ze.Always } }, Ws = o(function({ chil
|
|
|
14222
14250
|
return s(a) ? e.cloneElement(a, o) : a;
|
|
14223
14251
|
})()) : null));
|
|
14224
14252
|
});
|
|
14225
|
-
function
|
|
14253
|
+
function Ks(e, t, n) {
|
|
14226
14254
|
if (n === 0) return null;
|
|
14227
14255
|
for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
|
|
14228
14256
|
return null;
|
|
14229
14257
|
}
|
|
14230
14258
|
// src/components/SortableList/SortableRow.tsx
|
|
14231
|
-
var
|
|
14259
|
+
var qs = ({ 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 }) => {
|
|
14232
14260
|
let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = ot({
|
|
14233
14261
|
attributes: {
|
|
14234
14262
|
role: "listitem",
|
|
@@ -14283,7 +14311,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14283
14311
|
key: t.id,
|
|
14284
14312
|
className: `${w}__cell`
|
|
14285
14313
|
}, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
|
|
14286
|
-
},
|
|
14314
|
+
}, Js = ({ actionCallback: t, actionIcon: n = "barsFilter", actionLabel: r, background: i = "default", className: a, description: o, icon: s, iconColor: c = "neutral", isActive: l = !1, isLoading: u = !1, stat: d, title: p, ...m }) => {
|
|
14287
14315
|
let h = "pds-stat-panel", g = i === "default" ? null : `${h}--${i}`, _ = c === "neutral" ? null : `${h}--${c}`, v = l ? `${h}--active` : null, y = f(), b = n && r && t;
|
|
14288
14316
|
return /* @__PURE__ */ e.createElement("div", {
|
|
14289
14317
|
"aria-labelledby": y,
|
|
@@ -14320,11 +14348,11 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14320
14348
|
size: { width: 6 },
|
|
14321
14349
|
textSize: "xl"
|
|
14322
14350
|
}) : d && /* @__PURE__ */ e.createElement("span", { className: `${h}__stat` }, d)), o && /* @__PURE__ */ e.createElement("p", { className: `${h}__description` }, o));
|
|
14323
|
-
},
|
|
14351
|
+
}, Ys = [
|
|
14324
14352
|
"default",
|
|
14325
14353
|
"working",
|
|
14326
14354
|
"checked"
|
|
14327
|
-
],
|
|
14355
|
+
], Xs = ({ alignment: t = "left", className: n, componentWidth: r, displayType: i = "label", labelStrings: a = {}, lastChecked: o, onCheck: s, state: c = "default", ...l }) => {
|
|
14328
14356
|
let u = i === "icon-button", d = {
|
|
14329
14357
|
checkForUpdates: "Check for updates",
|
|
14330
14358
|
checking: "Checking...",
|
|
@@ -14377,7 +14405,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14377
14405
|
triggerIconColor: "default",
|
|
14378
14406
|
triggerIconSize: "xs"
|
|
14379
14407
|
}), t === "left" && y));
|
|
14380
|
-
},
|
|
14408
|
+
}, Zs = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
|
|
14381
14409
|
let o = "pds-status-indicator", c = `${o}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(Fn, {
|
|
14382
14410
|
className: `${o}__spinner`,
|
|
14383
14411
|
size: "m"
|
|
@@ -14394,23 +14422,23 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14394
14422
|
]),
|
|
14395
14423
|
...a
|
|
14396
14424
|
}, r ? d : l);
|
|
14397
|
-
},
|
|
14425
|
+
}, Qs = {
|
|
14398
14426
|
frozen: "snowflake",
|
|
14399
14427
|
restricted: "lock"
|
|
14400
|
-
},
|
|
14428
|
+
}, $s = {
|
|
14401
14429
|
frozen: "Frozen",
|
|
14402
14430
|
restricted: "Restricted"
|
|
14403
|
-
},
|
|
14431
|
+
}, ec = ({ className: t, label: n, status: r, ...i }) => {
|
|
14404
14432
|
let a = "pds-status-scrim";
|
|
14405
14433
|
return /* @__PURE__ */ e.createElement("div", {
|
|
14406
14434
|
className: Z([a, t ?? ""]),
|
|
14407
14435
|
...i
|
|
14408
14436
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
14409
14437
|
className: `${a}__icon`,
|
|
14410
|
-
iconName:
|
|
14438
|
+
iconName: Qs[r],
|
|
14411
14439
|
size: "3xl"
|
|
14412
|
-
}), /* @__PURE__ */ e.createElement("span", { className: `${a}__label` }, n ??
|
|
14413
|
-
},
|
|
14440
|
+
}), /* @__PURE__ */ e.createElement("span", { className: `${a}__label` }, n ?? $s[r]));
|
|
14441
|
+
}, tc = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
|
|
14414
14442
|
let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
|
|
14415
14443
|
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`;
|
|
14416
14444
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -14428,7 +14456,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14428
14456
|
style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
|
|
14429
14457
|
...a
|
|
14430
14458
|
}, l);
|
|
14431
|
-
},
|
|
14459
|
+
}, nc = ({ className: t, steps: n, translatableLabels: r = {
|
|
14432
14460
|
step: "Step",
|
|
14433
14461
|
completed: "completed",
|
|
14434
14462
|
hasError: "has an error",
|
|
@@ -14492,7 +14520,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14492
14520
|
key: t.id,
|
|
14493
14521
|
className: `${o}__step`,
|
|
14494
14522
|
id: `${t.id}--mobile`
|
|
14495
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
14523
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(Ts, {
|
|
14496
14524
|
innerLabel: n,
|
|
14497
14525
|
label: "Step progress",
|
|
14498
14526
|
percentage: i,
|
|
@@ -14518,7 +14546,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14518
14546
|
"data-steps": u,
|
|
14519
14547
|
...i
|
|
14520
14548
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, p)));
|
|
14521
|
-
},
|
|
14549
|
+
}, rc = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
|
|
14522
14550
|
let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
|
|
14523
14551
|
return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
|
|
14524
14552
|
className: Z([...p]),
|
|
@@ -14544,14 +14572,14 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14544
14572
|
size: "s",
|
|
14545
14573
|
variant: "highlight"
|
|
14546
14574
|
})))));
|
|
14547
|
-
},
|
|
14575
|
+
}, ic = ({ className: t, labelStrings: n = {
|
|
14548
14576
|
step: "Step",
|
|
14549
14577
|
completed: "completed",
|
|
14550
14578
|
hasError: "has an error"
|
|
14551
14579
|
}, steps: r, ...i }) => {
|
|
14552
14580
|
let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
|
|
14553
14581
|
let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
|
|
14554
|
-
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(
|
|
14582
|
+
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(rc, {
|
|
14555
14583
|
key: `s${i}`,
|
|
14556
14584
|
_isFirstStep: c,
|
|
14557
14585
|
"aria-current": a ? "step" : null,
|
|
@@ -14572,12 +14600,12 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14572
14600
|
className: Z([a, t ?? ""]),
|
|
14573
14601
|
...i
|
|
14574
14602
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
|
|
14575
|
-
},
|
|
14603
|
+
}, ac = typeof window < "u" ? m : d, oc = (e) => {
|
|
14576
14604
|
let t = g(e);
|
|
14577
|
-
return
|
|
14605
|
+
return ac(() => {
|
|
14578
14606
|
t.current = e;
|
|
14579
14607
|
}), l((...e) => t.current(...e), []);
|
|
14580
|
-
},
|
|
14608
|
+
}, sc = 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 }) {
|
|
14581
14609
|
return /* @__PURE__ */ e.createElement("tr", {
|
|
14582
14610
|
"aria-selected": s ? c : void 0,
|
|
14583
14611
|
className: Z([
|
|
@@ -14602,7 +14630,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14602
14630
|
key: `${m}-${t.id}`,
|
|
14603
14631
|
className: t.cellClassName
|
|
14604
14632
|
}, p[t.id])));
|
|
14605
|
-
}),
|
|
14633
|
+
}), cc = c(function({ baseClass: t, cardColumns: n, cardLayout: r, disabledReason: i, getRowClassName: a, hasSelection: o, isInspected: s, isSelectable: c, isSelected: l, isTappable: u, onInspect: d, onToggleSelect: f, row: p, rowId: m, selectLabel: h }) {
|
|
14606
14634
|
let [g, ..._] = r === "inline" ? [void 0, ...n] : n, v = /* @__PURE__ */ e.createElement("div", { className: `${t}__card-main` }, o && /* @__PURE__ */ e.createElement("span", {
|
|
14607
14635
|
"aria-hidden": "true",
|
|
14608
14636
|
className: "pds-checkbox"
|
|
@@ -14637,7 +14665,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14637
14665
|
onClick: () => d(p, m),
|
|
14638
14666
|
type: "button"
|
|
14639
14667
|
}, v) : /* @__PURE__ */ e.createElement("div", { className: y }, v));
|
|
14640
|
-
}),
|
|
14668
|
+
}), lc = ({ cardLayout: t = "stacked", className: n, closeDetailPanelLabel: r = "Close detail panel", columns: i, currentPage: a, defaultSortKey: o, defaultSortOrder: s = "asc", density: c = "standard", detailPanelNav: l = !0, detailPanelTitle: u, detailPanelWidth: p, emptyState: m, emptyStateAction: v, emptyStateHeading: y = "No results found.", emptyStateMessage: b, footer: x, getDetailPanelPositionLabel: S = (e, t) => `${e} of ${t}`, getPageSizeLabel: C = (e) => `Show ${e} rows per page`, getRowClassName: w, getRowId: T, getRowSelectDisabledReason: E, getSelectRowLabel: D = (e, t) => `Select row ${t}`, getSortLabel: O = (e) => `Sort by ${e}`, hasDesktopDetailPanel: k = !1, hasMobileCards: A = !1, hasMobileDetailSheet: j = !0, hasPanel: M = !1, inspectedRowId: N, isLoading: P = !1, isRowSelectable: F = () => !0, itemsPerPage: I, loadingRowCount: L = 5, maxHeight: R, minHeight: z, nextDetailPanelRowLabel: ee = "Next row", onDetailPanelClose: B, onDetailPanelNext: V, onDetailPanelPrev: H, onPageChange: U, onPageSizeChange: W, onRowInspect: G, onRowSelectionChange: K, onSort: q, pageSizeOptions: te, pageSizeSelectLabel: J = "Rows per page", paginationLabels: ne, prevDetailPanelRowLabel: re = "Previous row", renderDetailPanel: ie, renderDetailPanelFooter: Y, rowData: X, selectAllLabel: ae = "Select all rows", selectedRows: oe, sortKey: se, sortOrder: ce, totalItemCount: le, ...ue }) => {
|
|
14641
14669
|
let de = "pds-table", fe = f(), pe = f(), me = g(null), he = Yi() === "sm" && A, ge = M && !he, _e = h(() => i.some((e) => e.cardVisible) ? i.filter((e) => e.cardVisible) : i.slice(0, 1), [i]), ve = ie !== void 0 || G === void 0 && j, ye = ie !== void 0 || G !== void 0 || j, be = q !== void 0, xe = U !== void 0, Se = W !== void 0, Ce = xe || I !== void 0 || te !== void 0, we = X.length > 0 || xe && (le ?? 0) > 0, [Te, Ee] = _({
|
|
14642
14670
|
key: o ?? "",
|
|
14643
14671
|
order: o === void 0 ? "asc" : s
|
|
@@ -14670,7 +14698,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14670
14698
|
Pe,
|
|
14671
14699
|
T,
|
|
14672
14700
|
qe
|
|
14673
|
-
]), Xe = Ye >= 0 ? De[Ye] : null, Ze =
|
|
14701
|
+
]), Xe = Ye >= 0 ? De[Ye] : null, Ze = oc((e, t) => {
|
|
14674
14702
|
(he ? ve : ie !== void 0 && k) && N === void 0 && Ne(t), G?.(e, t);
|
|
14675
14703
|
}), Qe = () => {
|
|
14676
14704
|
N === void 0 && Ne(null), Pe && B?.();
|
|
@@ -14751,7 +14779,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14751
14779
|
}, pt = lt.reduce((e, t, n) => {
|
|
14752
14780
|
let r = Je(t, n);
|
|
14753
14781
|
return F(t, r) && e.push(r), e;
|
|
14754
|
-
}, []), mt = pt.length > 0 && pt.every((e) => Ke.has(e)), ht = !mt && pt.some((e) => Ke.has(e)), gt =
|
|
14782
|
+
}, []), mt = pt.length > 0 && pt.every((e) => Ke.has(e)), ht = !mt && pt.some((e) => Ke.has(e)), gt = oc((e) => {
|
|
14755
14783
|
let t = new Set(Ke);
|
|
14756
14784
|
t.has(e) ? t.delete(e) : t.add(e), He || We(t), K?.(Array.from(t));
|
|
14757
14785
|
}), _t = () => {
|
|
@@ -14786,7 +14814,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14786
14814
|
};
|
|
14787
14815
|
}, St = (t, n) => {
|
|
14788
14816
|
let r = Je(t, n);
|
|
14789
|
-
return /* @__PURE__ */ e.createElement(
|
|
14817
|
+
return /* @__PURE__ */ e.createElement(sc, {
|
|
14790
14818
|
key: `row-${r}`,
|
|
14791
14819
|
baseClass: de,
|
|
14792
14820
|
checkboxId: `${pe}-row-${r}`,
|
|
@@ -14812,10 +14840,10 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14812
14840
|
linkContent: v,
|
|
14813
14841
|
message: b
|
|
14814
14842
|
});
|
|
14815
|
-
return /* @__PURE__ */ e.createElement("li", null, M ? /* @__PURE__ */ e.createElement(
|
|
14843
|
+
return /* @__PURE__ */ e.createElement("li", null, M ? /* @__PURE__ */ e.createElement(us, { padding: "none" }, t) : t);
|
|
14816
14844
|
}, Et = (n, r) => {
|
|
14817
14845
|
let i = Je(n, r);
|
|
14818
|
-
return /* @__PURE__ */ e.createElement(
|
|
14846
|
+
return /* @__PURE__ */ e.createElement(cc, {
|
|
14819
14847
|
key: `card-${i}`,
|
|
14820
14848
|
baseClass: de,
|
|
14821
14849
|
cardColumns: _e,
|
|
@@ -14893,7 +14921,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14893
14921
|
showLabel: !1,
|
|
14894
14922
|
size: "s",
|
|
14895
14923
|
value: String(ze)
|
|
14896
|
-
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(
|
|
14924
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement($o, {
|
|
14897
14925
|
currentPage: xe ? a ?? 1 : Oe,
|
|
14898
14926
|
itemsPerPage: ze,
|
|
14899
14927
|
labelStrings: ne,
|
|
@@ -14920,7 +14948,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14920
14948
|
onClick: et,
|
|
14921
14949
|
size: "s",
|
|
14922
14950
|
variant: "standard"
|
|
14923
|
-
})))), he && /* @__PURE__ */ e.createElement(
|
|
14951
|
+
})))), he && /* @__PURE__ */ e.createElement(Wo, {
|
|
14924
14952
|
closeButtonLabel: r,
|
|
14925
14953
|
isOpen: Ie,
|
|
14926
14954
|
setIsOpen: (e) => {
|
|
@@ -14947,8 +14975,8 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14947
14975
|
size: "s",
|
|
14948
14976
|
variant: "standard"
|
|
14949
14977
|
}))))));
|
|
14950
|
-
return ge ? /* @__PURE__ */ e.createElement(
|
|
14951
|
-
},
|
|
14978
|
+
return ge ? /* @__PURE__ */ e.createElement(us, { padding: "none" }, kt) : kt;
|
|
14979
|
+
}, uc = i(!1), dc = () => u(uc), fc = [
|
|
14952
14980
|
" ",
|
|
14953
14981
|
"/",
|
|
14954
14982
|
".",
|
|
@@ -14966,7 +14994,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14966
14994
|
"=",
|
|
14967
14995
|
"|",
|
|
14968
14996
|
"~"
|
|
14969
|
-
],
|
|
14997
|
+
], pc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), mc = (e) => {
|
|
14970
14998
|
let t = [];
|
|
14971
14999
|
return e.forEach((e) => {
|
|
14972
15000
|
let { id: n, innerText: r } = e;
|
|
@@ -14979,18 +15007,18 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
14979
15007
|
title: r
|
|
14980
15008
|
});
|
|
14981
15009
|
}), t;
|
|
14982
|
-
},
|
|
15010
|
+
}, hc = (e, t, n) => {
|
|
14983
15011
|
let [r, i] = _([]);
|
|
14984
15012
|
return d(() => {
|
|
14985
15013
|
let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
|
|
14986
15014
|
let e = Array.from(document.querySelectorAll(r));
|
|
14987
15015
|
e.forEach((e) => {
|
|
14988
|
-
|
|
14989
|
-
e.id.includes(t) && (e.id = e.id.replace(new RegExp(
|
|
15016
|
+
fc.forEach((t) => {
|
|
15017
|
+
e.id.includes(t) && (e.id = e.id.replace(new RegExp(pc(t), "g"), "-"));
|
|
14990
15018
|
});
|
|
14991
15019
|
}), e.forEach((e, t) => {
|
|
14992
15020
|
e.id || (e.id = `${n}-item-${t}`);
|
|
14993
|
-
}), i(
|
|
15021
|
+
}), i(mc(e));
|
|
14994
15022
|
};
|
|
14995
15023
|
a();
|
|
14996
15024
|
let o = document.getElementById(e);
|
|
@@ -15006,7 +15034,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15006
15034
|
t,
|
|
15007
15035
|
n
|
|
15008
15036
|
]), { nestedHeadings: r };
|
|
15009
|
-
},
|
|
15037
|
+
}, gc = (e, t) => {
|
|
15010
15038
|
let [n, r] = _(void 0), i = g({});
|
|
15011
15039
|
return d(() => {
|
|
15012
15040
|
let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
|
|
@@ -15029,7 +15057,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15029
15057
|
o.disconnect(), r(void 0);
|
|
15030
15058
|
};
|
|
15031
15059
|
}, [e, t]), n;
|
|
15032
|
-
},
|
|
15060
|
+
}, _c = ({ 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", {
|
|
15033
15061
|
key: r.id,
|
|
15034
15062
|
className: `${n}__list-item`
|
|
15035
15063
|
}, /* @__PURE__ */ e.createElement("a", {
|
|
@@ -15045,8 +15073,8 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15045
15073
|
className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
|
|
15046
15074
|
href: `#${r.id}`,
|
|
15047
15075
|
onClick: (e) => i(e, r.id)
|
|
15048
|
-
}, r.title))))))),
|
|
15049
|
-
let u = "pds-toc", d = f(), p = ln(), m =
|
|
15076
|
+
}, r.title))))))), vc = ({ 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 }) => {
|
|
15077
|
+
let u = "pds-toc", d = f(), p = ln(), m = dc(), h = p || m, { nestedHeadings: g } = hc(c, o, d), _ = gc(c, o), v = (e) => {
|
|
15050
15078
|
typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
|
|
15051
15079
|
}, y = (e) => {
|
|
15052
15080
|
document.querySelector(`#${e}`)?.scrollIntoView({
|
|
@@ -15089,13 +15117,13 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15089
15117
|
baseClass: u,
|
|
15090
15118
|
className: `${s ? "" : "visually-hidden"}`,
|
|
15091
15119
|
level: i
|
|
15092
|
-
}, a), /* @__PURE__ */ e.createElement(
|
|
15120
|
+
}, a), /* @__PURE__ */ e.createElement(_c, {
|
|
15093
15121
|
activeID: _,
|
|
15094
15122
|
baseClass: u,
|
|
15095
15123
|
headings: g,
|
|
15096
15124
|
onLinkClick: b
|
|
15097
15125
|
}));
|
|
15098
|
-
},
|
|
15126
|
+
}, yc = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
|
|
15099
15127
|
let c = "pds-tabs", [l, u] = _(a ?? r);
|
|
15100
15128
|
d(() => {
|
|
15101
15129
|
a !== void 0 && u(a);
|
|
@@ -15203,7 +15231,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15203
15231
|
className: `${c}__panel-content`,
|
|
15204
15232
|
hidden: o !== l
|
|
15205
15233
|
}, r)))));
|
|
15206
|
-
},
|
|
15234
|
+
}, bc = [
|
|
15207
15235
|
"orange",
|
|
15208
15236
|
"stone",
|
|
15209
15237
|
"gold",
|
|
@@ -15217,7 +15245,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15217
15245
|
"magenta",
|
|
15218
15246
|
"rose",
|
|
15219
15247
|
"red"
|
|
15220
|
-
],
|
|
15248
|
+
], xc = [
|
|
15221
15249
|
"orange-solid",
|
|
15222
15250
|
"teal-solid",
|
|
15223
15251
|
"indigo-solid",
|
|
@@ -15227,14 +15255,14 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15227
15255
|
"lime-solid",
|
|
15228
15256
|
"sky-solid",
|
|
15229
15257
|
"slate-solid"
|
|
15230
|
-
],
|
|
15258
|
+
], Sc = [
|
|
15231
15259
|
"success-solid",
|
|
15232
15260
|
"warning-solid",
|
|
15233
15261
|
"critical-solid",
|
|
15234
15262
|
"info-solid",
|
|
15235
15263
|
"discovery-solid"
|
|
15236
|
-
],
|
|
15237
|
-
let [f, p] = _(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${
|
|
15264
|
+
], Cc = [...xc, ...Sc], wc = [...bc, ...xc], Tc = (e) => wc[parseInt(ge(e), 16) % wc.length], Ec = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, Dc = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: o = "s", tagColor: c, tagLabel: l, truncationLength: u = 18, ...d }) => {
|
|
15265
|
+
let [f, p] = _(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${Tc(l)}`, g = `${m}--${o}`, v = f ? null : "pds-tag--hide", y = () => {
|
|
15238
15266
|
p((e) => !e);
|
|
15239
15267
|
}, b, x, S;
|
|
15240
15268
|
if (r && !n && s(r)) {
|
|
@@ -15256,7 +15284,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15256
15284
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
15257
15285
|
className: `${m}__label`,
|
|
15258
15286
|
title: l
|
|
15259
|
-
}, u > 0 ?
|
|
15287
|
+
}, u > 0 ? Ec(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
|
|
15260
15288
|
"aria-label": `${a}: ${l}`,
|
|
15261
15289
|
className: `${m}__remove`,
|
|
15262
15290
|
onClick: () => {
|
|
@@ -15268,7 +15296,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15268
15296
|
iconName: "xmark",
|
|
15269
15297
|
size: "m"
|
|
15270
15298
|
})) : null);
|
|
15271
|
-
},
|
|
15299
|
+
}, Oc = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
|
|
15272
15300
|
let o = "pds-utility-bar", s = t === "transparent" ? null : `${o}--bg-${t}`, c = i === "none" ? null : `${o}--pad-${i}`, l = Tt(n), u = l["items-left"], d = l["items-right"] ?? l.__unslotted;
|
|
15273
15301
|
return /* @__PURE__ */ e.createElement("div", {
|
|
15274
15302
|
className: Z([
|
|
@@ -15279,7 +15307,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15279
15307
|
]),
|
|
15280
15308
|
...a
|
|
15281
15309
|
}, /* @__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)));
|
|
15282
|
-
},
|
|
15310
|
+
}, kc = ({ 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 }) => {
|
|
15283
15311
|
let [j, M] = _(l || !1);
|
|
15284
15312
|
d(() => {
|
|
15285
15313
|
M(l || !1);
|
|
@@ -15394,7 +15422,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15394
15422
|
}, /* @__PURE__ */ e.createElement(Aa, {
|
|
15395
15423
|
destination: I,
|
|
15396
15424
|
text: F.skipToContent
|
|
15397
|
-
}), te ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, te), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, le)) : le), o && /* @__PURE__ */ e.createElement(
|
|
15425
|
+
}), te ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, te), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, le)) : le), o && /* @__PURE__ */ e.createElement(Ko, {
|
|
15398
15426
|
...i,
|
|
15399
15427
|
isOpen: c,
|
|
15400
15428
|
placement: "left",
|
|
@@ -15402,13 +15430,13 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15402
15430
|
!e && c && b && b();
|
|
15403
15431
|
}
|
|
15404
15432
|
}, r));
|
|
15405
|
-
},
|
|
15433
|
+
}, Ac = ({ children: t, className: n, sidebarLabel: r = "Sidebar", sidebarWidth: i = "18%", sidebarWidthMax: a = 20, sidebarWidthMin: o = 15, style: s, tocLabel: c = "On this page", ...l }) => {
|
|
15406
15434
|
let u = "pds-docs-layout", d = _n(`(max-width: ${Nt - 1}px)`), f = {
|
|
15407
15435
|
"--docs-sidebar-max-width": `${a}rem`,
|
|
15408
15436
|
"--docs-sidebar-min-width": `${o}rem`,
|
|
15409
15437
|
"--docs-sidebar-width": i
|
|
15410
15438
|
}, p = Tt(t), m = p.__unslotted || p.content, h = p.header, g = p.sidebar, _ = p.toc, v = d ? `${u}--compact` : null, y = g ? `${u}--has-sidebar` : null;
|
|
15411
|
-
return /* @__PURE__ */ e.createElement(
|
|
15439
|
+
return /* @__PURE__ */ e.createElement(uc.Provider, { value: d }, /* @__PURE__ */ e.createElement("div", {
|
|
15412
15440
|
className: Z([
|
|
15413
15441
|
u,
|
|
15414
15442
|
v,
|
|
@@ -15428,7 +15456,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15428
15456
|
"aria-label": c,
|
|
15429
15457
|
className: `${u}__toc`
|
|
15430
15458
|
}, _)));
|
|
15431
|
-
},
|
|
15459
|
+
}, jc = ({ 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 }) => {
|
|
15432
15460
|
let g = "pds-sidebar-layout", _ = (e) => e === "none" ? "0" : `var(--pds-spacing-${e})`, v = _(r), y = _(i ?? r), b = Tt(t), x = !!b["second-sidebar"], S = !!m && x;
|
|
15433
15461
|
return /* @__PURE__ */ e.createElement("div", {
|
|
15434
15462
|
className: Z([
|
|
@@ -15451,7 +15479,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15451
15479
|
},
|
|
15452
15480
|
...h
|
|
15453
15481
|
}, /* @__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"])));
|
|
15454
|
-
},
|
|
15482
|
+
}, Mc = ({ children: n, className: r, maxColumns: i = 3, style: a, ...o }) => {
|
|
15455
15483
|
let s = "pds-stat-panel-group", c = `${s}--max-${i}`, l = {
|
|
15456
15484
|
"--max-columns": i,
|
|
15457
15485
|
...a
|
|
@@ -15470,7 +15498,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15470
15498
|
className: `${s}__item`,
|
|
15471
15499
|
role: "listitem"
|
|
15472
15500
|
}, t))));
|
|
15473
|
-
},
|
|
15501
|
+
}, Nc = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
|
|
15474
15502
|
let o = Tt(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" || r === "wide" ? `${l}--${r === "full" ? "full-width" : "wide"}` : null, d = /* @__PURE__ */ e.createElement(io, {
|
|
15475
15503
|
className: Z([
|
|
15476
15504
|
l,
|
|
@@ -15480,8 +15508,8 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15480
15508
|
width: "wide",
|
|
15481
15509
|
...a
|
|
15482
15510
|
}, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stepper-container` }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${l}__form-container` }, c));
|
|
15483
|
-
return i ? /* @__PURE__ */ e.createElement(
|
|
15484
|
-
},
|
|
15511
|
+
return i ? /* @__PURE__ */ e.createElement(us, null, d) : d;
|
|
15512
|
+
}, Pc = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
|
|
15485
15513
|
let o = "pds-three-item-layout", s = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, c = `${o}--${i}`, l = Tt(t), u = [
|
|
15486
15514
|
l["first-item"],
|
|
15487
15515
|
l["second-item"],
|
|
@@ -15499,7 +15527,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15499
15527
|
key: n,
|
|
15500
15528
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
15501
15529
|
}, t)));
|
|
15502
|
-
},
|
|
15530
|
+
}, Fc = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
|
|
15503
15531
|
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;
|
|
15504
15532
|
switch (i) {
|
|
15505
15533
|
case "equal":
|
|
@@ -15520,7 +15548,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15520
15548
|
]),
|
|
15521
15549
|
...o
|
|
15522
15550
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
15523
|
-
},
|
|
15551
|
+
}, Ic = ({ 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 }) => {
|
|
15524
15552
|
let E = "pds-flex", D = `${E}-container`, O = {
|
|
15525
15553
|
"--pds-flex-align-content": t,
|
|
15526
15554
|
"--pds-flex-align-items": n,
|
|
@@ -15568,20 +15596,20 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15568
15596
|
...O
|
|
15569
15597
|
}
|
|
15570
15598
|
}, i));
|
|
15571
|
-
},
|
|
15599
|
+
}, Lc = [
|
|
15572
15600
|
"light",
|
|
15573
15601
|
"dark",
|
|
15574
15602
|
"system"
|
|
15575
|
-
],
|
|
15603
|
+
], Rc = (e) => typeof e == "string" && Lc.includes(e), zc = i(null), Bc = {
|
|
15576
15604
|
resolvedTheme: "light",
|
|
15577
15605
|
setTheme: () => {},
|
|
15578
15606
|
theme: "light"
|
|
15579
|
-
},
|
|
15607
|
+
}, Vc = ({ 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){}})();`, Hc = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: s = "pds-theme", theme: c }) => {
|
|
15580
15608
|
let u = c !== void 0, f = !r && !u && o && !i, [p, m] = _(n), h = u ? c : p, g = _n("(prefers-color-scheme: dark)"), v = h === "system" ? g ? "dark" : "light" : h;
|
|
15581
15609
|
d(() => {
|
|
15582
15610
|
if (!u && o && typeof window < "u") try {
|
|
15583
15611
|
let e = window.localStorage.getItem(s);
|
|
15584
|
-
|
|
15612
|
+
Rc(e) && m(e);
|
|
15585
15613
|
} catch {}
|
|
15586
15614
|
}, []), d(() => {
|
|
15587
15615
|
typeof document < "u" && (i?.current ?? document.documentElement).setAttribute("data-theme", v);
|
|
@@ -15601,20 +15629,20 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15601
15629
|
]),
|
|
15602
15630
|
theme: h
|
|
15603
15631
|
};
|
|
15604
|
-
return /* @__PURE__ */ e.createElement(
|
|
15632
|
+
return /* @__PURE__ */ e.createElement(zc.Provider, { value: y }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: Vc({
|
|
15605
15633
|
defaultTheme: n,
|
|
15606
15634
|
storageKey: s
|
|
15607
15635
|
}) } }), t);
|
|
15608
|
-
},
|
|
15636
|
+
}, Uc = () => u(zc) ?? Bc, Wc = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
|
|
15609
15637
|
d(() => {
|
|
15610
15638
|
let e = document.documentElement, t = () => {
|
|
15611
15639
|
window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
|
|
15612
15640
|
};
|
|
15613
15641
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
15614
15642
|
}, [r]);
|
|
15615
|
-
let a = n ? /* @__PURE__ */ e.createElement(
|
|
15643
|
+
let a = n ? /* @__PURE__ */ e.createElement(Hc, i, t) : t;
|
|
15616
15644
|
return /* @__PURE__ */ e.createElement(fn, null, a);
|
|
15617
|
-
},
|
|
15645
|
+
}, Gc = ({ children: t, className: n, gap: r = "xl", itemMinWidth: i, maxColumns: a, mobileGap: o, ...s }) => {
|
|
15618
15646
|
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}`;
|
|
15619
15647
|
return /* @__PURE__ */ e.createElement("div", {
|
|
15620
15648
|
className: Z([
|
|
@@ -15630,7 +15658,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15630
15658
|
},
|
|
15631
15659
|
...s
|
|
15632
15660
|
}, t);
|
|
15633
|
-
},
|
|
15661
|
+
}, Kc = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
|
|
15634
15662
|
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}`;
|
|
15635
15663
|
return /* @__PURE__ */ e.createElement("div", {
|
|
15636
15664
|
className: Z([
|
|
@@ -15644,7 +15672,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15644
15672
|
]),
|
|
15645
15673
|
...c
|
|
15646
15674
|
}, n);
|
|
15647
|
-
},
|
|
15675
|
+
}, qc = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
|
|
15648
15676
|
let f = "pds-grid-item", p = [
|
|
15649
15677
|
l ? `${f}--sm-${l}` : null,
|
|
15650
15678
|
c ? `${f}--md-${c}` : null,
|
|
@@ -15663,7 +15691,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15663
15691
|
]),
|
|
15664
15692
|
...d
|
|
15665
15693
|
}, t);
|
|
15666
|
-
},
|
|
15694
|
+
}, Jc = (e, t, n) => {
|
|
15667
15695
|
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, [
|
|
15668
15696
|
r,
|
|
15669
15697
|
i,
|
|
@@ -15687,7 +15715,7 @@ var Ks = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
15687
15715
|
m,
|
|
15688
15716
|
a
|
|
15689
15717
|
]), c;
|
|
15690
|
-
},
|
|
15691
|
-
export { Mr as ActionCard, Ni as AgentAvatar,
|
|
15718
|
+
}, Yc = (e) => (window.addEventListener("resize", e), () => window.removeEventListener("resize", e)), Xc = () => window.innerWidth, Zc = () => 1024, Qc = () => v(Yc, Xc, Zc);
|
|
15719
|
+
export { Mr as ActionCard, Ni as AgentAvatar, kc as AppLayout, oi as AreaChart, Gc as AutoGrid, Ii as Avatar, Li as AvatarLabel, rs as BASelectorPanel, Ba as BASwitcher, Mt as Badge, wo as Banner, si as BarChart, Ua as BookmarksEmptyState, Ga as BookmarksMenu, os as BookmarksPanel, Wo as BottomSheet, Rn as BranchDiff, Ka as Breadcrumb, Go as BulkActionBar, Hn as Button, Un as ButtonLink, ro as ButtonNav, Oa as CTALink, jr as Callout, Nr as Card, Pr as CardSelect, zi as Checkbox, Bi as CheckboxFieldset, Vi as CheckboxGroup, Kn as ClipboardButton, qn as CloseButton, Si as CodeBlock, Hi as Combobox, Wi as ComboboxMultiselect, Fr as CompactEmptyState, wi as ComparisonList, io as Container, ga as Datepicker, Ac as DocsLayout, Ko as Drawer, dr as Dropdown, to as DropdownMenu, ss as ExpansionPanel, cs as ExpansionPanelGroup, ls as FeaturePanel, Ai as FileDiff, _a as FileUpload, Sr as FilterButton, Ic as FlexContainer, qo as FullScreenOverlay, Wc as GlobalWrapper, Kc as Grid, qc as GridItem, Ei as HorizontalEmptyState, Q as Icon, Gn as IconButton, Ri as IdentityBlock, Oi as Illustration, Eo as InlineMessage, va as InputGroup, li as LineChart, ka as LinkNewWindow, Ao as MIN_AUTO_CLOSE_DURATION, sr as MenuButton, Jo as Modal, oo as Navbar, Zo as Pagination, Qo as PaginationChapter, $o as PaginationCompact, us as Panel, ds as PanelList, fs as PanelRow, ps as PanelStack, vs as PantheonLogo, Mi as PaymentIcon, Ma as Picture, di as PieChart, Er as PlatformIcon, xs as Popover, Cs as ProgressBar, Ts as ProgressRing, pi as ProportionBar, ya as RadioGroup, Os as ResultCount, Va as RowActionsMenu, Or as SSOButton, vi as ScatterPlot, ko as SectionMessage, Cr as SegmentedButton, Lr as Select, wr as SelectButton, Ir as SelectOptionGroup, so as SideNav, lo as SideNavGlobal, co as SideNavGlobalItem, jc as SidebarLayout, js as SiteFooter, fo as SiteMenu, Ms as SiteOptionDisplay, Ns as SiteSearch, or as SiteTypeIcon, ar as SiteTypeLabel, $r as Skeleton, Aa as Skiplink, Gs as SortableList, zs as SortableListHeader, qs as SortableRow, Fn as Spinner, Tr as SplitButton, Js as StatPanel, Mc as StatPanelGroup, In as StatusBadge, Xs as StatusChecker, Zs as StatusIndicator, ec as StatusScrim, er as StatusTypeLabels, tc as StepList, nc as Stepper, Nc as StepperLayout, ba as Switch, mo as TabMenu, lc as Table, vc as TableOfContents, yc as Tabs, Dc as Tag, Sa as TagsInput, Ln as Tally, Ta as TextInput, Ca as Textarea, zc as ThemeContext, Hc as ThemeContextProvider, vo as ThemeSwitcher, ja as ThinkingState, Pc as ThreeItemLayout, ea as Timepicker, Lo as Toast, Ro as ToastType, Po as Toaster, Mo as ToasterContext, vn as Tooltip, go as TreeNav, Fc as TwoItemLayout, yo as UserMenu, Oc as UtilityBar, kr as UtilityButton, ki as VerticalEmptyState, ic as VerticalStepper, Ti as VideoEmbed, es as WidgetPanel, Da as WorkspacePicker, bo as WorkspaceSelector, ms as WorkspaceSelectorPanel, Ha as buildBookmarkMenuItems, fa as getPresetDateRange, Vc as getThemeInitScript, At as iconList, nr as isHeadingItemType, rr as isLinkItemType, ir as isNodeItemType, tr as isSeparatorItemType, Ys as statusCheckerStates, bc as tagColors, Cc as tagSolidColors, xc as tagSolidHueColors, Sc as tagSolidStatusColors, Yi as useBreakpoint, Wn as useClipboard, Yn as useDropdown, ln as useIsMobile, Jc as useKeyPress, mn as useKeyboardShortcut, _n as useMediaQuery, Uc as useTheme, zo as useToast, Qc as useWindowWidth };
|
|
15692
15720
|
|
|
15693
15721
|
//# sourceMappingURL=index.js.map
|