@nnc-digital/nnc-design-system 1.0.0-beta11 → 1.0.0-beta13
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/build/index.js +67 -67
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +68 -68
- package/build/index.mjs.js.map +1 -1
- package/build/library/components/PromotedLinks/PromotedLinks.types.d.ts +4 -0
- package/build/library/structure/HomeHero/HomeHero.storydata.d.ts +5 -0
- package/build/library/structure/MemorialHero/MemorialHero.types.d.ts +6 -6
- package/build/src/library/components/PromotedLinks/PromotedLinks.types.d.ts +4 -0
- package/build/src/library/structure/HomeHero/HomeHero.storydata.d.ts +5 -0
- package/build/src/library/structure/MemorialHero/MemorialHero.types.d.ts +6 -6
- package/package.json +1 -1
package/build/index.mjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { Component, cloneElement, useState, useContext, useEffect, useRef, useId, createContext } from 'react';
|
|
2
|
-
import styled, { css, ThemeContext,
|
|
2
|
+
import styled, { css, ThemeContext, createGlobalStyle } from 'styled-components';
|
|
3
3
|
import axios from 'axios';
|
|
4
4
|
import require$$0 from 'tty';
|
|
5
5
|
import require$$2 from 'path';
|
|
@@ -7724,8 +7724,21 @@ const PromotedLinks$1 = styled.div`
|
|
|
7724
7724
|
`;
|
|
7725
7725
|
|
|
7726
7726
|
const PromotedLink$1 = styled.a`
|
|
7727
|
-
display:
|
|
7727
|
+
display: flex;
|
|
7728
|
+
flex-direction: column;
|
|
7729
|
+
align-items: center;
|
|
7730
|
+
justify-content: center;
|
|
7728
7731
|
height: 100%;
|
|
7732
|
+
text-align: center;
|
|
7733
|
+
|
|
7734
|
+
/* Memorial theme styling - horizontal layout like HeadingWithIconLink */
|
|
7735
|
+
${props => props.theme.is_memorial && `
|
|
7736
|
+
flex-direction: row;
|
|
7737
|
+
justify-content: flex-start;
|
|
7738
|
+
align-items: center;
|
|
7739
|
+
text-align: left;
|
|
7740
|
+
padding: 20px;
|
|
7741
|
+
`}
|
|
7729
7742
|
@media screen and (min-width: calc(${(props) => props.theme.theme_vars.breakpoints.l} + 60px)) {
|
|
7730
7743
|
box-sizing: border-box;
|
|
7731
7744
|
}
|
|
@@ -7748,6 +7761,48 @@ const PromotedLink$1 = styled.a`
|
|
|
7748
7761
|
|
|
7749
7762
|
span {
|
|
7750
7763
|
${(props) => props.theme.linkStyles};
|
|
7764
|
+
margin-top: 10px;
|
|
7765
|
+
|
|
7766
|
+
/* Memorial theme - larger text like Heading component */
|
|
7767
|
+
${props => props.theme.is_memorial && `
|
|
7768
|
+
font-size: 24px;
|
|
7769
|
+
font-size: 1.3rem;
|
|
7770
|
+
line-height: 1.4;
|
|
7771
|
+
margin-top: 0;
|
|
7772
|
+
margin-left: 15px;
|
|
7773
|
+
|
|
7774
|
+
@media screen and (min-width: ${props.theme.theme_vars.breakpoints.m}) {
|
|
7775
|
+
font-size: 36px;
|
|
7776
|
+
font-size: 1.5rem;
|
|
7777
|
+
line-height: 1.3;
|
|
7778
|
+
}
|
|
7779
|
+
`}
|
|
7780
|
+
}
|
|
7781
|
+
|
|
7782
|
+
[data-testid="DynamicIcon"] {
|
|
7783
|
+
margin-bottom: 10px;
|
|
7784
|
+
|
|
7785
|
+
.service-icon-hover {
|
|
7786
|
+
display: none;
|
|
7787
|
+
}
|
|
7788
|
+
|
|
7789
|
+
/* Memorial theme - no bottom margin, icon on left */
|
|
7790
|
+
${props => props.theme.is_memorial && `
|
|
7791
|
+
margin-bottom: 0;
|
|
7792
|
+
margin-right: 0;
|
|
7793
|
+
`}
|
|
7794
|
+
}
|
|
7795
|
+
|
|
7796
|
+
&:hover,
|
|
7797
|
+
&:focus {
|
|
7798
|
+
[data-testid="DynamicIcon"] {
|
|
7799
|
+
.service-icon {
|
|
7800
|
+
display: none;
|
|
7801
|
+
}
|
|
7802
|
+
.service-icon-hover {
|
|
7803
|
+
display: block !important;
|
|
7804
|
+
}
|
|
7805
|
+
}
|
|
7751
7806
|
}
|
|
7752
7807
|
|
|
7753
7808
|
&:hover {
|
|
@@ -7903,6 +7958,7 @@ var PromotedLinks = function (_a) {
|
|
|
7903
7958
|
return (React.createElement(PromotedLinks$1, { "data-testid": "PromotedLinks", "$oneCol": oneCol },
|
|
7904
7959
|
React.createElement(Row$1, { isList: true, hasWrap: true }, promotedLinksArray.map(function (link, i) { return (React.createElement(Column, { isList: true, small: "full", medium: "one-half", large: "one-third", key: i },
|
|
7905
7960
|
React.createElement(PromotedLink$1, { "$oneCol": oneCol, href: link.url, title: link.title },
|
|
7961
|
+
link.iconKey && React.createElement(DynamicIcon, { icon: link.iconKey, level: 2 }),
|
|
7906
7962
|
React.createElement("span", null, link.title)))); }))));
|
|
7907
7963
|
}
|
|
7908
7964
|
else {
|
|
@@ -26583,76 +26639,20 @@ const Image$1 = styled.div`
|
|
|
26583
26639
|
}
|
|
26584
26640
|
`;
|
|
26585
26641
|
|
|
26586
|
-
styled.div`
|
|
26587
|
-
background-color: ${(props) => props.theme.theme_vars.colours.grey};
|
|
26588
|
-
`;
|
|
26589
|
-
|
|
26590
|
-
styled.div`
|
|
26591
|
-
background-color: ${(props) => props.theme.theme_vars.colours.grey};
|
|
26592
|
-
display: flex;
|
|
26593
|
-
justify-content: space-between;
|
|
26594
|
-
align-items: center;
|
|
26595
|
-
align-content: stretch;
|
|
26596
|
-
flex-wrap: nowrap;
|
|
26597
|
-
flex-direction: column-reverse;
|
|
26598
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26599
|
-
flex-direction: row;
|
|
26600
|
-
}
|
|
26601
|
-
`;
|
|
26602
|
-
|
|
26603
|
-
styled.div`
|
|
26604
|
-
padding: 30px 0px;
|
|
26605
|
-
width: 100%;
|
|
26606
|
-
box-sizing: border-box;
|
|
26607
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26608
|
-
width: 60%;
|
|
26609
|
-
padding: 10px 30px;
|
|
26610
|
-
}
|
|
26611
|
-
`;
|
|
26612
|
-
|
|
26613
|
-
styled.div`
|
|
26614
|
-
transition: all 0.25s ease;
|
|
26615
|
-
background-image: url('${(props) => props.image}');
|
|
26616
|
-
background-size: cover;
|
|
26617
|
-
background-repeat: no-repeat;
|
|
26618
|
-
background-position: center;
|
|
26619
|
-
background-color: blue;
|
|
26620
|
-
width: 100%;
|
|
26621
|
-
height: 300px;
|
|
26622
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
26623
|
-
height: 500px;
|
|
26624
|
-
}
|
|
26625
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26626
|
-
height: 700px;
|
|
26627
|
-
}
|
|
26628
|
-
`;
|
|
26629
|
-
|
|
26630
|
-
styled.div`
|
|
26631
|
-
${(props) => props.theme.fontStyles}
|
|
26632
|
-
margin-right: 15px;
|
|
26633
|
-
margin-left: 15px;
|
|
26634
|
-
|
|
26635
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
26636
|
-
margin-right: 0px;
|
|
26637
|
-
margin-left: 0px;
|
|
26638
|
-
}
|
|
26639
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
26640
|
-
margin-right: 0px;
|
|
26641
|
-
margin-left: 0px;
|
|
26642
|
-
}
|
|
26643
|
-
@media screen and (min-width: calc(${(props) => props.theme.theme_vars.breakpoints.l} + 60px)) {
|
|
26644
|
-
}
|
|
26645
|
-
`;
|
|
26646
|
-
|
|
26647
26642
|
const HiddenH1 = styled.h1`
|
|
26648
|
-
|
|
26649
|
-
|
|
26643
|
+
position: absolute;
|
|
26644
|
+
width: 1px;
|
|
26645
|
+
height: 1px;
|
|
26650
26646
|
padding: 0;
|
|
26651
|
-
|
|
26647
|
+
margin: -1px;
|
|
26648
|
+
overflow: hidden;
|
|
26649
|
+
clip: rect(0, 0, 0, 0);
|
|
26650
|
+
white-space: nowrap;
|
|
26651
|
+
border: 0;
|
|
26652
26652
|
`;
|
|
26653
26653
|
|
|
26654
26654
|
var MemorialHero = function (_a) {
|
|
26655
|
-
var src = _a.src, placeholder = _a.placeholder, alt = _a.alt,
|
|
26655
|
+
var src = _a.src, placeholder = _a.placeholder, alt = _a.alt, children = _a.children, councilServices = _a.councilServices; _a.searchSuggestions;
|
|
26656
26656
|
var themeContext = useContext(ThemeContext);
|
|
26657
26657
|
return (React.createElement(React.Fragment, null,
|
|
26658
26658
|
React.createElement(Wrapper$2, { "aria-label": "Memorial Hero" },
|
|
@@ -26662,7 +26662,7 @@ var MemorialHero = function (_a) {
|
|
|
26662
26662
|
React.createElement(Container$s, null,
|
|
26663
26663
|
React.createElement(Left, null,
|
|
26664
26664
|
children,
|
|
26665
|
-
|
|
26665
|
+
councilServices),
|
|
26666
26666
|
React.createElement(Right, null,
|
|
26667
26667
|
React.createElement(LazyImage, { src: src, placeholder: placeholder, visibilitySensorProps: {
|
|
26668
26668
|
partialVisibility: true,
|