@vygruppen/spor-react 13.4.3 → 13.4.4

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
3
  "type": "module",
4
- "version": "13.4.3",
4
+ "version": "13.4.4",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -47,7 +47,7 @@
47
47
  "react-swipeable": "^7.0.1",
48
48
  "usehooks-ts": "^3.1.0",
49
49
  "@vygruppen/spor-design-tokens": "5.0.5",
50
- "@vygruppen/spor-icon-react": "5.0.0",
50
+ "@vygruppen/spor-icon-react": "5.0.1",
51
51
  "@vygruppen/spor-loader": "0.7.0"
52
52
  },
53
53
  "devDependencies": {
@@ -46,42 +46,33 @@ export const BaseAlertIcon = ({
46
46
  }: {
47
47
  variant: AlertProps["variant"];
48
48
  }) => {
49
- const css = {
50
- "& path:first-of-type": {
51
- fill: `icon.${variant}`,
52
- },
53
- "& path:not(:first-of-type)": {
54
- fill: `surface.${variant}`,
55
- },
56
- };
57
-
58
49
  switch (variant) {
59
50
  case "info": {
60
- return <InformationFill24Icon css={css} />;
51
+ return <InformationFill24Icon />;
61
52
  }
62
53
  case "success": {
63
- return <SuccessFill24Icon css={css} />;
54
+ return <SuccessFill24Icon />;
64
55
  }
65
56
  case "important": {
66
57
  return <WarningFill24Icon />;
67
58
  }
68
59
  case "alt": {
69
- return <AltTransportFill24Icon css={css} />;
60
+ return <AltTransportFill24Icon />;
70
61
  }
71
62
  case "error": {
72
- return <ErrorFill24Icon css={css} />;
63
+ return <ErrorFill24Icon />;
73
64
  }
74
65
  case "error-secondary": {
75
- return <ErrorOutline24Icon css={css} />;
66
+ return <ErrorOutline24Icon />;
76
67
  }
77
68
  case "neutral": {
78
- return <QuestionFill24Icon css={css} />;
69
+ return <QuestionFill24Icon />;
79
70
  }
80
71
  case "service": {
81
72
  return <ServiceFill24Icon />;
82
73
  }
83
74
  default: {
84
- return <InformationFill24Icon css={css} />;
75
+ return <InformationFill24Icon />;
85
76
  }
86
77
  }
87
78
  };
@@ -37,17 +37,7 @@ export const ErrorSummary = ({
37
37
  >
38
38
  {heading && (
39
39
  <Flex css={styles.heading}>
40
- <ErrorFill24Icon
41
- css={{
42
- flexShrink: 0,
43
- "& path:first-of-type": {
44
- fill: `icon.critical`,
45
- },
46
- "& path:not(:first-of-type)": {
47
- fill: `surface.critical`,
48
- },
49
- }}
50
- />
40
+ <ErrorFill24Icon />
51
41
  <Heading as={headingLevel} variant="md" autoId ref={headingRef}>
52
42
  {heading}
53
43
  </Heading>