@tidbcloud/uikit 2.0.0-beta.77 → 2.0.0-beta.78

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @tidbcloud/uikit
2
2
 
3
+ ## 2.0.0-beta.78
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(theme): revert default component to 'button' for NavLink consistency
8
+
3
9
  ## 2.0.0-beta.77
4
10
 
5
11
  ### Minor Changes
@@ -386,7 +386,12 @@ const theme = createTheme.createTheme({
386
386
  px: 10,
387
387
  lh: 1.5,
388
388
  fw: 500,
389
- variant: "light"
389
+ variant: "light",
390
+ /**
391
+ * mantine changed the default component to `a` instead of `button` in v7
392
+ * we need to set it back to `button` to keep the same behavior as before
393
+ */
394
+ component: "button"
390
395
  },
391
396
  styles: (theme2, props) => {
392
397
  const withThemeColor = (shade) => themeColor(theme2, props.color ?? theme2.primaryColor, shade);
@@ -384,7 +384,12 @@ const theme = createTheme({
384
384
  px: 10,
385
385
  lh: 1.5,
386
386
  fw: 500,
387
- variant: "light"
387
+ variant: "light",
388
+ /**
389
+ * mantine changed the default component to `a` instead of `button` in v7
390
+ * we need to set it back to `button` to keep the same behavior as before
391
+ */
392
+ component: "button"
388
393
  },
389
394
  styles: (theme2, props) => {
390
395
  const withThemeColor = (shade) => themeColor(theme2, props.color ?? theme2.primaryColor, shade);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidbcloud/uikit",
3
- "version": "2.0.0-beta.77",
3
+ "version": "2.0.0-beta.78",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",