@pantheon-systems/pds-toolkit-react 2.0.0-alpha.92 → 2.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/components/inputs/Datepicker/Datepicker.d.ts +12 -12
- package/dist/css/component-css/pds-badge.css +1 -1
- package/dist/css/component-css/pds-index.css +1 -1
- package/dist/css/design-tokens/variables.dark.css +7 -6
- package/dist/css/design-tokens/variables.global.css +4 -0
- package/dist/css/design-tokens/variables.light.css +10 -6
- package/dist/css/design-tokens/variables.typography.css +4 -4
- package/dist/css/layout-css/pds-index.css +1 -1
- package/dist/css/layout-css/pds-stepper-layout.css +1 -1
- package/dist/css/pds-components.css +1 -1
- package/dist/css/pds-core.css +1 -1
- package/dist/css/pds-layouts.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +106 -83
- package/dist/index.js.map +1 -1
- package/dist/utilities/FlexContainer/FlexContainer.d.ts +69 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -7424,7 +7424,7 @@ var Zr = {
|
|
|
7424
7424
|
} : { display: "none" }
|
|
7425
7425
|
}, De && _ && /* @__PURE__ */ e.createElement("div", { className: `${q}__loading` }, b), De && !_ && _e.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, C), /* @__PURE__ */ e.createElement("ul", {
|
|
7426
7426
|
className: `${q}__options`,
|
|
7427
|
-
...ye(),
|
|
7427
|
+
...ye({}, { suppressRefError: !0 }),
|
|
7428
7428
|
style: De && (i || !_ && _e.length > 0) ? void 0 : { display: "none" }
|
|
7429
7429
|
}, De && !_ && Fe(), De && i && /* @__PURE__ */ e.createElement("li", {
|
|
7430
7430
|
className: "pds-dropdown__footer",
|
|
@@ -7566,10 +7566,10 @@ var Zr = {
|
|
|
7566
7566
|
}, ke = (e) => {
|
|
7567
7567
|
e.currentTarget.setAttribute("data-focus-method", "keyboard"), !r && ((e.key === "Backspace" || e.key === "Delete") && !R && V.length > 0 && (e.preventDefault(), Te()), e.key === "Enter" && U !== null && (e.preventDefault(), Te()), !ue && (e.key === "Enter" || e.key === "ArrowDown") && (e.preventDefault(), de()));
|
|
7568
7568
|
}, Ae = Y({
|
|
7569
|
-
...re({ preventKeyAction: ue }),
|
|
7569
|
+
...re({ preventKeyAction: ue }, { suppressRefError: !0 }),
|
|
7570
7570
|
disabled: r,
|
|
7571
7571
|
onKeyDown: ke
|
|
7572
|
-
}), je = V.length === 2 ? /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-item` }, V.length - 1) : V.length === 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-item` }, V.length - 1)) : V.length > 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-item` }, V.length - 1)) : "", Me = re(), Ne = B([Me.ref, ge.setFloating]);
|
|
7572
|
+
}, { suppressRefError: !0 }), je = V.length === 2 ? /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-item` }, V.length - 1) : V.length === 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-item` }, V.length - 1)) : V.length > 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-item` }, V.length - 1)) : "", Me = re({}, { suppressRefError: !0 }), Ne = B([Me.ref, ge.setFloating]);
|
|
7573
7573
|
return /* @__PURE__ */ e.createElement("div", {
|
|
7574
7574
|
className: Z([
|
|
7575
7575
|
$.base,
|
|
@@ -7661,7 +7661,7 @@ var Zr = {
|
|
|
7661
7661
|
}
|
|
7662
7662
|
})), ue && l && /* @__PURE__ */ e.createElement("div", { className: `${j}__loading` }, f), ue && !l && q.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, p), /* @__PURE__ */ e.createElement("ul", {
|
|
7663
7663
|
className: `${j}__dropdown-list`,
|
|
7664
|
-
...se(),
|
|
7664
|
+
...se({}, { suppressRefError: !0 }),
|
|
7665
7665
|
style: ue && (i || !l && q.length > 0) ? void 0 : { display: "none" }
|
|
7666
7666
|
}, ue && !l && q.map((t, n) => /* @__PURE__ */ e.createElement(vn, {
|
|
7667
7667
|
key: `${t.id}-${n}`,
|
|
@@ -7972,13 +7972,13 @@ var Zr = {
|
|
|
7972
7972
|
state: r,
|
|
7973
7973
|
timeZone: i
|
|
7974
7974
|
}) : /* @__PURE__ */ e.createElement("td", { key: o }))))));
|
|
7975
|
-
}, Ri = ({ allowCustomRange: t = !0, allowDateRangeSelection: n = !0, className: r, defaultPresetLabel: i,
|
|
7975
|
+
}, Ri = ({ allowCustomRange: t = !0, allowDateRangeSelection: n = !0, className: r, defaultPresetLabel: i, defaultTimeZoneMode: a = "utc", disabled: o = !1, footerNote: s, hourCycle: c = 12, id: l, inputWidth: d, inputWidthMin: f, label: p, locale: _, maxDate: v, message: y, minDate: b, mode: x = "single", onChange: C, onTimeZoneChange: w, placeholder: T, presets: E, required: D = !1, showLabel: O = !0, showPresetCalendar: k = !0, showTime: A = !1, showTimeZoneSwitcher: j = !1, showTodayButton: M = !0, timeZone: N = ye(), tooltipText: P, translationStrings: F, validationMessage: I, validationStatus: L, value: R, visibleMonths: z = 2, ...ee }) => {
|
|
7976
7976
|
let B = x === "range", V = {
|
|
7977
7977
|
...Fi,
|
|
7978
7978
|
...F
|
|
7979
7979
|
}, H = B && !!E && E.length > 0;
|
|
7980
7980
|
j && !A && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `showTimeZoneSwitcher` has no effect unless `showTime` is also true."), E && E.length > 0 && !B && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `presets` requires `mode=\"range\"` — every preset computes a date range."), !t && !H && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `allowCustomRange` has no effect unless `presets` is also set."), i !== void 0 && !(H && E?.some((e) => e.label === i)) && process.env.NODE_ENV !== "production" && console.warn(`[Datepicker] \`defaultPresetLabel\` "${i}" matches no entry in \`presets\` — nothing is seeded as active.`);
|
|
7981
|
-
let { locale: U } = Fe(), W =
|
|
7981
|
+
let { locale: U } = Fe(), W = _?.code ?? U, G = m(() => B ? E?.find((e) => e.label === i) : void 0, [
|
|
7982
7982
|
i,
|
|
7983
7983
|
B,
|
|
7984
7984
|
E
|
|
@@ -7991,8 +7991,8 @@ var Zr = {
|
|
|
7991
7991
|
from: Oi(Ci(t.from, N), ki, N),
|
|
7992
7992
|
to: Oi(Ci(t.to, N), Ai, N)
|
|
7993
7993
|
};
|
|
7994
|
-
}, [q, te] = g(() => R ?? (G ? K(G) : void 0)), [ne, re] = g(
|
|
7995
|
-
id: `${
|
|
7994
|
+
}, [q, te] = g(() => R ?? (G ? K(G) : void 0)), [ne, re] = g(a), J = j ? ne === "utc" ? "UTC" : ye() : N, [ie, ae] = g(G?.label), [Y, oe] = g(k), se = !H || Y, ce = !H || k || t, le = z === 1 ? B && A ? 400 : 280 : 550, ue = h(null), de = ie === void 0 && (B ? !!q?.from : !!q), fe = (e, t) => B && A ? e ?? t : e, [pe, me] = g(() => fe(Di(B ? q?.from : q, J), ki)), [he, _e] = g(() => fe(Di(q?.to, J), Ai)), ve = on(d, f), X = "pds-datepicker", be = o ? $.disabled : null, xe = D && !o ? $.required : null, Se = L === "error" ? $.error : null, Ce = L === "success" ? $.success : null, we = I || y, Ee = /* @__PURE__ */ e.createElement("div", { className: `${X}__timezone-switcher` }, /* @__PURE__ */ e.createElement("span", { className: `${X}__timezone-switcher-label` }, V.timeZoneSwitcherLabel), /* @__PURE__ */ e.createElement(ur, {
|
|
7995
|
+
id: `${l}-timezone-switcher`,
|
|
7996
7996
|
label: V.timeZoneSwitcherLabel || "",
|
|
7997
7997
|
onChange: (e) => {
|
|
7998
7998
|
let t = e;
|
|
@@ -8014,7 +8014,7 @@ var Zr = {
|
|
|
8014
8014
|
role: "dialog",
|
|
8015
8015
|
shiftPadding: 16,
|
|
8016
8016
|
variant: "default"
|
|
8017
|
-
}), Ve = Bn("var(--pds-z-index-overlay)"), He = Ci(b, J), Ue = Ci(
|
|
8017
|
+
}), Ve = Bn("var(--pds-z-index-overlay)"), He = Ci(b, J), Ue = Ci(v, J), We = (e, t, n = !1) => {
|
|
8018
8018
|
te(e), ae(t), C?.(e), !B && n && setTimeout(() => {
|
|
8019
8019
|
Be(!1);
|
|
8020
8020
|
}, 300);
|
|
@@ -8069,35 +8069,36 @@ var Zr = {
|
|
|
8069
8069
|
r && Je.setFocusedDate(r), k || setTimeout(() => {
|
|
8070
8070
|
Be(!1);
|
|
8071
8071
|
}, 300);
|
|
8072
|
-
}, gt = (e) => {
|
|
8073
|
-
if (B) {
|
|
8074
|
-
let t = q, n = e;
|
|
8075
|
-
return t?.from?.getTime() === n?.from?.getTime() && t?.to?.getTime() === n?.to?.getTime();
|
|
8076
|
-
}
|
|
8077
|
-
return q?.getTime() === e?.getTime();
|
|
8078
|
-
}, _t = (e) => {
|
|
8079
|
-
gt(e) || We(e);
|
|
8080
|
-
}, vt = (e) => {
|
|
8072
|
+
}, gt = (e, t) => Di(e, J) === t, _t = (e) => {
|
|
8081
8073
|
if (me(e), B) {
|
|
8082
8074
|
let t = q;
|
|
8083
|
-
t?.from && t?.to
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8075
|
+
if (t?.from && t?.to) {
|
|
8076
|
+
if (gt(t.from, e)) return;
|
|
8077
|
+
We({
|
|
8078
|
+
from: Oi(Ci(t.from, J), e, J),
|
|
8079
|
+
to: t.to
|
|
8080
|
+
});
|
|
8081
|
+
}
|
|
8087
8082
|
} else {
|
|
8088
8083
|
let t = q;
|
|
8089
|
-
|
|
8084
|
+
if (t) {
|
|
8085
|
+
if (gt(t, e)) return;
|
|
8086
|
+
We(Oi(Ci(t, J), e, J));
|
|
8087
|
+
}
|
|
8090
8088
|
}
|
|
8091
|
-
},
|
|
8089
|
+
}, vt = (e) => {
|
|
8092
8090
|
_e(e);
|
|
8093
8091
|
let t = q;
|
|
8094
|
-
t?.from && t?.to
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8092
|
+
if (t?.from && t?.to) {
|
|
8093
|
+
if (gt(t.to, e)) return;
|
|
8094
|
+
We({
|
|
8095
|
+
from: t.from,
|
|
8096
|
+
to: Oi(Ci(t.to, J), e, J)
|
|
8097
|
+
});
|
|
8098
|
+
}
|
|
8099
|
+
}, yt = h(R);
|
|
8099
8100
|
u(() => {
|
|
8100
|
-
|
|
8101
|
+
yt.current !== R && (yt.current = R, te(R));
|
|
8101
8102
|
}, [R]), u(() => {
|
|
8102
8103
|
if (A) if (B) {
|
|
8103
8104
|
let e = q;
|
|
@@ -8122,29 +8123,29 @@ var Zr = {
|
|
|
8122
8123
|
}, [Pe]), u(() => {
|
|
8123
8124
|
ue.current && (ue.current.inert = !se);
|
|
8124
8125
|
}, [se]);
|
|
8125
|
-
let
|
|
8126
|
-
hourCycle:
|
|
8127
|
-
includeYear:
|
|
8126
|
+
let bt = E?.find((e) => e.label === ie), xt = bt && (bt.showLabelInTrigger ?? (bt.hours !== void 0 || bt.minutes !== void 0)) ? bt.label : void 0, St = Mi(B ? [q?.from, q?.to] : [q], J), Ct = (e) => A ? Ni(e, {
|
|
8127
|
+
hourCycle: c,
|
|
8128
|
+
includeYear: St,
|
|
8128
8129
|
localeString: W,
|
|
8129
8130
|
timeZone: J
|
|
8130
|
-
}) : ji(e,
|
|
8131
|
-
if (
|
|
8131
|
+
}) : ji(e, _, J), wt = () => {
|
|
8132
|
+
if (xt !== void 0) return xt;
|
|
8132
8133
|
if (B) {
|
|
8133
8134
|
let t = q;
|
|
8134
|
-
return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
8135
|
+
return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null, Ct(t.from), /* @__PURE__ */ e.createElement("span", { className: `${X}__separator` }, " – "), Ct(t.to)) : Ct(t.from) : T || "";
|
|
8135
8136
|
} else {
|
|
8136
8137
|
let e = q;
|
|
8137
|
-
return e ?
|
|
8138
|
+
return e ? Ct(e) : T || "";
|
|
8138
8139
|
}
|
|
8139
|
-
},
|
|
8140
|
+
}, Tt = () => xt === void 0 ? B ? !q?.from : !q : !1, Et = () => {
|
|
8140
8141
|
if (B) {
|
|
8141
8142
|
let e = q, t = qe.anchorDate;
|
|
8142
|
-
return !e?.from && t ? `${V.selectedStartDate}${ji(wi(t, J),
|
|
8143
|
+
return !e?.from && t ? `${V.selectedStartDate}${ji(wi(t, J), _, J)}${V.pleaseSelectEndDate}` : e?.from ? e.to ? `${V.selectedDateRange}${Ct(e.from)}${V.to}${Ct(e.to)}` : `${V.selectedStartDate}${Ct(e.from)}${V.pleaseSelectEndDate}` : V.noDateRangeSelected || "";
|
|
8143
8144
|
} else {
|
|
8144
8145
|
let e = q;
|
|
8145
|
-
return e ? `${V.selectedDate}${
|
|
8146
|
+
return e ? `${V.selectedDate}${Ct(e)}` : V.noDateSelected || "";
|
|
8146
8147
|
}
|
|
8147
|
-
},
|
|
8148
|
+
}, Dt = B ? q : void 0, Ot = /* @__PURE__ */ e.createElement("div", {
|
|
8148
8149
|
...tt,
|
|
8149
8150
|
ref: B ? Ke : void 0,
|
|
8150
8151
|
className: `${X}__calendar`
|
|
@@ -8187,33 +8188,33 @@ var Zr = {
|
|
|
8187
8188
|
state: Je,
|
|
8188
8189
|
timeZone: J
|
|
8189
8190
|
})))), A && /* @__PURE__ */ e.createElement("div", { className: `${X}__time-section` }, B ? /* @__PURE__ */ e.createElement("div", { className: `${X}__time-fields` }, /* @__PURE__ */ e.createElement(Si, {
|
|
8190
|
-
anchorDate: Ci(
|
|
8191
|
-
hourCycle:
|
|
8192
|
-
id: `${
|
|
8191
|
+
anchorDate: Ci(Dt?.from, J),
|
|
8192
|
+
hourCycle: c,
|
|
8193
|
+
id: `${l}-start-time`,
|
|
8193
8194
|
label: V.startTimeLabel || "",
|
|
8194
|
-
onChange:
|
|
8195
|
+
onChange: _t,
|
|
8195
8196
|
size: "s",
|
|
8196
8197
|
timeZone: J,
|
|
8197
8198
|
value: pe
|
|
8198
8199
|
}), /* @__PURE__ */ e.createElement(Si, {
|
|
8199
|
-
anchorDate: Ci(
|
|
8200
|
-
hourCycle:
|
|
8201
|
-
id: `${
|
|
8200
|
+
anchorDate: Ci(Dt?.to, J),
|
|
8201
|
+
hourCycle: c,
|
|
8202
|
+
id: `${l}-end-time`,
|
|
8202
8203
|
label: V.endTimeLabel || "",
|
|
8203
|
-
onChange:
|
|
8204
|
+
onChange: vt,
|
|
8204
8205
|
size: "s",
|
|
8205
8206
|
timeZone: J,
|
|
8206
8207
|
value: he
|
|
8207
8208
|
})) : q && /* @__PURE__ */ e.createElement("div", { className: `${X}__time-fields` }, /* @__PURE__ */ e.createElement(Si, {
|
|
8208
8209
|
anchorDate: Ci(q, J),
|
|
8209
|
-
hourCycle:
|
|
8210
|
-
id: `${
|
|
8210
|
+
hourCycle: c,
|
|
8211
|
+
id: `${l}-time`,
|
|
8211
8212
|
label: V.timeLabel || "",
|
|
8212
|
-
onChange:
|
|
8213
|
+
onChange: _t,
|
|
8213
8214
|
size: "s",
|
|
8214
8215
|
timeZone: J,
|
|
8215
8216
|
value: pe
|
|
8216
|
-
})), j && !H && Ee),
|
|
8217
|
+
})), j && !H && Ee), s && /* @__PURE__ */ e.createElement("div", { className: `${X}__footer-note` }, s), /* @__PURE__ */ e.createElement("div", { className: `${X}__actions` }, M && /* @__PURE__ */ e.createElement(kn, {
|
|
8217
8218
|
className: `${X}__action-button ${X}__action-button--today`,
|
|
8218
8219
|
label: V.todayButton,
|
|
8219
8220
|
onClick: mt,
|
|
@@ -8245,31 +8246,31 @@ var Zr = {
|
|
|
8245
8246
|
Ce,
|
|
8246
8247
|
r ?? ""
|
|
8247
8248
|
]),
|
|
8248
|
-
style:
|
|
8249
|
+
style: d ? ve : null,
|
|
8249
8250
|
...ee
|
|
8250
8251
|
}, /* @__PURE__ */ e.createElement(ln, {
|
|
8251
|
-
disabled:
|
|
8252
|
-
id:
|
|
8253
|
-
label:
|
|
8252
|
+
disabled: o,
|
|
8253
|
+
id: l,
|
|
8254
|
+
label: p,
|
|
8254
8255
|
required: D,
|
|
8255
8256
|
showLabel: O,
|
|
8256
8257
|
tooltipText: P
|
|
8257
8258
|
}), /* @__PURE__ */ e.createElement("div", { className: `${X}__input-wrapper` }, /* @__PURE__ */ e.createElement("button", {
|
|
8258
8259
|
ref: Le.setReference,
|
|
8259
|
-
"aria-describedby": we ? `${
|
|
8260
|
+
"aria-describedby": we ? `${l}__message` : null,
|
|
8260
8261
|
"aria-expanded": Pe,
|
|
8261
8262
|
"aria-haspopup": "dialog",
|
|
8262
8263
|
"aria-invalid": L === "error" ? !0 : null,
|
|
8263
8264
|
className: Z([`${X}__trigger`, Pe ? `${X}__trigger--open` : null]),
|
|
8264
|
-
disabled:
|
|
8265
|
+
disabled: o,
|
|
8265
8266
|
type: "button",
|
|
8266
8267
|
...Me()
|
|
8267
8268
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
8268
8269
|
className: `${X}__trigger-icon`,
|
|
8269
8270
|
iconName: "calendarDays"
|
|
8270
|
-
}), /* @__PURE__ */ e.createElement("span", { className: Z([`${X}__trigger-text`,
|
|
8271
|
+
}), /* @__PURE__ */ e.createElement("span", { className: Z([`${X}__trigger-text`, Tt() ? `${X}__trigger-text--placeholder` : null]) }, wt()))), we && /* @__PURE__ */ e.createElement(un, {
|
|
8271
8272
|
hasValidationMessage: !!I,
|
|
8272
|
-
id:
|
|
8273
|
+
id: l,
|
|
8273
8274
|
message: we,
|
|
8274
8275
|
validationStatus: L
|
|
8275
8276
|
}), Ne && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
|
|
@@ -8307,14 +8308,14 @@ var Zr = {
|
|
|
8307
8308
|
"aria-atomic": "true",
|
|
8308
8309
|
"aria-live": "polite",
|
|
8309
8310
|
className: "visually-hidden"
|
|
8310
|
-
},
|
|
8311
|
+
}, Et()), H ? ce && /* @__PURE__ */ e.createElement("div", {
|
|
8311
8312
|
ref: ue,
|
|
8312
8313
|
className: `${X}__calendar-wrapper`,
|
|
8313
8314
|
style: { flexBasis: se ? le : 0 }
|
|
8314
8315
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
8315
8316
|
className: `${X}__calendar-wrapper-inner`,
|
|
8316
8317
|
style: { width: le }
|
|
8317
|
-
},
|
|
8318
|
+
}, Ot)) : Ot))));
|
|
8318
8319
|
}, zi = o(({ accept: t, className: n, defaultValue: r, disabled: i = !1, fieldLabel: a, id: o, inputProps: s, inputWidth: c, inputWidthMin: l, labelStrings: d = {
|
|
8319
8320
|
chooseFile: "Choose file",
|
|
8320
8321
|
clearButton: "Clear selected file"
|
|
@@ -13469,32 +13470,54 @@ var es = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
13469
13470
|
]),
|
|
13470
13471
|
...o
|
|
13471
13472
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
13472
|
-
}, Ls = ({ alignContent: t = "flex-start", alignItems: n = "stretch",
|
|
13473
|
-
let
|
|
13473
|
+
}, Ls = ({ 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 }) => {
|
|
13474
|
+
let E = "pds-flex", D = `${E}-container`, O = {
|
|
13474
13475
|
"--pds-flex-align-content": t,
|
|
13475
13476
|
"--pds-flex-align-items": n,
|
|
13476
|
-
"--pds-flex-direction":
|
|
13477
|
-
"--pds-flex-justify-content":
|
|
13478
|
-
"--pds-flex-wrap":
|
|
13479
|
-
"--pds-flex-align-content-mobile":
|
|
13480
|
-
"--pds-flex-align-items-mobile":
|
|
13481
|
-
"--pds-flex-direction-mobile":
|
|
13482
|
-
"--pds-flex-justify-content-mobile":
|
|
13483
|
-
"--pds-flex-wrap-mobile":
|
|
13484
|
-
|
|
13477
|
+
"--pds-flex-direction": p,
|
|
13478
|
+
"--pds-flex-justify-content": g,
|
|
13479
|
+
"--pds-flex-wrap": m,
|
|
13480
|
+
"--pds-flex-align-content-mobile": _ ?? t,
|
|
13481
|
+
"--pds-flex-align-items-mobile": v ?? n,
|
|
13482
|
+
"--pds-flex-direction-mobile": y ?? p,
|
|
13483
|
+
"--pds-flex-justify-content-mobile": S ?? g,
|
|
13484
|
+
"--pds-flex-wrap-mobile": b ?? m,
|
|
13485
|
+
"--pds-flex-align-content-container": o ?? t,
|
|
13486
|
+
"--pds-flex-align-items-container": s ?? n,
|
|
13487
|
+
"--pds-flex-direction-container": c ?? p,
|
|
13488
|
+
"--pds-flex-justify-content-container": d ?? g,
|
|
13489
|
+
"--pds-flex-wrap-container": l ?? m
|
|
13490
|
+
}, k = x ?? h, A = h === "none" ? null : `${E}-gap--${h}`, j = k === h ? null : `${E}-gap-mobile--${k}`, M = u ?? h, N = Z([
|
|
13491
|
+
D,
|
|
13492
|
+
A,
|
|
13493
|
+
j,
|
|
13494
|
+
C && M !== h ? `${E}-gap-container--${M}` : null,
|
|
13495
|
+
C && f === "mobile" ? `${D}--priority-mobile` : null
|
|
13496
|
+
]);
|
|
13497
|
+
if (!C && !r) return /* @__PURE__ */ e.createElement("div", {
|
|
13498
|
+
className: Z([N, a ?? ""]),
|
|
13499
|
+
style: {
|
|
13500
|
+
...O,
|
|
13501
|
+
...w
|
|
13502
|
+
},
|
|
13503
|
+
...T
|
|
13504
|
+
}, i);
|
|
13505
|
+
let P = `${D}-query`, F = C ? `${P}--stack-${C}` : null;
|
|
13485
13506
|
return /* @__PURE__ */ e.createElement("div", {
|
|
13486
13507
|
className: Z([
|
|
13487
|
-
|
|
13488
|
-
|
|
13489
|
-
|
|
13490
|
-
i ?? ""
|
|
13508
|
+
P,
|
|
13509
|
+
F,
|
|
13510
|
+
a ?? ""
|
|
13491
13511
|
]),
|
|
13512
|
+
style: w,
|
|
13513
|
+
...T
|
|
13514
|
+
}, /* @__PURE__ */ e.createElement("div", {
|
|
13515
|
+
className: N,
|
|
13492
13516
|
style: {
|
|
13493
|
-
|
|
13494
|
-
...
|
|
13495
|
-
}
|
|
13496
|
-
|
|
13497
|
-
}, r);
|
|
13517
|
+
width: "100%",
|
|
13518
|
+
...O
|
|
13519
|
+
}
|
|
13520
|
+
}, i));
|
|
13498
13521
|
}, Rs = [
|
|
13499
13522
|
"light",
|
|
13500
13523
|
"dark",
|