@harpercollins/harpercollins-design-system 1.14.1 → 1.14.2
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/index.cjs +146 -122
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/src/components/feedback/ToastMessages/ToastMessages.d.ts +3 -2
- package/dist/cjs/types/src/components/feedback/ToastMessages/ToastMessages.stories.d.ts +1 -0
- package/dist/cjs/types/src/components/navigation/Menu/MenuHeading.d.ts +2 -12
- package/dist/esm/index.js +146 -123
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/feedback/ToastMessages/ToastMessages.d.ts +3 -2
- package/dist/esm/types/src/components/feedback/ToastMessages/ToastMessages.stories.d.ts +1 -0
- package/dist/esm/types/src/components/navigation/Menu/MenuHeading.d.ts +2 -12
- package/dist/index.d.ts +5 -17
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
|
+
type MessageLevel = "info" | "success" | "warning" | "error";
|
|
2
3
|
export interface TextMessage {
|
|
3
|
-
level:
|
|
4
|
+
level: MessageLevel;
|
|
4
5
|
text: string;
|
|
5
6
|
noFade?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export interface HTMLMessage {
|
|
8
|
-
level:
|
|
9
|
+
level: MessageLevel;
|
|
9
10
|
html: string;
|
|
10
11
|
noFade?: boolean;
|
|
11
12
|
}
|
|
@@ -4,6 +4,7 @@ declare const meta: Meta<typeof ToastMessages>;
|
|
|
4
4
|
export default meta;
|
|
5
5
|
export declare function Success(): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare function Warning(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function Info(): import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export declare function Error(): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export declare function HTML(): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export declare function Multiple(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
startAction?: React.ReactNode;
|
|
5
|
-
endAction?: React.ReactNode;
|
|
6
|
-
nested?: boolean;
|
|
7
|
-
sticky?: boolean;
|
|
8
|
-
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").ListItemPropsVariantOverrides>;
|
|
9
|
-
sx?: import("@mui/joy/styles/types").SxProps;
|
|
10
|
-
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
11
|
-
ref?: ((instance: HTMLLIElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
12
|
-
}, "children" | "color" | "sticky" | "sx" | "variant" | keyof import("@mui/joy").ListItemSlotsAndSlotProps | "startAction" | "endAction" | "nested">, never>> & string & Omit<import("@mui/types").OverridableComponent<import("@mui/joy").ListItemTypeMap<{}, "li">>, keyof import("react").Component<any, {}, any>>;
|
|
1
|
+
import { ListItem } from "@mui/joy";
|
|
2
|
+
declare const MenuHeading: typeof ListItem;
|
|
13
3
|
export default MenuHeading;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as _mui_joy from '@mui/joy';
|
|
3
|
-
import { AlertProps, AutocompleteProps as AutocompleteProps$1, AvatarProps, BadgeProps, CardProps, CheckboxProps, ChipProps, ColorPaletteProp, ContainerProps, DividerProps, DropdownProps, FormControlProps, GridProps, InputProps, ListProps, MenuProps, RadioProps, TextareaProps, TooltipProps as TooltipProps$1, TypographyProps } from '@mui/joy';
|
|
3
|
+
import { AlertProps, AutocompleteProps as AutocompleteProps$1, AvatarProps, BadgeProps, CardProps, CheckboxProps, ChipProps, ColorPaletteProp, ContainerProps, DividerProps, DropdownProps, FormControlProps, GridProps, InputProps, ListProps, MenuProps, ListItem, RadioProps, TextareaProps, TooltipProps as TooltipProps$1, TypographyProps } from '@mui/joy';
|
|
4
4
|
export { Box, CardActions, CardContent, CardCover, CardOverflow, IconButton, ListDivider, ListItem, ListItemButton, ListItemContent, ListItemDecorator, ListSubheader, MenuButton, RadioGroup, TextField } from '@mui/joy';
|
|
5
5
|
import * as React$1 from 'react';
|
|
6
6
|
import React__default, { ReactElement, PropsWithChildren } from 'react';
|
|
@@ -9,8 +9,6 @@ import * as styled_components from 'styled-components';
|
|
|
9
9
|
import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
|
|
10
10
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
11
11
|
import ReactDatePicker, { ReactDatePickerProps } from 'react-datepicker';
|
|
12
|
-
import * as _mui_joy_styles_types from '@mui/joy/styles/types';
|
|
13
|
-
import * as _mui_types from '@mui/types';
|
|
14
12
|
import { ColumnDef } from '@tanstack/react-table';
|
|
15
13
|
|
|
16
14
|
interface AccordionProps {
|
|
@@ -222,18 +220,7 @@ declare function LogoSVGMini({ width, fillColour }: LogoProps): JSX.Element;
|
|
|
222
220
|
|
|
223
221
|
declare function Menu(props: MenuProps): react_jsx_runtime.JSX.Element;
|
|
224
222
|
|
|
225
|
-
declare const MenuHeading:
|
|
226
|
-
color?: _mui_types.OverridableStringUnion<_mui_joy.ColorPaletteProp, _mui_joy.ListItemPropsColorOverrides>;
|
|
227
|
-
children?: React.ReactNode;
|
|
228
|
-
startAction?: React.ReactNode;
|
|
229
|
-
endAction?: React.ReactNode;
|
|
230
|
-
nested?: boolean;
|
|
231
|
-
sticky?: boolean;
|
|
232
|
-
variant?: _mui_types.OverridableStringUnion<_mui_joy.VariantProp, _mui_joy.ListItemPropsVariantOverrides>;
|
|
233
|
-
sx?: _mui_joy_styles_types.SxProps;
|
|
234
|
-
} & Omit<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
235
|
-
ref?: ((instance: HTMLLIElement | null) => void | React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React$1.RefObject<HTMLLIElement> | null | undefined;
|
|
236
|
-
}, "children" | "color" | "sticky" | "sx" | "variant" | keyof _mui_joy.ListItemSlotsAndSlotProps | "startAction" | "endAction" | "nested">, never>> & string & Omit<_mui_types.OverridableComponent<_mui_joy.ListItemTypeMap<{}, "li">>, keyof React$1.Component<any, {}, any>>;
|
|
223
|
+
declare const MenuHeading: typeof ListItem;
|
|
237
224
|
|
|
238
225
|
declare const StyledMenuItem: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<Omit<_mui_joy.ListItemButtonProps, "slots" | "slotProps"> & _mui_joy.MenuItemSlotsAndSlotProps & Omit<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
239
226
|
ref?: ((instance: HTMLDivElement | null) => void | React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React$1.RefObject<HTMLDivElement> | null | undefined;
|
|
@@ -325,13 +312,14 @@ interface TextBlockProps {
|
|
|
325
312
|
}
|
|
326
313
|
declare function TextBlock({ label, content, size, inline }: TextBlockProps): react_jsx_runtime.JSX.Element;
|
|
327
314
|
|
|
315
|
+
type MessageLevel = "info" | "success" | "warning" | "error";
|
|
328
316
|
interface TextMessage {
|
|
329
|
-
level:
|
|
317
|
+
level: MessageLevel;
|
|
330
318
|
text: string;
|
|
331
319
|
noFade?: boolean;
|
|
332
320
|
}
|
|
333
321
|
interface HTMLMessage {
|
|
334
|
-
level:
|
|
322
|
+
level: MessageLevel;
|
|
335
323
|
html: string;
|
|
336
324
|
noFade?: boolean;
|
|
337
325
|
}
|