@expo/styleguide 14.2.2 → 14.3.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.
@@ -7,7 +7,7 @@ var react = require('react');
7
7
  var jsxRuntime = require('react/jsx-runtime');
8
8
 
9
9
  const LinkBase = /*#__PURE__*/react.forwardRef((t0, ref) => {
10
- const $ = compilerRuntime.c(33);
10
+ const $ = compilerRuntime.c(36);
11
11
  let children;
12
12
  let disabled;
13
13
  let href;
@@ -73,11 +73,10 @@ const LinkBase = /*#__PURE__*/react.forwardRef((t0, ref) => {
73
73
  }
74
74
  return t1;
75
75
  }
76
- if (!href || href.startsWith("#")) {
76
+ if (!href) {
77
77
  let t1;
78
- if ($[16] !== children || $[17] !== href || $[18] !== onClick || $[19] !== ref || $[20] !== rest || $[21] !== testID) {
78
+ if ($[16] !== children || $[17] !== onClick || $[18] !== ref || $[19] !== rest || $[20] !== testID) {
79
79
  t1 = /*#__PURE__*/jsxRuntime.jsx("a", {
80
- href: href,
81
80
  ref: ref,
82
81
  onClick: onClick,
83
82
  "data-testid": testID,
@@ -85,14 +84,13 @@ const LinkBase = /*#__PURE__*/react.forwardRef((t0, ref) => {
85
84
  children: children
86
85
  });
87
86
  $[16] = children;
88
- $[17] = href;
89
- $[18] = onClick;
90
- $[19] = ref;
91
- $[20] = rest;
92
- $[21] = testID;
93
- $[22] = t1;
87
+ $[17] = onClick;
88
+ $[18] = ref;
89
+ $[19] = rest;
90
+ $[20] = testID;
91
+ $[21] = t1;
94
92
  } else {
95
- t1 = $[22];
93
+ t1 = $[21];
96
94
  }
97
95
  return t1;
98
96
  }
@@ -100,31 +98,44 @@ const LinkBase = /*#__PURE__*/react.forwardRef((t0, ref) => {
100
98
  const t1 = openInNewTab ? "_blank" : target;
101
99
  const t2 = openInNewTab ? "noopener noreferrer" : rel;
102
100
  let t3;
103
- if ($[23] !== Tag || $[24] !== children || $[25] !== href || $[26] !== onClick || $[27] !== ref || $[28] !== rest || $[29] !== t1 || $[30] !== t2 || $[31] !== testID) {
104
- t3 = /*#__PURE__*/jsxRuntime.jsx(Tag, {
101
+ if ($[22] !== Tag || $[23] !== href) {
102
+ t3 = Tag === Link && href.startsWith("#") ? {
103
+ prefetch: false
104
+ } : undefined;
105
+ $[22] = Tag;
106
+ $[23] = href;
107
+ $[24] = t3;
108
+ } else {
109
+ t3 = $[24];
110
+ }
111
+ let t4;
112
+ if ($[25] !== Tag || $[26] !== children || $[27] !== href || $[28] !== onClick || $[29] !== ref || $[30] !== rest || $[31] !== t1 || $[32] !== t2 || $[33] !== t3 || $[34] !== testID) {
113
+ t4 = /*#__PURE__*/jsxRuntime.jsx(Tag, {
105
114
  href: href,
106
115
  ref: ref,
107
116
  onClick: onClick,
108
117
  target: t1,
109
118
  rel: t2,
110
119
  "data-testid": testID,
120
+ ...t3,
111
121
  ...rest,
112
122
  children: children
113
123
  });
114
- $[23] = Tag;
115
- $[24] = children;
116
- $[25] = href;
117
- $[26] = onClick;
118
- $[27] = ref;
119
- $[28] = rest;
120
- $[29] = t1;
121
- $[30] = t2;
122
- $[31] = testID;
123
- $[32] = t3;
124
+ $[25] = Tag;
125
+ $[26] = children;
126
+ $[27] = href;
127
+ $[28] = onClick;
128
+ $[29] = ref;
129
+ $[30] = rest;
130
+ $[31] = t1;
131
+ $[32] = t2;
132
+ $[33] = t3;
133
+ $[34] = testID;
134
+ $[35] = t4;
124
135
  } else {
125
- t3 = $[32];
136
+ t4 = $[35];
126
137
  }
127
- return t3;
138
+ return t4;
128
139
  });
129
140
  LinkBase.displayName = 'LinkBase';
130
141
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/styleguide",
3
- "version": "14.2.2",
3
+ "version": "14.3.0",
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",
@@ -34,7 +34,7 @@
34
34
  "url": "https://github.com/expo/styleguide/issues"
35
35
  },
36
36
  "dependencies": {
37
- "@expo/styleguide-base": "^3.1.7",
37
+ "@expo/styleguide-base": "^3.2.0",
38
38
  "tailwind-merge": "^3.5.0"
39
39
  },
40
40
  "devDependencies": {
@@ -55,5 +55,5 @@
55
55
  "react": ">= 19",
56
56
  "tailwindcss": "^4.2.2"
57
57
  },
58
- "gitHead": "70da7f56c2507f9176fb746494dbfcfe40f7aaf0"
58
+ "gitHead": "06273f7ac7a42b9fe11d12d95231b8006ac36593"
59
59
  }