@pantheon-systems/pds-toolkit-react 1.0.0-dev.280 → 1.0.0-dev.281
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.
|
@@ -13,6 +13,11 @@ interface Step {
|
|
|
13
13
|
* Id for the step.
|
|
14
14
|
*/
|
|
15
15
|
id?: string;
|
|
16
|
+
/**
|
|
17
|
+
* If the step has been completed.
|
|
18
|
+
* Optional. If not provided, completed state is determined by the current step.
|
|
19
|
+
*/
|
|
20
|
+
isComplete?: boolean;
|
|
16
21
|
/**
|
|
17
22
|
* If the step is the current active step.
|
|
18
23
|
*/
|
package/_dist/index.js
CHANGED
|
@@ -11232,7 +11232,7 @@ const l4 = (i) => {
|
|
|
11232
11232
|
const c = "pds-stepper", l = "pds-stepper-mobile", i = oe(), [m] = S2(i), g = m.width, u = Number(
|
|
11233
11233
|
getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "")
|
|
11234
11234
|
) * 16, p = -40, $ = 2, _ = 5, w = t.length, C = t.map((o) => o.isCurrent).lastIndexOf(!0), E = t.map((o, f) => {
|
|
11235
|
-
const v = f + 1, b = f === C, H = f < C, M = o.hasError && b, k = (g - w * u) / (w + (w - 2)), z = u + k * 2, x = u + k, I = k + p * -1, T = f === 0, B = f === w - 1;
|
|
11235
|
+
const v = f + 1, b = f === C, H = o.isComplete || f < C, M = o.hasError && b, k = (g - w * u) / (w + (w - 2)), z = u + k * 2, x = u + k, I = k + p * -1, T = f === 0, B = f === w - 1;
|
|
11236
11236
|
let R = z;
|
|
11237
11237
|
(T || B) && (R = x);
|
|
11238
11238
|
const F = `${c}__step`, P = [F];
|