@norges-domstoler/dds-components 0.0.0-dev-20240220114533 → 0.0.0-dev-20240222090730

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/index.mjs CHANGED
@@ -9008,9 +9008,11 @@ import { ddsBaseTokens as ddsBaseTokens42 } from "@norges-domstoler/dds-design-t
9008
9008
  var { border: border10, colors: colors23, spacing: spacing24 } = ddsBaseTokens42;
9009
9009
  var bar = {
9010
9010
  backgroundColor: colors23.DdsColorNeutralsWhite,
9011
- itemGap: spacing24.SizesDdsSpacingX1,
9011
+ itemGap: spacing24.SizesDdsSpacingX15,
9012
9012
  minHeight: "57px",
9013
- borderBottom: `${border10.BordersDdsBorderStyleLightStroke} solid ${border10.BordersDdsBorderStyleLightStrokeWeight}`
9013
+ borderBottom: `${border10.BordersDdsBorderStyleLightStroke} solid ${border10.BordersDdsBorderStyleLightStrokeWeight}`,
9014
+ paddingLeft: spacing24.SizesDdsSpacingX15,
9015
+ paddingRight: spacing24.SizesDdsSpacingX15
9014
9016
  };
9015
9017
  var separator = {
9016
9018
  color: border10.BordersDdsBorderStyleLightStroke,
@@ -9033,6 +9035,8 @@ var Bar2 = styled59.div`
9033
9035
  align-items: center;
9034
9036
  min-height: ${bar2.minHeight};
9035
9037
  border-bottom: ${bar2.borderBottom};
9038
+ padding-left: ${bar2.paddingLeft};
9039
+ padding-right: ${bar2.paddingRight};
9036
9040
 
9037
9041
  ${({ $hasNavigation }) => $hasNavigation ? css24`
9038
9042
  ${ContextMenuGroup} {
@@ -9209,7 +9213,7 @@ var InternalHeader = (props) => {
9209
9213
  children: [
9210
9214
  /* @__PURE__ */ jsx227(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationName }),
9211
9215
  /* @__PURE__ */ jsx227(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }),
9212
- /* @__PURE__ */ jsx227(BarSeparator, {}),
9216
+ (hasContextMenu || navigation2 !== null) && /* @__PURE__ */ jsx227(BarSeparator, {}),
9213
9217
  navigation2,
9214
9218
  hasContextMenu && /* @__PURE__ */ jsxs52(ContextMenuGroup, { children: [
9215
9219
  /* @__PURE__ */ jsx227(
@@ -9406,23 +9410,23 @@ var container9 = {
9406
9410
  },
9407
9411
  purpose: {
9408
9412
  info: {
9409
- borderColor: colors24.DdsColorInfoLighter,
9413
+ borderColor: colors24.DdsColorInfoBase,
9410
9414
  backgroundColor: colors24.DdsColorInfoLightest
9411
9415
  },
9412
9416
  warning: {
9413
- borderColor: colors24.DdsColorWarningLighter,
9417
+ borderColor: colors24.DdsColorWarningBase,
9414
9418
  backgroundColor: colors24.DdsColorWarningLightest
9415
9419
  },
9416
9420
  danger: {
9417
- borderColor: colors24.DdsColorDangerLighter,
9421
+ borderColor: colors24.DdsColorDangerBase,
9418
9422
  backgroundColor: colors24.DdsColorDangerLightest
9419
9423
  },
9420
9424
  success: {
9421
- borderColor: colors24.DdsColorSuccessLighter,
9425
+ borderColor: colors24.DdsColorSuccessBase,
9422
9426
  backgroundColor: colors24.DdsColorSuccessLightest
9423
9427
  },
9424
9428
  tips: {
9425
- borderColor: colors24.DdsColorPrimaryLighter,
9429
+ borderColor: colors24.DdsColorPrimaryBase,
9426
9430
  backgroundColor: colors24.DdsColorPrimaryLightest
9427
9431
  },
9428
9432
  confidential: {
@@ -13560,49 +13564,93 @@ var typographyType5 = "bodySans01";
13560
13564
  var wrapper7 = {
13561
13565
  border: "1px solid",
13562
13566
  borderRadius: borderRadius10.RadiiDdsBorderRadius1Radius,
13563
- padding: `${spacing37.SizesDdsSpacingX0125} ${spacing37.SizesDdsSpacingX025}`,
13567
+ padding: `${spacing37.SizesDdsSpacingX0125} ${spacing37.SizesDdsSpacingX05}`,
13564
13568
  icon: {
13565
13569
  padding: [
13566
13570
  spacing37.SizesDdsSpacingX0125,
13567
- spacing37.SizesDdsSpacingX025,
13571
+ spacing37.SizesDdsSpacingX05,
13568
13572
  spacing37.SizesDdsSpacingX0125,
13569
- spacing37.SizesDdsSpacingX0125
13573
+ spacing37.SizesDdsSpacingX025
13570
13574
  ].join(" "),
13571
- gap: spacing37.SizesDdsSpacingX0125,
13575
+ gap: spacing37.SizesDdsSpacingX025,
13572
13576
  size: "small"
13573
13577
  },
13574
13578
  purpose: {
13575
13579
  default: {
13576
- backgroundColor: colors33.DdsColorNeutralsGray1,
13577
- borderColor: colors33.DdsColorNeutralsGray3,
13578
- icon: void 0
13580
+ icon: void 0,
13581
+ base: {
13582
+ backgroundColor: colors33.DdsColorNeutralsGray1,
13583
+ borderColor: colors33.DdsColorNeutralsGray3,
13584
+ icon: void 0
13585
+ },
13586
+ strong: {
13587
+ backgroundColor: colors33.DdsColorNeutralsGray3,
13588
+ borderColor: colors33.DdsColorNeutralsGray3,
13589
+ icon: void 0
13590
+ }
13579
13591
  },
13580
13592
  success: {
13581
- ...localMessageTokens.container.purpose.success,
13582
- icon: {
13583
- icon: CheckCircledIcon,
13584
- color: colors33.DdsColorSuccessDarkest
13593
+ icon: CheckCircledIcon,
13594
+ base: {
13595
+ ...localMessageTokens.container.purpose.success,
13596
+ icon: {
13597
+ color: colors33.DdsColorSuccessDarkest
13598
+ }
13599
+ },
13600
+ strong: {
13601
+ backgroundColor: colors33.DdsColorSuccessLight,
13602
+ borderColor: colors33.DdsColorSuccessLight,
13603
+ icon: {
13604
+ color: colors33.DdsColorNeutralsGray9
13605
+ }
13585
13606
  }
13586
13607
  },
13587
13608
  danger: {
13588
- ...localMessageTokens.container.purpose.danger,
13589
- icon: {
13590
- icon: ErrorIcon,
13591
- color: colors33.DdsColorDangerDarkest
13609
+ icon: ErrorIcon,
13610
+ base: {
13611
+ ...localMessageTokens.container.purpose.danger,
13612
+ icon: {
13613
+ color: colors33.DdsColorDangerDarkest
13614
+ }
13615
+ },
13616
+ strong: {
13617
+ backgroundColor: colors33.DdsColorDangerLight,
13618
+ borderColor: colors33.DdsColorDangerLight,
13619
+ icon: {
13620
+ color: colors33.DdsColorNeutralsGray9
13621
+ }
13592
13622
  }
13593
13623
  },
13594
13624
  warning: {
13595
- ...localMessageTokens.container.purpose.warning,
13596
- icon: {
13597
- icon: WarningIcon,
13598
- color: colors33.DdsColorWarningDarkest
13625
+ icon: WarningIcon,
13626
+ base: {
13627
+ ...localMessageTokens.container.purpose.warning,
13628
+ icon: {
13629
+ color: colors33.DdsColorWarningDarkest
13630
+ }
13631
+ },
13632
+ strong: {
13633
+ backgroundColor: colors33.DdsColorWarningLight,
13634
+ borderColor: colors33.DdsColorWarningLight,
13635
+ icon: {
13636
+ color: colors33.DdsColorNeutralsGray9
13637
+ }
13599
13638
  }
13600
13639
  },
13601
13640
  info: {
13602
- ...localMessageTokens.container.purpose.info,
13603
- icon: {
13604
- icon: InfoIcon,
13605
- color: colors33.DdsColorInfoDarkest
13641
+ icon: InfoIcon,
13642
+ base: {
13643
+ ...localMessageTokens.container.purpose.info,
13644
+ icon: {
13645
+ color: colors33.DdsColorInfoDarkest
13646
+ }
13647
+ },
13648
+ strong: {
13649
+ backgroundColor: colors33.DdsColorInfoLight,
13650
+ borderColor: colors33.DdsColorInfoLight,
13651
+ icon: {
13652
+ color: colors33.DdsColorNeutralsGray9
13653
+ }
13606
13654
  }
13607
13655
  }
13608
13656
  }
@@ -13622,21 +13670,22 @@ var Wrapper7 = styled92(TextOverflowEllipsisWrapper)`
13622
13670
  border-radius: ${wrapper8.borderRadius};
13623
13671
  padding: ${({ $withIcon }) => $withIcon ? wrapper8.icon.padding : wrapper8.padding};
13624
13672
  ${getFontStyling(typographyType5)}
13625
- ${({ $purpose }) => css42`
13626
- background-color: ${wrapper8.purpose[$purpose].backgroundColor};
13627
- border-color: ${wrapper8.purpose[$purpose].borderColor};
13673
+ ${({ $purpose, $strong }) => css42`
13674
+ background-color: ${wrapper8.purpose[$purpose][$strong ? "strong" : "base"].backgroundColor};
13675
+ border-color: ${wrapper8.purpose[$purpose][$strong ? "strong" : "base"].borderColor};
13628
13676
  `}
13629
13677
  `;
13630
13678
  var StyledIcon5 = styled92(Icon)`
13631
- color: ${({ $purpose }) => {
13679
+ color: ${({ $purpose, $strong }) => {
13632
13680
  var _a;
13633
- return (_a = wrapper8.purpose[$purpose].icon) == null ? void 0 : _a.color;
13681
+ return (_a = wrapper8.purpose[$purpose][$strong ? "strong" : "base"].icon) == null ? void 0 : _a.color;
13634
13682
  }};
13635
13683
  `;
13636
13684
  var Tag = forwardRef71((props, ref) => {
13637
13685
  const {
13638
13686
  text,
13639
13687
  purpose = "default",
13688
+ strong,
13640
13689
  id,
13641
13690
  className,
13642
13691
  children,
@@ -13651,13 +13700,15 @@ var Tag = forwardRef71((props, ref) => {
13651
13700
  ...getBaseHTMLProps(id, className, htmlProps, rest),
13652
13701
  ref,
13653
13702
  $purpose: purpose,
13703
+ $strong: strong,
13654
13704
  $withIcon: Boolean(withIcon && icon12),
13655
13705
  children: [
13656
13706
  withIcon && icon12 && /* @__PURE__ */ jsx266(
13657
13707
  StyledIcon5,
13658
13708
  {
13659
13709
  $purpose: purpose,
13660
- icon: icon12.icon,
13710
+ $strong: strong,
13711
+ icon: icon12,
13661
13712
  iconSize: tagTokens.wrapper.icon.size
13662
13713
  }
13663
13714
  ),