@harpercollins/harpercollins-design-system 1.8.75 → 1.8.77
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 +119 -119
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/src/components/data-display/Icon/Icon.d.ts +2 -3
- package/dist/cjs/types/src/components/data-display/Icon/Icon.stories.d.ts +20 -6
- package/dist/cjs/types/src/components/data-display/Table/Table.d.ts +2 -2
- package/dist/cjs/types/src/components/data-display/Table/Table.stories.d.ts +1 -0
- package/dist/esm/index.js +127 -127
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/data-display/Icon/Icon.d.ts +2 -3
- package/dist/esm/types/src/components/data-display/Icon/Icon.stories.d.ts +20 -6
- package/dist/esm/types/src/components/data-display/Table/Table.d.ts +2 -2
- package/dist/esm/types/src/components/data-display/Table/Table.stories.d.ts +1 -0
- package/dist/index.d.ts +4 -4
- package/package.json +1 -1
- package/dist/cjs/types/src/components/data-display/Icon/fontAwesome.d.ts +0 -1
- package/dist/esm/types/src/components/data-display/Icon/fontAwesome.d.ts +0 -1
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
-
import "./fontAwesome";
|
|
3
2
|
export type IconSizes = "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
4
3
|
export type IconColours = "primary" | "default" | "danger" | "warning" | "success" | "grey" | "green";
|
|
5
4
|
export interface IconProps {
|
|
6
|
-
|
|
5
|
+
icon: IconProp;
|
|
7
6
|
size?: IconSizes;
|
|
8
7
|
colour?: IconColours;
|
|
9
8
|
spin?: boolean;
|
|
10
9
|
className?: string;
|
|
11
10
|
}
|
|
12
|
-
declare function Icon({
|
|
11
|
+
declare function Icon({ icon, size, colour, spin, className, }: IconProps): React.ReactElement;
|
|
13
12
|
export default Icon;
|
|
@@ -2,34 +2,48 @@ import { Meta } from "@storybook/react";
|
|
|
2
2
|
import Icon from "./Icon";
|
|
3
3
|
declare const meta: Meta<typeof Icon>;
|
|
4
4
|
export default meta;
|
|
5
|
-
export declare function AllIcons(): import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export declare const XLargeIcon: {
|
|
7
6
|
args: {
|
|
8
|
-
name: string[];
|
|
9
7
|
size: string;
|
|
10
8
|
};
|
|
11
9
|
};
|
|
12
10
|
export declare const LargeIcon: {
|
|
13
11
|
args: {
|
|
14
|
-
name: string[];
|
|
15
12
|
size: string;
|
|
16
13
|
};
|
|
17
14
|
};
|
|
18
15
|
export declare const MediumIcon: {
|
|
19
16
|
args: {
|
|
20
|
-
name: string[];
|
|
21
17
|
size: string;
|
|
22
18
|
};
|
|
23
19
|
};
|
|
24
20
|
export declare const SmallIcon: {
|
|
25
21
|
args: {
|
|
26
|
-
name: string[];
|
|
27
22
|
size: string;
|
|
28
23
|
};
|
|
29
24
|
};
|
|
30
25
|
export declare const XSmallIcon: {
|
|
31
26
|
args: {
|
|
32
|
-
name: string[];
|
|
33
27
|
size: string;
|
|
34
28
|
};
|
|
35
29
|
};
|
|
30
|
+
export declare const DefaultColour: {
|
|
31
|
+
args: {
|
|
32
|
+
colour: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare const DangerColour: {
|
|
36
|
+
args: {
|
|
37
|
+
colour: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const SuccessColour: {
|
|
41
|
+
args: {
|
|
42
|
+
colour: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const GreyColour: {
|
|
46
|
+
args: {
|
|
47
|
+
colour: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -10,7 +10,7 @@ interface TableProps {
|
|
|
10
10
|
page?: number;
|
|
11
11
|
pageable?: boolean;
|
|
12
12
|
pageSize?: number;
|
|
13
|
-
maxHeight?: boolean;
|
|
13
|
+
$maxHeight?: boolean;
|
|
14
14
|
}
|
|
15
|
-
declare function Table({ id, data: tableData, columns, pageCount, totalCount, next, previous, page, pageable, pageSize, maxHeight, }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function Table({ id, data: tableData, columns, pageCount, totalCount, next, previous, page, pageable, pageSize, $maxHeight, }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export default Table;
|