@equinor/eds-core-react 0.23.0-dev.20221003 → 0.23.0

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.
@@ -1222,9 +1222,9 @@ const StyledTypography$1 = styled__default["default"].p.withConfig({
1222
1222
  })(["", " ", " ", " ", ""], _ref => {
1223
1223
  let {
1224
1224
  typography,
1225
- link
1225
+ $link
1226
1226
  } = _ref;
1227
- return edsUtils.typographyTemplate(typography, link);
1227
+ return edsUtils.typographyTemplate(typography, $link);
1228
1228
  }, _ref2 => {
1229
1229
  let {
1230
1230
  color
@@ -1241,9 +1241,9 @@ const StyledTypography$1 = styled__default["default"].p.withConfig({
1241
1241
  );
1242
1242
  }, _ref4 => {
1243
1243
  let {
1244
- link: link$1
1244
+ $link
1245
1245
  } = _ref4;
1246
- return link$1 && styled.css(["&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}"], edsUtils.outlineTemplate(link.states.focus.outline), edsUtils.outlineTemplate(link.states.focus.outline));
1246
+ return $link && styled.css(["&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}"], edsUtils.outlineTemplate(link.states.focus.outline), edsUtils.outlineTemplate(link.states.focus.outline));
1247
1247
  });
1248
1248
  const Typography = /*#__PURE__*/react.forwardRef(function Typography(_ref5, ref) {
1249
1249
  let {
@@ -1270,7 +1270,7 @@ const Typography = /*#__PURE__*/react.forwardRef(function Typography(_ref5, ref)
1270
1270
  typography: { ...typography,
1271
1271
  ...token
1272
1272
  },
1273
- link: link,
1273
+ $link: link,
1274
1274
  ref: ref,
1275
1275
  ...other,
1276
1276
  children: children
@@ -3484,11 +3484,11 @@ const StyledIcon$1 = styled__default["default"](Icon$1).withConfig({
3484
3484
  let {
3485
3485
  chevronPosition
3486
3486
  } = _ref4;
3487
- return chevronPosition === 'left' ? {
3487
+ return styled.css(["flex-shrink:0;", ""], chevronPosition === 'left' ? styled.css({
3488
3488
  marginRight: '32px'
3489
- } : {
3489
+ }) : styled.css({
3490
3490
  marginLeft: '16px'
3491
- };
3491
+ }));
3492
3492
  });
3493
3493
  const AccordionHeader = /*#__PURE__*/react.forwardRef(function AccordionHeader(_ref5, ref) {
3494
3494
  let {
@@ -7764,10 +7764,10 @@ const StyledTypography = styled__default["default"](Typography).withConfig({
7764
7764
  componentId: "sc-10nvwte-0"
7765
7765
  })(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";cursor:pointer;}}white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;text-decoration:none;color:", ";", ""], states.hover.typography.color, typography$5.color, _ref => {
7766
7766
  let {
7767
- maxWidth
7767
+ $maxWidth
7768
7768
  } = _ref;
7769
7769
  return styled.css({
7770
- maxWidth
7770
+ maxWidth: $maxWidth
7771
7771
  });
7772
7772
  });
7773
7773
  const Breadcrumb = /*#__PURE__*/react.forwardRef(function Breadcrumb(_ref2, ref) {
@@ -7780,8 +7780,7 @@ const Breadcrumb = /*#__PURE__*/react.forwardRef(function Breadcrumb(_ref2, ref)
7780
7780
  } = _ref2;
7781
7781
  const props = { ...other,
7782
7782
  href,
7783
- ref,
7784
- maxWidth
7783
+ ref
7785
7784
  };
7786
7785
  const showTooltip = maxWidth > 0;
7787
7786
  const isHrefDefined = href !== undefined;
@@ -7791,6 +7790,7 @@ const Breadcrumb = /*#__PURE__*/react.forwardRef(function Breadcrumb(_ref2, ref)
7791
7790
  link: isHrefDefined,
7792
7791
  forwardedAs: forwardedAs,
7793
7792
  variant: "body_short",
7793
+ $maxWidth: maxWidth,
7794
7794
  ...props,
7795
7795
  children: children
7796
7796
  });
@@ -83,11 +83,11 @@ const StyledIcon = styled(Icon).withConfig({
83
83
  let {
84
84
  chevronPosition
85
85
  } = _ref4;
86
- return chevronPosition === 'left' ? {
86
+ return css(["flex-shrink:0;", ""], chevronPosition === 'left' ? css({
87
87
  marginRight: '32px'
88
- } : {
88
+ }) : css({
89
89
  marginLeft: '16px'
90
- };
90
+ }));
91
91
  });
92
92
  const AccordionHeader = /*#__PURE__*/forwardRef(function AccordionHeader(_ref5, ref) {
93
93
  let {
@@ -14,10 +14,10 @@ const StyledTypography = styled(Typography).withConfig({
14
14
  componentId: "sc-10nvwte-0"
15
15
  })(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";cursor:pointer;}}white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;text-decoration:none;color:", ";", ""], states.hover.typography.color, typography.color, _ref => {
16
16
  let {
17
- maxWidth
17
+ $maxWidth
18
18
  } = _ref;
19
19
  return css({
20
- maxWidth
20
+ maxWidth: $maxWidth
21
21
  });
22
22
  });
23
23
  const Breadcrumb = /*#__PURE__*/forwardRef(function Breadcrumb(_ref2, ref) {
@@ -30,8 +30,7 @@ const Breadcrumb = /*#__PURE__*/forwardRef(function Breadcrumb(_ref2, ref) {
30
30
  } = _ref2;
31
31
  const props = { ...other,
32
32
  href,
33
- ref,
34
- maxWidth
33
+ ref
35
34
  };
36
35
  const showTooltip = maxWidth > 0;
37
36
  const isHrefDefined = href !== undefined;
@@ -41,6 +40,7 @@ const Breadcrumb = /*#__PURE__*/forwardRef(function Breadcrumb(_ref2, ref) {
41
40
  link: isHrefDefined,
42
41
  forwardedAs: forwardedAs,
43
42
  variant: "body_short",
43
+ $maxWidth: maxWidth,
44
44
  ...props,
45
45
  children: children
46
46
  });
@@ -56,9 +56,9 @@ const StyledTypography = styled.p.withConfig({
56
56
  })(["", " ", " ", " ", ""], _ref => {
57
57
  let {
58
58
  typography,
59
- link
59
+ $link
60
60
  } = _ref;
61
- return typographyTemplate(typography, link);
61
+ return typographyTemplate(typography, $link);
62
62
  }, _ref2 => {
63
63
  let {
64
64
  color
@@ -75,9 +75,9 @@ const StyledTypography = styled.p.withConfig({
75
75
  );
76
76
  }, _ref4 => {
77
77
  let {
78
- link: link$1
78
+ $link
79
79
  } = _ref4;
80
- return link$1 && css(["&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}"], outlineTemplate(link.states.focus.outline), outlineTemplate(link.states.focus.outline));
80
+ return $link && css(["&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}"], outlineTemplate(link.states.focus.outline), outlineTemplate(link.states.focus.outline));
81
81
  });
82
82
  const Typography = /*#__PURE__*/forwardRef(function Typography(_ref5, ref) {
83
83
  let {
@@ -104,7 +104,7 @@ const Typography = /*#__PURE__*/forwardRef(function Typography(_ref5, ref) {
104
104
  typography: { ...typography,
105
105
  ...token
106
106
  },
107
- link: link,
107
+ $link: link,
108
108
  ref: ref,
109
109
  ...other,
110
110
  children: children
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/eds-core-react",
3
- "version": "0.23.0-dev.20221003",
3
+ "version": "0.23.0",
4
4
  "description": "The React implementation of the Equinor Design System",
5
5
  "sideEffects": [
6
6
  "**/*.css"
@@ -87,7 +87,7 @@
87
87
  "@babel/runtime": "^7.19.0",
88
88
  "@equinor/eds-icons": "0.14.0",
89
89
  "@equinor/eds-tokens": "0.7.1",
90
- "@equinor/eds-utils": "0.4.0-dev.20221003",
90
+ "@equinor/eds-utils": "0.4.0",
91
91
  "@floating-ui/react-dom-interactions": "^0.6.6",
92
92
  "downshift": "^6.1.12"
93
93
  },