@harpercollins/harpercollins-design-system 1.8.68 → 1.8.70
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 +150 -226
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/src/components/data-display/Chip/Chip.d.ts +2 -1
- package/dist/cjs/types/src/components/data-display/Chip/Chip.stories.d.ts +6 -0
- package/dist/cjs/types/src/components/data-display/List/List.d.ts +2 -1
- package/dist/cjs/types/src/components/data-display/List/List.stories.d.ts +6 -0
- package/dist/cjs/types/src/components/data-display/List/ListItemContent.d.ts +2 -0
- package/dist/cjs/types/src/components/global/AppBar/AppBar.d.ts +7 -1
- package/dist/cjs/types/src/components/global/AppBar/testdata.d.ts +1 -1
- package/dist/cjs/types/src/components/index.d.ts +4 -2
- package/dist/cjs/types/src/components/inputs/Input/Input.d.ts +1 -1
- package/dist/cjs/types/src/components/layout/Grid/Grid.d.ts +4 -1
- package/dist/cjs/types/src/components/layout/Grid/Grid.stories.d.ts +6 -0
- package/dist/cjs/types/src/components/navigation/Dropdown/Dropdown.d.ts +3 -0
- package/dist/cjs/types/src/components/navigation/Dropdown/index.d.ts +2 -0
- package/dist/cjs/types/src/components/navigation/Menu/Menu.d.ts +3 -0
- package/dist/cjs/types/src/components/navigation/Menu/Menu.stories.d.ts +5 -0
- package/dist/cjs/types/src/components/navigation/Menu/MenuButton.d.ts +2 -0
- package/dist/cjs/types/src/components/navigation/Menu/MenuHeading.d.ts +13 -0
- package/dist/cjs/types/src/components/navigation/Menu/MenuItem.d.ts +4 -0
- package/dist/cjs/types/src/components/navigation/Menu/index.d.ts +2 -0
- package/dist/esm/index.js +179 -255
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/data-display/Chip/Chip.d.ts +2 -1
- package/dist/esm/types/src/components/data-display/Chip/Chip.stories.d.ts +6 -0
- package/dist/esm/types/src/components/data-display/List/List.d.ts +2 -1
- package/dist/esm/types/src/components/data-display/List/List.stories.d.ts +6 -0
- package/dist/esm/types/src/components/data-display/List/ListItemContent.d.ts +2 -0
- package/dist/esm/types/src/components/global/AppBar/AppBar.d.ts +7 -1
- package/dist/esm/types/src/components/global/AppBar/testdata.d.ts +1 -1
- package/dist/esm/types/src/components/index.d.ts +4 -2
- package/dist/esm/types/src/components/inputs/Input/Input.d.ts +1 -1
- package/dist/esm/types/src/components/layout/Grid/Grid.d.ts +4 -1
- package/dist/esm/types/src/components/layout/Grid/Grid.stories.d.ts +6 -0
- package/dist/esm/types/src/components/navigation/Dropdown/Dropdown.d.ts +3 -0
- package/dist/esm/types/src/components/navigation/Dropdown/index.d.ts +2 -0
- package/dist/esm/types/src/components/navigation/Menu/Menu.d.ts +3 -0
- package/dist/esm/types/src/components/navigation/Menu/Menu.stories.d.ts +5 -0
- package/dist/esm/types/src/components/navigation/Menu/MenuButton.d.ts +2 -0
- package/dist/esm/types/src/components/navigation/Menu/MenuHeading.d.ts +13 -0
- package/dist/esm/types/src/components/navigation/Menu/MenuItem.d.ts +4 -0
- package/dist/esm/types/src/components/navigation/Menu/index.d.ts +2 -0
- package/dist/index.d.ts +28 -12
- package/package.json +1 -1
- package/dist/cjs/types/src/components/global/AppBar/DropDownMenu.d.ts +0 -11
- package/dist/esm/types/src/components/global/AppBar/DropDownMenu.d.ts +0 -11
|
@@ -5,6 +5,12 @@ interface AppBarProps {
|
|
|
5
5
|
rightSide?: JSX.Element;
|
|
6
6
|
currentApp?: JSX.Element | string;
|
|
7
7
|
apps: JSX.Element;
|
|
8
|
+
myAccountMenu: JSX.Element;
|
|
9
|
+
helpButton?: {
|
|
10
|
+
as: React.ElementType;
|
|
11
|
+
href: string;
|
|
12
|
+
text: string;
|
|
13
|
+
};
|
|
8
14
|
}
|
|
9
|
-
declare function AppBar({ apps, currentApp, leftSide, rightSide }: AppBarProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function AppBar({ apps, currentApp, leftSide, rightSide, myAccountMenu, helpButton, }: AppBarProps): import("react/jsx-runtime").JSX.Element;
|
|
10
16
|
export default AppBar;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare function Apps(): import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export declare function CurrentApp(): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export
|
|
3
|
+
export declare function MockAppBar(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,7 +15,6 @@ import LoadingSpinner from "./feedback/LoadingSpinner";
|
|
|
15
15
|
import ProgressBar from "./feedback/ProgressBar";
|
|
16
16
|
import ToastMessages from "./feedback/ToastMessages";
|
|
17
17
|
import AppBar from "./global/AppBar";
|
|
18
|
-
import DropDownMenu from "./global/AppBar/DropDownMenu";
|
|
19
18
|
import Layout from "./global/Layout";
|
|
20
19
|
import Logo from "./global/Logo";
|
|
21
20
|
import Button from "./inputs/Button";
|
|
@@ -33,4 +32,7 @@ import ListItem from "./data-display/List/ListItem";
|
|
|
33
32
|
import ListItemDecorator from "./data-display/List/ListItemDecorator";
|
|
34
33
|
import ListItemButton from "./data-display/List/ListItemButton";
|
|
35
34
|
import Grid from "./layout/Grid";
|
|
36
|
-
|
|
35
|
+
import Menu from "./navigation/Menu";
|
|
36
|
+
import MenuItem from "./navigation/Menu/MenuItem";
|
|
37
|
+
import Dropdown from "./navigation/Dropdown";
|
|
38
|
+
export { Accordion, AppBar, Autocomplete, AutocompleteSelectMultiple, Badge, Box, Breadcrumb, Button, Chip, Divider, Drawer, Dropdown, Heading, Icon, IconButton, Input, Grid, Layout, List, ListItemButton, ListItem, ListItemDecorator, LoadingSpinner, Logo, Menu, MenuItem, ProgressBar, ProgressCircle, ReadMore, RelativeTime, StatusIcon, Table, Tabs, TextBlock, TextField, ToastMessages, Tooltip, };
|
|
@@ -10,5 +10,5 @@ declare const Input: import("styled-components/dist/types").IStyledComponentBase
|
|
|
10
10
|
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").InputPropsVariantOverrides>;
|
|
11
11
|
} & import("@mui/joy").InputSlotsAndSlotProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
12
12
|
ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
|
|
13
|
-
}, "name" | "type" | "defaultValue" | "autoFocus" | "className" | "id" | "color" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onKeyUp" | "onClick" | "disabled" | "value" | "autoComplete" | "placeholder" | "readOnly" | "required" | "size" | "error" | "endDecorator" | "
|
|
13
|
+
}, "name" | "type" | "defaultValue" | "autoFocus" | "className" | "id" | "color" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onKeyUp" | "onClick" | "disabled" | "value" | "autoComplete" | "placeholder" | "readOnly" | "required" | "size" | "error" | "endDecorator" | "fullWidth" | "startDecorator" | "sx" | "variant" | keyof import("@mui/joy").InputSlotsAndSlotProps>, never>> & string & Omit<import("@mui/types").OverridableComponent<import("@mui/joy").InputTypeMap<{}, "div">>, keyof import("react").Component<any, {}, any>>;
|
|
14
14
|
export default Input;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const MenuHeading: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@mui/joy").ListItemSlotsAndSlotProps & {
|
|
2
|
+
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").ListItemPropsColorOverrides>;
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
startAction?: import("react").ReactNode;
|
|
5
|
+
endAction?: import("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>>;
|
|
13
|
+
export default MenuHeading;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const StyleMenuItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("@mui/joy").ListItemButtonProps, "slots" | "slotProps"> & import("@mui/joy").MenuItemSlotsAndSlotProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, "children" | "style" | "ref" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "disabled" | "action" | "selected" | "orientation" | "sx" | "variant" | "component" | "focusVisibleClassName" | keyof import("@mui/joy").MenuItemSlotsAndSlotProps>, never>> & string & Omit<import("@mui/joy").ExtendMenuItem<import("@mui/joy").MenuItemTypeMap<{}, "div">>, keyof import("react").Component<any, {}, any>>;
|
|
4
|
+
export default StyleMenuItem;
|