@harpercollins/harpercollins-design-system 1.11.0 → 1.11.3

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 (28) hide show
  1. package/dist/cjs/index.cjs +188 -185
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/cjs/types/src/components/data-display/ChipIcon/ChipIcon.d.ts +19 -0
  4. package/dist/cjs/types/src/components/data-display/ChipIcon/ChipIcon.stories.d.ts +13 -0
  5. package/dist/cjs/types/src/components/data-display/ChipIcon/index.d.ts +2 -0
  6. package/dist/cjs/types/src/components/data-display/Icon/Icon.d.ts +5 -4
  7. package/dist/cjs/types/src/components/data-display/List/ListDivider.d.ts +2 -0
  8. package/dist/cjs/types/src/components/global/AppBar/AppBar.d.ts +7 -16
  9. package/dist/cjs/types/src/components/global/AppBar/AppBar.stories.d.ts +1 -0
  10. package/dist/cjs/types/src/components/global/AppBar/testdata.d.ts +5 -0
  11. package/dist/cjs/types/src/components/global/Logo/types.d.ts +4 -0
  12. package/dist/cjs/types/src/components/index.d.ts +3 -1
  13. package/dist/cjs/types/src/components/navigation/Menu/MenuItem.d.ts +1 -1
  14. package/dist/esm/index.js +189 -186
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/types/src/components/data-display/ChipIcon/ChipIcon.d.ts +19 -0
  17. package/dist/esm/types/src/components/data-display/ChipIcon/ChipIcon.stories.d.ts +13 -0
  18. package/dist/esm/types/src/components/data-display/ChipIcon/index.d.ts +2 -0
  19. package/dist/esm/types/src/components/data-display/Icon/Icon.d.ts +5 -4
  20. package/dist/esm/types/src/components/data-display/List/ListDivider.d.ts +2 -0
  21. package/dist/esm/types/src/components/global/AppBar/AppBar.d.ts +7 -16
  22. package/dist/esm/types/src/components/global/AppBar/AppBar.stories.d.ts +1 -0
  23. package/dist/esm/types/src/components/global/AppBar/testdata.d.ts +5 -0
  24. package/dist/esm/types/src/components/global/Logo/types.d.ts +4 -0
  25. package/dist/esm/types/src/components/index.d.ts +3 -1
  26. package/dist/esm/types/src/components/navigation/Menu/MenuItem.d.ts +1 -1
  27. package/dist/index.d.ts +390 -0
  28. package/package.json +6 -6
@@ -0,0 +1,19 @@
1
+ import { IconDefinition } from "@fortawesome/free-solid-svg-icons";
2
+ import { ChipProps, ColorPaletteProp } from "@mui/joy";
3
+ import { IconSizes } from "../Icon/Icon";
4
+ export interface IChipIconProps {
5
+ icon: {
6
+ status: string;
7
+ label: string;
8
+ tooltip?: string;
9
+ colour?: ColorPaletteProp;
10
+ icon?: IconDefinition;
11
+ size?: IconSizes;
12
+ spin?: boolean;
13
+ };
14
+ chip?: {
15
+ size: ChipProps["size"];
16
+ };
17
+ }
18
+ declare function ChipIcon({ icon, chip, }: IChipIconProps): import("react/jsx-runtime").JSX.Element;
19
+ export default ChipIcon;
@@ -0,0 +1,13 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import ChipIcon from "./ChipIcon";
3
+ declare const meta: Meta<typeof ChipIcon>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ChipIcon>;
6
+ export declare const Default: Story;
7
+ export declare const Primary: Story;
8
+ export declare const WithTooltip: Story;
9
+ export declare const WithSpin: Story;
10
+ export declare const Large: Story;
11
+ export declare const Complete: Story;
12
+ export declare const Warning: Story;
13
+ export declare const Failed: Story;
@@ -0,0 +1,2 @@
1
+ import ChipIcon from "./ChipIcon";
2
+ export default ChipIcon;
@@ -1,12 +1,13 @@
1
1
  import { IconProp } from "@fortawesome/fontawesome-svg-core";
