@fluidattacks/design 9.3.0 → 9.3.2
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.
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Fragment as
|
|
3
|
-
import { VisuallyHidden as
|
|
1
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment as a } from "react";
|
|
3
|
+
import { VisuallyHidden as d } from "../../node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.js";
|
|
4
4
|
import { useTheme as s } from "styled-components";
|
|
5
5
|
import { StyledStepRow as h, StyledStepItem as u, StyledStepIndicator as f, StyledStepConnector as g } from "./styles.js";
|
|
6
|
-
import { Icon as
|
|
6
|
+
import { Icon as y } from "../icon/index.js";
|
|
7
7
|
import "../typography/heading/index.js";
|
|
8
8
|
import "../typography/span/index.js";
|
|
9
|
-
import { Text as
|
|
10
|
-
const $ = (n,
|
|
9
|
+
import { Text as S } from "../typography/text/index.js";
|
|
10
|
+
const $ = (n, t) => n < t ? "completed" : n === t ? "current" : "upcoming", C = ({
|
|
11
11
|
completedLabel: n = "completed",
|
|
12
|
-
currentStep:
|
|
13
|
-
steps:
|
|
12
|
+
currentStep: t,
|
|
13
|
+
steps: m
|
|
14
14
|
}) => {
|
|
15
15
|
const l = s();
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
const i = $(o,
|
|
19
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ c(a, { children: [
|
|
17
|
+
/* @__PURE__ */ e(h, { children: m.map((r, o) => {
|
|
18
|
+
const i = $(o, t), p = i === "upcoming";
|
|
19
|
+
return /* @__PURE__ */ c(
|
|
20
20
|
u,
|
|
21
21
|
{
|
|
22
22
|
"aria-current": i === "current" ? "step" : void 0,
|
|
23
23
|
children: [
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
|
|
24
|
+
/* @__PURE__ */ e(f, { $status: i, children: i === "completed" ? /* @__PURE__ */ e(y, { icon: "check", iconSize: "sm", iconType: "fa-solid" }) : o + 1 }),
|
|
25
|
+
/* @__PURE__ */ c(
|
|
26
|
+
S,
|
|
27
27
|
{
|
|
28
28
|
color: p ? l.palette.gray[400] : l.palette.gray[800],
|
|
29
29
|
display: "inline",
|
|
@@ -32,17 +32,17 @@ const $ = (n, e) => n < e ? "completed" : n === e ? "current" : "upcoming", C =
|
|
|
32
32
|
whiteSpace: "nowrap",
|
|
33
33
|
children: [
|
|
34
34
|
r.title,
|
|
35
|
-
i === "completed" && /* @__PURE__ */
|
|
35
|
+
i === "completed" && /* @__PURE__ */ e(d, { elementType: "span", children: ` (${n})` })
|
|
36
36
|
]
|
|
37
37
|
}
|
|
38
38
|
),
|
|
39
|
-
o <
|
|
39
|
+
o < m.length - 1 && /* @__PURE__ */ e(g, { "aria-hidden": !0 })
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
r.title
|
|
43
43
|
);
|
|
44
44
|
}) }),
|
|
45
|
-
|
|
45
|
+
m.map((r, o) => /* @__PURE__ */ e("div", { hidden: o !== t, children: r.content }, r.title))
|
|
46
46
|
] });
|
|
47
47
|
};
|
|
48
48
|
export {
|
|
@@ -16,7 +16,7 @@ const { getVariant: n } = a(
|
|
|
16
16
|
color: ${t.palette.gray[400]};
|
|
17
17
|
`
|
|
18
18
|
})
|
|
19
|
-
),
|
|
19
|
+
), l = i.ol`
|
|
20
20
|
align-items: center;
|
|
21
21
|
display: flex;
|
|
22
22
|
gap: ${({ theme: t }) => t.spacing[0.75]};
|
|
@@ -56,10 +56,11 @@ const { getVariant: n } = a(
|
|
|
56
56
|
flex: 1 1 auto;
|
|
57
57
|
height: 1px;
|
|
58
58
|
min-width: ${({ theme: t }) => t.spacing[1]};
|
|
59
|
+
margin: ${({ theme: t }) => `0 ${t.spacing[2]}`};
|
|
59
60
|
`;
|
|
60
61
|
export {
|
|
61
62
|
g as StyledStepConnector,
|
|
62
63
|
c as StyledStepIndicator,
|
|
63
64
|
p as StyledStepItem,
|
|
64
|
-
|
|
65
|
+
l as StyledStepRow
|
|
65
66
|
};
|
package/package.json
CHANGED