@vygruppen/spor-react 13.4.3 → 13.4.5

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
@@ -1075,41 +1075,33 @@ var AlertIcon = ({
1075
1075
  var BaseAlertIcon = ({
1076
1076
  variant
1077
1077
  }) => {
1078
- const css = {
1079
- "& path:first-of-type": {
1080
- fill: `icon.${variant}`
1081
- },
1082
- "& path:not(:first-of-type)": {
1083
- fill: `surface.${variant}`
1084
- }
1085
- };
1086
1078
  switch (variant) {
1087
1079
  case "info": {
1088
- return /* @__PURE__ */ jsx(InformationFill24Icon, { css });
1080
+ return /* @__PURE__ */ jsx(InformationFill24Icon, {});
1089
1081
  }
1090
1082
  case "success": {
1091
- return /* @__PURE__ */ jsx(SuccessFill24Icon, { css });
1083
+ return /* @__PURE__ */ jsx(SuccessFill24Icon, {});
1092
1084
  }
1093
1085
  case "important": {
1094
1086
  return /* @__PURE__ */ jsx(WarningFill24Icon, {});
1095
1087
  }
1096
1088
  case "alt": {
1097
- return /* @__PURE__ */ jsx(AltTransportFill24Icon, { css });
1089
+ return /* @__PURE__ */ jsx(AltTransportFill24Icon, {});
1098
1090
  }
1099
1091
  case "error": {
1100
- return /* @__PURE__ */ jsx(ErrorFill24Icon, { css });
1092
+ return /* @__PURE__ */ jsx(ErrorFill24Icon, {});
1101
1093
  }
1102
1094
  case "error-secondary": {
1103
- return /* @__PURE__ */ jsx(ErrorOutline24Icon, { css });
1095
+ return /* @__PURE__ */ jsx(ErrorOutline24Icon, {});
1104
1096
  }
1105
1097
  case "neutral": {
1106
- return /* @__PURE__ */ jsx(QuestionFill24Icon, { css });
1098
+ return /* @__PURE__ */ jsx(QuestionFill24Icon, {});
1107
1099
  }
1108
1100
  case "service": {
1109
1101
  return /* @__PURE__ */ jsx(ServiceFill24Icon, {});
1110
1102
  }
1111
1103
  default: {
1112
- return /* @__PURE__ */ jsx(InformationFill24Icon, { css });
1104
+ return /* @__PURE__ */ jsx(InformationFill24Icon, {});
1113
1105
  }
1114
1106
  }
1115
1107
  };
@@ -2537,11 +2529,20 @@ var DateField = ({
2537
2529
  ref
2538
2530
  );
2539
2531
  return /* @__PURE__ */ jsxs(Box, { minWidth: "6rem", width: "100%", children: [
2540
- props.label && /* @__PURE__ */ jsx(Box, { css: styles.inputLabel, position: "absolute", paddingTop: "2px", children: /* @__PURE__ */ jsxs(Label, { padding: "0", ...props.labelProps, children: [
2541
- props.label,
2542
- " ",
2543
- /* @__PURE__ */ jsx(Field.RequiredIndicator, {})
2544
- ] }) }),
2532
+ props.label && /* @__PURE__ */ jsx(Box, { css: styles.inputLabel, position: "absolute", paddingTop: "2px", children: /* @__PURE__ */ jsxs(
2533
+ Label,
2534
+ {
2535
+ padding: "0",
2536
+ fontSize: ["mobile.2xs", "desktop.2xs"],
2537
+ color: "text.subtle",
2538
+ ...props.labelProps,
2539
+ children: [
2540
+ props.label,
2541
+ " ",
2542
+ /* @__PURE__ */ jsx(Field.RequiredIndicator, {})
2543
+ ]
2544
+ }
2545
+ ) }),
2545
2546
  /* @__PURE__ */ jsx(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, index) => /* @__PURE__ */ jsx(
2546
2547
  DateTimeSegment,
2547
2548
  {
@@ -2890,7 +2891,8 @@ var TimeField = ({ state, ...props }) => {
2890
2891
  ...labelProps,
2891
2892
  htmlFor: fieldProps.id,
2892
2893
  marginBottom: 0,
2893
- fontSize: ["mobile.xs", "desktop.xs"],
2894
+ fontSize: ["mobile.2xs", "desktop.2xs"],
2895
+ color: "text.subtle",
2894
2896
  top: 0,
2895
2897
  cursor: "text",
2896
2898
  left: "50%",
@@ -3366,20 +3368,7 @@ var ErrorSummary = ({
3366
3368
  tabIndex: -1,
3367
3369
  children: [
3368
3370
  heading && /* @__PURE__ */ jsxs(Flex, { css: styles.heading, children: [
3369
- /* @__PURE__ */ jsx(
3370
- ErrorFill24Icon,
3371
- {
3372
- css: {
3373
- flexShrink: 0,
3374
- "& path:first-of-type": {
3375
- fill: `icon.critical`
3376
- },
3377
- "& path:not(:first-of-type)": {
3378
- fill: `surface.critical`
3379
- }
3380
- }
3381
- }
3382
- ),
3371
+ /* @__PURE__ */ jsx(ErrorFill24Icon, {}),
3383
3372
  /* @__PURE__ */ jsx(Heading, { as: headingLevel, variant: "md", autoId: true, ref: headingRef, children: heading })
3384
3373
  ] }),
3385
3374
  /* @__PURE__ */ jsx(List, { css: styles.list, gap: 2, children })