@harpercollins/harpercollins-design-system 1.29.7 → 1.30.1

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.
Files changed (38) hide show
  1. package/dist/cjs/components/inputs/Input/FormHelperText.cjs +1 -0
  2. package/dist/cjs/components/navigation/Stepper/Step.cjs +1 -0
  3. package/dist/cjs/components/navigation/Stepper/StepButton.cjs +1 -0
  4. package/dist/cjs/components/navigation/Stepper/StepIndicator.cjs +1 -0
  5. package/dist/cjs/components/navigation/Stepper/Stepper.cjs +1 -0
  6. package/dist/cjs/components/navigation/Stepper/index.cjs +1 -0
  7. package/dist/cjs/index.cjs +1 -1
  8. package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/FormHelperText/FormHelperText.cjs +1 -0
  9. package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/FormHelperText/formHelperTextClasses.cjs +1 -0
  10. package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/FormLabel/formLabelClasses.cjs +1 -1
  11. package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Step/Step.cjs +1 -0
  12. package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Step/stepClasses.cjs +1 -0
  13. package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/StepButton/StepButton.cjs +1 -0
  14. package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/StepButton/stepButtonClasses.cjs +1 -0
  15. package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/StepIndicator/StepIndicator.cjs +1 -0
  16. package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/StepIndicator/stepIndicatorClasses.cjs +1 -0
  17. package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Stepper/Stepper.cjs +1 -0
  18. package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Stepper/stepperClasses.cjs +1 -0
  19. package/dist/esm/components/inputs/Input/FormHelperText.js +8 -0
  20. package/dist/esm/components/navigation/Stepper/Step.js +4 -0
  21. package/dist/esm/components/navigation/Stepper/StepButton.js +4 -0
  22. package/dist/esm/components/navigation/Stepper/StepIndicator.js +4 -0
  23. package/dist/esm/components/navigation/Stepper/Stepper.js +8 -0
  24. package/dist/esm/components/navigation/Stepper/index.js +4 -0
  25. package/dist/esm/index.js +146 -136
  26. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/FormHelperText/FormHelperText.js +107 -0
  27. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/FormHelperText/formHelperTextClasses.js +8 -0
  28. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/FormLabel/formLabelClasses.js +6 -5
  29. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Step/Step.js +255 -0
  30. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Step/stepClasses.js +9 -0
  31. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/StepButton/StepButton.js +136 -0
  32. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/StepButton/stepButtonClasses.js +5 -0
  33. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/StepIndicator/StepIndicator.js +123 -0
  34. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/StepIndicator/stepIndicatorClasses.js +8 -0
  35. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Stepper/Stepper.js +164 -0
  36. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Stepper/stepperClasses.js +9 -0
  37. package/dist/index.d.ts +15 -0
  38. package/package.json +1 -1
