@harpercollins/harpercollins-design-system 1.8.17 → 1.8.19

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.
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import Divider from "./Divider";
3
+ type Story = StoryObj<typeof Divider>;
4
+ declare const meta: Meta<typeof Divider>;
5
+ export default meta;
6
+ export declare const Basic: Story;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import Breadcrumb from "./Breadcrumb";
3
+ type Story = StoryObj<typeof Breadcrumb>;
4
+ declare const meta: Meta<typeof Breadcrumb>;
5
+ export default meta;
6
+ export declare const Default: Story;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- interface ModalWindowProps {
2
+ export interface ModalWindowProps {
3
3
  side: "left" | "right" | "center";
4
4
  open: boolean;
5
5
  onClose: () => void;
@@ -1,6 +1,9 @@
1
1
  import { Meta, StoryObj } from "@storybook/react";
2
2
  import Modal from "./Modal";
3
+ type Story = StoryObj<typeof Modal>;
3
4
  declare const meta: Meta<typeof Modal>;
4
5
  export default meta;
5
- type Story = StoryObj<typeof Modal>;
6
- export declare const DefaultModal: Story;
6
+ export declare const Left: Story;
7
+ export declare const Right: Story;
8
+ export declare const Warning: Story;
9
+ export declare const Center: Story;
@@ -0,0 +1 @@
1
+ export { useToggle } from "./useToggle";
@@ -0,0 +1,6 @@
1
+ export declare function useToggle(initialState: boolean | (() => boolean)): {
2
+ value: boolean;
3
+ toggle: () => void;
4
+ setTrue: () => void;
5
+ setFalse: () => void;
6
+ };
@@ -1 +1,2 @@
1
1
  export * from "./components";
2
+ export * from "./hooks";