@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;
|
package/dist/index.d.ts
CHANGED
|
@@ -130,13 +130,13 @@ declare function Heading({ children, as }: HeadingProps): react_jsx_runtime.JSX.
|
|
|
130
130
|
type IconSizes = "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
131
131
|
type IconColours = "primary" | "default" | "danger" | "warning" | "success" | "grey" | "green";
|
|
132
132
|
interface IconProps {
|
|
133
|
-
|
|
133
|
+
icon: IconProp;
|
|
134
134
|
size?: IconSizes;
|
|
135
135
|
colour?: IconColours;
|
|
136
136
|
spin?: boolean;
|
|
137
137
|
className?: string;
|
|
138
138
|
}
|
|
139
|
-
declare function Icon({
|
|
139
|
+
declare function Icon({ icon, size, colour, spin, className, }: IconProps): React.ReactElement;
|
|
140
140
|
|
|
141
141
|
declare const Input: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<Pick<react.InputHTMLAttributes<HTMLInputElement>, "name" | "type" | "defaultValue" | "autoFocus" | "id" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onKeyUp" | "onClick" | "disabled" | "value" | "autoComplete" | "placeholder" | "readOnly" | "required"> & {
|
|
142
142
|
className?: string;
|
|
@@ -247,9 +247,9 @@ interface TableProps {
|
|
|
247
247
|
page?: number;
|
|
248
248
|
pageable?: boolean;
|
|
249
249
|
pageSize?: number;
|
|
250
|
-
maxHeight?: boolean;
|
|
250
|
+
$maxHeight?: boolean;
|
|
251
251
|
}
|
|
252
|
-
declare function Table({ id, data: tableData, columns, pageCount, totalCount, next, previous, page, pageable, pageSize, maxHeight, }: TableProps): react_jsx_runtime.JSX.Element;
|
|
252
|
+
declare function Table({ id, data: tableData, columns, pageCount, totalCount, next, previous, page, pageable, pageSize, $maxHeight, }: TableProps): react_jsx_runtime.JSX.Element;
|
|
253
253
|
|
|
254
254
|
interface TabConfig {
|
|
255
255
|
label: string;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|