@nnc-digital/nnc-design-system 1.0.0-alpha1 → 1.0.0-alpha11
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 +29 -16
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +29 -16
- package/build/index.mjs.js.map +1 -1
- package/package.json +1 -1
package/build/index.mjs.js
CHANGED
|
@@ -7829,7 +7829,7 @@ const Container$11 = styled.div`
|
|
|
7829
7829
|
|
|
7830
7830
|
var Row$1 = function (_a) {
|
|
7831
7831
|
var _b = _a.hasBorder, hasBorder = _b === void 0 ? false : _b, _c = _a.isList, isList = _c === void 0 ? false : _c, _d = _a.hasWrap, hasWrap = _d === void 0 ? true : _d, children = _a.children;
|
|
7832
|
-
return (React.createElement(Container$11, { "data-testid": "Row", hasBorder: hasBorder, hasWrap: hasWrap, as: isList ? 'ul' : 'div' }, children));
|
|
7832
|
+
return (React.createElement(Container$11, { "data-testid": "Row", "$hasBorder": hasBorder, "$hasWrap": hasWrap, as: isList ? 'ul' : 'div' }, children));
|
|
7833
7833
|
};
|
|
7834
7834
|
|
|
7835
7835
|
const calculateWidth = (size) => {
|
|
@@ -22878,7 +22878,7 @@ const InnerContainer$2 = styled.div`
|
|
|
22878
22878
|
*/
|
|
22879
22879
|
var AlertBannerService = function (_a) {
|
|
22880
22880
|
var title = _a.title, _b = _a.hasTopSpacing, hasTopSpacing = _b === void 0 ? false : _b, _c = _a.alertType, alertType = _c === void 0 ? 'alert' : _c, children = _a.children;
|
|
22881
|
-
return (React.createElement(Container$L, { "$alertType": alertType, "data-testid": "AlertBannerService", hasTopSpacing: hasTopSpacing },
|
|
22881
|
+
return (React.createElement(Container$L, { "$alertType": alertType, "data-testid": "AlertBannerService", "$hasTopSpacing": hasTopSpacing },
|
|
22882
22882
|
React.createElement(InnerContainer$2, { "data-testid": "AlertBannerServiceInner" },
|
|
22883
22883
|
(title === null || title === void 0 ? void 0 : title.trim()) && React.createElement(Heading, { text: title }),
|
|
22884
22884
|
children)));
|
|
@@ -23792,6 +23792,7 @@ const PromoTile = styled.a`
|
|
|
23792
23792
|
display: block;
|
|
23793
23793
|
width: 100%;
|
|
23794
23794
|
height: 100%;
|
|
23795
|
+
padding: 5px 10px;
|
|
23795
23796
|
background: ${(props) =>
|
|
23796
23797
|
props.theme.cardinal_name === 'north'
|
|
23797
23798
|
? props.theme.theme_vars.colours.white
|
|
@@ -24404,11 +24405,11 @@ const Container$E = styled.div`
|
|
|
24404
24405
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
24405
24406
|
background: ${(props) =>
|
|
24406
24407
|
props.$alertType === 'alert'
|
|
24407
|
-
? props.theme.theme_vars.colours.
|
|
24408
|
+
? props.theme.theme_vars.colours.alert_background
|
|
24408
24409
|
: props.$alertType === 'warning'
|
|
24409
|
-
? props.theme.theme_vars.colours.
|
|
24410
|
+
? props.theme.theme_vars.colours.warning_background
|
|
24410
24411
|
: props.$alertType === 'positive'
|
|
24411
|
-
? props.theme.theme_vars.colours.
|
|
24412
|
+
? props.theme.theme_vars.colours.positive_background
|
|
24412
24413
|
: props.$alertType === 'london_bridge'
|
|
24413
24414
|
? props.theme.theme_vars.colours.black
|
|
24414
24415
|
: props.theme.theme_vars.colours.negative};
|
|
@@ -24416,7 +24417,7 @@ const Container$E = styled.div`
|
|
|
24416
24417
|
button {
|
|
24417
24418
|
line-height: 1.3;
|
|
24418
24419
|
color: ${(props) =>
|
|
24419
|
-
props
|
|
24420
|
+
props.$alertType === 'warning' || props.$alertType === 'positive'
|
|
24420
24421
|
? props.theme.theme_vars.colours.black
|
|
24421
24422
|
: props.theme.theme_vars.colours.white} !important;
|
|
24422
24423
|
}
|
|
@@ -24424,7 +24425,7 @@ const Container$E = styled.div`
|
|
|
24424
24425
|
a {
|
|
24425
24426
|
${(props) => props.theme.linkStyles}
|
|
24426
24427
|
color: ${(props) =>
|
|
24427
|
-
props
|
|
24428
|
+
props.$alertType === 'warning' || props.$alertType === 'positive'
|
|
24428
24429
|
? props.theme.theme_vars.colours.black
|
|
24429
24430
|
: props.theme.theme_vars.colours.white} !important;
|
|
24430
24431
|
|
|
@@ -24434,13 +24435,13 @@ const Container$E = styled.div`
|
|
|
24434
24435
|
&:focus {
|
|
24435
24436
|
${(props) => props.theme.linkStylesFocus}
|
|
24436
24437
|
color: ${(props) =>
|
|
24437
|
-
props
|
|
24438
|
+
props.$alertType === 'warning' || props.$alertType === 'positive'
|
|
24438
24439
|
? props.theme.theme_vars.colours.white
|
|
24439
24440
|
: props.theme.theme_vars.colours.black} !important;
|
|
24440
24441
|
background: ${(props) =>
|
|
24441
|
-
props
|
|
24442
|
+
props.$alertType === 'warning' || props.$alertType === 'positive'
|
|
24442
24443
|
? props.theme.theme_vars.colours.action
|
|
24443
|
-
: props.theme.theme_vars.colours.
|
|
24444
|
+
: props.theme.theme_vars.colours.warning_background} !important;
|
|
24444
24445
|
}
|
|
24445
24446
|
&:active {
|
|
24446
24447
|
${(props) => props.theme.linkStylesActive}
|
|
@@ -24449,7 +24450,7 @@ const Container$E = styled.div`
|
|
|
24449
24450
|
|
|
24450
24451
|
svg {
|
|
24451
24452
|
fill: ${(props) =>
|
|
24452
|
-
props
|
|
24453
|
+
props.$alertType === 'warning' || props.$alertType === 'positive'
|
|
24453
24454
|
? props.theme.theme_vars.colours.black
|
|
24454
24455
|
: props.theme.theme_vars.colours.white} !important;
|
|
24455
24456
|
}
|
|
@@ -24493,19 +24494,19 @@ const HideLink = styled.button`
|
|
|
24493
24494
|
outline: none;
|
|
24494
24495
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
24495
24496
|
color: ${(props) =>
|
|
24496
|
-
props
|
|
24497
|
+
props.$alertType === 'warning' || props.$alertType === 'positive'
|
|
24497
24498
|
? props.theme.theme_vars.colours.white
|
|
24498
24499
|
: props.theme.theme_vars.colours.black} !important;
|
|
24499
24500
|
background: ${(props) =>
|
|
24500
|
-
props
|
|
24501
|
+
props.$alertType === 'warning' || props.$alertType === 'positive'
|
|
24501
24502
|
? props.theme.theme_vars.colours.action
|
|
24502
|
-
: props.theme.theme_vars.colours.
|
|
24503
|
+
: props.theme.theme_vars.colours.warning_background} !important;
|
|
24503
24504
|
border-bottom: 3px solid ${(props) => props.theme.theme_vars.colours.black};
|
|
24504
24505
|
|
|
24505
24506
|
svg {
|
|
24506
24507
|
path {
|
|
24507
24508
|
fill: ${(props) =>
|
|
24508
|
-
props
|
|
24509
|
+
props.$alertType === 'warning' || props.$alertType === 'positive'
|
|
24509
24510
|
? props.theme.theme_vars.colours.white
|
|
24510
24511
|
: props.theme.theme_vars.colours.black} !important;
|
|
24511
24512
|
}
|
|
@@ -26987,6 +26988,18 @@ const Container$l = styled.main`
|
|
|
26987
26988
|
padding: 10px;
|
|
26988
26989
|
text-align: left;
|
|
26989
26990
|
}
|
|
26991
|
+
|
|
26992
|
+
td > a:only-child {
|
|
26993
|
+
padding: 12px 20px;
|
|
26994
|
+
display: inline-block;
|
|
26995
|
+
min-height: 44px;
|
|
26996
|
+
min-width: 44px;
|
|
26997
|
+
}
|
|
26998
|
+
|
|
26999
|
+
td > a:not(:only-child) {
|
|
27000
|
+
padding: 0;
|
|
27001
|
+
}
|
|
27002
|
+
|
|
26990
27003
|
th {
|
|
26991
27004
|
font-weight: bold;
|
|
26992
27005
|
}
|
|
@@ -28273,7 +28286,6 @@ const QuicklinkList = styled.ul`
|
|
|
28273
28286
|
const QuicklinkItem = styled.li`
|
|
28274
28287
|
margin-bottom: 10px;
|
|
28275
28288
|
padding: 0 !important;
|
|
28276
|
-
padding-left: 25px;
|
|
28277
28289
|
position: relative;
|
|
28278
28290
|
left: 0;
|
|
28279
28291
|
|
|
@@ -28298,6 +28310,7 @@ const Quicklink = styled.a`
|
|
|
28298
28310
|
${(props) => props.theme.linkStyles}
|
|
28299
28311
|
font-weight: 400 !important;
|
|
28300
28312
|
text-decoration: none !important;
|
|
28313
|
+
padding: 5px 10px;
|
|
28301
28314
|
|
|
28302
28315
|
&:hover {
|
|
28303
28316
|
${(props) => props.theme.linkStylesHover}
|