@phillips/seldon 1.81.0 → 1.82.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.
- package/dist/assets/search.svg.js +2 -2
- package/dist/patterns/HeroBanner/HeroBanner.d.ts +1 -5
- package/dist/patterns/HeroBanner/HeroBanner.js +19 -20
- package/dist/patterns/HeroBanner/HeroBanner.stories.d.ts +1 -1
- package/dist/scss/_vars.scss +8 -3
- package/dist/scss/patterns/HeroBanner/_heroBanner.scss +7 -2
- package/dist/scss/patterns/UserManagement/_userManagement.scss +2 -2
- package/dist/scss/site-furniture/Header/_header.scss +15 -6
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
const
|
|
2
|
+
const t = (l) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", ...l }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M19.7601 17.618C22.5903 14.0843 22.3676 8.91176 19.0919 5.63604C15.5771 2.12132 9.87866 2.12132 6.36394 5.63604C2.84923 9.15076 2.84923 14.8492 6.36394 18.364C9.63965 21.6397 14.8122 21.8624 18.3459 19.0322L19.7989 20.4853C19.4085 20.8758 19.4085 21.509 19.799 21.8995L23.3345 25.435C24.1156 26.2161 25.3819 26.2161 26.1629 25.435C26.944 24.654 26.944 23.3876 26.1629 22.6066L22.6274 19.0711C22.2369 18.6805 21.6037 18.6805 21.2132 19.0711L19.7601 17.618ZM17.6777 16.9497C20.4113 14.2161 20.4113 9.78392 17.6777 7.05025C14.944 4.31658 10.5118 4.31658 7.77816 7.05025C5.04449 9.78392 5.04449 14.2161 7.77816 16.9497C10.5118 19.6834 14.944 19.6834 17.6777 16.9497Z", fill: "black" }));
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
t as default
|
|
5
5
|
};
|
|
@@ -24,10 +24,6 @@ export interface HeroBannerProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
24
24
|
* What background image or color to use
|
|
25
25
|
*/
|
|
26
26
|
background?: string;
|
|
27
|
-
/**
|
|
28
|
-
* What gradient to use
|
|
29
|
-
*/
|
|
30
|
-
gradient?: string;
|
|
31
27
|
/**
|
|
32
28
|
* Unique id for component testing
|
|
33
29
|
*/
|
|
@@ -42,5 +38,5 @@ export interface HeroBannerProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
42
38
|
*
|
|
43
39
|
* [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-herobanner--overview)
|
|
44
40
|
*/
|
|
45
|
-
declare const HeroBanner: ({ prehead, date, headerText, subHeadText, association, background,
|
|
41
|
+
declare const HeroBanner: ({ prehead, date, headerText, subHeadText, association, background, className, ...props }: HeroBannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
46
42
|
export default HeroBanner;
|
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { getCommonProps as f } from "../../utils/index.js";
|
|
3
3
|
import u from "../../node_modules/classnames/index.js";
|
|
4
|
-
import { TextVariants as
|
|
5
|
-
import
|
|
4
|
+
import { TextVariants as c } from "../../components/Text/types.js";
|
|
5
|
+
import i from "../../components/Text/Text.js";
|
|
6
6
|
const w = ({
|
|
7
|
-
prehead:
|
|
8
|
-
date:
|
|
7
|
+
prehead: e,
|
|
8
|
+
date: a,
|
|
9
9
|
headerText: t,
|
|
10
10
|
subHeadText: l,
|
|
11
11
|
association: s,
|
|
12
|
-
background:
|
|
13
|
-
|
|
14
|
-
className: h,
|
|
12
|
+
background: p,
|
|
13
|
+
className: d,
|
|
15
14
|
...o
|
|
16
15
|
}) => {
|
|
17
|
-
const { className:
|
|
18
|
-
return /* @__PURE__ */
|
|
16
|
+
const { className: r, ...h } = f(o, "HeroBanner");
|
|
17
|
+
return /* @__PURE__ */ n(
|
|
19
18
|
"header",
|
|
20
19
|
{
|
|
21
|
-
...
|
|
22
|
-
className: u(
|
|
23
|
-
style: { "--background":
|
|
20
|
+
...h,
|
|
21
|
+
className: u(r, d),
|
|
22
|
+
style: { "--background": p },
|
|
24
23
|
...o,
|
|
25
|
-
children: /* @__PURE__ */ m("span", { className: `${
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
children: /* @__PURE__ */ m("span", { className: `${r}__content-wrapper`, children: [
|
|
25
|
+
e || a ? /* @__PURE__ */ m("p", { className: `${r}__pre-head`, children: [
|
|
26
|
+
e ? /* @__PURE__ */ n("span", { children: e }) : null,
|
|
27
|
+
a ? /* @__PURE__ */ n("span", { children: a }) : null
|
|
29
28
|
] }) : null,
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
l ? /* @__PURE__ */
|
|
32
|
-
s ? /* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ n(i, { variant: c.snwHeadingHero1, children: t }),
|
|
30
|
+
l ? /* @__PURE__ */ n(i, { variant: c.snwHeadingHero2, children: l }) : null,
|
|
31
|
+
s ? /* @__PURE__ */ n("p", { className: `${r}__after-head`, children: s }) : null
|
|
33
32
|
] })
|
|
34
33
|
}
|
|
35
34
|
);
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { HeroBannerProps } from './HeroBanner';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ prehead, date, headerText, subHeadText, association, background,
|
|
5
|
+
component: ({ prehead, date, headerText, subHeadText, association, background, className, ...props }: HeroBannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
};
|
|
7
7
|
export default meta;
|
|
8
8
|
type Story = StoryObj<typeof meta>;
|
package/dist/scss/_vars.scss
CHANGED
|
@@ -196,12 +196,17 @@ $breakpoint-xl: 1801px;
|
|
|
196
196
|
--badge-label-line-height: 1rem;
|
|
197
197
|
--snw-header-link-size: 1rem;
|
|
198
198
|
--snw-header-link-line-height: 1.5rem;
|
|
199
|
-
--snw-flyout-link-size:
|
|
200
|
-
--snw-flyout-link-line-height: 1.
|
|
199
|
+
--snw-flyout-link-size: 0.875rem;
|
|
200
|
+
--snw-flyout-link-line-height: 1.75rem;
|
|
201
201
|
--snw-heading-hero-size1: 2.375rem;
|
|
202
202
|
--snw-heading-hero-line-height-size1: 2.875rem;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
+
@media (min-width: $breakpoint-lg) {
|
|
206
|
+
--snw-flyout-link-size: 0.875rem;
|
|
207
|
+
--snw-flyout-link-line-height: 1.75rem;
|
|
208
|
+
}
|
|
209
|
+
|
|
205
210
|
@media (min-width: $breakpoint-xl) {
|
|
206
211
|
--quote-size: 2rem;
|
|
207
212
|
--quote-line-height: 2.5rem;
|
|
@@ -367,7 +372,7 @@ $margin-xxl: var(--spacing-xxl);
|
|
|
367
372
|
///////////////////////
|
|
368
373
|
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
369
374
|
:root {
|
|
370
|
-
--header-height:
|
|
375
|
+
--header-height: 56px; // ideally we would calculate the size from the current text size plus spacing components so that it scales with the text size and spacing
|
|
371
376
|
--search-size: 2.625rem; // This should be calculated from the scaling text and scaling spacing tokens instead of hardcoding in case they change
|
|
372
377
|
|
|
373
378
|
@media (min-width: $breakpoint-md) {
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
@use '../../allPartials' as *;
|
|
2
2
|
|
|
3
|
+
body:has(.seldon-header__toggle-btn--open) {
|
|
4
|
+
// targeting this button cause header itself has closed state only
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}
|
|
7
|
+
|
|
3
8
|
.#{$px}-hero-banner {
|
|
4
9
|
align-items: center;
|
|
5
|
-
background: var(--
|
|
10
|
+
background: var(--background);
|
|
6
11
|
background-position: center center;
|
|
7
12
|
background-repeat: no-repeat;
|
|
8
13
|
background-size: cover;
|
|
@@ -25,7 +30,7 @@
|
|
|
25
30
|
padding: 1.875rem 0.9375rem;
|
|
26
31
|
|
|
27
32
|
&::before {
|
|
28
|
-
background: var(--
|
|
33
|
+
background: var(--background);
|
|
29
34
|
background-position: center center;
|
|
30
35
|
background-repeat: no-repeat;
|
|
31
36
|
background-size: cover;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
height: 2px;
|
|
34
34
|
position: relative;
|
|
35
35
|
transition: background-color 0.25s ease 0.25s;
|
|
36
|
-
width:
|
|
36
|
+
width: 1rem;
|
|
37
37
|
|
|
38
38
|
&::before,
|
|
39
39
|
&::after {
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
position: absolute;
|
|
46
46
|
top: 0;
|
|
47
47
|
transition: transform 0.25s ease;
|
|
48
|
-
width:
|
|
48
|
+
width: 1rem;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
&::before {
|
|
52
|
-
transform: translateY(-
|
|
52
|
+
transform: translateY(-6px);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
&::after {
|
|
56
|
-
transform: translateY(
|
|
56
|
+
transform: translateY(6px);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -77,12 +77,17 @@
|
|
|
77
77
|
padding-top: 6px; // small adjustment to center the logo
|
|
78
78
|
|
|
79
79
|
svg {
|
|
80
|
-
height:
|
|
80
|
+
height: 20.58px; // 20.58px is the height of the logo's container to make logo 16px
|
|
81
81
|
width: 100%;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
@include isHeaderDesktop {
|
|
85
85
|
padding-top: 0;
|
|
86
|
+
|
|
87
|
+
svg {
|
|
88
|
+
height: 25.73px; // 25.73px is the height of the logo's container to make logo 20px
|
|
89
|
+
width: 100%;
|
|
90
|
+
}
|
|
86
91
|
}
|
|
87
92
|
}
|
|
88
93
|
|
|
@@ -90,8 +95,12 @@
|
|
|
90
95
|
align-items: center;
|
|
91
96
|
display: flex;
|
|
92
97
|
justify-content: space-between;
|
|
93
|
-
padding:
|
|
98
|
+
padding: 3px $spacing-md;
|
|
94
99
|
width: 100%;
|
|
100
|
+
|
|
101
|
+
@include isHeaderDesktop {
|
|
102
|
+
padding: $padding-sm $spacing-md;
|
|
103
|
+
}
|
|
95
104
|
}
|
|
96
105
|
|
|
97
106
|
&__nav {
|