@harpercollins/harpercollins-design-system 1.14.2 → 1.15.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.
Files changed (40) hide show
  1. package/dist/cjs/index.cjs +178 -171
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/cjs/types/src/components/index.d.ts +8 -1
  4. package/dist/cjs/types/src/components/inputs/Input/FormLabel.d.ts +3 -0
  5. package/dist/cjs/types/src/components/inputs/Slider/Slider.d.ts +3 -0
  6. package/dist/cjs/types/src/components/inputs/Slider/Slider.stories.d.ts +6 -0
  7. package/dist/cjs/types/src/components/inputs/Slider/index.d.ts +2 -0
  8. package/dist/cjs/types/src/components/inputs/Switch/Switch.d.ts +3 -0
  9. package/dist/cjs/types/src/components/inputs/Switch/Switch.stories.d.ts +6 -0
  10. package/dist/cjs/types/src/components/inputs/Switch/index.d.ts +2 -0
  11. package/dist/cjs/types/src/components/navigation/Menu/MenuItem.d.ts +1 -1
  12. package/dist/cjs/types/src/components/surfaces/Accordion/Accordion.d.ts +2 -5
  13. package/dist/cjs/types/src/components/surfaces/Accordion/Accordion.stories.d.ts +0 -3
  14. package/dist/cjs/types/src/components/surfaces/Accordion/AccordionDetails.d.ts +3 -0
  15. package/dist/cjs/types/src/components/surfaces/Accordion/AccordionGroup.d.ts +3 -0
  16. package/dist/cjs/types/src/components/surfaces/Accordion/AccordionSummary.d.ts +3 -0
  17. package/dist/cjs/types/src/components/surfaces/AccordionLegacy/Accordion.d.ts +6 -0
  18. package/dist/cjs/types/src/components/surfaces/AccordionLegacy/Accordion.stories.d.ts +9 -0
  19. package/dist/cjs/types/src/components/surfaces/AccordionLegacy/index.d.ts +2 -0
  20. package/dist/esm/index.js +179 -172
  21. package/dist/esm/index.js.map +1 -1
  22. package/dist/esm/types/src/components/index.d.ts +8 -1
  23. package/dist/esm/types/src/components/inputs/Input/FormLabel.d.ts +3 -0
  24. package/dist/esm/types/src/components/inputs/Slider/Slider.d.ts +3 -0
  25. package/dist/esm/types/src/components/inputs/Slider/Slider.stories.d.ts +6 -0
  26. package/dist/esm/types/src/components/inputs/Slider/index.d.ts +2 -0
  27. package/dist/esm/types/src/components/inputs/Switch/Switch.d.ts +3 -0
  28. package/dist/esm/types/src/components/inputs/Switch/Switch.stories.d.ts +6 -0
  29. package/dist/esm/types/src/components/inputs/Switch/index.d.ts +2 -0
  30. package/dist/esm/types/src/components/navigation/Menu/MenuItem.d.ts +1 -1
  31. package/dist/esm/types/src/components/surfaces/Accordion/Accordion.d.ts +2 -5
  32. package/dist/esm/types/src/components/surfaces/Accordion/Accordion.stories.d.ts +0 -3
  33. package/dist/esm/types/src/components/surfaces/Accordion/AccordionDetails.d.ts +3 -0
  34. package/dist/esm/types/src/components/surfaces/Accordion/AccordionGroup.d.ts +3 -0
  35. package/dist/esm/types/src/components/surfaces/Accordion/AccordionSummary.d.ts +3 -0
  36. package/dist/esm/types/src/components/surfaces/AccordionLegacy/Accordion.d.ts +6 -0
  37. package/dist/esm/types/src/components/surfaces/AccordionLegacy/Accordion.stories.d.ts +9 -0
  38. package/dist/esm/types/src/components/surfaces/AccordionLegacy/index.d.ts +2 -0
  39. package/dist/index.d.ts +17 -3
  40. package/package.json +1 -1
