@harpercollins/harpercollins-design-system 1.29.6 → 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 (62) hide show
  1. package/dist/cjs/components/data-display/Table/FilterChipsSection.cjs +1 -1
  2. package/dist/cjs/components/data-display/Table/Table.cjs +1 -1
  3. package/dist/cjs/components/data-display/Table/filters/FilterComponents.cjs +2 -2
  4. package/dist/cjs/components/global/AppBar/AppBar.cjs +3 -3
  5. package/dist/cjs/components/inputs/Input/FormHelperText.cjs +1 -0
  6. package/dist/cjs/components/navigation/Stepper/Step.cjs +1 -0
  7. package/dist/cjs/components/navigation/Stepper/StepButton.cjs +1 -0
  8. package/dist/cjs/components/navigation/Stepper/StepIndicator.cjs +1 -0
  9. package/dist/cjs/components/navigation/Stepper/Stepper.cjs +1 -0
  10. package/dist/cjs/components/navigation/Stepper/index.cjs +1 -0
  11. package/dist/cjs/index.cjs +1 -1
  12. package/dist/cjs/node_modules/.pnpm/@mui_base@5.0.0-beta.40-1_@types_react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@mui/base/useSlider/useSlider.cjs +1 -1
  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/FormHelperText/FormHelperText.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/FormHelperText/formHelperTextClasses.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/FormLabel/formLabelClasses.cjs +1 -1
  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/ListItemButton/ListItemButton.cjs +1 -1
  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/Modal/Modal.cjs +1 -1
  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/Step/Step.cjs +1 -0
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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/className/index.cjs +1 -1
  27. package/dist/esm/components/data-display/Table/FilterChipsSection.js +1 -1
  28. package/dist/esm/components/data-display/Table/Table.js +4 -4
  29. package/dist/esm/components/data-display/Table/TableBody.js +1 -1
  30. package/dist/esm/components/data-display/Table/filters/FilterComponents.js +10 -10
  31. package/dist/esm/components/global/AppBar/AppBar.js +7 -7
  32. package/dist/esm/components/inputs/Input/FormHelperText.js +8 -0
  33. package/dist/esm/components/navigation/Stepper/Step.js +4 -0
  34. package/dist/esm/components/navigation/Stepper/StepButton.js +4 -0
  35. package/dist/esm/components/navigation/Stepper/StepIndicator.js +4 -0
  36. package/dist/esm/components/navigation/Stepper/Stepper.js +8 -0
  37. package/dist/esm/components/navigation/Stepper/index.js +4 -0
  38. package/dist/esm/contexts/NavigationProgressContext.js +5 -5
  39. package/dist/esm/index.js +204 -195
  40. package/dist/esm/node_modules/.pnpm/@mui_base@5.0.0-beta.40-1_@types_react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@mui/base/useSlider/useSlider.js +4 -4
  41. 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/Accordion/accordionClasses.js +3 -3
  42. 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/AccordionDetails/accordionDetailsClasses.js +3 -3
  43. 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/Autocomplete/Autocomplete.js +1 -1
  44. 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
  45. 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
  46. 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
  47. 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/ListItem/listItemClasses.js +3 -3
  48. 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/ListItemButton/ListItemButton.js +1 -1
  49. 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/ListItemButton/listItemButtonClasses.js +3 -3
  50. 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/Modal/Modal.js +1 -1
  51. 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
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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/Switch/switchClasses.js +3 -3
  60. 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/className/index.js +3 -3
  61. package/dist/index.d.ts +15 -0
  62. package/package.json +6 -10
