@harpercollins/harpercollins-design-system 1.29.7 → 1.31.0

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 (60) hide show
  1. package/dist/cjs/components/data-display/AspectRatio/AspectRatio.cjs +1 -0
  2. package/dist/cjs/components/data-display/AspectRatio/index.cjs +1 -0
  3. package/dist/cjs/components/data-display/Table/Table.cjs +1 -1
  4. package/dist/cjs/components/data-display/Table/Table.styles.cjs +1 -1
  5. package/dist/cjs/components/data-display/Table/filters/FilterComponents.cjs +4 -4
  6. package/dist/cjs/components/inputs/ButtonGroup/ButtonGroup.cjs +1 -0
  7. package/dist/cjs/components/inputs/ButtonGroup/index.cjs +1 -0
  8. package/dist/cjs/components/inputs/Input/FormHelperText.cjs +1 -0
  9. package/dist/cjs/components/navigation/Stepper/Step.cjs +1 -0
  10. package/dist/cjs/components/navigation/Stepper/StepButton.cjs +1 -0
  11. package/dist/cjs/components/navigation/Stepper/StepIndicator.cjs +1 -0
  12. package/dist/cjs/components/navigation/Stepper/Stepper.cjs +1 -0
  13. package/dist/cjs/components/navigation/Stepper/index.cjs +1 -0
  14. package/dist/cjs/index.cjs +1 -1
  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/AspectRatio/AspectRatio.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/AspectRatio/aspectRatioClasses.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/ButtonGroup/ButtonGroup.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/ButtonGroup/buttonGroupClasses.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/FormHelperText/FormHelperText.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/FormHelperText/formHelperTextClasses.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/FormLabel/formLabelClasses.cjs +1 -1
  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/Step/Step.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/Step/stepClasses.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/StepButton/StepButton.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/StepButton/stepButtonClasses.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/StepIndicator/StepIndicator.cjs +1 -0
  27. 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
  28. 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
  29. 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
  30. package/dist/esm/components/data-display/AspectRatio/AspectRatio.js +8 -0
  31. package/dist/esm/components/data-display/AspectRatio/index.js +4 -0
  32. package/dist/esm/components/data-display/Table/Table.js +14 -13
  33. package/dist/esm/components/data-display/Table/Table.styles.js +6 -6
  34. package/dist/esm/components/data-display/Table/filters/FilterComponents.js +209 -189
  35. package/dist/esm/components/inputs/ButtonGroup/ButtonGroup.js +8 -0
  36. package/dist/esm/components/inputs/ButtonGroup/index.js +4 -0
  37. package/dist/esm/components/inputs/Input/FormHelperText.js +8 -0
  38. package/dist/esm/components/navigation/Stepper/Step.js +4 -0
  39. package/dist/esm/components/navigation/Stepper/StepButton.js +4 -0
  40. package/dist/esm/components/navigation/Stepper/StepIndicator.js +4 -0
  41. package/dist/esm/components/navigation/Stepper/Stepper.js +8 -0
  42. package/dist/esm/components/navigation/Stepper/index.js +4 -0
  43. package/dist/esm/index.js +202 -188
  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/AspectRatio/AspectRatio.js +202 -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/AspectRatio/aspectRatioClasses.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/ButtonGroup/ButtonGroup.js +280 -0
  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/ButtonGroup/buttonGroupClasses.js +8 -0
  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/FormHelperText/FormHelperText.js +107 -0
  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/FormHelperText/formHelperTextClasses.js +8 -0
  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/FormLabel/formLabelClasses.js +6 -5
  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/index.d.ts +26 -1
  60. 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
@@ -3,11 +3,13 @@ import { AccordionGroupProps } from '@mui/joy';
3
3
  import { AccordionProps } from '@mui/joy';
4
4
  import { AccordionSummaryProps } from '@mui/joy';
5
5
  import { AlertProps } from '@mui/joy';
6
+ import { AspectRatioProps } from '@mui/joy';
6
7
  import { AutocompleteOptionProps } from '@mui/joy';
7
8
  import { AutocompleteProps as AutocompleteProps_2 } from '@mui/joy';
8
9
  import { AvatarProps } from '@mui/joy';
