@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 m, jsx as t } from "react/jsx-runtime";
2
- import { Fragment as d } from "react";
3
- import { VisuallyHidden as a } from "../../node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.js";
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 S } from "../icon/index.js";
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 y } from "../typography/text/index.js";
10
- const $ = (n, e) => n < e ? "completed" : n === e ? "current" : "upcoming", C = ({
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: e,
13
- steps: c
12
+ currentStep: t,
13
+ steps: m
14
14
  }) => {
15
15
  const l = s();
16
- return /* @__PURE__ */ m(d, { children: [
17
- /* @__PURE__ */ t(h, { children: c.map((r, o) => {
18
- const i = $(o, e), p = i === "upcoming";
19
- return /* @__PURE__ */ m(
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__ */ t(f, { $status: i, children: i === "completed" ? /* @__PURE__ */ t(S, { icon: "check", iconSize: "sm", iconType: "fa-solid" }) : o + 1 }),
25
- /* @__PURE__ */ m(
26
- y,
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__ */ t(a, { children: ` (${n})` })
35
+ i === "completed" && /* @__PURE__ */ e(d, { elementType: "span", children: ` (${n})` })
36
36
  ]
37
37
  }
38
38
  ),
39
- o < c.length - 1 && /* @__PURE__ */ t(g, { "aria-hidden": !0 })
39
+ o < m.length - 1 && /* @__PURE__ */ e(g, { "aria-hidden": !0 })
40
40
  ]
41
41
  },
42
42
  r.title
43
43
  );
44
44
  }) }),
45
- c.map((r, o) => /* @__PURE__ */ t("div", { hidden: o !== e, children: r.content }, r.title))
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
- ), r = i.ol`
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
- r as StyledStepRow
65
+ l as StyledStepRow
65
66
  };
package/package.json CHANGED
@@ -135,5 +135,5 @@
135
135
  "./dist/index.js"
136
136
  ],
137
137
  "typings": "./dist/index.d.ts",
138
- "version": "9.3.0"
138
+ "version": "9.3.2"
139
139
  }