@@ -0,0 +1,255 @@
1
+ import i from "../../../../../@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/extends.js";
2
+ import P from "../../../../../@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
3
+ import * as R from "react";
4
+ import { clsx as k } from "../../../../../clsx@2.1.1/node_modules/clsx/dist/clsx.js";
5
+ import t from "../../../../../../../_virtual/index.js";
6
+ import h from "../styles/styled.js";
7
+ import p, { getStepUtilityClass as w } from "./stepClasses.js";
8
+ import v from "../utils/useSlot.js";
9
+ import n from "../Stepper/stepperClasses.js";
10
+ import { jsxs as $, jsx as N } from "react/jsx-runtime";
11
+ import O from "../styles/useThemeProps.js";
12
+ import D from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/composeClasses/composeClasses.js";
13
+ const E = ["active", "completed", "className", "component", "children", "disabled", "orientation", "indicator", "slots", "slotProps"], J = (o) => {
14
+ const {
15
+ orientation: e,
16
+ active: a,
17
+ completed: r,
18
+ disabled: s
19
+ } = o;
20
+ return D({
21
+ root: ["root", e, a && "active", r && "completed", s && "disabled"],
22
+ indicator: ["indicator"]
23
+ }, w, {});
24
+ }, F = h("li", {
25
+ name: "JoyStep",
26
+ slot: "Root",
27
+ overridesResolver: (o, e) => e.root
28
+ })(({
29
+ theme: o
30
+ }) => ({
31
+ position: "relative",
32
+ display: "flex",
33
+ gridTemplateColumns: "var(--Stepper-indicatorColumn) 1fr",
34
+ // for vertical stepper. has no effect on horizontal stepper.
35
+ gridAutoFlow: "dense",
36
+ flex: "var(--_Step-flex)",
37
+ flexDirection: "row",
38
+ alignItems: "var(--_Step-alignItems, center)",
39
+ justifyContent: "var(--_Step-justify, center)",
40
+ gap: "var(--Step-gap)",
41
+ "& > *": {
42
+ zIndex: 1,
43
+ [`&:not(.${p.indicator})`]: {
44
+ gridColumn: "2"
45
+ }
46
+ },
47
+ "&::after": {
48
+ content: '""',
49
+ display: "block",
50
+ borderRadius: "var(--Step-connectorRadius)",
51
+ height: "var(--Step-connectorThickness)",
52
+ background: `var(--Step-connectorBg, ${o.vars.palette.divider})`,
53
+ flex: 1,
54
+ marginInlineStart: "calc(var(--Step-connectorInset) - var(--Step-gap))",
55
+ marginInlineEnd: "var(--Step-connectorInset)",
56
+ zIndex: 0
57
+ },
58
+ "&[data-last-child]::after": {
59
+ display: "none"
60
+ },
61
+ [`.${n.horizontal} &:not([data-last-child])`]: {
62
+ "--_Step-flex": "auto",
63
+ // requires to be `auto` to make equally connectors.
64
+ [`&.${p.vertical}`]: {
65
+ "--_Step-flex": 1
66
+ // requires to be `1` to make equally connectors.
67
+ }
68
+ },
69
+ [`.${n.vertical} &`]: {
70
+ display: "grid",
71
+ "--_Step-justify": "flex-start",
72
+ "&::after": {
73
+ gridColumn: "1",
74
+ width: "var(--Step-connectorThickness)",
75
+ height: "auto",
76
+ margin: "calc(var(--Step-connectorInset) - var(--Step-gap)) auto calc(var(--Step-connectorInset) - var(--Stepper-verticalGap))",
77
+ alignSelf: "stretch"
78
+ }
79
+ },
80
+ variants: [{
81
+ props: {
82
+ orientation: "vertical"
83
+ },
84
+ style: {
85
+ flexDirection: "column",
86
+ [`.${n.horizontal} &`]: {
87
+ "&[data-last-child]": {
88
+ // for horizontal stepper, all vertical steps must have flex `1` to stretch equally.
89
+ "--_Step-flex": 1
90
+ },
91
+ "&[data-indicator]": {
92
+ "--_Step-justify": "flex-start"
93
+ },
94
+ "&::after": {
95
+ margin: 0,
96
+ position: "absolute",
97
+ height: "var(--Step-connectorThickness)",
98
+ zIndex: 0,
99
+ top: "calc(var(--StepIndicator-size) / 2 - var(--Step-connectorThickness) / 2)",
100
+ left: "calc(50% + var(--StepIndicator-size) / 2 + var(--Step-connectorInset))",
101
+ width: "calc(100% - var(--StepIndicator-size) - 2 * var(--Step-connectorInset))"
102
+ },
103
+ // Eventhough `:has` is <90% support, we can use it because this is an edge case for vertical step without an indicator.
104
+ [`&:has(.${p.indicator}:empty)::after`]: {
105
+ "--StepIndicator-size": "0px",
106
+ "--Step-connectorInset": "0px",
107
+ top: "calc(50% - var(--Step-connectorThickness) / 2)"
108
+ }
109
+ }
110
+ }
111
+ }]
112
+ })), U = h("div", {
113
+ name: "JoyStep",
114
+ slot: "Indicator",
115
+ overridesResolver: (o, e) => e.root
116
+ })({
117
+ display: "flex",
118
+ alignItems: "center",
119
+ justifyContent: "center",
120
+ placeSelf: "center",
121
+ // for vertical stepper
122
+ width: "var(--StepIndicator-size)",
123
+ height: "var(--StepIndicator-size)",
124
+ [`.${n.horizontal} &:empty`]: {
125
+ display: "none"
126
+ },
127
+ [`.${n.vertical} &:empty`]: {
128
+ height: "auto",
129
+ "&::before": {
130
+ content: '""',
131
+ display: "block",
132
+ width: "var(--Step-indicatorDotSize)",
133
+ height: "var(--Step-indicatorDotSize)",
134
+ borderRadius: "var(--Step-indicatorDotSize)",
135
+ color: "inherit",
136
+ background: "currentColor"
137
+ }
138
+ }
139
+ }), A = /* @__PURE__ */ R.forwardRef(function(e, a) {
140
+ const r = O({
141
+ props: e,
142
+ name: "JoyStep"
143
+ }), {
144
+ active: s = !1,
145
+ completed: l = !1,
146
+ className: u,
147
+ component: d = "li",
148
+ children: y,
149
+ disabled: g = !1,
150
+ orientation: x = "horizontal",
151
+ indicator: m,
152
+ slots: I = {},
153
+ slotProps: b = {}
154
+ } = r, T = P(r, E), c = i({}, r, {
155
+ active: s,
156
+ completed: l,
157
+ component: d,
158
+ disabled: g,
159
+ orientation: x
160
+ }), f = J(c), S = i({}, T, {
161
+ component: d,
162
+ slots: I,
163
+ slotProps: b
164
+ }), [z, j] = v("root", {
165
+ ref: a,
166
+ className: k(f.root, u),
167
+ elementType: F,
168
+ externalForwardedProps: S,
169
+ ownerState: c,
170
+ additionalProps: {
171
+ "data-indicator": m ? "" : void 0
172
+ }
173
+ }), [C, _] = v("indicator", {
174
+ ref: a,
175
+ className: f.indicator,
176
+ elementType: U,
177
+ externalForwardedProps: S,
178
+ ownerState: c
179
+ });
180
+ return /* @__PURE__ */ $(z, i({}, j, {
181
+ children: [/* @__PURE__ */ N(C, i({}, _, {
182
+ children: m
183
+ })), y]
184
+ }));
185
+ });
186
+ process.env.NODE_ENV !== "production" && (A.propTypes = {
187
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
188
+ // │ These PropTypes are generated from the TypeScript type definitions. │
189
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
190
+ // └─────────────────────────────────────────────────────────────────────┘
191
+ /**
192
+ * If `true`, the active className is appended.
193
+ * You can customize the active state from the Stepper's `sx` prop.
194
+ * @default false
195
+ */
196
+ active: t.bool,
197
+ /**
198
+ * Used to render icon or text elements inside the Step if `src` is not set.
199
+ * This can be an element, or just a string.
200
+ */
201
+ children: t.node,
202
+ /**
203
+ * @ignore
204
+ */
205
+ className: t.string,
206
+ /**
207
+ * If `true`, the completed className is appended.
208
+ * You can customize the active state from the Stepper's `sx` prop.
209
+ * @default false
210
+ */
211
+ completed: t.bool,
212
+ /**
213
+ * The component used for the root node.
214
+ * Either a string to use a HTML element or a component.
215
+ */
216
+ component: t.elementType,
217
+ /**
218
+ * If `true`, the active className is appended.
219
+ * You can customize the active state from the Stepper's `sx` prop.
220
+ * @default false
221
+ */
222
+ disabled: t.bool,
223
+ /**
224
+ * The indicator to display. If provided, a wrapper element will be used.
225
+ */
226
+ indicator: t.node,
227
+ /**
228
+ * The component orientation.
229
+ * @default 'horizontal'
230
+ */
231
+ orientation: t.oneOf(["horizontal", "vertical"]),
232
+ /**
233
+ * The props used for each slot inside.
234
+ * @default {}
235
+ */
236
+ slotProps: t.shape({
237
+ indicator: t.oneOfType([t.func, t.object]),
238
+ root: t.oneOfType([t.func, t.object])
239
+ }),
240
+ /**
241
+ * The components used for each slot inside.
242
+ * @default {}
243
+ */
244
+ slots: t.shape({
245
+ indicator: t.elementType,
246
+ root: t.elementType
247
+ }),
248
+ /**
249
+ * The system prop that allows defining system overrides as well as additional CSS styles.
250
+ */
251
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
252
+ });
253
+ export {
254
+ A as default
255
+ };
@@ -0,0 +1,9 @@
1
+ import { generateUtilityClass as e, generateUtilityClasses as i } from "../className/index.js";
2
+ function a(t) {
3
+ return e("MuiStep", t);
4
+ }
5
+ const l = i("MuiStep", ["root", "indicator", "horizontal", "vertical", "active", "completed", "disabled"]);
6
+ export {
7
+ l as default,
8
+ a as getStepUtilityClass
9
+ };
@@ -0,0 +1,136 @@
1
+ import n from "../../../../../@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/extends.js";
2
+ import v from "../../../../../@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
3
+ import * as B from "react";
4
+ import { clsx as h } from "../../../../../clsx@2.1.1/node_modules/clsx/dist/clsx.js";
5
+ import t from "../../../../../../../_virtual/index.js";
6
+ import x from "../styles/styled.js";
7
+ import o from "../Step/stepClasses.js";
8
+ import a from "../Stepper/stepperClasses.js";
9
+ import y from "./stepButtonClasses.js";
10
+ import _ from "../utils/useSlot.js";
11
+ import { jsx as T } from "react/jsx-runtime";
12
+ import P from "../styles/useThemeProps.js";
13
+ const z = ["className", "component", "children", "slots", "slotProps"], I = x("button", {
14
+ name: "JoyStepButton",
15
+ slot: "Root",
16
+ overridesResolver: (e, r) => r.root
17
+ })(({
18
+ theme: e
19
+ }) => ({
20
+ [`.${o.indicator}:empty + &`]: {
21
+ "--StepIndicator-size": "0px",
22
+ "--Step-gap": "0px"
23
+ },
24
+ [`.${o.horizontal} &`]: {
25
+ "--_StepButton-alignSelf": "stretch",
26
+ "--_StepButton-gap": "var(--Step-gap)"
27
+ },
28
+ [`.${o.horizontal} &::before`]: {
29
+ "--_StepButton-left": "calc(-1 * (var(--StepIndicator-size) + var(--Step-gap)))"
30
+ },
31
+ [`.${o.vertical} &::before`]: {
32
+ "--_StepButton-top": "calc(-1 * (var(--StepIndicator-size) + var(--Step-gap)))"
33
+ },
34
+ [`.${a.vertical} .${o.vertical} &`]: {
35
+ "--_StepButton-alignItems": "flex-start"
36
+ },
37
+ [`.${a.vertical} &::before`]: {
38
+ "--_StepButton-left": "calc(-1 * (var(--StepIndicator-size) + var(--Step-gap)))",
39
+ "--_StepButton-top": "0px"
40
+ },
41
+ WebkitTapHighlightColor: "transparent",
42
+ boxSizing: "border-box",
43
+ border: "none",
44
+ backgroundColor: "transparent",
45
+ cursor: "pointer",
46
+ position: "relative",
47
+ padding: 0,
48
+ textDecoration: "none",
49
+ // prevent user agent underline when used as anchor
50
+ font: "inherit",
51
+ display: "inline-flex",
52
+ flexDirection: "inherit",
53
+ alignItems: "var(--_StepButton-alignItems, inherit)",
54
+ alignSelf: "var(--_StepButton-alignSelf)",
55
+ gap: "var(--_StepButton-gap)",
56
+ [e.focus.selector]: e.focus.default,
57
+ "&::before": {
58
+ content: '""',
59
+ display: "block",
60
+ position: "absolute",
61
+ top: "var(--_StepButton-top, 0)",
62
+ right: 0,
63
+ bottom: 0,
64
+ left: "var(--_StepButton-left, 0)"
65
+ }
66
+ })), $ = /* @__PURE__ */ B.forwardRef(function(r, i) {
67
+ const p = P({
68
+ props: r,
69
+ name: "JoyStepButton"
70
+ }), {
71
+ className: l,
72
+ component: s = "button",
73
+ children: c,
74
+ slots: f = {},
75
+ slotProps: m = {}
76
+ } = p, u = v(p, z), S = n({}, p, {
77
+ component: s
78
+ }), d = n({}, u, {
79
+ component: s,
80
+ slots: f,
81
+ slotProps: m
82
+ }), [b, g] = _("root", {
83
+ ref: i,
84
+ className: h(y.root, l),
85
+ elementType: I,
86
+ externalForwardedProps: d,
87
+ ownerState: S,
88
+ additionalProps: {
89
+ type: "button"
90
+ }
91
+ });
92
+ return /* @__PURE__ */ T(b, n({}, g, {
93
+ children: c
94
+ }));
95
+ });
96
+ process.env.NODE_ENV !== "production" && ($.propTypes = {
97
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
98
+ // │ These PropTypes are generated from the TypeScript type definitions. │
99
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
100
+ // └─────────────────────────────────────────────────────────────────────┘
101
+ /**
102
+ * Used to render icon or text elements inside the StepButton if `src` is not set.
103
+ * This can be an element, or just a string.
104
+ */
105
+ children: t.node,
106
+ /**
107
+ * @ignore
108
+ */
109
+ className: t.string,
110
+ /**
111
+ * The component used for the root node.
112
+ * Either a string to use a HTML element or a component.
113
+ */
114
+ component: t.elementType,
115
+ /**
116
+ * The props used for each slot inside.
117
+ * @default {}
118
+ */
119
+ slotProps: t.shape({
120
+ root: t.oneOfType([t.func, t.object])
121
+ }),
122
+ /**
123
+ * The components used for each slot inside.
124
+ * @default {}
125
+ */
126
+ slots: t.shape({
127
+ root: t.elementType
128
+ }),
129
+ /**
130
+ * The system prop that allows defining system overrides as well as additional CSS styles.
131
+ */
132
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
133
+ });
134
+ export {
135
+ $ as default
136
+ };
@@ -0,0 +1,5 @@
1
+ import { generateUtilityClasses as t } from "../className/index.js";
2
+ const s = t("MuiStepButton", ["root"]);
3
+ export {
4
+ s as default
5
+ };
@@ -0,0 +1,123 @@
1
+ import T from "../../../../../@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
2
+ import n from "../../../../../@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/extends.js";
3
+ import * as x from "react";
4
+ import { clsx as b } from "../../../../../clsx@2.1.1/node_modules/clsx/dist/clsx.js";
5
+ import o from "../../../../../../../_virtual/index.js";
6
+ import g from "../styles/styled.js";
7
+ import { getStepIndicatorUtilityClass as O } from "./stepIndicatorClasses.js";
8
+ import P from "../utils/useSlot.js";
9
+ import { jsx as R } from "react/jsx-runtime";
10
+ import j from "../styles/useThemeProps.js";
11
+ import c from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/capitalize/capitalize.js";
12
+ import z from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/composeClasses/composeClasses.js";
13
+ const N = ["className", "component", "color", "children", "variant", "slots", "slotProps"], C = (e) => {
14
+ const {
15
+ color: t,
16
+ variant: r
17
+ } = e, s = {
18
+ root: ["root", t && `color${c(t)}`, r && `variant${c(r)}`]
19
+ };
20
+ return z(s, O, {});
21
+ }, _ = g("div", {
22
+ name: "JoyStepIndicator",
23
+ slot: "Root",
24
+ overridesResolver: (e, t) => t.root
25
+ })(({
26
+ theme: e,
27
+ ownerState: t
28
+ }) => {
29
+ var r;
30
+ return n({
31
+ "--Icon-fontSize": "calc(var(--StepIndicator-size, 2rem) / 2)",
32
+ "--Icon-color": "currentColor",
33
+ boxSizing: "border-box",
34
+ display: "flex",
35
+ alignItems: "center",
36
+ justifyContent: "center",
37
+ font: "inherit",
38
+ borderRadius: "50%",
39
+ width: "var(--StepIndicator-size, 1.5rem)",
40
+ height: "var(--StepIndicator-size, 1.5rem)"
41
+ }, (r = e.variants[t.variant]) == null ? void 0 : r[t.color]);
42
+ }), w = /* @__PURE__ */ x.forwardRef(function(t, r) {
43
+ const s = j({
44
+ props: t,
45
+ name: "JoyStepIndicator"
46
+ }), {
47
+ className: p,
48
+ component: i = "div",
49
+ color: l = "neutral",
50
+ children: m,
51
+ variant: d = "soft",
52
+ slots: f = {},
53
+ slotProps: u = {}
54
+ } = s, v = T(s, N), a = n({}, s, {
55
+ component: i,
56
+ color: l,
57
+ variant: d
58
+ }), y = C(a), h = n({}, v, {
59
+ component: i,
60
+ slots: f,
61
+ slotProps: u
62
+ }), [S, I] = P("root", {
63
+ ref: r,
64
+ className: b(y.root, p),
65
+ elementType: _,
66
+ externalForwardedProps: h,
67
+ ownerState: a
68
+ });
69
+ return /* @__PURE__ */ R(S, n({}, I, {
70
+ children: m
71
+ }));
72
+ });
73
+ process.env.NODE_ENV !== "production" && (w.propTypes = {
74
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
75
+ // │ These PropTypes are generated from the TypeScript type definitions. │
76
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
77
+ // └─────────────────────────────────────────────────────────────────────┘
78
+ /**
79
+ * Used to render icon or text elements inside the StepIndicator if `src` is not set.
80
+ * This can be an element, or just a string.
81
+ */
82
+ children: o.node,
83
+ /**
84
+ * @ignore
85
+ */
86
+ className: o.string,
87
+ /**
88
+ * The color of the component. It supports those theme colors that make sense for this component.
89
+ * @default 'neutral'
90
+ */
91
+ color: o.oneOfType([o.oneOf(["danger", "neutral", "primary", "success", "warning"]), o.string]),
92
+ /**
93
+ * The component used for the root node.
94
+ * Either a string to use a HTML element or a component.
95
+ */
96
+ component: o.elementType,
97
+ /**
98
+ * The props used for each slot inside.
99
+ * @default {}
100
+ */
101
+ slotProps: o.shape({
102
+ root: o.oneOfType([o.func, o.object])
103
+ }),
104
+ /**
105
+ * The components used for each slot inside.
106
+ * @default {}
107
+ */
108
+ slots: o.shape({
109
+ root: o.elementType
110
+ }),
111
+ /**
112
+ * The system prop that allows defining system overrides as well as additional CSS styles.
113
+ */
114
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
115
+ /**
116
+ * The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
117
+ * @default 'soft'
118
+ */
119
+ variant: o.oneOfType([o.oneOf(["outlined", "plain", "soft", "solid"]), o.string])
120
+ });
121
+ export {
122
+ w as default
123
+ };
@@ -0,0 +1,8 @@
1
+ import { generateUtilityClass as r, generateUtilityClasses as o } from "../className/index.js";
2
+ function a(t) {
3
+ return r("MuiStepIndicator", t);
4
+ }
5
+ o("MuiStepIndicator", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "horizontal", "vertical"]);
6
+ export {
7
+ a as getStepIndicatorUtilityClass
8
+ };