@harpercollins/harpercollins-design-system 1.7.0 → 1.8.0

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,2 @@
1
+ import Layout from "./Layout";
2
+ export default Layout;
@@ -16,7 +16,8 @@ import ProgressBar from "./feedback/ProgressBar";
16
16
  import ToastMessage from "./feedback/ToastMessage";
17
17
  import AppBar from "./global/AppBar";
18
18
  import DropDownMenu from "./global/AppBar/DropDownMenu";
19
+ import Layout from "./global/Layout";
19
20
  import Logo from "./global/Logo";
20
21
  import Button from "./inputs/Button";
21
22
  import Breadcrumb from "./navigation/Breadcrumb";
22
- export { Accordion, AppBar, Badge, Breadcrumb, Button, Divider, DropDownMenu, Heading, Icon, LoadingSpinner, Logo, ProgressBar, ProgressCircle, ReadMore, RelativeTime, StatusIcon, Table, Tabs, TextField, ToastMessage, Tooltip, };
23
+ export { Accordion, AppBar, Badge, Breadcrumb, Button, Divider, DropDownMenu, Heading, Icon, Layout, LoadingSpinner, Logo, ProgressBar, ProgressCircle, ReadMore, RelativeTime, StatusIcon, Table, Tabs, TextField, ToastMessage, Tooltip, };
@@ -1 +1 @@
1
- import "./index.css";
1
+ export {};
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import "./css/vendor/meyer-reset.css";
3
+ declare const GlobalStyles: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
4
+ export default GlobalStyles;
package/dist/esm/index.js CHANGED
@@ -902,6 +902,16 @@ function Bi(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=
902
902
  display: flex;
903
903
  align-items: center;
904
904
  `;function zl({currentApp:o,apps:r}){const i=e("svg",{viewBox:"0 0 32 32",children:t("g",{children:[e("path",{d:"M10.246,4.228c0-0.547-0.443-0.991-0.99-0.991H3.914c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M19.453,4.228c0-0.547-0.443-0.991-0.991-0.991h-5.343c-0.546,0-0.99,0.443-0.99,0.991V9.57 c0,0.546,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.444,0.991-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M28.868,4.228c0-0.547-0.443-0.991-0.99-0.991h-5.342c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e("path",{d:"M10.246,13.224c0-0.547-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M19.453,13.224c0-0.547-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.443-0.99,0.99v5.342 c0,0.549,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.441,0.991-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M28.868,13.224c0-0.547-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e("path",{d:"M10.246,22.43c0-0.545-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"}),e("path",{d:"M19.453,22.43c0-0.545-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.445-0.99,0.99v5.344 c0,0.547,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.443,0.991-0.99V22.43z",fill:"currentColor"}),e("path",{d:"M28.868,22.43c0-0.545-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"})]})});return e(bl,{toggle:t(n,{children:[i,o&&e(Rl,{children:o})]}),children:r})}function kl({apps:n,currentApp:o,leftSide:r,rightSide:i}){return t(yl,{children:[e(xl,{href:"/",children:e(hl,{})}),e(zl,{apps:n,currentApp:o}),e(Sl,{children:r}),e(Cl,{children:i})]})}const Ml=nn.div`
905
+ height: 100%;
906
+ position: absolute;
907
+ width: 100%;
908
+ top: 0;
909
+ left: 0;
910
+ `,Pl=nn.main`
911
+ width: 100%;
912
+ height: calc(100% - 136px); // TODO: calculate the height of the header
913
+ position: relative;
914
+ `;function Vl({children:n,header:o,footer:r}){return t(Ml,{children:[o,e(Pl,{children:n}),r]})}const El=nn.div`
905
915
  display: flex;
906
916
  flex-flow: wrap;
907
917
  justify-content: space-between;
@@ -910,12 +920,12 @@ function Bi(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=
910
920
  @media print {
911
921
  display: none;
912
922
  }
913
- `,Pl=nn.ul`
923
+ `,Il=nn.ul`
914
924
  display: flex;
915
925
  flex-flow: row;
916
926
  width: 100%;
917
927
  flex-wrap: wrap;
918
- `,Vl=nn.li`
928
+ `,Fl=nn.li`
919
929
  display: inline-block;
920
930
  color: var(--color--grey);
921
931
  overflow: hidden;
@@ -934,5 +944,5 @@ function Bi(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=
934
944
  font-weight: 600;
935
945
  }
936
946
  }
937
- `;function El({children:t}){return e(Ml,{children:e(Pl,{children:t})})}El.Item=Vl;export{An as Accordion,kl as AppBar,Nn as Badge,El as Breadcrumb,oo as Button,$n as Divider,bl as DropDownMenu,ln as Heading,Vn as Icon,qn as LoadingSpinner,hl as Logo,dl as ProgressBar,Tn as ProgressCircle,ao as ReadMore,co as RelativeTime,Yr as StatusIcon,Yi as Table,nl as Tabs,al as TextField,pl as ToastMessage,$r as Tooltip};
947
+ `;function Ol({children:t}){return e(El,{children:e(Il,{children:t})})}Ol.Item=Fl;export{An as Accordion,kl as AppBar,Nn as Badge,Ol as Breadcrumb,oo as Button,$n as Divider,bl as DropDownMenu,ln as Heading,Vn as Icon,Vl as Layout,qn as LoadingSpinner,hl as Logo,dl as ProgressBar,Tn as ProgressCircle,ao as ReadMore,co as RelativeTime,Yr as StatusIcon,Yi as Table,nl as Tabs,al as TextField,pl as ToastMessage,$r as Tooltip};
938
948
  //# sourceMappingURL=index.js.map