@nnc-digital/nnc-design-system 1.0.0-beta10 → 1.0.0-beta12

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 CHANGED
@@ -7721,24 +7721,37 @@ const oneColStyles = (props) => {
7721
7721
 
7722
7722
  const PromotedLinks$1 = styled__default.default.div`
7723
7723
  ${(props) => props.theme.fontStyles}
7724
- margin-top: 30px;
7724
+ margin-top: 15px;
7725
7725
 
7726
7726
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
7727
7727
  display: -ms-flex;
7728
7728
  display: -webkit-flex;
7729
7729
  display: flex;
7730
7730
  flex-wrap: wrap;
7731
- margin-top: 60px;
7731
+ margin-top: 30px;
7732
7732
  }
7733
7733
  @media screen and (min-width: calc(${(props) => props.theme.theme_vars.breakpoints.l} + 60px)) {
7734
- margin-top: 90px;
7734
+ margin-top: 45px;
7735
7735
  }
7736
7736
  flex-direction: ${(prop) => (prop.oneCol ? 'column' : 'inherit')};
7737
7737
  `;
7738
7738
 
7739
7739
  const PromotedLink$1 = styled__default.default.a`
7740
- display: block;
7740
+ display: flex;
7741
+ flex-direction: column;
7742
+ align-items: center;
7743
+ justify-content: center;
7741
7744
  height: 100%;
7745
+ text-align: center;
7746
+
7747
+ /* Memorial theme styling - horizontal layout like HeadingWithIconLink */
7748
+ ${props => props.theme.is_memorial && `
7749
+ flex-direction: row;
7750
+ justify-content: flex-start;
7751
+ align-items: center;
7752
+ text-align: left;
7753
+ padding: 20px;
7754
+ `}
7742
7755
  @media screen and (min-width: calc(${(props) => props.theme.theme_vars.breakpoints.l} + 60px)) {
7743
7756
  box-sizing: border-box;
7744
7757
  }
@@ -7761,6 +7774,48 @@ const PromotedLink$1 = styled__default.default.a`
7761
7774
 
7762
7775
  span {
7763
7776
  ${(props) => props.theme.linkStyles};
7777
+ margin-top: 10px;
7778
+
7779
+ /* Memorial theme - larger text like Heading component */
7780
+ ${props => props.theme.is_memorial && `
7781
+ font-size: 24px;
7782
+ font-size: 1.3rem;
7783
+ line-height: 1.4;
7784
+ margin-top: 0;
7785
+ margin-left: 15px;
7786
+
7787
+ @media screen and (min-width: ${props.theme.theme_vars.breakpoints.m}) {
7788
+ font-size: 36px;
7789
+ font-size: 1.5rem;
7790
+ line-height: 1.3;
7791
+ }
7792
+ `}
7793
+ }
7794
+
7795
+ [data-testid="DynamicIcon"] {
7796
+ margin-bottom: 10px;
7797
+
7798
+ .service-icon-hover {
7799
+ display: none;
7800
+ }
7801
+
7802
+ /* Memorial theme - no bottom margin, icon on left */
7803
+ ${props => props.theme.is_memorial && `
7804
+ margin-bottom: 0;
7805
+ margin-right: 0;
7806
+ `}
7807
+ }
7808
+
7809
+ &:hover,
7810
+ &:focus {
7811
+ [data-testid="DynamicIcon"] {
7812
+ .service-icon {
7813
+ display: none;
7814
+ }
7815
+ .service-icon-hover {
7816
+ display: block !important;
7817
+ }
7818
+ }
7764
7819
  }
7765
7820
 
7766
7821
  &:hover {
@@ -7916,6 +7971,7 @@ var PromotedLinks = function (_a) {
7916
7971
  return (React__default.default.createElement(PromotedLinks$1, { "data-testid": "PromotedLinks", "$oneCol": oneCol },
7917
7972
  React__default.default.createElement(Row$1, { isList: true, hasWrap: true }, promotedLinksArray.map(function (link, i) { return (React__default.default.createElement(Column, { isList: true, small: "full", medium: "one-half", large: "one-third", key: i },
7918
7973
  React__default.default.createElement(PromotedLink$1, { "$oneCol": oneCol, href: link.url, title: link.title },
7974
+ link.iconKey && React__default.default.createElement(DynamicIcon, { icon: link.iconKey, level: 2 }),
7919
7975
  React__default.default.createElement("span", null, link.title)))); }))));
7920
7976
  }
7921
7977
  else {
@@ -26596,76 +26652,20 @@ const Image$1 = styled__default.default.div`
26596
26652
  }
26597
26653
  `;
26598
26654
 
26599
- styled__default.default.div`
26600
- background-color: ${(props) => props.theme.theme_vars.colours.grey};
26601
- `;
26602
-
26603
- styled__default.default.div`
26604
- background-color: ${(props) => props.theme.theme_vars.colours.grey};
26605
- display: flex;
26606
- justify-content: space-between;
26607
- align-items: center;
26608
- align-content: stretch;
26609
- flex-wrap: nowrap;
26610
- flex-direction: column-reverse;
26611
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26612
- flex-direction: row;
26613
- }
26614
- `;
26615
-
26616
- styled__default.default.div`
26617
- padding: 30px 0px;
26618
- width: 100%;
26619
- box-sizing: border-box;
26620
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26621
- width: 60%;
26622
- padding: 10px 30px;
26623
- }
26624
- `;
26625
-
26626
- styled__default.default.div`
26627
- transition: all 0.25s ease;
26628
- background-image: url('${(props) => props.image}');
26629
- background-size: cover;
26630
- background-repeat: no-repeat;
26631
- background-position: center;
26632
- background-color: blue;
26633
- width: 100%;
26634
- height: 300px;
26635
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
26636
- height: 500px;
26637
- }
26638
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26639
- height: 700px;
26640
- }
26641
- `;
26642
-
26643
- styled__default.default.div`
26644
- ${(props) => props.theme.fontStyles}
26645
- margin-right: 15px;
26646
- margin-left: 15px;
26647
-
26648
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
26649
- margin-right: 0px;
26650
- margin-left: 0px;
26651
- }
26652
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
26653
- margin-right: 0px;
26654
- margin-left: 0px;
26655
- }
26656
- @media screen and (min-width: calc(${(props) => props.theme.theme_vars.breakpoints.l} + 60px)) {
26657
- }
26658
- `;
26659
-
26660
26655
  const HiddenH1 = styled__default.default.h1`
26661
- visibility: hidden;
26662
- margin: 0;
26656
+ position: absolute;
26657
+ width: 1px;
26658
+ height: 1px;
26663
26659
  padding: 0;
26664
- font-size: 0px;
26660
+ margin: -1px;
26661
+ overflow: hidden;
26662
+ clip: rect(0, 0, 0, 0);
26663
+ white-space: nowrap;
26664
+ border: 0;
26665
26665
  `;
26666
26666
 
26667
26667
  var MemorialHero = function (_a) {
26668
- var src = _a.src, placeholder = _a.placeholder, alt = _a.alt, theme = _a.theme, children = _a.children, councilServices = _a.councilServices;
26668
+ var src = _a.src, placeholder = _a.placeholder, alt = _a.alt, children = _a.children, councilServices = _a.councilServices; _a.searchSuggestions;
26669
26669
  var themeContext = React.useContext(styled.ThemeContext);
26670
26670
  return (React__default.default.createElement(React__default.default.Fragment, null,
26671
26671
  React__default.default.createElement(Wrapper$2, { "aria-label": "Memorial Hero" },
@@ -26675,7 +26675,7 @@ var MemorialHero = function (_a) {
26675
26675
  React__default.default.createElement(Container$s, null,
26676
26676
  React__default.default.createElement(Left, null,
26677
26677
  children,
26678
- React__default.default.createElement(styled.ThemeProvider, { theme: theme }, councilServices)),
26678
+ councilServices),
26679
26679
  React__default.default.createElement(Right, null,
26680
26680
  React__default.default.createElement(LazyImage, { src: src, placeholder: placeholder, visibilitySensorProps: {
26681
26681
  partialVisibility: true,