@expo/styleguide 8.0.0-alpha.7 → 8.0.0-alpha.8

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -247,11 +247,12 @@ function capitalize(text) {
247
247
 
248
248
  var LinkBase = React.forwardRef(function (_a, ref) {
249
249
  var children = _a.children, testID = _a.testID, href = _a.href, openInNewTab = _a.openInNewTab, onClick = _a.onClick, target = _a.target, disabled = _a.disabled, rel = _a.rel, rest = __rest(_a, ["children", "testID", "href", "openInNewTab", "onClick", "target", "disabled", "rel"]);
250
- if (!href)
251
- return null;
252
250
  if (disabled) {
253
251
  return (React.createElement("a", __assign({ ref: ref, "data-testid": testID }, rest), children));
254
252
  }
253
+ if (!href || href.startsWith('#')) {
254
+ return (React.createElement("a", __assign({ href: href, ref: ref, onClick: onClick, "data-testid": testID }, rest), children));
255
+ }
255
256
  return (React.createElement(Link$1, __assign({ href: href, ref: ref, onClick: onClick, target: openInNewTab ? '_blank' : target, rel: openInNewTab ? 'noopener noreferrer' : rel, "data-testid": testID }, rest), children));
256
257
  });
257
258
  LinkBase.displayName = 'LinkBase';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/styleguide",
3
- "version": "8.0.0-alpha.7",
3
+ "version": "8.0.0-alpha.8",
4
4
  "description": "Expo's styleguide components for use on the web.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -45,10 +45,10 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@expo/styleguide-base": "^1.0.0-alpha.2",
48
- "tailwind-merge": "^1.10.0"
48
+ "tailwind-merge": "^1.12.0"
49
49
  },
50
50
  "eslintConfig": {
51
51
  "extends": "universe/web"
52
52
  },
53
- "gitHead": "62bbffc1d217d859b3baba05e2bf09b9ab257056"
53
+ "gitHead": "573e5979139e7d40c946ac8724d3ec7b66ae60b3"
54
54
  }