@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,164 @@
1
+ import P from "../../../../../@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
2
+ import r from "../../../../../@babel_runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/extends.js";
3
+ import * as p from "react";
4
+ import { clsx as b } from "../../../../../clsx@2.1.1/node_modules/clsx/dist/clsx.js";
5
+ import e from "../../../../../../../_virtual/index.js";
6
+ import O from "../styles/styled.js";
7
+ import { getStepperUtilityClass as C } from "./stepperClasses.js";
8
+ import I from "../utils/useSlot.js";
9
+ import { jsx as N } from "react/jsx-runtime";
10
+ import R from "../styles/useThemeProps.js";
11
+ import j 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 E 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 G = ["className", "component", "size", "children", "orientation", "slots", "slotProps"], _ = (o) => {
14
+ const {
15
+ size: t,
16
+ orientation: n
17
+ } = o, s = {
18
+ root: ["root", n, t && `size${j(t)}`]
19
+ };
20
+ return E(s, C, {});
21
+ }, w = O("ol", {
22
+ name: "JoyStepper",
23
+ slot: "Root",
24
+ overridesResolver: (o, t) => t.root
25
+ })(({
26
+ theme: o
27
+ }) => ({
28
+ "--Stepper-indicatorColumn": "auto",
29
+ // For vertical stepper, to control the column width of the indicator.
30
+ "--Step-connectorThickness": "1px",
31
+ "--Step-indicatorDotSize": "0.375rem",
32
+ boxSizing: "border-box",
33
+ display: "flex",
34
+ margin: 0,
35
+ // Reset browser default style.
36
+ padding: 0,
37
+ // Reset browser default style.
38
+ variants: [{
39
+ props: {
40
+ size: "sm"
41
+ },
42
+ style: r({
43
+ "--Stepper-verticalGap": "0.5rem",
44
+ "--Step-gap": "0.375rem",
45
+ "--Step-connectorInset": "0.25rem",
46
+ "--StepIndicator-size": "1.25rem"
47
+ }, o.typography["title-sm"])
48
+ }, {
49
+ props: {
50
+ size: "md"
51
+ },
52
+ style: r({
53
+ "--Stepper-verticalGap": "0.75rem",
54
+ "--Step-gap": "0.5rem",
55
+ "--Step-connectorInset": "0.375rem",
56
+ "--StepIndicator-size": "1.5rem"
57
+ }, o.typography["title-md"])
58
+ }, {
59
+ props: {
60
+ size: "lg"
61
+ },
62
+ style: r({
63
+ "--Stepper-verticalGap": "0.75rem",
64
+ "--Step-gap": "0.5rem",
65
+ "--Step-connectorInset": "0.5rem",
66
+ "--StepIndicator-size": "1.75rem"
67
+ }, o.typography["title-lg"])
68
+ }, {
69
+ props: {
70
+ orientation: "vertical"
71
+ },
72
+ style: {
73
+ flexDirection: "column",
74
+ gap: "var(--Stepper-verticalGap)"
75
+ }
76
+ }]
77
+ })), D = /* @__PURE__ */ p.forwardRef(function(t, n) {
78
+ const s = R({
79
+ props: t,
80
+ name: "JoyStepper"
81
+ }), {
82
+ className: f,
83
+ component: l = "ol",
84
+ size: S = "md",
85
+ children: c,
86
+ orientation: y = "horizontal",
87
+ slots: u = {},
88
+ slotProps: g = {}
89
+ } = s, z = P(s, G), m = r({}, s, {
90
+ component: l,
91
+ orientation: y,
92
+ size: S
93
+ }), h = _(m), v = r({}, z, {
94
+ component: l,
95
+ slots: u,
96
+ slotProps: g
97
+ }), [x, T] = I("root", {
98
+ ref: n,
99
+ className: b(h.root, f),
100
+ elementType: w,
101
+ externalForwardedProps: v,
102
+ ownerState: m
103
+ });
104
+ return /* @__PURE__ */ N(x, r({}, T, {
105
+ children: p.Children.map(c, (i, d) => {
106
+ if (!/* @__PURE__ */ p.isValidElement(i))
107
+ return i;
108
+ const a = {};
109
+ return d === 0 && (a["data-first-child"] = ""), d === p.Children.count(c) - 1 && (a["data-last-child"] = ""), /* @__PURE__ */ p.cloneElement(i, a);
110
+ })
111
+ }));
112
+ });
113
+ process.env.NODE_ENV !== "production" && (D.propTypes = {
114
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
115
+ // │ These PropTypes are generated from the TypeScript type definitions. │
116
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
117
+ // └─────────────────────────────────────────────────────────────────────┘
118
+ /**
119
+ * Used to render icon or text elements inside the Stepper if `src` is not set.
120
+ * This can be an element, or just a string.
121
+ */
122
+ children: e.node,
123
+ /**
124
+ * @ignore
125
+ */
126
+ className: e.string,
127
+ /**
128
+ * The component used for the root node.
129
+ * Either a string to use a HTML element or a component.
130
+ */
131
+ component: e.elementType,
132
+ /**
133
+ * The component orientation.
134
+ * @default 'horizontal'
135
+ */
136
+ orientation: e.oneOf(["horizontal", "vertical"]),
137
+ /**
138
+ * The size of the component.
139
+ * It accepts theme values between 'sm' and 'lg'.
140
+ * @default 'md'
141
+ */
142
+ size: e.oneOfType([e.oneOf(["lg", "md", "sm"]), e.string]),
143
+ /**
144
+ * The props used for each slot inside.
145
+ * @default {}
146
+ */
147
+ slotProps: e.shape({
148
+ root: e.oneOfType([e.func, e.object])
149
+ }),
150
+ /**
151
+ * The components used for each slot inside.
152
+ * @default {}
153
+ */
154
+ slots: e.shape({
155
+ root: e.elementType
156
+ }),
157
+ /**
158
+ * The system prop that allows defining system overrides as well as additional CSS styles.
159
+ */
160
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
161
+ });
162
+ export {
163
+ D as default
164
+ };
@@ -0,0 +1,9 @@
1
+ import { generateUtilityClasses as t, generateUtilityClass as s } from "../className/index.js";
2
+ function r(e) {
3
+ return s("MuiStepper", e);
4
+ }
5
+ const a = t("MuiStepper", ["root", "sizeSm", "sizeMd", "sizeLg", "horizontal", "vertical"]);
6
+ export {
7
+ a as default,
8
+ r as getStepperUtilityClass
9
+ };
package/dist/index.d.ts CHANGED
@@ -33,6 +33,7 @@ import { DropdownProps } from '@mui/joy';
33
33
  import { ExtendMenuItem } from '@mui/joy';
