@nnc-digital/nnc-design-system 1.0.0-alpha1 → 1.0.0-alpha10

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
@@ -7842,7 +7842,7 @@ const Container$11 = styled__default.default.div`
7842
7842
 
7843
7843
  var Row$1 = function (_a) {
7844
7844
  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;
7845
- return (React__default.default.createElement(Container$11, { "data-testid": "Row", hasBorder: hasBorder, hasWrap: hasWrap, as: isList ? 'ul' : 'div' }, children));
7845
+ return (React__default.default.createElement(Container$11, { "data-testid": "Row", "$hasBorder": hasBorder, "$hasWrap": hasWrap, as: isList ? 'ul' : 'div' }, children));
7846
7846
  };
7847
7847
 
7848
7848
  const calculateWidth = (size) => {
@@ -23805,6 +23805,7 @@ const PromoTile = styled__default.default.a`
23805
23805
  display: block;
23806
23806
  width: 100%;
23807
23807
  height: 100%;
23808
+ padding: 5px 10px;
23808
23809
  background: ${(props) =>
23809
23810
  props.theme.cardinal_name === 'north'
23810
23811
  ? props.theme.theme_vars.colours.white
@@ -24417,11 +24418,11 @@ const Container$E = styled__default.default.div`
24417
24418
  padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
24418
24419
  background: ${(props) =>
24419
24420
  props.$alertType === 'alert'
24420
- ? props.theme.theme_vars.colours.negative
24421
+ ? props.theme.theme_vars.colours.alert_background
24421
24422
  : props.$alertType === 'warning'
24422
- ? props.theme.theme_vars.colours.focus
24423
+ ? props.theme.theme_vars.colours.warning_background
24423
24424
  : props.$alertType === 'positive'
24424
- ? props.theme.theme_vars.colours.positive
24425
+ ? props.theme.theme_vars.colours.positive_background
24425
24426
  : props.$alertType === 'london_bridge'
24426
24427
  ? props.theme.theme_vars.colours.black
24427
24428
  : props.theme.theme_vars.colours.negative};
@@ -24429,7 +24430,7 @@ const Container$E = styled__default.default.div`
24429
24430
  button {
24430
24431
  line-height: 1.3;
24431
24432
  color: ${(props) =>
24432
- props.alertType === 'warning' || props.alertType === 'positive'
24433
+ props.$alertType === 'warning' || props.$alertType === 'positive'
24433
24434
  ? props.theme.theme_vars.colours.black
24434
24435
  : props.theme.theme_vars.colours.white} !important;
24435
24436
  }
@@ -24437,7 +24438,7 @@ const Container$E = styled__default.default.div`
24437
24438
  a {
24438
24439
  ${(props) => props.theme.linkStyles}
24439
24440
  color: ${(props) =>
24440
- props.alertType === 'warning' || props.alertType === 'positive'
24441
+ props.$alertType === 'warning' || props.$alertType === 'positive'
24441
24442
  ? props.theme.theme_vars.colours.black
24442
24443
  : props.theme.theme_vars.colours.white} !important;
24443
24444
 
@@ -24447,13 +24448,13 @@ const Container$E = styled__default.default.div`
24447
24448
  &:focus {
24448
24449
  ${(props) => props.theme.linkStylesFocus}
24449
24450
  color: ${(props) =>
24450
- props.alertType === 'warning' || props.alertType === 'positive'
24451
+ props.$alertType === 'warning' || props.$alertType === 'positive'
24451
24452
  ? props.theme.theme_vars.colours.white
24452
24453
  : props.theme.theme_vars.colours.black} !important;
24453
24454
  background: ${(props) =>
24454
- props.alertType === 'warning' || props.alertType === 'positive'
24455
+ props.$alertType === 'warning' || props.$alertType === 'positive'
24455
24456
  ? props.theme.theme_vars.colours.action
24456
- : props.theme.theme_vars.colours.focus} !important;
24457
+ : props.theme.theme_vars.colours.warning_background} !important;
24457
24458
  }
24458
24459
  &:active {
24459
24460
  ${(props) => props.theme.linkStylesActive}
@@ -24462,7 +24463,7 @@ const Container$E = styled__default.default.div`
24462
24463
 
24463
24464
  svg {
24464
24465
  fill: ${(props) =>
24465
- props.alertType === 'warning' || props.alertType === 'positive'
24466
+ props.$alertType === 'warning' || props.$alertType === 'positive'
24466
24467
  ? props.theme.theme_vars.colours.black
24467
24468
  : props.theme.theme_vars.colours.white} !important;
24468
24469
  }
@@ -24506,19 +24507,19 @@ const HideLink = styled__default.default.button`
24506
24507
  outline: none;
24507
24508
  border-radius: ${(props) => props.theme.theme_vars.border_radius};
24508
24509
  color: ${(props) =>
24509
- props.alertType === 'warning' || props.alertType === 'positive'
24510
+ props.$alertType === 'warning' || props.$alertType === 'positive'
24510
24511
  ? props.theme.theme_vars.colours.white
24511
24512
  : props.theme.theme_vars.colours.black} !important;
24512
24513
  background: ${(props) =>
24513
- props.alertType === 'warning' || props.alertType === 'positive'
24514
+ props.$alertType === 'warning' || props.$alertType === 'positive'
24514
24515
  ? props.theme.theme_vars.colours.action
24515
- : props.theme.theme_vars.colours.focus} !important;
24516
+ : props.theme.theme_vars.colours.warning_background} !important;
24516
24517
  border-bottom: 3px solid ${(props) => props.theme.theme_vars.colours.black};
24517
24518
 
24518
24519
  svg {
24519
24520
  path {
24520
24521
  fill: ${(props) =>
24521
- props.alertType === 'warning' || props.alertType === 'positive'
24522
+ props.$alertType === 'warning' || props.$alertType === 'positive'
24522
24523
  ? props.theme.theme_vars.colours.white
24523
24524
  : props.theme.theme_vars.colours.black} !important;
24524
24525
  }
@@ -27000,6 +27001,18 @@ const Container$l = styled__default.default.main`
27000
27001
  padding: 10px;
27001
27002
  text-align: left;
27002
27003
  }
27004
+
27005
+ td > a:only-child {
27006
+ padding: 12px 20px;
27007
+ display: inline-block;
27008
+ min-height: 44px;
27009
+ min-width: 44px;
27010
+ }
27011
+
27012
+ td > a:not(:only-child) {
27013
+ padding: 0;
27014
+ }
27015
+
27003
27016
  th {
27004
27017
  font-weight: bold;
27005
27018
  }
@@ -28286,7 +28299,6 @@ const QuicklinkList = styled__default.default.ul`
28286
28299
  const QuicklinkItem = styled__default.default.li`
28287
28300
  margin-bottom: 10px;
28288
28301
  padding: 0 !important;
28289
- padding-left: 25px;
28290
28302
  position: relative;
28291
28303
  left: 0;
28292
28304
 
@@ -28311,6 +28323,7 @@ const Quicklink = styled__default.default.a`
28311
28323
  ${(props) => props.theme.linkStyles}
28312
28324
  font-weight: 400 !important;
28313
28325
  text-decoration: none !important;
28326
+ padding: 5px 10px;
28314
28327
 
28315
28328
  &:hover {
28316
28329
  ${(props) => props.theme.linkStylesHover}