@harpercollins/harpercollins-design-system 1.8.20 → 1.8.21
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 +323 -323
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/src/components/index.d.ts +2 -2
- package/dist/cjs/types/src/styles/globalStyles.d.ts +9 -0
- package/dist/esm/index.js +324 -324
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/index.d.ts +2 -2
- package/dist/esm/types/src/styles/globalStyles.d.ts +9 -0
- package/dist/index.d.ts +7 -1
- package/package.json +1 -1
- package/dist/cjs/types/src/styles/GlobalStyles.d.ts +0 -4
- package/dist/esm/types/src/styles/GlobalStyles.d.ts +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import GlobalStyles from "../styles/
|
|
1
|
+
import { GlobalStyles, theme } from "../styles/globalStyles";
|
|
2
2
|
import Accordion from "./data-display/Accordion";
|
|
3
3
|
import Badge from "./data-display/Badge";
|
|
4
4
|
import Divider from "./data-display/Divider";
|
|
@@ -22,4 +22,4 @@ import Logo from "./global/Logo";
|
|
|
22
22
|
import Button from "./inputs/Button";
|
|
23
23
|
import Breadcrumb from "./navigation/Breadcrumb";
|
|
24
24
|
import Modal from "./overlay/Modal";
|
|
25
|
-
export { Accordion, AppBar, Badge, Breadcrumb, Button, Divider, DropDownMenu, GlobalStyles, Heading, Icon, Layout, LoadingSpinner, Logo, Modal, ProgressBar, ProgressCircle, ReadMore, RelativeTime, StatusIcon, Table, Tabs, TextField, ToastMessages, Tooltip, };
|
|
25
|
+
export { Accordion, AppBar, Badge, Breadcrumb, Button, Divider, DropDownMenu, GlobalStyles, Heading, Icon, Layout, LoadingSpinner, Logo, Modal, ProgressBar, ProgressCircle, ReadMore, RelativeTime, StatusIcon, Table, Tabs, TextField, theme, ToastMessages, Tooltip, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./css/vendor/meyer-reset.css";
|
|
3
|
+
export declare const GlobalStyles: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
4
|
+
export declare const theme: {
|
|
5
|
+
colours: {
|
|
6
|
+
primary: string;
|
|
7
|
+
};
|
|
8
|
+
fontFamily: string;
|
|
9
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,12 @@ import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
|
7
7
|
import { ColumnDef } from '@tanstack/react-table';
|
|
8
8
|
|
|
9
9
|
declare const GlobalStyles: React$1.NamedExoticComponent<styled_components.ExecutionProps & object>;
|
|
10
|
+
declare const theme: {
|
|
11
|
+
colours: {
|
|
12
|
+
primary: string;
|
|
13
|
+
};
|
|
14
|
+
fontFamily: string;
|
|
15
|
+
};
|
|
10
16
|
|
|
11
17
|
interface AccordionProps {
|
|
12
18
|
title: string | React.ReactNode;
|
|
@@ -246,4 +252,4 @@ declare function useToggle(initialState: boolean | (() => boolean)): {
|
|
|
246
252
|
setFalse: () => void;
|
|
247
253
|
};
|
|
248
254
|
|
|
249
|
-
export { Accordion, AppBar, Badge, Breadcrumb, Button, Divider, DropDownMenu, GlobalStyles, Heading, Icon, Layout, LoadingSpinner, Logo, Modal, ProgressBar, ProgressCircle, ReadMore, RelativeTime, StatusIcon, Table, Tabs, TextField, ToastMessages, Tooltip, useToggle };
|
|
255
|
+
export { Accordion, AppBar, Badge, Breadcrumb, Button, Divider, DropDownMenu, GlobalStyles, Heading, Icon, Layout, LoadingSpinner, Logo, Modal, ProgressBar, ProgressCircle, ReadMore, RelativeTime, StatusIcon, Table, Tabs, TextField, ToastMessages, Tooltip, theme, useToggle };
|
package/package.json
CHANGED