2
- export type IconSizes = "xsmall" | "small" | "medium" | "large" | "xlarge";
3
- export type IconColours = "primary" | "default" | "danger" | "warning" | "success" | "grey" | "green";
2
+ import { ColorPaletteProp } from "@mui/joy";
3
+ export type IconSizes = "xs" | "sm" | "md" | "lg" | "xl";
4
+ export type IconColours = "default" | ColorPaletteProp;
4
5
  export interface IconProps {
5
- icon: IconProp;
6
+ icon: IconProp | undefined;
6
7
  size?: IconSizes;
7
8
  colour?: IconColours;
8
9
  spin?: boolean;
9
10
  className?: string;
10
11
  }
11
- declare function Icon({ icon, size, colour, spin, className, }: IconProps): React.ReactElement;
12
+ declare function Icon({ icon, size, colour, spin, className, }: IconProps): React.ReactElement | null;
12
13
  export default Icon;
@@ -0,0 +1,2 @@
1
+ import { ListDivider } from "@mui/joy";
2
+ export default ListDivider;
@@ -14,24 +14,15 @@ interface AppBarProps {
14
14
  }[];
15
15
  workspacesMenu?: JSX.Element;
16
16
  helpButton?: {
17
- as: React.ElementType;
17
+ as?: React.ElementType;
18
18
  href: string;
19
19
  text: string;
20
20
  };
21
- menuPrimary: {
22
- label: string;
23
- url: string;
24
- subMenu: {
25
- heading: string;
26
- items: {
27
- label: string;
28
- url: string;
29
- }[];
30
- }[];
31
- }[];
32
- mobileMenuPrimary: JSX.Element;
33
- mobileMenuSecondary: JSX.Element;
34
- adminMenu?: JSX.Element;
21
+ mobileMenuPrimary?: JSX.Element;
22
+ mobileMenuSecondary?: JSX.Element;
23
+ user?: {
24
+ displayName: string;
25
+ };
35
26
  }
36
- declare function AppBar({ apps, currentApp, leftSide, rightSide, myAccountMenu, workspaces, workspacesMenu, currentWorkspace, helpButton, menuPrimary, mobileMenuSecondary, mobileMenuPrimary, adminMenu, }: AppBarProps): import("react/jsx-runtime").JSX.Element;
27
+ declare function AppBar({ apps, currentApp, leftSide, rightSide, myAccountMenu, workspaces, workspacesMenu, currentWorkspace, helpButton, mobileMenuPrimary, mobileMenuSecondary, user, }: AppBarProps): import("react/jsx-runtime").JSX.Element;
37
28
  export default AppBar;
@@ -4,3 +4,4 @@ declare const meta: Meta<typeof AppBar>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof AppBar>;
6
6
  export declare const Default: Story;
7
+ export declare const DefaultMobile: Story;
@@ -9,4 +9,9 @@ export declare function MyAccountMenu(): import("react/jsx-runtime").JSX.Element
9
9
  export declare function Apps(): import("react/jsx-runtime").JSX.Element;
10
10
  export declare function CurrentApp(): import("react/jsx-runtime").JSX.Element;
11
11
  export declare function MainMenuMobile(): import("react/jsx-runtime").JSX.Element;