@@ -0,0 +1,107 @@
1
+ import i 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 s from "react";
4
+ import o from "../../../../../../../_virtual/index.js";
5
+ import { getFormHelperTextUtilityClass as h } from "./formHelperTextClasses.js";
6
+ import C from "../FormControl/FormControlContext.js";
7
+ import g from "../FormControl/formControlClasses.js";
8
+ import R from "../FormLabel/formLabelClasses.js";
9
+ import b from "../utils/useSlot.js";
10
+ import { jsx as P } from "react/jsx-runtime";
11
+ import S from "../styles/useThemeProps.js";
12
+ import j from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/useForkRef/useForkRef.js";
13
+ import O from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/composeClasses/composeClasses.js";
14
+ import $ from "../styles/styled.js";
15
+ const z = ["children", "component", "slots", "slotProps"], _ = () => O({
16
+ root: ["root"]
17
+ }, h, {}), w = $("div", {
18
+ name: "JoyFormHelperText",
19
+ slot: "Root",
20
+ overridesResolver: (e, l) => l.root
21
+ })(({
22
+ theme: e
23
+ }) => ({
24
+ "--Icon-fontSize": "calc(var(--FormHelperText-lineHeight) * 1em)",
25
+ display: "flex",
26
+ alignItems: "center",
27
+ gap: "2px",
28
+ fontFamily: e.vars.fontFamily.body,
29
+ fontSize: `var(--FormHelperText-fontSize, ${e.vars.fontSize.sm})`,
30
+ lineHeight: `var(--FormHelperText-lineHeight, ${e.vars.lineHeight.sm})`,
31
+ color: `var(--FormHelperText-color, ${e.vars.palette.text.tertiary})`,
32
+ margin: "var(--FormHelperText-margin, 0px)",
33
+ [`.${R.root} + &`]: {
34
+ "--FormHelperText-margin": "0px"
35
+ // remove the margin if the helper text is next to the form label.
36
+ },
37
+ [`.${g.error} &`]: {
38
+ "--Icon-color": "currentColor"
39
+ }
40
+ })), E = /* @__PURE__ */ s.forwardRef(function(l, a) {
41
+ const n = S({
42
+ props: l,
43
+ name: "JoyFormHelperText"
44
+ }), {
45
+ children: c,
46
+ component: p,
47
+ slots: f = {},
48
+ slotProps: d = {}
49
+ } = n, x = v(n, z), m = s.useRef(null), u = j(m, a), t = s.useContext(C), r = t?.setHelperText;
50
+ s.useEffect(() => (r?.(m.current), () => {
51
+ r?.(null);
52
+ }), [r]);
53
+ const T = _(), y = i({}, x, {
54
+ component: p,
55
+ slots: f,
56
+ slotProps: d
57
+ }), [H, F] = b("root", {
58
+ ref: u,
59
+ elementType: w,
60
+ externalForwardedProps: y,
61
+ ownerState: n,
62
+ additionalProps: {
63
+ as: p,
64
+ id: t?.["aria-describedby"]
65
+ },
66
+ className: T.root
67
+ });
68
+ return /* @__PURE__ */ P(H, i({}, F, {
69
+ children: c
70
+ }));
71
+ });
72
+ process.env.NODE_ENV !== "production" && (E.propTypes = {
73
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
74
+ // │ These PropTypes are generated from the TypeScript type definitions. │
75
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
76
+ // └─────────────────────────────────────────────────────────────────────┘
77
+ /**
78
+ * The content of the component.
79
+ */
80
+ children: o.node,
81
+ /**
82
+ * The component used for the root node.
83
+ * Either a string to use a HTML element or a component.
84
+ */
85
+ component: o.elementType,
86
+ /**
87
+ * The props used for each slot inside.
88
+ * @default {}
89
+ */
90
+ slotProps: o.shape({
91
+ root: o.oneOfType([o.func, o.object])
92
+ }),
93
+ /**
94
+ * The components used for each slot inside.
95
+ * @default {}
96
+ */
97
+ slots: o.shape({
98
+ root: o.elementType
99
+ }),
100
+ /**
101
+ * The system prop that allows defining system overrides as well as additional CSS styles.
102
+ */
103
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
104
+ });
105
+ export {
106
+ E as default
107
+ };
@@ -0,0 +1,8 @@
1
+ import { generateUtilityClass as t, generateUtilityClasses as r } from "../className/index.js";
2
+ function l(e) {
3
+ return t("MuiFormHelperText", e);
4
+ }
5
+ r("MuiFormHelperText", ["root"]);
6
+ export {
7
+ l as getFormHelperTextUtilityClass
8
+ };
@@ -1,8 +1,9 @@
1
- import { generateUtilityClass as e, generateUtilityClasses as r } from "../className/index.js";
2
- function a(t) {
3
- return e("MuiFormLabel", t);
1
+ import { generateUtilityClass as t, generateUtilityClasses as s } from "../className/index.js";
2
+ function r(e) {
3
+ return t("MuiFormLabel", e);
4
4
  }
5
- r("MuiFormLabel", ["root", "asterisk"]);
5
+ const l = s("MuiFormLabel", ["root", "asterisk"]);
6
6
  export {
7
- a as getFormLabelUtilityClass
7
+ l as default,
8
+ r as getFormLabelUtilityClass
8
9
  };
@@ -1,8 +1,8 @@
1
- import { generateUtilityClass as i, generateUtilityClasses as e } from "../className/index.js";
1
+ import { generateUtilityClasses as i, generateUtilityClass as e } from "../className/index.js";
2
2
  function r(t) {
3
- return i("MuiListItem", t);
3
+ return e("MuiListItem", t);
4
4
  }
5
- const a = e("MuiListItem", ["root", "startAction", "endAction", "nested", "nesting", "sticky", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantSoft", "variantOutlined", "variantSolid"]);
5
+ const a = i("MuiListItem", ["root", "startAction", "endAction", "nested", "nesting", "sticky", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantSoft", "variantOutlined", "variantSolid"]);
6
6
  export {
7
7
  a as default,
8
8
  r as getListItemUtilityClass
@@ -9,12 +9,12 @@ import H from "./ListItemButtonOrientationContext.js";
9
9
  import F from "../List/RowListContext.js";
10
10
  import E from "../utils/useSlot.js";
11
11
  import { jsx as x } from "react/jsx-runtime";
12
+ import y from "../styles/styled.js";
12
13
  import J from "../styles/useThemeProps.js";
13
14
  import U from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/useForkRef/useForkRef.js";
14
15
  import { useButton as q } from "../../../../../@mui_base@5.0.0-beta.40-1_@types_react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@mui/base/useButton/useButton.js";
15
16
  import L from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/capitalize/capitalize.js";
16
17
  import Y from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/composeClasses/composeClasses.js";
17
- import y from "../styles/styled.js";
18
18
  const G = ["children", "className", "action", "component", "orientation", "role", "selected", "color", "variant", "slots", "slotProps"], K = (e) => {
19
19
  const {
20
20
  color: o,
@@ -1,8 +1,8 @@
1
- import { generateUtilityClass as o, generateUtilityClasses as i } from "../className/index.js";
1
+ import { generateUtilityClasses as o, generateUtilityClass as i } from "../className/index.js";
2
2
  function r(t) {
3
- return o("MuiListItemButton", t);
3
+ return i("MuiListItemButton", t);
4
4
  }
5
- const a = i("MuiListItemButton", ["root", "horizontal", "vertical", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "focusVisible", "disabled", "selected", "variantPlain", "variantSoft", "variantOutlined", "variantSolid"]);
5
+ const a = o("MuiListItemButton", ["root", "horizontal", "vertical", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "focusVisible", "disabled", "selected", "variantPlain", "variantSoft", "variantOutlined", "variantSolid"]);
6
6
  export {
7
7
  a as default,
8
8
  r as getListItemButtonUtilityClass
@@ -6,12 +6,12 @@ import P from "../utils/useSlot.js";
6
6
  import { getModalUtilityClass as K } from "./modalClasses.js";
7
7
  import L from "./CloseModalContext.js";
8
8
  import { jsx as l, jsxs as N } from "react/jsx-runtime";
9
+ import n from "../styles/styled.js";
9
10
  import J from "../styles/useThemeProps.js";
10
11
  import { useModal as q } from "../../../../../@mui_base@5.0.0-beta.40-1_@types_react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@mui/base/unstable_useModal/useModal.js";
11
12
  import { Portal as H } from "../../../../../@mui_base@5.0.0-beta.40-1_@types_react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@mui/base/Portal/Portal.js";
12
13
  import { FocusTrap as U } from "../../../../../@mui_base@5.0.0-beta.40-1_@types_react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@mui/base/FocusTrap/FocusTrap.js";
13
14
  import W from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/composeClasses/composeClasses.js";
14
- import n from "../styles/styled.js";
15
15
  import $ from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js";
16
16
  import V from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType.js";
17
17
  const G = ["children", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onClose", "onKeyDown", "open", "component", "slots", "slotProps"], Q = (s) => {
@@ -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
+ };