9
10
  import { BadgeProps } from '@mui/joy';
10
11
  import { Box } from '@mui/joy';
12
+ import { ButtonGroupProps } from '@mui/joy';
11
13
  import { ButtonProps } from '@mui/joy';
12
14
  import { CardActions } from '@mui/joy';
13
15
  import { CardContent } from '@mui/joy';
@@ -33,6 +35,7 @@ import { DropdownProps } from '@mui/joy';
33
35
  import { ExtendMenuItem } from '@mui/joy';
34
36
  import { FastOmit } from 'styled-components';
35
37
  import { FormControlProps } from '@mui/joy';
38
+ import { FormHelperTextProps } from '@mui/joy';
36
39
  import { FormLabelProps } from '@mui/joy';
37
40
  import { GridProps } from '@mui/joy';
38
41
  import { HTMLAttributes } from 'react';
@@ -73,6 +76,10 @@ import { SelectProps } from '@mui/joy';
73
76
  import { SheetProps } from '@mui/joy';
74
77
  import { SkeletonProps } from '@mui/joy';
75
78
  import { SliderProps } from '@mui/joy';
79
+ import { Step } from '@mui/joy';
80
+ import { StepButton } from '@mui/joy';
81
+ import { StepIndicator } from '@mui/joy';
82
+ import { StepperProps } from '@mui/joy';
76
83
  import { SwitchProps } from '@mui/joy';
77
84
  import { SyntheticEvent } from 'react';
78
85
  import { default as Tab } from '@mui/joy/Tab';
@@ -136,6 +143,8 @@ declare interface AppBarProps {
136
143
  logoMini?: JSX.Element;
137
144
  }
138
145
 
146
+ export declare function AspectRatio(props: AspectRatioProps): JSX_2.Element;
147
+
139
148
  export declare function Autocomplete<T extends BaseOption>({ id, options, onChange, name, ...props }: AutocompleteProps<T>): ReactElement;
140
149
 
141
150
  export declare function AutocompleteOption(props: AutocompleteOptionProps): JSX_2.Element;
@@ -180,6 +189,8 @@ export declare namespace Breadcrumb {
180
189
 
181
190
  export declare function Button(props: ButtonProps): JSX_2.Element;
182
191
 
192
+ export declare function ButtonGroup(props: ButtonGroupProps): JSX_2.Element;
193
+
183
194
  export declare function Card(props: CardProps): JSX_2.Element;
184
195
 
185
196
  export { CardActions }
@@ -257,6 +268,8 @@ export declare const formatText: (text: string | null | undefined) => string;
257
268
 
258
269
  export declare function FormControl(props: FormControlProps): JSX_2.Element;
259
270
 
271
+ export declare function FormHelperText(props: FormHelperTextProps): JSX_2.Element;
272
+
260
273
  export declare function FormLabel(props: FormLabelProps): JSX_2.Element;
261
274
 
262
275
  export declare function FullPageErrorFallback(): JSX_2.Element;
@@ -489,6 +502,14 @@ export declare function StatusIcon({ status, size, }: {
489
502
  size?: IconSizes;
490
503
  }): JSX_2.Element;
491
504
 
505
+ export { Step }
506
+
507
+ export { StepButton }
508
+
509
+ export { StepIndicator }
510
+
511
+ export declare function Stepper(props: StepperProps): JSX_2.Element;
512
+
492
513
  export declare function Switch(props: SwitchProps): JSX_2.Element;
493
514
 
494
515
  export { Tab }
@@ -688,7 +709,11 @@ export { }
688
709
  declare module "@tanstack/react-table" {
689
710
  interface ColumnMeta<TData, TValue> {
690
711
  filterType?: "text" | "number" | "date" | "select" | "multiselect";
691
- filterOptions?: string[];
712
+ filterOptions?: {
713
+ label: string;
714
+ value: string;
715
+ }[];
716
+ filterSearchable?: boolean;
692
717
  pinned?: "left" | "right";
693
718
  noSortButton?: boolean;
694
719
  }
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.31.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@ssh.dev.azure.com:v3/HarperCollinsUK/HCDesignSystem/HCDesignSystem"