@@ -1,4 +1,8 @@
1
1
  import Accordion from "./surfaces/Accordion";
2
+ import AccordionDetails from "./surfaces/Accordion/AccordionDetails";
3
+ import AccordionSummary from "./surfaces/Accordion/AccordionSummary";
4
+ import AccordionGroup from "./surfaces/Accordion/AccordionGroup";
5
+ import AccordionLegacy from "./surfaces/AccordionLegacy";
2
6
  import Alert from "./feedback/Alert";
3
7
  import AppBar from "./global/AppBar";
4
8
  import Autocomplete from "./inputs/Autocomplete";
@@ -23,6 +27,7 @@ import Divider from "./data-display/Divider";
23
27
  import Drawer from "./overlay/Drawer";
24
28
  import Dropdown from "./navigation/Dropdown";
25
29
  import FormControl from "./inputs/Input/FormControl";
30
+ import FormLabel from "./inputs/Input/FormLabel";
26
31
  import FullPageErrorFallback from "./global/ErrorFallback/FullPageErrorFallback";
27
32
  import Grid from "./layout/Grid";
28
33
  import Heading from "./data-display/Heading";
@@ -50,7 +55,9 @@ import RadioButton from "./inputs/RadioButton";
50
55
  import RadioGroup from "./inputs/RadioButton/RadioGroup";
51
56
  import ReadMore from "./data-display/ReadMore";
52
57
  import RelativeTime from "./data-display/RelativeTime";
58
+ import Slider from "./inputs/Slider";
53
59
  import StatusIcon from "./data-display/StatusIcon";
60
+ import Switch from "./inputs/Switch";
54
61
  import Table from "./data-display/Table";
55
62
  import Tabs from "./data-display/Tabs";
56
63
  import Textarea from "./inputs/Textarea";
@@ -60,4 +67,4 @@ import ToastMessages from "./feedback/ToastMessages";
60
67
  import ThemeProvider from "./global/ThemeProvider";
61
68
  import Tooltip from "./data-display/Tooltip";
62
69
  import Typography from "./data-display/Typography";
63
- export { Accordion, Alert, AppBar, Autocomplete, AutocompleteSelectMultiple, Avatar, Badge, Box, Breadcrumb, Button, Card, CardActions, CardContent, CardCover, CardOverflow, Checkbox, Chip, ChipIcon, Container, DatePicker, DateTimeInput, 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, ThemeProvider, ToastMessages, Tooltip, Typography, };
70
+ export { Accordion, AccordionSummary, AccordionGroup, AccordionDetails, AccordionLegacy, Alert, AppBar, Autocomplete, AutocompleteSelectMultiple, Avatar, Badge, Box, Breadcrumb, Button, Card, CardActions, CardContent, CardCover, CardOverflow, Checkbox, Chip, ChipIcon, Container, DatePicker, DateTimeInput, Divider, Drawer, Dropdown, FormControl, FormLabel, 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, Slider, StatusIcon, Switch, Table, Tabs, Textarea, TextBlock, TextField, ThemeProvider, ToastMessages, Tooltip, Typography, };
@@ -0,0 +1,3 @@
1
+ import { FormLabelProps } from "@mui/joy";
2
+ declare function FormLabel(props: FormLabelProps): import("react/jsx-runtime").JSX.Element;
3
+ export default FormLabel;
@@ -0,0 +1,3 @@
1
+ import { SliderProps } from "@mui/joy";
2
+ declare function Slider(props: SliderProps): import("react/jsx-runtime").JSX.Element;
3
+ export default Slider;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import Slider from "./Slider";
3
+ declare const meta: Meta<typeof Slider>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Slider>;
6
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ import Slider from "./Slider";
2
+ export default Slider;
@@ -0,0 +1,3 @@
1
+ import { SwitchProps } from "@mui/joy";
2
+ declare function Switch(props: SwitchProps): import("react/jsx-runtime").JSX.Element;
3
+ export default Switch;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import Switch from "./Switch";
3
+ declare const meta: Meta<typeof Switch>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Switch>;
6
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ import Switch from "./Switch";
2
+ export default Switch;
@@ -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" | "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>>;
3
+ }, "color" | "content" | "translate" | "ref" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "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" | "children" | "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" | "variant" | "sx" | "component" | "orientation" | "action" | "selected" | "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;
@@ -1,6 +1,3 @@
1
- interface AccordionProps {
2
- title: string | React.ReactNode;
3
- open?: boolean;
4
- }
5
- declare function Accordion({ title, children, open, }: React.PropsWithChildren<AccordionProps>): import("react/jsx-runtime").JSX.Element;
1
+ import { AccordionProps } from "@mui/joy";
2
+ declare function Accordion(props: AccordionProps): import("react/jsx-runtime").JSX.Element;
6
3
  export default Accordion;
