@pantheon-systems/pds-toolkit-react 2.0.0-alpha.71 → 2.0.0-alpha.73
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/StatPanel/StatPanel.d.ts +70 -0
- package/dist/components/badges/Badge/Badge.d.ts +9 -2
- package/dist/components/buttons/SplitButton/SplitButton.d.ts +7 -1
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/components/notifications/SectionMessage/SectionMessage.d.ts +6 -4
- package/dist/css/component-css/pds-badge.css +1 -1
- package/dist/css/component-css/pds-button.css +3 -3
- package/dist/css/component-css/pds-combobox.css +1 -1
- package/dist/css/component-css/pds-filter-button.css +1 -1
- package/dist/css/component-css/pds-index.css +15 -13
- package/dist/css/component-css/pds-inline-message.css +1 -1
- package/dist/css/component-css/pds-input-utilities.css +1 -1
- package/dist/css/component-css/pds-popover.css +1 -1
- package/dist/css/component-css/pds-section-message.css +1 -1
- package/dist/css/component-css/pds-side-nav-global.css +1 -1
- package/dist/css/component-css/pds-spinner.css +1 -1
- package/dist/css/component-css/pds-split-button.css +1 -1
- package/dist/css/component-css/pds-stat-panel.css +1 -0
- package/dist/css/component-css/pds-stepper.css +3 -1
- package/dist/css/component-css/pds-text-input.css +1 -1
- package/dist/css/design-tokens/variables.dark.css +1 -0
- package/dist/css/design-tokens/variables.global.css +1 -2
- package/dist/css/design-tokens/variables.light.css +1 -0
- package/dist/css/layout-css/pds-index.css +1 -1
- package/dist/css/layout-css/pds-stat-panel-group.css +1 -0
- package/dist/css/pds-components.css +15 -13
- package/dist/css/pds-core.css +1 -1
- package/dist/css/pds-layouts.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +286 -208
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +2 -0
- package/dist/layouts/StatPanelGroup/StatPanelGroup.d.ts +32 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2427,18 +2427,26 @@ var rt = Object.create, it = Object.defineProperty, at = Object.getOwnPropertyDe
|
|
|
2427
2427
|
]),
|
|
2428
2428
|
...d
|
|
2429
2429
|
}, o ? S : x);
|
|
2430
|
-
}, xt =
|
|
2431
|
-
|
|
2430
|
+
}, xt = {
|
|
2431
|
+
xs: "s",
|
|
2432
|
+
s: "s",
|
|
2433
|
+
m: "m"
|
|
2434
|
+
}, St = ({ className: t, color: n = "brand-muted", iconName: r, label: i, size: a = "s", ...o }) => {
|
|
2435
|
+
let s = "pds-badge", c = `${s}--${n}`, l = `${s}--${a}`;
|
|
2432
2436
|
return /* @__PURE__ */ e.createElement("span", {
|
|
2433
2437
|
className: Z([
|
|
2434
|
-
o,
|
|
2435
2438
|
s,
|
|
2436
2439
|
c,
|
|
2440
|
+
l,
|
|
2437
2441
|
t ?? ""
|
|
2438
2442
|
]),
|
|
2439
|
-
...
|
|
2440
|
-
}, /* @__PURE__ */ e.createElement(
|
|
2441
|
-
|
|
2443
|
+
...o
|
|
2444
|
+
}, r && /* @__PURE__ */ e.createElement(Q, {
|
|
2445
|
+
className: `${s}__icon`,
|
|
2446
|
+
iconName: r,
|
|
2447
|
+
size: xt[a]
|
|
2448
|
+
}), /* @__PURE__ */ e.createElement("span", { className: `${s}__label` }, i));
|
|
2449
|
+
}, Ct = "10rem", wt = "8rem", Tt = "6rem", Et = "5rem", Dt = "4rem", Ot = "3rem", kt = "2.5rem", At = "2rem", jt = "1.5rem", Mt = "1.25rem", Nt = "1rem", Pt = "0.75rem", Ft = "0.625rem", It = "0.5rem", Lt = "0.375rem", Rt = "0.25rem", zt = "0.125rem", Bt = 9999, Vt = {
|
|
2442
2450
|
SPACING_5XS: zt,
|
|
2443
2451
|
SPACING_4XS: Rt,
|
|
2444
2452
|
SPACING_3XS: Lt,
|
|
@@ -2719,12 +2727,12 @@ var rt = Object.create, it = Object.defineProperty, at = Object.getOwnPropertyDe
|
|
|
2719
2727
|
className: `${c}__track`,
|
|
2720
2728
|
cx: "12",
|
|
2721
2729
|
cy: "12",
|
|
2722
|
-
r: "
|
|
2730
|
+
r: "10.5"
|
|
2723
2731
|
}), /* @__PURE__ */ e.createElement("g", { className: `${c}__rotator` }, /* @__PURE__ */ e.createElement("circle", {
|
|
2724
2732
|
className: `${c}__arc`,
|
|
2725
2733
|
cx: "12",
|
|
2726
2734
|
cy: "12",
|
|
2727
|
-
r: "
|
|
2735
|
+
r: "10.5"
|
|
2728
2736
|
}))), a && !r ? /* @__PURE__ */ e.createElement("span", {
|
|
2729
2737
|
className: `${c}__label`,
|
|
2730
2738
|
style: m
|
|
@@ -3676,7 +3684,7 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3676
3684
|
isInline: !0,
|
|
3677
3685
|
className: `${p}__spinner`,
|
|
3678
3686
|
color: "currentColor",
|
|
3679
|
-
size: "
|
|
3687
|
+
size: "l"
|
|
3680
3688
|
}), t.iconName && !t.isLoading && /* @__PURE__ */ e.createElement(Q, {
|
|
3681
3689
|
className: `${p}__icon`,
|
|
3682
3690
|
iconName: t.iconName
|
|
@@ -3712,40 +3720,43 @@ var Gn = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
3712
3720
|
offsetValue: 8
|
|
3713
3721
|
}) : u));
|
|
3714
3722
|
})));
|
|
3715
|
-
}, rr = ({ actionItems: t, className: n, disabled: r,
|
|
3716
|
-
let
|
|
3717
|
-
return "isLink" in
|
|
3718
|
-
className: `${
|
|
3723
|
+
}, rr = ({ actionItems: t, className: n, disabled: r, iconName: i, id: a, moreActionsLabel: o = "More actions", size: s = "s", variant: c = "primary", ...l }) => {
|
|
3724
|
+
let u = "pds-split-button", d = `${u}--${c}`, f = t[0], p = t.slice(1), m = null;
|
|
3725
|
+
return "isLink" in f && f.isLink === !0 ? m = /* @__PURE__ */ e.createElement(On, {
|
|
3726
|
+
className: `${u}__primary-action`,
|
|
3719
3727
|
disabled: r,
|
|
3720
|
-
displayType: "label-only",
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3728
|
+
displayType: i ? "icon-start" : "label-only",
|
|
3729
|
+
iconName: i,
|
|
3730
|
+
linkContent: f.linkContent,
|
|
3731
|
+
size: s,
|
|
3732
|
+
variant: c
|
|
3733
|
+
}) : "label" in f && (m = /* @__PURE__ */ e.createElement(Dn, {
|
|
3734
|
+
className: `${u}__primary-action`,
|
|
3726
3735
|
disabled: r,
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3736
|
+
displayType: i ? "icon-start" : "label-only",
|
|
3737
|
+
iconName: i,
|
|
3738
|
+
label: f.label,
|
|
3739
|
+
onClick: () => f.callback(),
|
|
3740
|
+
size: s,
|
|
3741
|
+
variant: c
|
|
3731
3742
|
})), /* @__PURE__ */ e.createElement("span", {
|
|
3732
3743
|
className: Z([
|
|
3733
|
-
l,
|
|
3734
3744
|
u,
|
|
3745
|
+
d,
|
|
3735
3746
|
n
|
|
3736
3747
|
]),
|
|
3737
|
-
id:
|
|
3738
|
-
...
|
|
3739
|
-
},
|
|
3748
|
+
id: a,
|
|
3749
|
+
...l
|
|
3750
|
+
}, m, /* @__PURE__ */ e.createElement(tr, {
|
|
3740
3751
|
isSplitButton: !0,
|
|
3741
|
-
className: `${
|
|
3752
|
+
className: `${u}__menu-button`,
|
|
3742
3753
|
disabled: r,
|
|
3743
|
-
id: `${
|
|
3744
|
-
label:
|
|
3745
|
-
menuItems:
|
|
3746
|
-
size:
|
|
3754
|
+
id: `${a}-menu`,
|
|
3755
|
+
label: o,
|
|
3756
|
+
menuItems: p,
|
|
3757
|
+
size: s,
|
|
3747
3758
|
testId: null,
|
|
3748
|
-
variant:
|
|
3759
|
+
variant: c
|
|
3749
3760
|
}));
|
|
3750
3761
|
}, ir = ({ className: t, platformType: n, size: r = "2xl", ...i }) => {
|
|
3751
3762
|
let a = `pds-platform-icon--${n}`, o = `pds-platform-icon--${r}`;
|
|
@@ -7028,11 +7039,11 @@ var Hr = {
|
|
|
7028
7039
|
let re = R || y, ie = V !== void 0, ae = n !== void 0, oe = (e) => {
|
|
7029
7040
|
let t = A.find((t) => t.value === e);
|
|
7030
7041
|
return t ? t.label : "";
|
|
7031
|
-
}, [Y, X] = g(ae ? n : void 0), [ce, le] = g(ie ? V ?? "" : ae ? oe(n) : "");
|
|
7042
|
+
}, [Y, X] = g(ae ? n : void 0), [ce, le] = g(ie ? V ?? "" : ae ? oe(n) : ""), ue = s && !ce;
|
|
7032
7043
|
u(() => {
|
|
7033
7044
|
ie && le(V ?? "");
|
|
7034
7045
|
}, [ie, V]);
|
|
7035
|
-
let
|
|
7046
|
+
let de = h(null), fe = (e) => e.map(({ label: e, optionDisplay: t, searchIndex: n, value: r, ...i }) => {
|
|
7036
7047
|
let a = r || e, o = [e, r];
|
|
7037
7048
|
return n && o.push(...n), {
|
|
7038
7049
|
label: e,
|
|
@@ -7041,8 +7052,8 @@ var Hr = {
|
|
|
7041
7052
|
optionDisplay: t,
|
|
7042
7053
|
...i
|
|
7043
7054
|
};
|
|
7044
|
-
}),
|
|
7045
|
-
let e =
|
|
7055
|
+
}), pe = m(() => {
|
|
7056
|
+
let e = fe(A);
|
|
7046
7057
|
if (!ce && !F) return [];
|
|
7047
7058
|
let t = (ce ?? "").toLowerCase();
|
|
7048
7059
|
return e.filter((e) => (e.searchIndex?.map((e) => e.toLowerCase()) ?? []).some((e) => e.includes(t)));
|
|
@@ -7051,10 +7062,10 @@ var Hr = {
|
|
|
7051
7062
|
ce,
|
|
7052
7063
|
F,
|
|
7053
7064
|
f
|
|
7054
|
-
]), { getInputProps:
|
|
7065
|
+
]), { getInputProps: me, getItemProps: he, getMenuProps: ge, highlightedIndex: _e, isOpen: ve, openMenu: ye, reset: be } = se({
|
|
7055
7066
|
id: l,
|
|
7056
7067
|
inputId: `input-${l}`,
|
|
7057
|
-
items:
|
|
7068
|
+
items: pe,
|
|
7058
7069
|
itemToString: (e) => e ? e.label : "",
|
|
7059
7070
|
inputValue: ce,
|
|
7060
7071
|
onInputValueChange: ({ inputValue: e }) => {
|
|
@@ -7080,8 +7091,8 @@ var Hr = {
|
|
|
7080
7091
|
}
|
|
7081
7092
|
return t;
|
|
7082
7093
|
}
|
|
7083
|
-
}), { context:
|
|
7084
|
-
open:
|
|
7094
|
+
}), { context: xe, floatingStyles: Se, refs: Ce } = M({
|
|
7095
|
+
open: ve,
|
|
7085
7096
|
whileElementsMounted: w,
|
|
7086
7097
|
placement: "bottom-start",
|
|
7087
7098
|
strategy: "absolute",
|
|
@@ -7104,7 +7115,7 @@ var Hr = {
|
|
|
7104
7115
|
}),
|
|
7105
7116
|
T({ padding: 24 })
|
|
7106
7117
|
]
|
|
7107
|
-
}), { isMounted:
|
|
7118
|
+
}), { isMounted: we, styles: Te } = z(xe, {
|
|
7108
7119
|
duration: {
|
|
7109
7120
|
open: 300,
|
|
7110
7121
|
close: 150
|
|
@@ -7112,20 +7123,20 @@ var Hr = {
|
|
|
7112
7123
|
initial: { opacity: 0 },
|
|
7113
7124
|
open: { opacity: 1 },
|
|
7114
7125
|
close: { opacity: 0 }
|
|
7115
|
-
}),
|
|
7116
|
-
|
|
7117
|
-
}, [U,
|
|
7118
|
-
|
|
7119
|
-
},
|
|
7120
|
-
ie || le(""), X(void 0),
|
|
7121
|
-
}, Oe = (e) => {
|
|
7122
|
-
x?.(Y);
|
|
7126
|
+
}), Ee = c((e) => {
|
|
7127
|
+
Ce.setReference(e), typeof U == "function" ? U(e) : U && "current" in U && (U.current = e);
|
|
7128
|
+
}, [U, Ce]), De = () => {
|
|
7129
|
+
ve ? be() : ye();
|
|
7130
|
+
}, Oe = () => {
|
|
7131
|
+
ie || le(""), X(void 0), be(), de.current?.focus(), F && ye(), C?.();
|
|
7123
7132
|
}, ke = (e) => {
|
|
7124
|
-
|
|
7125
|
-
}, Ae = () =>
|
|
7133
|
+
x?.(Y);
|
|
7134
|
+
}, Ae = (e) => {
|
|
7135
|
+
F && ye(), D?.(Y);
|
|
7136
|
+
}, je = () => pe.map((t, n) => /* @__PURE__ */ e.createElement(gn, {
|
|
7126
7137
|
key: t.value,
|
|
7127
|
-
className:
|
|
7128
|
-
...
|
|
7138
|
+
className: _e === n ? "pds-dropdown__item--focused" : "",
|
|
7139
|
+
...he({
|
|
7129
7140
|
item: t,
|
|
7130
7141
|
index: n
|
|
7131
7142
|
})
|
|
@@ -7151,59 +7162,59 @@ var Hr = {
|
|
|
7151
7162
|
showLabel: P,
|
|
7152
7163
|
tooltipText: L
|
|
7153
7164
|
}), /* @__PURE__ */ e.createElement("span", {
|
|
7154
|
-
ref:
|
|
7165
|
+
ref: Ee,
|
|
7155
7166
|
"aria-describedby": re ? `${l}__message` : null,
|
|
7156
7167
|
"aria-disabled": r ? !0 : null,
|
|
7157
7168
|
"aria-invalid": B === "error" ? !0 : null,
|
|
7158
7169
|
"aria-required": N ? !0 : null,
|
|
7159
|
-
className: `${G}__input-wrapper`,
|
|
7170
|
+
className: Z([`${G}__input-wrapper`, ue ? `${G}__input-wrapper--has-search-shortcut` : null]),
|
|
7160
7171
|
id: l
|
|
7161
7172
|
}, ne && /* @__PURE__ */ e.createElement(un, { variant: ne }), /* @__PURE__ */ e.createElement("input", {
|
|
7162
|
-
ref:
|
|
7173
|
+
ref: de,
|
|
7163
7174
|
autoComplete: "off",
|
|
7164
7175
|
className: `${G}__input`,
|
|
7165
7176
|
id: `input-${l}`,
|
|
7166
|
-
...
|
|
7177
|
+
...me({
|
|
7167
7178
|
"aria-label": _.inputInstructions,
|
|
7168
7179
|
disabled: r,
|
|
7169
7180
|
placeholder: j,
|
|
7170
|
-
onBlur:
|
|
7181
|
+
onBlur: ke,
|
|
7171
7182
|
onChange: (e) => {
|
|
7172
7183
|
S?.(e);
|
|
7173
7184
|
},
|
|
7174
|
-
onFocus:
|
|
7185
|
+
onFocus: Ae
|
|
7175
7186
|
})
|
|
7176
7187
|
}), ce && i && /* @__PURE__ */ e.createElement(fn, {
|
|
7177
7188
|
clearLabel: _.clearButton,
|
|
7178
|
-
handleClearInput:
|
|
7189
|
+
handleClearInput: Oe,
|
|
7179
7190
|
id: `input-${l}`
|
|
7180
|
-
}),
|
|
7191
|
+
}), ue && /* @__PURE__ */ e.createElement(dn, {
|
|
7181
7192
|
inputId: `input-${l}`,
|
|
7182
7193
|
shortcutLabel: _.searchShortcut
|
|
7183
7194
|
}), a && /* @__PURE__ */ e.createElement("button", {
|
|
7184
|
-
"aria-expanded":
|
|
7195
|
+
"aria-expanded": ve,
|
|
7185
7196
|
"aria-label": _.triggerButton,
|
|
7186
7197
|
className: `${G}__trigger`,
|
|
7187
7198
|
disabled: r,
|
|
7188
|
-
onClick:
|
|
7199
|
+
onClick: De,
|
|
7189
7200
|
type: "button"
|
|
7190
7201
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
7191
7202
|
className: `${G}__trigger-icon`,
|
|
7192
7203
|
iconName: "angleDown",
|
|
7193
7204
|
size: "m"
|
|
7194
7205
|
}))), /* @__PURE__ */ e.createElement("div", {
|
|
7195
|
-
ref:
|
|
7206
|
+
ref: Ce.setFloating,
|
|
7196
7207
|
className: `pds-dropdown__panel ${G}__dropdown`,
|
|
7197
|
-
style:
|
|
7198
|
-
...
|
|
7199
|
-
...
|
|
7208
|
+
style: we ? {
|
|
7209
|
+
...Se,
|
|
7210
|
+
...Te,
|
|
7200
7211
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
7201
7212
|
} : { display: "none" }
|
|
7202
|
-
},
|
|
7213
|
+
}, we && f && /* @__PURE__ */ e.createElement("div", { className: `${G}__loading` }, v), we && !f && pe.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, b), /* @__PURE__ */ e.createElement("ul", {
|
|
7203
7214
|
className: `${G}__options`,
|
|
7204
|
-
...
|
|
7205
|
-
style:
|
|
7206
|
-
},
|
|
7215
|
+
...ge(),
|
|
7216
|
+
style: we && !f && pe.length > 0 ? void 0 : { display: "none" }
|
|
7217
|
+
}, we && !f && je())), re && /* @__PURE__ */ e.createElement(cn, {
|
|
7207
7218
|
hasValidationMessage: !!R,
|
|
7208
7219
|
id: l,
|
|
7209
7220
|
message: re,
|
|
@@ -8452,6 +8463,8 @@ var Hr = {
|
|
|
8452
8463
|
R || B(e.target.value), d && d(e);
|
|
8453
8464
|
}, U = (e) => {
|
|
8454
8465
|
u && u(e);
|
|
8466
|
+
}, W = (e) => {
|
|
8467
|
+
m && e.preventDefault();
|
|
8455
8468
|
};
|
|
8456
8469
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8457
8470
|
className: Z([
|
|
@@ -8491,6 +8504,7 @@ var Hr = {
|
|
|
8491
8504
|
onBlur: U,
|
|
8492
8505
|
onChange: H,
|
|
8493
8506
|
onFocus: f,
|
|
8507
|
+
onMouseDown: W,
|
|
8494
8508
|
placeholder: p,
|
|
8495
8509
|
readOnly: m,
|
|
8496
8510
|
required: h,
|
|
@@ -8514,8 +8528,10 @@ var Hr = {
|
|
|
8514
8528
|
}, type: O = "text", validationMessage: k, validationStatus: A, value: j, ...M }, N) => {
|
|
8515
8529
|
let P = rn(d), F = "pds-text-input", I = a ? $.disabled : null, L = x && !a ? $.required : null, R = A === "error" ? $.error : null, z = A === "success" ? $.success : null, B = b ? $.readonly : null, V = T === "s" ? null : `${F}--${T}`, H = c && O === "url" ? `${F}--has-url-prefix` : null, U = null;
|
|
8516
8530
|
O === "search" && (U = "search"), O === "search" && S === "filter" && (U = "filter"), A === "error" && (U = "error"), A === "success" && (U = "success");
|
|
8517
|
-
let W = k || p, G = j !== void 0, [K, q] = g(i === void 0 ? "" : i), J = j || K, ee = (e) => {
|
|
8518
|
-
|
|
8531
|
+
let W = k || p, G = j !== void 0, [K, q] = g(i === void 0 ? "" : i), J = j || K, ee = s && O === "search" && !J, te = (e) => {
|
|
8532
|
+
b && e.preventDefault();
|
|
8533
|
+
}, ne = (e) => {
|
|
8534
|
+
if (w && ae && oe(!1), c && O === "url") {
|
|
8519
8535
|
let t = an(e.target.value), n = {
|
|
8520
8536
|
...e,
|
|
8521
8537
|
target: {
|
|
@@ -8525,7 +8541,7 @@ var Hr = {
|
|
|
8525
8541
|
};
|
|
8526
8542
|
m && m(n);
|
|
8527
8543
|
} else m && m(e);
|
|
8528
|
-
},
|
|
8544
|
+
}, re = (e) => {
|
|
8529
8545
|
if (c && O === "url") {
|
|
8530
8546
|
let t = an(e.target.value), n = {
|
|
8531
8547
|
...e,
|
|
@@ -8536,16 +8552,16 @@ var Hr = {
|
|
|
8536
8552
|
};
|
|
8537
8553
|
G || q(t), h && h(n);
|
|
8538
8554
|
} else G || q(e.target.value), h && h(e);
|
|
8539
|
-
},
|
|
8555
|
+
}, ie = () => {
|
|
8540
8556
|
G || q(""), _ && _();
|
|
8541
8557
|
let e = document.getElementById(l);
|
|
8542
8558
|
e && e.focus();
|
|
8543
|
-
}, [
|
|
8544
|
-
|
|
8559
|
+
}, [ae, oe] = g(!1), Y = () => {
|
|
8560
|
+
oe((e) => !e);
|
|
8545
8561
|
let e = document.getElementById(l);
|
|
8546
8562
|
e && e.focus();
|
|
8547
|
-
},
|
|
8548
|
-
return w && O === "password" && (
|
|
8563
|
+
}, se = O;
|
|
8564
|
+
return w && O === "password" && (se = ae ? "text" : "password"), /* @__PURE__ */ e.createElement("div", {
|
|
8549
8565
|
className: Z([
|
|
8550
8566
|
$.base,
|
|
8551
8567
|
F,
|
|
@@ -8570,7 +8586,11 @@ var Hr = {
|
|
|
8570
8586
|
}), w && O === "password" && /* @__PURE__ */ e.createElement("div", {
|
|
8571
8587
|
"aria-live": "polite",
|
|
8572
8588
|
className: "visually-hidden"
|
|
8573
|
-
}, `${D.visibilityStatus} ${
|
|
8589
|
+
}, `${D.visibilityStatus} ${ae ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: Z([
|
|
8590
|
+
`${F}__input-wrapper`,
|
|
8591
|
+
c && O === "url" ? `${F}__input-wrapper--has-prefix` : null,
|
|
8592
|
+
ee ? `${F}__input-wrapper--has-search-shortcut` : null
|
|
8593
|
+
]) }, U && /* @__PURE__ */ e.createElement(un, { variant: U }), c && O === "url" && /* @__PURE__ */ e.createElement(ji, null), /* @__PURE__ */ e.createElement("input", {
|
|
8574
8594
|
ref: N,
|
|
8575
8595
|
"aria-describedby": W ? `${l}__message` : null,
|
|
8576
8596
|
"aria-invalid": A === "error" ? !0 : null,
|
|
@@ -8579,30 +8599,31 @@ var Hr = {
|
|
|
8579
8599
|
disabled: a,
|
|
8580
8600
|
id: l,
|
|
8581
8601
|
name: l,
|
|
8582
|
-
onBlur:
|
|
8583
|
-
onChange:
|
|
8602
|
+
onBlur: ne,
|
|
8603
|
+
onChange: re,
|
|
8584
8604
|
onFocus: v,
|
|
8605
|
+
onMouseDown: te,
|
|
8585
8606
|
placeholder: y,
|
|
8586
8607
|
readOnly: b,
|
|
8587
8608
|
required: x,
|
|
8588
|
-
type:
|
|
8609
|
+
type: se,
|
|
8589
8610
|
value: G ? j : K,
|
|
8590
8611
|
...u
|
|
8591
8612
|
}), o && J && /* @__PURE__ */ e.createElement(fn, {
|
|
8592
8613
|
clearLabel: D.clearButton,
|
|
8593
|
-
handleClearInput:
|
|
8614
|
+
handleClearInput: ie,
|
|
8594
8615
|
id: l
|
|
8595
8616
|
}), w && O === "password" && /* @__PURE__ */ e.createElement("button", {
|
|
8596
8617
|
"aria-controls": l,
|
|
8597
8618
|
className: `${F}__visibility-toggle`,
|
|
8598
|
-
onClick:
|
|
8619
|
+
onClick: Y,
|
|
8599
8620
|
onMouseDown: (e) => e.preventDefault(),
|
|
8600
|
-
title:
|
|
8621
|
+
title: ae ? D.visibilityToggleHide : D.visibilityToggleShow,
|
|
8601
8622
|
type: "button"
|
|
8602
8623
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
8603
|
-
iconName:
|
|
8624
|
+
iconName: ae ? "eyeSlash" : "eye",
|
|
8604
8625
|
size: "m"
|
|
8605
|
-
})),
|
|
8626
|
+
})), ee && /* @__PURE__ */ e.createElement(dn, {
|
|
8606
8627
|
inputId: l,
|
|
8607
8628
|
shortcutLabel: D.searchShortcut
|
|
8608
8629
|
}), r && O !== "password" && /* @__PURE__ */ e.createElement(pn, {
|
|
@@ -10042,9 +10063,9 @@ var Hr = {
|
|
|
10042
10063
|
]),
|
|
10043
10064
|
role: l,
|
|
10044
10065
|
...o
|
|
10045
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__icon ${s}__icon-${i}` }, i === "working" ? /* @__PURE__ */ e.createElement(bn, { size: "
|
|
10066
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__icon ${s}__icon-${i}` }, i === "working" ? /* @__PURE__ */ e.createElement(bn, { size: "l" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
10046
10067
|
iconName: `${i}` in pa ? pa[i] : pa.info,
|
|
10047
|
-
size: "
|
|
10068
|
+
size: "l"
|
|
10048
10069
|
})), /* @__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)));
|
|
10049
10070
|
}, ha = {
|
|
10050
10071
|
info: "circleInfo",
|
|
@@ -10052,55 +10073,56 @@ var Hr = {
|
|
|
10052
10073
|
success: "circleCheck",
|
|
10053
10074
|
critical: "diamondExclamation",
|
|
10054
10075
|
discovery: "squareQuestion"
|
|
10055
|
-
}, ga = ({ className: t, ctaButton: n,
|
|
10056
|
-
let m =
|
|
10057
|
-
error: `${
|
|
10058
|
-
success: `${
|
|
10059
|
-
warning: `${
|
|
10060
|
-
info: `${
|
|
10061
|
-
critical: `${
|
|
10062
|
-
discovery: `${
|
|
10063
|
-
dismissing: `${
|
|
10064
|
-
dismissed: `${
|
|
10065
|
-
},
|
|
10076
|
+
}, ga = ({ className: t, ctaButton: n, ctaIcon: r, dismissLabel: i = "Dismiss", id: a, isDismissible: o, message: s, onDismiss: c, title: l, type: d = "info", typeLabels: f = Jn, ...p }) => {
|
|
10077
|
+
let m = h(null), g = h(void 0), _ = "pds-section-message", v = {
|
|
10078
|
+
error: `${_}--error`,
|
|
10079
|
+
success: `${_}--success`,
|
|
10080
|
+
warning: `${_}--warning`,
|
|
10081
|
+
info: `${_}--info`,
|
|
10082
|
+
critical: `${_}--critical`,
|
|
10083
|
+
discovery: `${_}--discovery`,
|
|
10084
|
+
dismissing: `${_}--dismissing`,
|
|
10085
|
+
dismissed: `${_}--dismissed`
|
|
10086
|
+
}, y = o ? `${_}--hasDismiss` : null, b = l ? `${_}--hasTitle` : null, x = d === "critical" ? "alert" : "status", S = `${f[d]}: `, C = typeof s == "string" ? /* @__PURE__ */ e.createElement("p", null, s) : s;
|
|
10066
10087
|
u(() => () => {
|
|
10067
|
-
|
|
10088
|
+
g.current && clearTimeout(g.current);
|
|
10068
10089
|
}, []);
|
|
10069
|
-
let
|
|
10070
|
-
|
|
10071
|
-
},
|
|
10090
|
+
let w = () => {
|
|
10091
|
+
m.current?.addEventListener("animationend", T, { once: !0 });
|
|
10092
|
+
}, T = (e) => {
|
|
10072
10093
|
c?.(e, a);
|
|
10073
|
-
},
|
|
10074
|
-
|
|
10075
|
-
|
|
10094
|
+
}, E = () => {
|
|
10095
|
+
w(), m.current?.classList.toggle(v.dismissing), g.current = setTimeout(() => {
|
|
10096
|
+
m.current && (m.current.classList.toggle(v.dismissing), m.current.classList.toggle(v.dismissed));
|
|
10076
10097
|
}, 400);
|
|
10077
10098
|
};
|
|
10078
10099
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10079
|
-
ref:
|
|
10100
|
+
ref: m,
|
|
10080
10101
|
className: Z([
|
|
10081
|
-
|
|
10082
|
-
|
|
10102
|
+
_,
|
|
10103
|
+
v[d],
|
|
10104
|
+
y,
|
|
10083
10105
|
b,
|
|
10084
|
-
x,
|
|
10085
10106
|
t ?? ""
|
|
10086
10107
|
]),
|
|
10087
|
-
"data-context": r,
|
|
10088
10108
|
id: a,
|
|
10089
|
-
role:
|
|
10109
|
+
role: x,
|
|
10090
10110
|
...p
|
|
10091
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10111
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${_}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${_}__icon ${_}__icon-${d}` }, /* @__PURE__ */ e.createElement(Q, {
|
|
10092
10112
|
iconName: `${d}` in ha ? ha[d] : ha.info,
|
|
10093
|
-
size:
|
|
10094
|
-
})), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10113
|
+
size: "l"
|
|
10114
|
+
})), /* @__PURE__ */ e.createElement("div", { className: `${_}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, S), l && /* @__PURE__ */ e.createElement("div", { className: `${_}__title` }, l), /* @__PURE__ */ e.createElement("div", { className: `${_}__message` }, C))), (n || o) && /* @__PURE__ */ e.createElement("div", { className: `${_}__actions` }, n && /* @__PURE__ */ e.createElement(Dn, {
|
|
10095
10115
|
...n,
|
|
10096
|
-
className: `${
|
|
10097
|
-
|
|
10116
|
+
className: `${_}__cta`,
|
|
10117
|
+
displayType: r ? "icon-start" : n.displayType,
|
|
10118
|
+
iconName: r ?? n.iconName,
|
|
10119
|
+
size: "s",
|
|
10098
10120
|
variant: "secondary"
|
|
10099
10121
|
}), o && /* @__PURE__ */ e.createElement(Mn, {
|
|
10100
10122
|
ariaLabel: i,
|
|
10101
|
-
className: `${
|
|
10102
|
-
onClick:
|
|
10103
|
-
size:
|
|
10123
|
+
className: `${_}__dismiss`,
|
|
10124
|
+
onClick: E,
|
|
10125
|
+
size: "m"
|
|
10104
10126
|
})));
|
|
10105
10127
|
}, _a = 3e4, va = {
|
|
10106
10128
|
pause: "Pause notification",
|
|
@@ -10155,7 +10177,7 @@ var Hr = {
|
|
|
10155
10177
|
r
|
|
10156
10178
|
]),
|
|
10157
10179
|
id: i
|
|
10158
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${c}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(bn, { size: "
|
|
10180
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${c}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(bn, { size: "l" }) : /* @__PURE__ */ e.createElement(Q, {
|
|
10159
10181
|
className: `${c}__icon ${c}__icon--${o}`,
|
|
10160
10182
|
iconName: Sa[o],
|
|
10161
10183
|
size: "l"
|
|
@@ -10941,7 +10963,7 @@ var Hr = {
|
|
|
10941
10963
|
context: V,
|
|
10942
10964
|
fill: "var(--pds-color-surface-default)",
|
|
10943
10965
|
height: Ga,
|
|
10944
|
-
stroke: "var(--pds-color-
|
|
10966
|
+
stroke: "var(--pds-color-border-default)",
|
|
10945
10967
|
strokeWidth: 1,
|
|
10946
10968
|
tipRadius: 0,
|
|
10947
10969
|
width: Ka
|
|
@@ -11605,11 +11627,47 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11605
11627
|
key: t.id,
|
|
11606
11628
|
className: `${w}__cell`
|
|
11607
11629
|
}, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
|
|
11608
|
-
}, xo =
|
|
11630
|
+
}, xo = ({ actionCallback: t, actionIcon: n = "barsFilter", actionLabel: r, className: i, description: a, icon: o, iconColor: s = "neutral", isActive: c = !1, isLoading: l = !1, stat: u, title: f, ...p }) => {
|
|
11631
|
+
let m = "pds-stat-panel", h = s === "neutral" ? null : `${m}--${s}`, g = c ? `${m}--active` : null, _ = d(), v = n && r && t;
|
|
11632
|
+
return /* @__PURE__ */ e.createElement("div", {
|
|
11633
|
+
"aria-labelledby": _,
|
|
11634
|
+
className: Z([
|
|
11635
|
+
m,
|
|
11636
|
+
h,
|
|
11637
|
+
g,
|
|
11638
|
+
i ?? ""
|
|
11639
|
+
]),
|
|
11640
|
+
role: "group",
|
|
11641
|
+
...p
|
|
11642
|
+
}, /* @__PURE__ */ e.createElement("div", { className: Z([`${m}__header`, v ? `${m}__header--has-action` : null]) }, /* @__PURE__ */ e.createElement("span", {
|
|
11643
|
+
className: `${m}__title`,
|
|
11644
|
+
id: _
|
|
11645
|
+
}, f), v && /* @__PURE__ */ e.createElement(An, {
|
|
11646
|
+
ariaLabel: r,
|
|
11647
|
+
className: `${m}__action`,
|
|
11648
|
+
iconName: n,
|
|
11649
|
+
isPressed: c,
|
|
11650
|
+
onClick: t,
|
|
11651
|
+
size: "s"
|
|
11652
|
+
})), /* @__PURE__ */ e.createElement("div", { className: `${m}__body` }, o === "spinner" ? /* @__PURE__ */ e.createElement(bn, {
|
|
11653
|
+
isInline: !0,
|
|
11654
|
+
className: `${m}__icon ${m}__icon--spinner`,
|
|
11655
|
+
size: "l"
|
|
11656
|
+
}) : o && /* @__PURE__ */ e.createElement(Q, {
|
|
11657
|
+
className: `${m}__icon`,
|
|
11658
|
+
iconName: o,
|
|
11659
|
+
size: "l"
|
|
11660
|
+
}), l ? /* @__PURE__ */ e.createElement(kr, {
|
|
11661
|
+
className: `${m}__stat-skeleton`,
|
|
11662
|
+
shape: "text-block",
|
|
11663
|
+
size: { width: 6 },
|
|
11664
|
+
textSize: "xl"
|
|
11665
|
+
}) : u && /* @__PURE__ */ e.createElement("span", { className: `${m}__stat` }, u)), a && /* @__PURE__ */ e.createElement("p", { className: `${m}__description` }, a));
|
|
11666
|
+
}, So = [
|
|
11609
11667
|
"default",
|
|
11610
11668
|
"working",
|
|
11611
11669
|
"checked"
|
|
11612
|
-
],
|
|
11670
|
+
], Co = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
|
|
11613
11671
|
let l = {
|
|
11614
11672
|
checkForUpdates: "Check for updates",
|
|
11615
11673
|
checking: "Checking...",
|
|
@@ -11656,7 +11714,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11656
11714
|
triggerIconColor: "default",
|
|
11657
11715
|
triggerIconSize: "s"
|
|
11658
11716
|
}), t === "left" && g));
|
|
11659
|
-
},
|
|
11717
|
+
}, wo = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
|
|
11660
11718
|
let o = "pds-status-indicator", c = `${o}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(bn, {
|
|
11661
11719
|
className: `${o}__spinner`,
|
|
11662
11720
|
size: "m"
|
|
@@ -11673,7 +11731,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11673
11731
|
]),
|
|
11674
11732
|
...a
|
|
11675
11733
|
}, r ? d : l);
|
|
11676
|
-
},
|
|
11734
|
+
}, To = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
|
|
11677
11735
|
let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
|
|
11678
11736
|
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`;
|
|
11679
11737
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -11691,20 +11749,20 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11691
11749
|
style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
|
|
11692
11750
|
...a
|
|
11693
11751
|
}, l);
|
|
11694
|
-
},
|
|
11752
|
+
}, Eo = ({ className: t, steps: n, translatableLabels: r = {
|
|
11695
11753
|
step: "Step",
|
|
11696
11754
|
completed: "completed",
|
|
11697
11755
|
hasError: "has an error",
|
|
11698
11756
|
next: "Next"
|
|
11699
11757
|
}, ...i }) => {
|
|
11700
|
-
let a = "pds-stepper", o = "pds-stepper-mobile", s = h(null), [c] = Ue(s), l = c.width, u =
|
|
11701
|
-
let i = n + 1, o = n ===
|
|
11702
|
-
(
|
|
11703
|
-
let
|
|
11704
|
-
o &&
|
|
11705
|
-
let
|
|
11706
|
-
s && (
|
|
11707
|
-
let
|
|
11758
|
+
let a = "pds-stepper", o = "pds-stepper-mobile", s = h(null), [c] = Ue(s), l = c.width, u = n.length, d = n.map((e) => e.isCurrent).lastIndexOf(!0), f = n.map((t, n) => {
|
|
11759
|
+
let i = n + 1, o = n === d, s = t.isComplete || n < d, c = t.hasError && o, f = (l - u * 136) / (u + (u - 2)), p = 136 + f * 2, m = 136 + f, h = f + 48, g = n === 0, _ = n === u - 1, v = p;
|
|
11760
|
+
(g || _) && (v = m);
|
|
11761
|
+
let y = `${a}__step`, b = [y];
|
|
11762
|
+
o && b.push(`${y}--current`), s && b.push(`${y}--complete`), c && b.push(`${y}--error`);
|
|
11763
|
+
let x = `${r.step} ${i}`;
|
|
11764
|
+
s && (x = `${r.step} ${i}, ${r.completed}`), c && (x = `${r.step} ${i}, ${r.hasError}`);
|
|
11765
|
+
let S = s ? /* @__PURE__ */ e.createElement("div", {
|
|
11708
11766
|
"aria-hidden": "true",
|
|
11709
11767
|
className: `${a}__step-indicator`
|
|
11710
11768
|
}, /* @__PURE__ */ e.createElement("svg", {
|
|
@@ -11718,39 +11776,39 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11718
11776
|
}, /* @__PURE__ */ e.createElement("path", { d: "M9.85474 3.64666C10.1032 3.32078 10.0258 2.86817 9.67727 2.63583C9.32878 2.4035 8.84476 2.47591 8.5963 2.80179L4.8694 7.65977L3.32056 6.21143C3.01724 5.9278 2.52677 5.9278 2.22669 6.21143C1.9266 6.49506 1.92337 6.9537 2.22346 7.23734L4.41765 9.28916C4.57899 9.44003 4.80164 9.51546 5.02751 9.49736C5.25338 9.47925 5.4599 9.37063 5.59219 9.19864L9.85151 3.64666H9.85474Z" }))) : /* @__PURE__ */ e.createElement("div", {
|
|
11719
11777
|
"aria-hidden": "true",
|
|
11720
11778
|
className: `${a}__step-indicator`
|
|
11721
|
-
}),
|
|
11722
|
-
return s && t.callback && (
|
|
11779
|
+
}), C = /* @__PURE__ */ e.createElement("div", { className: `${a}__step-label` }, t.label), w = /* @__PURE__ */ e.createElement("div", { className: `${a}__step-content` }, C, S);
|
|
11780
|
+
return s && t.callback && (w = /* @__PURE__ */ e.createElement("button", {
|
|
11723
11781
|
className: `${a}__step-content`,
|
|
11724
11782
|
onClick: (e) => {
|
|
11725
11783
|
t.callback(t), e.preventDefault();
|
|
11726
11784
|
},
|
|
11727
11785
|
type: "button"
|
|
11728
|
-
},
|
|
11786
|
+
}, C, S)), /* @__PURE__ */ e.createElement("li", {
|
|
11729
11787
|
key: t.id,
|
|
11730
11788
|
"aria-current": o ? "step" : null,
|
|
11731
|
-
"aria-label":
|
|
11789
|
+
"aria-label": x,
|
|
11732
11790
|
"aria-posinset": i,
|
|
11733
|
-
"aria-setsize":
|
|
11734
|
-
className: Z(
|
|
11791
|
+
"aria-setsize": u,
|
|
11792
|
+
className: Z(b),
|
|
11735
11793
|
id: t.id,
|
|
11736
|
-
style: { width:
|
|
11737
|
-
}, !
|
|
11794
|
+
style: { width: v }
|
|
11795
|
+
}, !g && /* @__PURE__ */ e.createElement("span", {
|
|
11738
11796
|
className: `${a}__connector ${a}__connector--before`,
|
|
11739
11797
|
style: {
|
|
11740
|
-
width:
|
|
11741
|
-
marginRight: -
|
|
11798
|
+
width: h,
|
|
11799
|
+
marginRight: -48
|
|
11742
11800
|
}
|
|
11743
|
-
}),
|
|
11801
|
+
}), w, !_ && /* @__PURE__ */ e.createElement("span", {
|
|
11744
11802
|
className: `${a}__connector ${a}__connector--after`,
|
|
11745
11803
|
style: {
|
|
11746
|
-
width:
|
|
11747
|
-
marginLeft: -
|
|
11804
|
+
width: h,
|
|
11805
|
+
marginLeft: -48
|
|
11748
11806
|
}
|
|
11749
11807
|
}));
|
|
11750
|
-
}),
|
|
11751
|
-
let a = i + 1, s = i ===
|
|
11808
|
+
}), p = n.map((t, i) => {
|
|
11809
|
+
let a = i + 1, s = i === d, c = i === u - 1, l = t.hasError && s, f = n[d + 1] ? n[d + 1].label : null;
|
|
11752
11810
|
if (s) {
|
|
11753
|
-
let n = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, r.step, " "), a, " of ",
|
|
11811
|
+
let n = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, r.step, " "), a, " of ", u), i = a / u * 100, s = l ? { "--pds-color-status-info-fill": "var(--pds-color-status-critical-foreground)" } : { "--pds-color-status-info-fill": "var(--pds-color-interactive-background-current)" }, d = /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, r.step, " ", a, ", ", r.hasError);
|
|
11754
11812
|
return /* @__PURE__ */ e.createElement("div", {
|
|
11755
11813
|
key: t.id,
|
|
11756
11814
|
className: `${o}__step`,
|
|
@@ -11761,26 +11819,27 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11761
11819
|
percentage: i,
|
|
11762
11820
|
size: "s",
|
|
11763
11821
|
style: s
|
|
11764
|
-
})), /* @__PURE__ */ e.createElement("div", { className: `${o}__step-text` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__step-label` }, l && /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
11822
|
+
})), /* @__PURE__ */ e.createElement("div", { className: `${o}__step-text` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__step-label` }, l && /* @__PURE__ */ e.createElement(e.Fragment, null, d, /* @__PURE__ */ e.createElement(Q, {
|
|
11765
11823
|
className: `${o}__error-icon`,
|
|
11766
11824
|
iconName: "diamondExclamation",
|
|
11767
11825
|
size: "m"
|
|
11768
|
-
})), t.label), !c && /* @__PURE__ */ e.createElement("div", { className: `${o}__next-step` }, `${r.next}: ${
|
|
11826
|
+
})), t.label), !c && /* @__PURE__ */ e.createElement("div", { className: `${o}__next-step` }, `${r.next}: ${f}`)));
|
|
11769
11827
|
}
|
|
11770
11828
|
});
|
|
11771
|
-
if (
|
|
11829
|
+
if (u >= 2 && u <= 5) return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
|
|
11772
11830
|
className: Z([a, t]),
|
|
11773
|
-
"data-steps":
|
|
11831
|
+
"data-steps": u,
|
|
11774
11832
|
...i
|
|
11775
11833
|
}, /* @__PURE__ */ e.createElement("ol", {
|
|
11776
11834
|
ref: s,
|
|
11777
|
-
className: `${a}__steps
|
|
11778
|
-
|
|
11835
|
+
className: `${a}__steps`,
|
|
11836
|
+
style: { "--step-content-width": "8.5rem" }
|
|
11837
|
+
}, f)), /* @__PURE__ */ e.createElement("div", {
|
|
11779
11838
|
className: Z([o, t]),
|
|
11780
|
-
"data-steps":
|
|
11839
|
+
"data-steps": u,
|
|
11781
11840
|
...i
|
|
11782
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` },
|
|
11783
|
-
},
|
|
11841
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, p)));
|
|
11842
|
+
}, Do = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
|
|
11784
11843
|
let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
|
|
11785
11844
|
return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
|
|
11786
11845
|
className: Z([...p]),
|
|
@@ -11806,14 +11865,14 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11806
11865
|
size: "s",
|
|
11807
11866
|
variant: "highlight"
|
|
11808
11867
|
})))));
|
|
11809
|
-
},
|
|
11868
|
+
}, Oo = ({ className: t, labelStrings: n = {
|
|
11810
11869
|
step: "Step",
|
|
11811
11870
|
completed: "completed",
|
|
11812
11871
|
hasError: "has an error"
|
|
11813
11872
|
}, steps: r, ...i }) => {
|
|
11814
11873
|
let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
|
|
11815
11874
|
let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
|
|
11816
|
-
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(
|
|
11875
|
+
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(Do, {
|
|
11817
11876
|
key: `s${i}`,
|
|
11818
11877
|
_isFirstStep: c,
|
|
11819
11878
|
"aria-current": a ? "step" : null,
|
|
@@ -11834,7 +11893,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
11834
11893
|
className: Z([a, t ?? ""]),
|
|
11835
11894
|
...i
|
|
11836
11895
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
|
|
11837
|
-
},
|
|
11896
|
+
}, ko = ({ className: t, closeDetailPanelLabel: n = "Close detail panel", columns: r, currentPage: i, defaultSortKey: a, defaultSortOrder: o = "asc", detailPanelNav: s = !0, detailPanelTitle: c, detailPanelWidth: l, emptyState: f, emptyStateHeading: p = "No results found.", emptyStateMessage: _, footer: v, getPageSizeLabel: y = (e) => `Show ${e} rows per page`, getRowClassName: b, getRowId: x, getRowSelectDisabledReason: S, getSelectRowLabel: C = (e, t) => `Select row ${t}`, getSortLabel: w = (e) => `Sort by ${e}`, inspectedRowId: T, isLoading: E = !1, isRowSelectable: D = () => !0, itemsPerPage: O, loadingRowCount: k = 5, maxHeight: A, minHeight: j, nextDetailPanelRowLabel: M = "Next row", onDetailPanelNext: N, onDetailPanelPrev: P, onPageChange: F, onPageSizeChange: I, onRowInspect: L, onRowSelectionChange: R, onSort: z, pageSizeOptions: B, pageSizeSelectLabel: V = "Rows per page", paginationLabels: H, panel: U, prevDetailPanelRowLabel: W = "Previous row", renderDetailPanel: G, renderDetailPanelFooter: K, rowData: q, selectAllLabel: J = "Select all rows", selectedRows: ee, sortKey: te, sortOrder: ne, totalItemCount: re, ...ie }) => {
|
|
11838
11897
|
let ae = "pds-table", oe = d(), Y = d(), se = h(null), X = z !== void 0, ce = F !== void 0, le = I !== void 0, ue = ce || O !== void 0 || B !== void 0, de = q.length > 0 || ce && (re ?? 0) > 0, [fe, pe] = g({
|
|
11839
11898
|
key: a ?? "",
|
|
11840
11899
|
order: a === void 0 ? "asc" : o
|
|
@@ -12059,7 +12118,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12059
12118
|
variant: "standard"
|
|
12060
12119
|
}))))));
|
|
12061
12120
|
return U ? /* @__PURE__ */ e.createElement(La, { padding: "none" }, et) : et;
|
|
12062
|
-
},
|
|
12121
|
+
}, Ao = [
|
|
12063
12122
|
" ",
|
|
12064
12123
|
"/",
|
|
12065
12124
|
".",
|
|
@@ -12077,7 +12136,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12077
12136
|
"=",
|
|
12078
12137
|
"|",
|
|
12079
12138
|
"~"
|
|
12080
|
-
],
|
|
12139
|
+
], jo = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Mo = (e) => {
|
|
12081
12140
|
let t = [];
|
|
12082
12141
|
return e.forEach((e) => {
|
|
12083
12142
|
let { id: n, innerText: r } = e;
|
|
@@ -12090,18 +12149,18 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12090
12149
|
title: r
|
|
12091
12150
|
});
|
|
12092
12151
|
}), t;
|
|
12093
|
-
},
|
|
12152
|
+
}, No = (e, t, n) => {
|
|
12094
12153
|
let [r, i] = g([]);
|
|
12095
12154
|
return u(() => {
|
|
12096
12155
|
let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
|
|
12097
12156
|
let e = Array.from(document.querySelectorAll(r));
|
|
12098
12157
|
e.forEach((e) => {
|
|
12099
|
-
|
|
12100
|
-
e.id.includes(t) && (e.id = e.id.replace(new RegExp(
|
|
12158
|
+
Ao.forEach((t) => {
|
|
12159
|
+
e.id.includes(t) && (e.id = e.id.replace(new RegExp(jo(t), "g"), "-"));
|
|
12101
12160
|
});
|
|
12102
12161
|
}), e.forEach((e, t) => {
|
|
12103
12162
|
e.id || (e.id = `${n}-item-${t}`);
|
|
12104
|
-
}), i(
|
|
12163
|
+
}), i(Mo(e));
|
|
12105
12164
|
};
|
|
12106
12165
|
a();
|
|
12107
12166
|
let o = document.getElementById(e);
|
|
@@ -12117,7 +12176,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12117
12176
|
t,
|
|
12118
12177
|
n
|
|
12119
12178
|
]), { nestedHeadings: r };
|
|
12120
|
-
},
|
|
12179
|
+
}, Po = (e, t) => {
|
|
12121
12180
|
let [n, r] = g(void 0), i = h({});
|
|
12122
12181
|
return u(() => {
|
|
12123
12182
|
let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
|
|
@@ -12136,7 +12195,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12136
12195
|
o.disconnect(), r(void 0);
|
|
12137
12196
|
};
|
|
12138
12197
|
}, [e, t]), n;
|
|
12139
|
-
},
|
|
12198
|
+
}, Fo = ({ 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", {
|
|
12140
12199
|
key: r.id,
|
|
12141
12200
|
className: `${n}__list-item`
|
|
12142
12201
|
}, /* @__PURE__ */ e.createElement("a", {
|
|
@@ -12152,8 +12211,8 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12152
12211
|
className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
|
|
12153
12212
|
href: `#${r.id}`,
|
|
12154
12213
|
onClick: (e) => i(e, r.id)
|
|
12155
|
-
}, r.title))))))),
|
|
12156
|
-
let u = "pds-toc", { nestedHeadings: f } =
|
|
12214
|
+
}, r.title))))))), Io = ({ 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 }) => {
|
|
12215
|
+
let u = "pds-toc", { nestedHeadings: f } = No(c, o, d()), p = Po(c, o), m = (e) => {
|
|
12157
12216
|
typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
|
|
12158
12217
|
}, h = (e) => {
|
|
12159
12218
|
document.querySelector(`#${e}`)?.scrollIntoView({
|
|
@@ -12171,13 +12230,13 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12171
12230
|
baseClass: u,
|
|
12172
12231
|
className: `${s ? "" : "visually-hidden"}`,
|
|
12173
12232
|
level: i
|
|
12174
|
-
}, a), /* @__PURE__ */ e.createElement(
|
|
12233
|
+
}, a), /* @__PURE__ */ e.createElement(Fo, {
|
|
12175
12234
|
activeID: p,
|
|
12176
12235
|
baseClass: u,
|
|
12177
12236
|
headings: f,
|
|
12178
12237
|
onLinkClick: g
|
|
12179
12238
|
}));
|
|
12180
|
-
},
|
|
12239
|
+
}, Lo = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
|
|
12181
12240
|
let c = "pds-tabs", [l, d] = g(a ?? r);
|
|
12182
12241
|
u(() => {
|
|
12183
12242
|
a !== void 0 && d(a);
|
|
@@ -12291,7 +12350,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12291
12350
|
className: `${c}__panel-content`,
|
|
12292
12351
|
hidden: o !== l
|
|
12293
12352
|
}, r)))));
|
|
12294
|
-
},
|
|
12353
|
+
}, Ro = [
|
|
12295
12354
|
"orange",
|
|
12296
12355
|
"stone",
|
|
12297
12356
|
"gold",
|
|
@@ -12305,7 +12364,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12305
12364
|
"magenta",
|
|
12306
12365
|
"rose",
|
|
12307
12366
|
"red"
|
|
12308
|
-
],
|
|
12367
|
+
], zo = [
|
|
12309
12368
|
"orange-solid",
|
|
12310
12369
|
"teal-solid",
|
|
12311
12370
|
"indigo-solid",
|
|
@@ -12315,14 +12374,14 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12315
12374
|
"lime-solid",
|
|
12316
12375
|
"sky-solid",
|
|
12317
12376
|
"slate-solid"
|
|
12318
|
-
],
|
|
12377
|
+
], Bo = [
|
|
12319
12378
|
"success-solid",
|
|
12320
12379
|
"warning-solid",
|
|
12321
12380
|
"critical-solid",
|
|
12322
12381
|
"info-solid",
|
|
12323
12382
|
"discovery-solid"
|
|
12324
|
-
],
|
|
12325
|
-
let [f, p] = g(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${
|
|
12383
|
+
], Vo = [...zo, ...Bo], Ho = [...Ro, ...zo], Uo = (e) => Ho[parseInt(v(e), 16) % Ho.length], Wo = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, Go = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: o = "s", tagColor: c, tagLabel: l, truncationLength: u = 18, ...d }) => {
|
|
12384
|
+
let [f, p] = g(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${Uo(l)}`, _ = `${m}--${o}`, v = f ? null : "pds-tag--hide", y = () => {
|
|
12326
12385
|
p((e) => !e);
|
|
12327
12386
|
}, b, x, S;
|
|
12328
12387
|
if (r && !n && s(r)) {
|
|
@@ -12344,7 +12403,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12344
12403
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
12345
12404
|
className: `${m}__label`,
|
|
12346
12405
|
title: l
|
|
12347
|
-
}, u > 0 ?
|
|
12406
|
+
}, u > 0 ? Wo(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
|
|
12348
12407
|
"aria-label": `${a}: ${l}`,
|
|
12349
12408
|
className: `${m}__remove`,
|
|
12350
12409
|
onClick: () => {
|
|
@@ -12356,7 +12415,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12356
12415
|
iconName: "xmark",
|
|
12357
12416
|
size: "m"
|
|
12358
12417
|
})) : null);
|
|
12359
|
-
},
|
|
12418
|
+
}, Ko = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
|
|
12360
12419
|
let o = "pds-utility-bar", s = t === "transparent" ? null : `${o}--bg-${t}`, c = i === "none" ? null : `${o}--pad-${i}`, l = ft(n), u = l["items-left"], d = l["items-right"] ?? l.__unslotted;
|
|
12361
12420
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12362
12421
|
className: Z([
|
|
@@ -12367,7 +12426,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12367
12426
|
]),
|
|
12368
12427
|
...a
|
|
12369
12428
|
}, /* @__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)));
|
|
12370
|
-
},
|
|
12429
|
+
}, qo = () => {
|
|
12371
12430
|
let e = typeof window < "u", t = (e) => e >= 1440 ? "xl" : e >= 1280 ? "lg" : e >= 768 ? "md" : "sm", [n, r] = g(e ? t(window.innerWidth) : "lg");
|
|
12372
12431
|
return u(() => {
|
|
12373
12432
|
if (!e) return;
|
|
@@ -12378,7 +12437,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12378
12437
|
window.removeEventListener("resize", n);
|
|
12379
12438
|
};
|
|
12380
12439
|
}, []), n;
|
|
12381
|
-
},
|
|
12440
|
+
}, Jo = ({ children: t, className: n, drawerContent: r, drawerProps: i, hasDrawerToggle: o, hasSidebarToggle: s, isDrawerOpen: c = !1, isSidebarCollapsed: l, keyboardShortcuts: d = !0, labels: f, mainBackground: m, mainContentElement: _ = "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 }) => {
|
|
12382
12441
|
let [j, M] = g(l || !1);
|
|
12383
12442
|
u(() => {
|
|
12384
12443
|
M(l || !1);
|
|
@@ -12400,7 +12459,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12400
12459
|
return;
|
|
12401
12460
|
}
|
|
12402
12461
|
M(!j);
|
|
12403
|
-
}, U =
|
|
12462
|
+
}, U = qo();
|
|
12404
12463
|
u(() => {
|
|
12405
12464
|
U === "sm" && !j ? (V.current = !0, x ? x() : M(!0)) : U !== "sm" && V.current && (V.current = !1, x ? x() : M(!1));
|
|
12406
12465
|
}, [U]);
|
|
@@ -12503,7 +12562,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12503
12562
|
!e && c && b && b();
|
|
12504
12563
|
}
|
|
12505
12564
|
}, r));
|
|
12506
|
-
},
|
|
12565
|
+
}, Yo = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
|
|
12507
12566
|
let c = "pds-docs-layout", l = {
|
|
12508
12567
|
"--docs-sidebar-max-width": `${i}rem`,
|
|
12509
12568
|
"--docs-sidebar-min-width": `${a}rem`,
|
|
@@ -12521,7 +12580,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12521
12580
|
},
|
|
12522
12581
|
...s
|
|
12523
12582
|
}, f && /* @__PURE__ */ e.createElement("aside", { className: `${c}__sidebar` }, /* @__PURE__ */ e.createElement("div", { className: `${c}__sidebar-inner` }, f)), /* @__PURE__ */ e.createElement("div", { className: `${c}__content` }, d));
|
|
12524
|
-
},
|
|
12583
|
+
}, Xo = ({ children: t, className: n, gridGap: r = "xl", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "33%", sidebarWidthMax: s = 25, sidebarWidthMin: c = 15, ...l }) => {
|
|
12525
12584
|
let u = "pds-sidebar-layout", d = r === "none" ? "0" : `var(--pds-spacing-${r})`, f = ft(t);
|
|
12526
12585
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12527
12586
|
className: Z([u, n ?? ""]),
|
|
@@ -12535,7 +12594,26 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12535
12594
|
},
|
|
12536
12595
|
...l
|
|
12537
12596
|
}, /* @__PURE__ */ e.createElement("div", { className: `${u}__main` }, f.__unslotted || f.content), /* @__PURE__ */ e.createElement("div", { className: `${u}__side` }, f.sidebar));
|
|
12538
|
-
},
|
|
12597
|
+
}, Zo = ({ children: n, className: r, maxColumns: i = 3, style: a, ...o }) => {
|
|
12598
|
+
let s = "pds-stat-panel-group", c = `${s}--max-${i}`, l = {
|
|
12599
|
+
"--max-columns": i,
|
|
12600
|
+
...a
|
|
12601
|
+
};
|
|
12602
|
+
return /* @__PURE__ */ e.createElement("div", { className: `${s}-container` }, /* @__PURE__ */ e.createElement("div", {
|
|
12603
|
+
className: Z([
|
|
12604
|
+
s,
|
|
12605
|
+
c,
|
|
12606
|
+
r ?? ""
|
|
12607
|
+
]),
|
|
12608
|
+
role: "list",
|
|
12609
|
+
style: l,
|
|
12610
|
+
...o
|
|
12611
|
+
}, t.map(n, (t, n) => /* @__PURE__ */ e.createElement("div", {
|
|
12612
|
+
key: n,
|
|
12613
|
+
className: `${s}__item`,
|
|
12614
|
+
role: "listitem"
|
|
12615
|
+
}, t))));
|
|
12616
|
+
}, Qo = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
|
|
12539
12617
|
let o = ft(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" ? `${l}--full-width` : null, d = /* @__PURE__ */ e.createElement(Ji, {
|
|
12540
12618
|
className: Z([
|
|
12541
12619
|
l,
|
|
@@ -12546,7 +12624,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12546
12624
|
...a
|
|
12547
12625
|
}, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stepper-container` }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${l}__form-container` }, c));
|
|
12548
12626
|
return i ? /* @__PURE__ */ e.createElement(La, null, d) : d;
|
|
12549
|
-
},
|
|
12627
|
+
}, $o = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
|
|
12550
12628
|
let o = "pds-three-item-layout", s = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, c = `${o}--${i}`, l = ft(t), u = [
|
|
12551
12629
|
l["first-item"],
|
|
12552
12630
|
l["second-item"],
|
|
@@ -12564,7 +12642,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12564
12642
|
key: n,
|
|
12565
12643
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
12566
12644
|
}, t)));
|
|
12567
|
-
},
|
|
12645
|
+
}, es = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
|
|
12568
12646
|
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;
|
|
12569
12647
|
switch (i) {
|
|
12570
12648
|
case "equal":
|
|
@@ -12585,7 +12663,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12585
12663
|
]),
|
|
12586
12664
|
...o
|
|
12587
12665
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
12588
|
-
},
|
|
12666
|
+
}, ts = ({ alignContent: t = "flex-start", alignItems: n = "stretch", children: r, className: i, flexDirection: a = "row", flexWrap: o = "nowrap", gap: s = "xl", justifyContent: c = "flex-start", mobileAlignContent: l, mobileAlignItems: u, mobileFlexDirection: d = "column", mobileFlexWrap: f, mobileGap: p, mobileJustifyContent: m, style: h, ...g }) => {
|
|
12589
12667
|
let _ = "pds-flex", v = `${_}-container`, y = {
|
|
12590
12668
|
"--pds-flex-align-content": t,
|
|
12591
12669
|
"--pds-flex-align-items": n,
|
|
@@ -12611,7 +12689,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12611
12689
|
},
|
|
12612
12690
|
...g
|
|
12613
12691
|
}, r);
|
|
12614
|
-
},
|
|
12692
|
+
}, ns = (e) => {
|
|
12615
12693
|
let t = typeof window < "u", [n, r] = g(((e) => t ? window.matchMedia(e).matches : !1)(e));
|
|
12616
12694
|
return u(() => {
|
|
12617
12695
|
if (!t) return;
|
|
@@ -12620,20 +12698,20 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12620
12698
|
};
|
|
12621
12699
|
return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
|
|
12622
12700
|
}, [e]), n;
|
|
12623
|
-
},
|
|
12701
|
+
}, rs = [
|
|
12624
12702
|
"light",
|
|
12625
12703
|
"dark",
|
|
12626
12704
|
"system"
|
|
12627
|
-
],
|
|
12705
|
+
], is = (e) => typeof e == "string" && rs.includes(e), as = i(null), os = {
|
|
12628
12706
|
resolvedTheme: "light",
|
|
12629
12707
|
setTheme: () => {},
|
|
12630
12708
|
theme: "light"
|
|
12631
|
-
},
|
|
12632
|
-
let d = l !== void 0, f = !r && !d && o && !i, [p, m] = g(n), [h, _] = g(!1), v = d ? l : p, y =
|
|
12709
|
+
}, ss = ({ 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){}})();`, cs = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: s = "pds-theme", theme: l }) => {
|
|
12710
|
+
let d = l !== void 0, f = !r && !d && o && !i, [p, m] = g(n), [h, _] = g(!1), v = d ? l : p, y = ns("(prefers-color-scheme: dark)"), b = v === "system" ? h && y ? "dark" : "light" : v;
|
|
12633
12711
|
u(() => {
|
|
12634
12712
|
if (_(!0), !(d || !o || typeof window > "u")) try {
|
|
12635
12713
|
let e = window.localStorage.getItem(s);
|
|
12636
|
-
|
|
12714
|
+
is(e) && m(e);
|
|
12637
12715
|
} catch {}
|
|
12638
12716
|
}, []), u(() => {
|
|
12639
12717
|
typeof document > "u" || (i?.current ?? document.documentElement).setAttribute("data-theme", b);
|
|
@@ -12653,20 +12731,20 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12653
12731
|
]),
|
|
12654
12732
|
theme: v
|
|
12655
12733
|
};
|
|
12656
|
-
return /* @__PURE__ */ e.createElement(
|
|
12734
|
+
return /* @__PURE__ */ e.createElement(as.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: ss({
|
|
12657
12735
|
defaultTheme: n,
|
|
12658
12736
|
storageKey: s
|
|
12659
12737
|
}) } }), t);
|
|
12660
|
-
},
|
|
12738
|
+
}, ls = () => l(as) ?? os, us = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
|
|
12661
12739
|
u(() => {
|
|
12662
12740
|
let e = document.documentElement, t = () => {
|
|
12663
12741
|
window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
|
|
12664
12742
|
};
|
|
12665
12743
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
12666
12744
|
}, [r]);
|
|
12667
|
-
let a = n ? /* @__PURE__ */ e.createElement(
|
|
12745
|
+
let a = n ? /* @__PURE__ */ e.createElement(cs, i, t) : t;
|
|
12668
12746
|
return /* @__PURE__ */ e.createElement($t, null, a);
|
|
12669
|
-
},
|
|
12747
|
+
}, ds = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
|
|
12670
12748
|
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}`;
|
|
12671
12749
|
return /* @__PURE__ */ e.createElement("div", {
|
|
12672
12750
|
className: Z([
|
|
@@ -12680,7 +12758,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12680
12758
|
]),
|
|
12681
12759
|
...c
|
|
12682
12760
|
}, n);
|
|
12683
|
-
},
|
|
12761
|
+
}, fs = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
|
|
12684
12762
|
let f = "pds-grid-item", p = [
|
|
12685
12763
|
l ? `${f}--sm-${l}` : null,
|
|
12686
12764
|
c ? `${f}--md-${c}` : null,
|
|
@@ -12699,7 +12777,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12699
12777
|
]),
|
|
12700
12778
|
...d
|
|
12701
12779
|
}, t);
|
|
12702
|
-
},
|
|
12780
|
+
}, ps = (e, t, n) => {
|
|
12703
12781
|
let { altKey: r = !1, ctrlKey: i = !1, enabled: a = !0, metaKey: o = !1, shiftKey: s = !1 } = n ?? {}, [l, d] = g(!1), f = c((e) => e.altKey === r && e.ctrlKey === i && e.metaKey === o && e.shiftKey === s, [
|
|
12704
12782
|
r,
|
|
12705
12783
|
i,
|
|
@@ -12723,7 +12801,7 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12723
12801
|
m,
|
|
12724
12802
|
a
|
|
12725
12803
|
]), l;
|
|
12726
|
-
},
|
|
12804
|
+
}, ms = () => {
|
|
12727
12805
|
let e = typeof window < "u", [t, n] = g(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
|
|
12728
12806
|
return u(() => {
|
|
12729
12807
|
if (!e) return;
|
|
@@ -12737,6 +12815,6 @@ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12737
12815
|
}, []), t;
|
|
12738
12816
|
};
|
|
12739
12817
|
//#endregion
|
|
12740
|
-
export { ur as ActionCard,
|
|
12818
|
+
export { ur as ActionCard, Jo as AppLayout, bt as Avatar, St as Badge, fa as Banner, Nr as BarChart, Cn as BranchDiff, Li as Breadcrumb, Dn as Button, On as ButtonLink, qi as ButtonNav, Ni as CTALink, lr as Callout, dr as Card, fr as CardSelect, $r as Checkbox, ei as CheckboxFieldset, ti as CheckboxGroup, jn as ClipboardButton, Mn as CloseButton, Ur as CodeBlock, ni as Combobox, ii as ComboboxMultiselect, pr as CompactEmptyState, Gr as ComparisonList, Ji as Container, Ci as Datepicker, Yo as DocsLayout, Da as Drawer, Ln as Dropdown, Ki as DropdownMenu, Fa as ExpansionPanel, Ia as ExpansionPanelGroup, Yr as FileDiff, wi as FileUpload, Kn as FilterButton, ts as FlexContainer, Oa as FullScreenOverlay, us as GlobalWrapper, ds as Grid, fs as GridItem, qr as HorizontalEmptyState, Q as Icon, An as IconButton, Qr as IdentityBlock, ma as InlineMessage, Ti as InputGroup, Fr as LineChart, Pi as LinkNewWindow, _a as MIN_AUTO_CLOSE_DURATION, tr as MenuButton, ka as Modal, Yi as Navbar, Ma as Pagination, Na as PaginationChapter, Pa as PaginationCompact, La as Panel, Ra as PanelList, za as PanelRow, Ba as PanelStack, Wa as PantheonLogo, Zr as PaymentIcon, Ii as Picture, Lr as PieChart, ir as PlatformIcon, qa as Popover, Ya as ProgressBar, Za as ProgressRing, zr as ProportionBar, Ei as RadioGroup, eo as ResultCount, or as SSOButton, ga as SectionMessage, nr as SegmentedButton, hr as Select, mr as SelectOptionGroup, Xi as SideNav, Qi as SideNavGlobal, Zi as SideNavGlobalItem, Xo as SidebarLayout, ro as SiteFooter, ea as SiteMenu, io as SiteOptionDisplay, ao as SiteSearch, er as SiteTypeIcon, $n as SiteTypeLabel, kr as Skeleton, Fi as Skiplink, vo as SortableList, fo as SortableListHeader, bo as SortableRow, bn as Spinner, rr as SplitButton, xo as StatPanel, Zo as StatPanelGroup, xn as StatusBadge, Co as StatusChecker, wo as StatusIndicator, Jn as StatusTypeLabels, To as StepList, Eo as Stepper, Qo as StepperLayout, Di as Switch, na as TabMenu, ko as Table, Io as TableOfContents, Lo as Tabs, Go as Tag, ki as TagsInput, Sn as Tally, Mi as TextInput, Ai as Textarea, as as ThemeContext, cs as ThemeContextProvider, oa as ThemeSwitcher, $o as ThreeItemLayout, li as Timepicker, wa as Toast, Ta as ToastType, xa as Toaster, ya as ToasterContext, nn as Tooltip, ia as TreeNav, es as TwoItemLayout, sa as UserMenu, Ko as UtilityBar, sr as UtilityButton, Jr as VerticalEmptyState, Oo as VerticalStepper, Kr as VideoEmbed, ca as WorkspaceSelector, yi as getPresetDateRange, ss as getThemeInitScript, _t as iconList, Xn as isHeadingItemType, Zn as isLinkItemType, Qn as isNodeItemType, Yn as isSeparatorItemType, So as statusCheckerStates, Ro as tagColors, Vo as tagSolidColors, zo as tagSolidHueColors, Bo as tagSolidStatusColors, qo as useBreakpoint, kn as useClipboard, Pn as useDropdown, Xt as useIsMobile, ps as useKeyPress, tn as useKeyboardShortcut, ns as useMediaQuery, ls as useTheme, Ea as useToast, ms as useWindowWidth };
|
|
12741
12819
|
|
|
12742
12820
|
//# sourceMappingURL=index.js.map
|