12
+ export declare const helpButton: {
13
+ href: string;
14
+ text: string;
15
+ };
16
+ export declare function AdminMenu(): import("react/jsx-runtime").JSX.Element;
12
17
  export declare function MockAppBar(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export interface LogoProps {
2
+ width?: number;
3
+ fillColour?: string;
4
+ }
@@ -13,6 +13,7 @@ import CardCover from "./surfaces/Card/CardCover";
13
13
  import CardOverflow from "./surfaces/Card/CardOverflow";
14
14
  import Checkbox from "./inputs/Checkbox";
15
15
  import Chip from "./data-display/Chip";
16
+ import ChipIcon from "./data-display/ChipIcon";
16
17
  import Container from "./layout/Container";
17
18
  import Divider from "./data-display/Divider";
18
19
  import Drawer from "./overlay/Drawer";
@@ -32,6 +33,7 @@ import ListItemDecorator from "./data-display/List/ListItemDecorator";
32
33
  import ListSubheader from "./data-display/List/ListSubheader";
33
34
  import ListItemContent from "./data-display/List/ListItemContent";
34
35
  import LoadingSpinner from "./feedback/LoadingSpinner";
36
+ import ListDivider from "./data-display/List/ListDivider";
35
37
  import Logo from "./global/Logo/Logo";
36
38
  import LogoMini from "./global/Logo/LogoMini";
37
39
  import Menu from "./navigation/Menu";
@@ -53,4 +55,4 @@ import TextField from "./inputs/TextField";
53
55
  import ToastMessages from "./feedback/ToastMessages";
54
56
  import Tooltip from "./data-display/Tooltip";
55
57
  import Typography from "./data-display/Typography";
56
- export { Accordion, AppBar, Autocomplete, AutocompleteSelectMultiple, Badge, Box, Breadcrumb, Button, Card, CardActions, CardContent, CardCover, CardOverflow, Checkbox, Chip, Container, Divider, Drawer, Dropdown, FormControl, FullPageErrorFallback, Grid, Heading, Icon, IconButton, Input, Layout, List, ListItem, ListItemButton, ListItemContent, ListItemDecorator, ListSubheader, LoadingSpinner, Logo, LogoMini, Menu, MenuButton, MenuHeading, MenuItem, ProgressBar, ProgressCircle, RadioButton, RadioGroup, ReadMore, RelativeTime, StatusIcon, Table, Tabs, Textarea, TextBlock, TextField, ToastMessages, Tooltip, Typography, };
58
+ export { Accordion, AppBar, Autocomplete, AutocompleteSelectMultiple, Badge, Box, Breadcrumb, Button, Card, CardActions, CardContent, CardCover, CardOverflow, Checkbox, Chip, ChipIcon, Container, Divider, Drawer, Dropdown, FormControl, FullPageErrorFallback, Grid, Heading, Icon, IconButton, Input, Layout, List, ListItem, ListItemButton, ListItemContent, ListItemDecorator, ListDivider, ListSubheader, LoadingSpinner, Logo, LogoMini, Menu, MenuButton, MenuHeading, MenuItem, ProgressBar, ProgressCircle, RadioButton, RadioGroup, ReadMore, RelativeTime, StatusIcon, Table, Tabs, Textarea, TextBlock, TextField, ToastMessages, Tooltip, Typography, };
@@ -1,4 +1,4 @@
1
1
  declare const StyledMenuItem: 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
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" | "enterKeyHint" | "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>>;
3
+ }, "children" | "style" | "ref" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "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
4
  export default StyledMenuItem;