@@ -4,6 +4,3 @@ declare const meta: Meta<typeof Accordion>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Accordion>;
6
6
  export declare const Default: Story;
7
- export declare const Open: Story;
8
- export declare const Closed: Story;
9
- export declare function Multiple(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { AccordionDetailsProps } from "@mui/joy";
2
+ declare function AccordionDetails(props: AccordionDetailsProps): import("react/jsx-runtime").JSX.Element;
3
+ export default AccordionDetails;
@@ -0,0 +1,3 @@
1
+ import { AccordionGroupProps } from "@mui/joy";
2
+ declare function AccordionGroup(props: AccordionGroupProps): import("react/jsx-runtime").JSX.Element;
3
+ export default AccordionGroup;
@@ -0,0 +1,3 @@
1
+ import { AccordionSummaryProps } from "@mui/joy";
2
+ declare function AccordionSummary(props: AccordionSummaryProps): import("react/jsx-runtime").JSX.Element;
3
+ export default AccordionSummary;
@@ -0,0 +1,6 @@
1
+ interface AccordionProps {
2
+ title: string | React.ReactNode;
3
+ open?: boolean;
4
+ }
5
+ declare function Accordion({ title, children, open, }: React.PropsWithChildren<AccordionProps>): import("react/jsx-runtime").JSX.Element;
6
+ export default Accordion;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import Accordion from "./Accordion";
3
+ declare const meta: Meta<typeof Accordion>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Accordion>;
6
+ export declare const Default: Story;
7
+ export declare const Open: Story;
8
+ export declare const Closed: Story;
9
+ export declare function Multiple(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import Accordion from "./Accordion";
2
+ export default Accordion;
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, ListItem, RadioProps, TextareaProps, TooltipProps as TooltipProps$1, TypographyProps } from '@mui/joy';
3
+ import { AccordionProps as AccordionProps$1, AccordionDetailsProps, AccordionSummaryProps, AccordionGroupProps, AlertProps, AutocompleteProps as AutocompleteProps$1, AvatarProps, BadgeProps, CardProps, CheckboxProps, ChipProps, ColorPaletteProp, ContainerProps, DividerProps, DropdownProps, FormControlProps, FormLabelProps, GridProps, InputProps, ListProps, MenuProps, ListItem, RadioProps, SliderProps, SwitchProps, 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';
@@ -11,6 +11,14 @@ import { IconProp } from '@fortawesome/fontawesome-svg-core';
11
11
  import ReactDatePicker, { ReactDatePickerProps } from 'react-datepicker';
12
12
  import { ColumnDef } from '@tanstack/react-table';
13
13
 
14
+ declare function Accordion$1(props: AccordionProps$1): react_jsx_runtime.JSX.Element;
15
+
16
+ declare function AccordionDetails(props: AccordionDetailsProps): react_jsx_runtime.JSX.Element;
17
+
18
+ declare function AccordionSummary(props: AccordionSummaryProps): react_jsx_runtime.JSX.Element;
19
+
20
+ declare function AccordionGroup(props: AccordionGroupProps): react_jsx_runtime.JSX.Element;
21
+
14
22
  interface AccordionProps {
15
23
  title: string | React.ReactNode;
16
24
  open?: boolean;
@@ -176,6 +184,8 @@ declare function Dropdown(props: DropdownProps): react_jsx_runtime.JSX.Element;
176
184
 
177
185
  declare function FormControl(props: FormControlProps): react_jsx_runtime.JSX.Element;
178
186
 
187
+ declare function FormLabel(props: FormLabelProps): react_jsx_runtime.JSX.Element;
188
+
179
189
  declare function FullPageErrorFallback(): react_jsx_runtime.JSX.Element;
180
190
 
181
191
  declare function Grid(props: GridProps): react_jsx_runtime.JSX.Element;
@@ -224,7 +234,7 @@ declare const MenuHeading: typeof ListItem;
224
234
 
225
235
  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"> & {
226
236
  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;
227
- }, "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$1.Component<any, {}, any>>;
237
+ }, "color" | "content" | "translate" | "ref" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "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" | "children" | "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" | "variant" | "sx" | "component" | "orientation" | "action" | "selected" | "focusVisibleClassName" | keyof _mui_joy.MenuItemSlotsAndSlotProps>, never>> & string & Omit<_mui_joy.ExtendMenuItem<_mui_joy.MenuItemTypeMap<{}, "div">>, keyof React$1.Component<any, {}, any>>;
228
238
 
229
239
  interface ProgressBarProps {
230
240
  ariaLabel: string;
@@ -268,6 +278,8 @@ interface RelativeTimeProps {
268
278
  }
269
279
  declare function RelativeTime({ time, }: RelativeTimeProps): ReactElement;
270
280
 
281
+ declare function Slider(props: SliderProps): react_jsx_runtime.JSX.Element;
282
+
271
283
  interface Image {
272
284
  status: string;
273
285
  }
@@ -276,6 +288,8 @@ declare function StatusIcon({ status, size, }: {
276
288
  size?: IconSizes;
277
289
  }): react_jsx_runtime.JSX.Element;
278
290
 
291
+ declare function Switch(props: SwitchProps): react_jsx_runtime.JSX.Element;
292
+
279
293
  interface TableProps {
280
294
  id: string;
281
295
  data: unknown[];
@@ -399,4 +413,4 @@ declare const formatText: (text: string | null | undefined) => string;
399
413
  * */
400
414
  declare const formatCurrency: (value: number | string | null | undefined, locale?: string | undefined, options?: Intl.NumberFormatOptions) => string;
401
415
 
402
- export { Accordion, Alert, AppBar, AutoComplete as Autocomplete, AutocompleteSelectMultiple, Avatar, Badge, Breadcrumb, Button, Card, Checkbox, Chip, ChipIcon, Container, DateInput as DatePicker, DateTimeInput, 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, ThemeProvider, ToastMessages, Tooltip, Typography, formatCurrency, formatDate, formatNumber, formatText, useFetch, useLocalStorage, useToggle };
416
+ export { Accordion$1 as Accordion, AccordionDetails, AccordionGroup, Accordion as AccordionLegacy, AccordionSummary, Alert, AppBar, AutoComplete as Autocomplete, AutocompleteSelectMultiple, Avatar, Badge, Breadcrumb, Button, Card, Checkbox, Chip, ChipIcon, Container, DateInput as DatePicker, DateTimeInput, Divider, Modal as Drawer, Dropdown, FormControl, FormLabel, 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, Slider, StatusIcon, Switch, Table, Tabs, TextBlock, Textarea, ThemeProvider, 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.14.2",
3
+ "version": "1.15.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@ssh.dev.azure.com:v3/HarperCollinsUK/HCDesignSystem/HCDesignSystem"