34
34
  import { FastOmit } from 'styled-components';
35
35
  import { FormControlProps } from '@mui/joy';
36
+ import { FormHelperTextProps } from '@mui/joy';
36
37
  import { FormLabelProps } from '@mui/joy';
37
38
  import { GridProps } from '@mui/joy';
38
39
  import { HTMLAttributes } from 'react';
@@ -73,6 +74,10 @@ import { SelectProps } from '@mui/joy';
73
74
  import { SheetProps } from '@mui/joy';
74
75
  import { SkeletonProps } from '@mui/joy';
75
76
  import { SliderProps } from '@mui/joy';
77
+ import { Step } from '@mui/joy';
78
+ import { StepButton } from '@mui/joy';
79
+ import { StepIndicator } from '@mui/joy';
80
+ import { StepperProps } from '@mui/joy';
76
81
  import { SwitchProps } from '@mui/joy';
77
82
  import { SyntheticEvent } from 'react';
78
83
  import { default as Tab } from '@mui/joy/Tab';
@@ -257,6 +262,8 @@ export declare const formatText: (text: string | null | undefined) => string;
257
262
 
258
263
  export declare function FormControl(props: FormControlProps): JSX_2.Element;
259
264
 
265
+ export declare function FormHelperText(props: FormHelperTextProps): JSX_2.Element;
266
+
260
267
  export declare function FormLabel(props: FormLabelProps): JSX_2.Element;
261
268
 
262
269
  export declare function FullPageErrorFallback(): JSX_2.Element;
@@ -489,6 +496,14 @@ export declare function StatusIcon({ status, size, }: {
489
496
  size?: IconSizes;
490
497
  }): JSX_2.Element;
491
498
 
499
+ export { Step }
500
+
501
+ export { StepButton }
502
+
503
+ export { StepIndicator }
504
+
505
+ export declare function Stepper(props: StepperProps): JSX_2.Element;
506
+
492
507
  export declare function Switch(props: SwitchProps): JSX_2.Element;
493
508
 
494
509
  export { Tab }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harpercollins/harpercollins-design-system",
3
- "version": "1.29.7",
3
+ "version": "1.30.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@ssh.dev.azure.com:v3/HarperCollinsUK/HCDesignSystem/HCDesignSystem"