@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.
- package/dist/cjs/components/data-display/Table/FilterChipsSection.cjs +1 -1
- package/dist/cjs/components/data-display/Table/Table.cjs +1 -1
- package/dist/cjs/components/data-display/Table/filters/FilterComponents.cjs +2 -2
- package/dist/cjs/components/global/AppBar/AppBar.cjs +3 -3
- package/dist/cjs/components/inputs/Input/FormHelperText.cjs +1 -0
- package/dist/cjs/components/navigation/Stepper/Step.cjs +1 -0
- package/dist/cjs/components/navigation/Stepper/StepButton.cjs +1 -0
- package/dist/cjs/components/navigation/Stepper/StepIndicator.cjs +1 -0
- package/dist/cjs/components/navigation/Stepper/Stepper.cjs +1 -0
- package/dist/cjs/components/navigation/Stepper/index.cjs +1 -0
- package/dist/cjs/index.cjs +1 -1
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/esm/components/data-display/Table/FilterChipsSection.js +1 -1
- package/dist/esm/components/data-display/Table/Table.js +4 -4
- package/dist/esm/components/data-display/Table/TableBody.js +1 -1
- package/dist/esm/components/data-display/Table/filters/FilterComponents.js +10 -10
- package/dist/esm/components/global/AppBar/AppBar.js +7 -7
- package/dist/esm/components/inputs/Input/FormHelperText.js +8 -0
- package/dist/esm/components/navigation/Stepper/Step.js +4 -0
- package/dist/esm/components/navigation/Stepper/StepButton.js +4 -0
- package/dist/esm/components/navigation/Stepper/StepIndicator.js +4 -0
- package/dist/esm/components/navigation/Stepper/Stepper.js +8 -0
- package/dist/esm/components/navigation/Stepper/index.js +4 -0
- package/dist/esm/contexts/NavigationProgressContext.js +5 -5
- package/dist/esm/index.js +204 -195
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/index.d.ts +15 -0
- package/package.json +6 -10
|
@@ -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
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { generateUtilityClass as i, generateUtilityClasses as e } from "../className/index.js";
|
|
2
2
|
function o(t) {
|
|
3
|
-
return
|
|
3
|
+
return i("MuiSwitch", t);
|
|
4
4
|
}
|
|
5
|
-
const a =
|
|
5
|
+
const a = e("MuiSwitch", ["root", "checked", "disabled", "action", "input", "thumb", "track", "focusVisible", "readOnly", "colorPrimary", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "sizeSm", "sizeMd", "sizeLg", "variantOutlined", "variantSoft", "variantSolid", "startDecorator", "endDecorator"]);
|
|
6
6
|
export {
|
|
7
7
|
a as default,
|
|
8
8
|
o as getSwitchUtilityClass
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import i from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/
|
|
2
|
-
import s from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/
|
|
3
|
-
const l = (t, e) =>
|
|
1
|
+
import i from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js";
|
|
2
|
+
import s from "../../../../../@mui_utils@5.17.1_@types_react@18.3.28_react@18.3.1/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js";
|
|
3
|
+
const l = (t, e) => i(t, e, "Mui"), o = (t, e) => s(t, e, "Mui");
|
|
4
4
|
export {
|
|
5
5
|
l as generateUtilityClass,
|
|
6
6
|
o as generateUtilityClasses
|
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.
|
|
3
|
+
"version": "1.30.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git@ssh.dev.azure.com:v3/HarperCollinsUK/HCDesignSystem/HCDesignSystem"
|
|
@@ -9,18 +9,16 @@
|
|
|
9
9
|
"name": "HarperCollins"
|
|
10
10
|
},
|
|
11
11
|
"license": "MIT",
|
|
12
|
+
"type": "module",
|
|
12
13
|
"main": "dist/cjs/index.cjs",
|
|
13
14
|
"module": "dist/esm/index.js",
|
|
14
15
|
"types": "dist/index.d.ts",
|
|
15
|
-
"style": "dist/esm/assets/harpercollins-design-system.css",
|
|
16
|
-
"type": "module",
|
|
17
16
|
"exports": {
|
|
18
17
|
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
19
|
"import": "./dist/esm/index.js",
|
|
20
|
-
"require": "./dist/cjs/index.cjs"
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
"./styles.css": "./dist/esm/assets/harpercollins-design-system.css"
|
|
20
|
+
"require": "./dist/cjs/index.cjs"
|
|
21
|
+
}
|
|
24
22
|
},
|
|
25
23
|
"files": [
|
|
26
24
|
"dist/**/*",
|
|
@@ -139,9 +137,7 @@
|
|
|
139
137
|
"@types/mime": "3.0.4",
|
|
140
138
|
"styled-components": "^6.1.11"
|
|
141
139
|
},
|
|
142
|
-
"sideEffects":
|
|
143
|
-
"**/*.css"
|
|
144
|
-
],
|
|
140
|
+
"sideEffects": true,
|
|
145
141
|
"scripts": {
|
|
146
142
|
"dev": "vite",
|
|
147
143
|
"build": "rimraf dist && vite build --mode lib",
|