@@ -0,0 +1,390 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import react__default, { ReactElement, PropsWithChildren } from 'react';
4
+ import * as _mui_joy from '@mui/joy';
5
+ import { AutocompleteProps as AutocompleteProps$1, BadgeProps, CardProps, CheckboxProps, ChipProps, ColorPaletteProp, ContainerProps, DividerProps, DropdownProps, FormControlProps, GridProps, InputProps, ListProps, MenuProps, RadioProps, TextareaProps, TooltipProps as TooltipProps$1, TypographyProps } from '@mui/joy';
6
+ export { Box, CardActions, CardContent, CardCover, CardOverflow, IconButton, ListDivider, ListItem, ListItemButton, ListItemContent, ListItemDecorator, ListSubheader, MenuButton, RadioGroup, TextField } from '@mui/joy';
7
+ import * as styled_components_dist_types from 'styled-components/dist/types';
8
+ import * as styled_components from 'styled-components';
9
+ import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
10
+ import { IconProp } from '@fortawesome/fontawesome-svg-core';
11
+ import * as _mui_joy_styles_types from '@mui/joy/styles/types';
12
+ import * as _mui_types from '@mui/types';
13
+ import { ColumnDef } from '@tanstack/react-table';
14
+
15
+ interface AccordionProps {
16
+ title: string | React.ReactNode;
17
+ open?: boolean;
18
+ }
19
+ declare function Accordion({ title, children, open, }: React.PropsWithChildren<AccordionProps>): react_jsx_runtime.JSX.Element;
20
+
21
+ interface AppBarProps {
22
+ leftSide?: JSX.Element;
23
+ rightSide?: JSX.Element;
24
+ currentApp?: JSX.Element | string;
25
+ apps?: JSX.Element;
26
+ myAccountMenu?: JSX.Element;
27
+ currentWorkspace?: string;
28
+ workspaces?: {
29
+ name: string;
30
+ home_url: string;
31
+ }[];
32
+ workspacesMenu?: JSX.Element;
33
+ helpButton?: {
34
+ as?: react__default.ElementType;
35
+ href: string;
36
+ text: string;
37
+ };
38
+ mobileMenuPrimary?: JSX.Element;
39
+ mobileMenuSecondary?: JSX.Element;
40
+ user?: {
41
+ displayName: string;
42
+ };
43
+ }
44
+ declare function AppBar({ apps, currentApp, leftSide, rightSide, myAccountMenu, workspaces, workspacesMenu, currentWorkspace, helpButton, mobileMenuPrimary, mobileMenuSecondary, user, }: AppBarProps): react_jsx_runtime.JSX.Element;
45
+
46
+ interface BaseOption {
47
+ label: string;
48
+ value: number | string;
49
+ }
50
+
51
+ interface AutocompleteProps<T extends BaseOption> extends AutocompleteProps$1<T, boolean, boolean, boolean> {
52
+ id: string;
53
+ options: T[];
54
+ label?: string;
55
+ }
56
+ declare function AutoComplete<T extends BaseOption>({ id, options, onChange, name, ...props }: AutocompleteProps<T>): ReactElement;
57
+
58
+ interface AutocompleteSelectMultipleProps<T extends BaseOption> extends AutocompleteProps$1<T, boolean, boolean, boolean> {
59
+ id: string;
60
+ inline?: boolean;
61
+ defaultValue?: T[];
62
+ SelectedOption?: react__default.JSXElementConstructor<{
63
+ option: T;
64
+ }>;
65
+ placeholder?: string;
66
+ helpText?: string | ReactElement;
67
+ }
68
+ declare function AutocompleteSelectMultiple<T extends BaseOption>({ defaultValue, id, name, inline, onChange, SelectedOption, helpText, ...props }: AutocompleteSelectMultipleProps<T>): ReactElement;
69
+
70
+ declare function Badge(props: BadgeProps): react_jsx_runtime.JSX.Element;
71
+
72
+ declare function Breadcrumb({ children, }: PropsWithChildren<{
73
+ children: React.ReactNode;
74
+ }>): react_jsx_runtime.JSX.Element;
75
+ declare namespace Breadcrumb {
76
+ var Item: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
77
+ }
78
+
79
+ interface LinkButtonInternalProps extends react__default.AnchorHTMLAttributes<HTMLAnchorElement> {
80
+ kind?: "primary" | "secondary" | "danger" | "basic" | "debug";
81
+ size?: "normal" | "small";
82
+ }
83
+ interface CommonButtonProps {
84
+ kind?: "primary" | "secondary" | "danger" | "basic" | "debug";
85
+ size?: "normal" | "small";
86
+ disabled?: boolean;
87
+ style?: react__default.CSSProperties;
88
+ isSubmitting?: boolean;
89
+ }
90
+ interface LinkButtonProps extends CommonButtonProps, LinkButtonInternalProps {
91
+ type: "link";
92
+ href: string;
93
+ as?: react__default.ElementType;
94
+ }
95
+ interface SubmitButtonProps extends CommonButtonProps {
96
+ type: "submit";
97
+ name?: string;
98
+ value?: string;
99
+ hideSpinner?: boolean;
100
+ }
101
+ interface ButtonProps extends CommonButtonProps {
102
+ type: "button";
103
+ onClick: (e: react__default.MouseEvent<HTMLButtonElement>) => void;
104
+ }
105
+ declare function Button({ children, ...props }: react__default.PropsWithChildren<LinkButtonProps | SubmitButtonProps | ButtonProps>): react__default.ReactElement;
106
+
107
+ declare function Card(props: CardProps): react_jsx_runtime.JSX.Element;
108
+
109
+ declare function Checkbox(props: CheckboxProps): react_jsx_runtime.JSX.Element;
110
+
111
+ declare function Chip(props: ChipProps): react_jsx_runtime.JSX.Element;
112
+
113
+ type IconSizes = "xs" | "sm" | "md" | "lg" | "xl";
114
+ type IconColours = "default" | ColorPaletteProp;
115
+ interface IconProps {
116
+ icon: IconProp | undefined;
117
+ size?: IconSizes;
118
+ colour?: IconColours;
119
+ spin?: boolean;
120
+ className?: string;
121
+ }
122
+ declare function Icon({ icon, size, colour, spin, className, }: IconProps): React.ReactElement | null;
123
+
124
+ interface IChipIconProps {
125
+ icon: {
126
+ status: string;
127
+ label: string;
128
+ tooltip?: string;
129
+ colour?: ColorPaletteProp;
130
+ icon?: IconDefinition;
131
+ size?: IconSizes;
132
+ spin?: boolean;
133
+ };
134
+ chip?: {
135
+ size: ChipProps["size"];
136
+ };
137
+ }
138
+ declare function ChipIcon({ icon, chip, }: IChipIconProps): react_jsx_runtime.JSX.Element;
139
+
140
+ declare function Container(props: ContainerProps): react_jsx_runtime.JSX.Element;
141
+
142
+ declare function Divider(props: DividerProps): react_jsx_runtime.JSX.Element;
143
+
144
+ interface ModalWindowProps {
145
+ side: "left" | "right";
146
+ size?: "sm" | "md" | "lg";
147
+ open: boolean;
148
+ onClose: () => void;
149
+ onCloseCompleted?: () => void;
150
+ closeRequested?: boolean;
151
+ closeBlocked?: boolean;
152
+ disableGutters?: boolean;
153
+ showCloseButton?: boolean;
154
+ }
155
+ declare const Modal: react__default.ForwardRefExoticComponent<ModalWindowProps & {
156
+ children?: react__default.ReactNode | undefined;
157
+ } & react__default.RefAttributes<HTMLDivElement>>;
158
+
159
+ declare function Dropdown(props: DropdownProps): react_jsx_runtime.JSX.Element;
160
+
161
+ declare function FormControl(props: FormControlProps): react_jsx_runtime.JSX.Element;
162
+
163
+ declare function FullPageErrorFallback(): react_jsx_runtime.JSX.Element;
164
+
165
+ declare function Grid(props: GridProps): react_jsx_runtime.JSX.Element;
166
+
167
+ interface HeadingProps {
168
+ children: React.ReactNode;
169
+ as: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
170
+ }
171
+ declare function Heading({ children, as }: HeadingProps): react_jsx_runtime.JSX.Element | null;
172
+
173
+ declare function Input(props: InputProps): react_jsx_runtime.JSX.Element;
174
+
175
+ interface LayoutProps {
176
+ header?: JSX.Element;
177
+ footer?: JSX.Element;
178
+ }
179
+ declare function Layout({ children, header, footer, }: React.PropsWithChildren<LayoutProps>): react_jsx_runtime.JSX.Element;
180
+
181
+ declare function List(props: ListProps): react_jsx_runtime.JSX.Element;
182
+
183
+ interface SpinnerIconProps {
184
+ size?: number;
185
+ strokeWidth?: number;
186
+ color?: string;
187
+ }
188
+ declare function LoadingSpinner(props: SpinnerIconProps): ReactElement;
189
+
190
+ interface LogoProps {
191
+ width?: number;
192
+ fillColour?: string;
193
+ }
194
+
195
+ declare function LogoSVG({ width, fillColour }: LogoProps): JSX.Element;
196
+
197
+ declare function LogoSVGMini({ width, fillColour }: LogoProps): JSX.Element;
198
+
199
+ declare function Menu(props: MenuProps): react_jsx_runtime.JSX.Element;
200
+
201
+ declare const MenuHeading: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<_mui_joy.ListItemSlotsAndSlotProps & {
202
+ color?: _mui_types.OverridableStringUnion<_mui_joy.ColorPaletteProp, _mui_joy.ListItemPropsColorOverrides>;
203
+ children?: React.ReactNode;
204
+ startAction?: React.ReactNode;
205
+ endAction?: React.ReactNode;
206
+ nested?: boolean;
207
+ sticky?: boolean;
208
+ variant?: _mui_types.OverridableStringUnion<_mui_joy.VariantProp, _mui_joy.ListItemPropsVariantOverrides>;
209
+ sx?: _mui_joy_styles_types.SxProps;
210
+ } & Omit<Omit<react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
211
+ ref?: ((instance: HTMLLIElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLLIElement> | null | undefined;
212
+ }, "children" | "color" | "sticky" | "sx" | "variant" | keyof _mui_joy.ListItemSlotsAndSlotProps | "startAction" | "endAction" | "nested">, never>> & string & Omit<_mui_types.OverridableComponent<_mui_joy.ListItemTypeMap<{}, "li">>, keyof react.Component<any, {}, any>>;
213
+
214
+ declare const StyledMenuItem: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<Omit<_mui_joy.ListItemButtonProps, "slots" | "slotProps"> & _mui_joy.MenuItemSlotsAndSlotProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
215
+ ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
216
+ }, "children" | "style" | "ref" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "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 _mui_joy.MenuItemSlotsAndSlotProps>, never>> & string & Omit<_mui_joy.ExtendMenuItem<_mui_joy.MenuItemTypeMap<{}, "div">>, keyof react.Component<any, {}, any>>;
217
+
218
+ interface ProgressBarProps {
219
+ ariaLabel: string;
220
+ percentage: number;
221
+ }
222
+ declare function ProgressBar({ ariaLabel, percentage, }: ProgressBarProps): ReactElement;
223
+
224
+ interface TrafficLightRange {
225
+ min: number;
226
+ max: number;
227
+ text?: string;
228
+ }
229
+ interface TrafficLights {
230
+ red: TrafficLightRange;
231
+ orange: TrafficLightRange;
232
+ green: TrafficLightRange;
233
+ }
234
+ interface TrafficLightsExtended extends TrafficLights {
235
+ greenHigh: TrafficLightRange;
236
+ redLow: TrafficLightRange;
237
+ }
238
+ type TrafficLightRanges = TrafficLights | TrafficLightsExtended;
239
+ interface ProgressCircleProps {
240
+ size?: "tiny" | "small" | "medium" | "large";
241
+ value: number | null | undefined;
242
+ kind?: "default" | "danger" | "success" | "traffic-light";
243
+ trafficLightRanges?: TrafficLightRanges;
244
+ }
245
+ declare function ProgressCircle({ size, value, kind, trafficLightRanges, }: ProgressCircleProps): react_jsx_runtime.JSX.Element;
246
+
247
+ declare function Radio(props: RadioProps): react_jsx_runtime.JSX.Element;
248
+
249
+ interface ReadMoreProps {
250
+ maxLines?: number;
251
+ children: React.ReactNode;
252
+ }
253
+ declare function ReadMore({ children, maxLines }: ReadMoreProps): react_jsx_runtime.JSX.Element;
254
+
255
+ interface RelativeTimeProps {
256
+ time: Date;
257
+ }
258
+ declare function RelativeTime({ time, }: RelativeTimeProps): ReactElement;
259
+
260
+ interface Image {
261
+ status: string;
262
+ }
263
+ declare function StatusIcon({ status, size, }: {
264
+ status: Image["status"];
265
+ size?: IconSizes;
266
+ }): react_jsx_runtime.JSX.Element;
267
+
268
+ interface TableProps {
269
+ id: string;
270
+ data: unknown[];
271
+ columns: ColumnDef<unknown, unknown>[];
272
+ pageCount?: number;
273
+ totalCount?: number;
274
+ next?: string;
275
+ previous?: string;
276
+ page?: number;
277
+ pageable?: boolean;
278
+ pageSize?: number;
279
+ maxHeight?: boolean;
280
+ }
281
+ declare function Table({ id, data: tableData, columns, pageCount, totalCount, next, previous, page, pageable, pageSize, maxHeight, }: TableProps): react_jsx_runtime.JSX.Element;
282
+
283
+ interface TabConfig {
284
+ label: string;
285
+ id: string;
286
+ content: JSX.Element;
287
+ }
288
+ interface TabsProps {
289
+ tabsConfig: TabConfig[];
290
+ defaultId?: string;
291
+ }
292
+ declare function Tabs({ tabsConfig, defaultId }: TabsProps): react_jsx_runtime.JSX.Element;
293
+
294
+ declare function Textarea(props: TextareaProps): react_jsx_runtime.JSX.Element;
295
+
296
+ interface TextBlockProps {
297
+ label?: string;
298
+ content?: string | JSX.Element;
299
+ size?: "small" | "medium" | "large";
300
+ inline?: boolean;
301
+ }
302
+ declare function TextBlock({ label, content, size, inline }: TextBlockProps): react_jsx_runtime.JSX.Element;
303
+
304
+ interface TextMessage {
305
+ level: "success" | "warning" | "error";
306
+ text: string;
307
+ noFade?: boolean;
308
+ }
309
+ interface HTMLMessage {
310
+ level: "success" | "warning" | "error";
311
+ html: string;
312
+ noFade?: boolean;
313
+ }
314
+ type Message = TextMessage | HTMLMessage;
315
+ interface ToastMessagesProps {
316
+ messages: Message[];
317
+ }
318
+ declare function ToastMessages({ messages }: ToastMessagesProps): ReactElement;
319
+
320
+ interface TooltipProps extends TooltipProps$1 {
321
+ maxWidth?: string;
322
+ }
323
+ declare function Tooltip({ children, maxWidth, ...props }: React.PropsWithChildren<TooltipProps>): react_jsx_runtime.JSX.Element;
324
+
325
+ declare function Typography(props: TypographyProps): react_jsx_runtime.JSX.Element;
326
+
327
+ /**
328
+ * A hook to toggle a boolean value.
329
+ * @param initialState The initial state of the toggle.
330
+ * @returns An object with the current value and functions to toggle, set to true, and set to false.
331
+ */
332
+ declare function useToggle(initialState: boolean | (() => boolean)): {
333
+ value: boolean;
334
+ toggle: () => void;
335
+ setTrue: () => void;
336
+ setFalse: () => void;
337
+ };
338
+
339
+ /**
340
+ * A hook to store a value in local storage.
341
+ * @param key The key to store the value under in local storage.
342
+ * @param initialValue The initial value to store in local storage.
343
+ * @returns An array with the current value and a function to set the value.
344
+ * @example
345
+ * const [value, setValue] = useLocalStorage("myValue", "initialValue");
346
+ */
347
+ declare function useLocalStorage<V>(key: string, initialValue: V): [V, (newValue: V) => void];
348
+
349
+ /**
350
+ * Fetch data from a URL
351
+ * @param url - The URL to fetch data from
352
+ * @param options - The fetch options
353
+ * @param debounce - The debounce time in milliseconds
354
+ * @returns The data, loading state, and error
355
+ */
356
+ declare const useFetch: <T = unknown>(url: string, options?: RequestInit, debounce?: number) => {
357
+ data: T | null;
358
+ loading: boolean;
359
+ error: Error | null;
360
+ };
361
+
362
+ /**
363
+ * Format date to locale
364
+ * @param dateString - The date string to format
365
+ * @param format - The format to display the date in. Default is "dd MMM yyyy"
366
+ * @returns The formatted date
367
+ */
368
+ declare const formatDate: (dateString: string | null | undefined, format?: string) => string;
369
+ /**
370
+ * Format number to locale
371
+ * @param number - The number to format
372
+ * @returns The formatted number
373
+ */
374
+ declare const formatNumber: (number: number | string | null | undefined) => string;
375
+ /**
376
+ * Format text
377
+ * @param text
378
+ * @returns The formatted text
379
+ */
380
+ declare const formatText: (text: string | null | undefined) => string;
381
+ /**
382
+ * Format currency value to locale and currency
383
+ * @param value - The value to format
384
+ * @param locale - The locale to format the value to
385
+ * @param currency - The currency to format the value to
386
+ * @returns The formatted currency value
387
+ * */
388
+ declare const formatCurrency: (value: number | string | null | undefined, locale?: string | undefined, options?: Intl.NumberFormatOptions) => string;
389
+
390
+ export { Accordion, AppBar, AutoComplete as Autocomplete, AutocompleteSelectMultiple, Badge, Breadcrumb, Button, Card, Checkbox, Chip, ChipIcon, Container, Divider, Modal as Drawer, Dropdown, FormControl, FullPageErrorFallback, Grid, Heading, Icon, Input, Layout, List, LoadingSpinner, LogoSVG as Logo, LogoSVGMini as LogoMini, Menu, MenuHeading, StyledMenuItem as MenuItem, ProgressBar, ProgressCircle, Radio as RadioButton, ReadMore, RelativeTime, StatusIcon, Table, Tabs, TextBlock, Textarea, ToastMessages, Tooltip, Typography, formatCurrency, formatDate, formatNumber, formatText, useFetch, useLocalStorage, useToggle };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harpercollins/harpercollins-design-system",
3
- "version": "1.11.0",
3
+ "version": "1.11.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@ssh.dev.azure.com:v3/HarperCollinsUK/HCDesignSystem/HCDesignSystem"
@@ -52,9 +52,9 @@
52
52
  "@types/react-datepicker": "^6.2.0",
53
53
  "date-fns": "^3.6.0",
54
54
  "focus-trap-react": "^10.2.3",
55
- "react": "^18.3.1",
55
+ "react": "^18.2.0",
56
56
  "react-datepicker": "^6.9.0",
57
- "react-dom": "^18.3.1",
57
+ "react-dom": "^18.2.0",
58
58
  "rimraf": "^5.0.5",
59
59
  "rollup": "^4.13.2",
60
60
  "rollup-plugin-dts": "^6.1.0",
@@ -109,13 +109,13 @@
109
109
  "react-syntax-highlighter": "^15.5.0",
110
110
  "storybook": "^8.2.9",
111
111
  "tslib": "^2.6.2",
112
- "typescript": "^5.6.2",
112
+ "typescript": "^5.4.3",
113
113
  "vite": "^5.2.0",
114
114
  "vitest": "^1.4.0"
115
115
  },
116
116
  "peerDependencies": {
117
- "react": "^18.3.1",
118
- "react-dom": "^18.3.1"
117
+ "react": "^18.2.0",
118
+ "react-dom": "^18.2.0"
119
119
  },
120
120
  "browserslist": {
121
121
  "production": [