@harpercollins/harpercollins-design-system 1.8.12 → 1.8.16

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,11 @@
1
+ import React from "react";
2
+ interface ModalWindowProps {
3
+ side: "left" | "right" | "center";
4
+ open: boolean;
5
+ onClose: () => void;
6
+ showWarning?: boolean;
7
+ }
8
+ declare const Modal: React.ForwardRefExoticComponent<ModalWindowProps & {
9
+ children?: React.ReactNode;
10
+ } & React.RefAttributes<HTMLDivElement>>;
11
+ export default Modal;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import Modal from "./Modal";
3
+ declare const meta: Meta<typeof Modal>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Modal>;
6
+ export declare const DefaultModal: Story;
@@ -0,0 +1,2 @@
1
+ import Modal from "./Modal";
2
+ export default Modal;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ interface ModalWindowProps {
3
+ side: "left" | "right" | "center";
4
+ open: boolean;
5
+ onClose: () => void;
6
+ showWarning?: boolean;
7
+ }
8
+ declare const Modal: React.ForwardRefExoticComponent<ModalWindowProps & {
9
+ children?: React.ReactNode;
10
+ } & React.RefAttributes<HTMLDivElement>>;
11
+ export default Modal;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import Modal from "./Modal";
3
+ declare const meta: Meta<typeof Modal>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Modal>;
6
+ export declare const DefaultModal: Story;
@@ -0,0 +1,2 @@
1
+ import Modal from "./Modal";
2
+ export default Modal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harpercollins/harpercollins-design-system",
3
- "version": "1.8.12",
3
+ "version": "1.8.16",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@ssh.dev.azure.com:v3/HarperCollinsUK/HCDesignSystem/HCDesignSystem"
@@ -36,6 +36,20 @@
36
36
  "dependencies": {
37
37
  "@faker-js/faker": "^8.4.1",
38
38
  "@popperjs/core": "^2.11.8",
39
+ "@storybook/react": "^8.1.1",
40
+ "@storybook/test": "^8.1.1",
41
+ "@storybook/testing-library": "^0.2.2",
42
+ "@svgr/rollup": "^8.1.0",
43
+ "@tanstack/react-table": "^8.15.0",
44
+ "focus-trap-react": "^10.2.3",
45
+ "react": "^18.2.0",
46
+ "react-dom": "^18.2.0",
47
+ "react-popper": "^2.3.0",
48
+ "rimraf": "^5.0.5",
49
+ "styled-components": "^6.1.8"
50
+ },
51
+ "devDependencies": {
52
+ "@chromatic-com/storybook": "^1.2.25",
39
53
  "@rollup/plugin-babel": "^6.0.3",
40
54
  "@rollup/plugin-commonjs": "^24.1.0",
41
55
  "@rollup/plugin-node-resolve": "^15.0.2",
@@ -49,26 +63,8 @@
49
63
  "@storybook/addon-onboarding": "^8.0.4",
50
64
  "@storybook/blocks": "^8.0.4",
51
65
  "@storybook/jest": "^0.2.3",
52
- "@storybook/react": "^8.0.4",
53
66
  "@storybook/react-vite": "^8.0.4",
54
- "@storybook/test": "^8.0.4",
55
67
  "@storybook/test-runner": "^0.17.0",
56
- "@storybook/testing-library": "^0.2.2",
57
- "@svgr/rollup": "^8.1.0",
58
- "@tanstack/react-table": "^8.15.0",
59
- "react": "^18.2.0",
60
- "react-dom": "^18.2.0",
61
- "react-popper": "^2.3.0",
62
- "rimraf": "^5.0.5",
63
- "rollup": "^4.13.2",
64
- "rollup-plugin-dts": "^6.1.0",
65
- "rollup-plugin-peer-deps-external": "^2.2.4",
66
- "rollup-plugin-postcss": "^4.0.2",
67
- "rollup-plugin-terser": "^7.0.2",
68
- "styled-components": "^6.1.8"
69
- },
70
- "devDependencies": {
71
- "@chromatic-com/storybook": "^1.2.25",
72
68
  "@types/node": "^20.12.3",
73
69
  "@types/react": "^18.2.66",
74
70
  "@types/react-dom": "^18.2.22",
@@ -90,6 +86,11 @@
90
86
  "happy-dom": "^14.3.8",
91
87
  "prettier": "^3.2.5",
92
88
  "react-syntax-highlighter": "^15.5.0",
89
+ "rollup": "^4.13.2",
90
+ "rollup-plugin-dts": "^6.1.0",
91
+ "rollup-plugin-peer-deps-external": "^2.2.4",
92
+ "rollup-plugin-postcss": "^4.0.2",
93
+ "rollup-plugin-terser": "^7.0.2",
93
94
  "storybook": "^8.0.4",
94
95
  "tslib": "^2.6.2",
95
96
  "typescript": "^5.4.3",
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react").ReactRenderer, import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never>>;
3
- export default _default;
4
- export declare function Basic(): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react").ReactRenderer, {
3
- children: import("react").ReactNode;
4
- } & {
5
- children?: import("react").ReactNode;
6
- }>;
7
- export default _default;
8
- export declare function Default(): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react").ReactRenderer, import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never>>;
3
- export default _default;
4
- export declare function Basic(): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react").ReactRenderer, {
3
- children: import("react").ReactNode;
4
- } & {
5
- children?: import("react").ReactNode;
6
- }>;
7
- export default _default;
8
- export declare function Default(): import("react/jsx-runtime").JSX.Element;