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

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,17 @@
1
1
  # @tidbcloud/uikit
2
2
 
3
+ ## 2.0.0-beta.79
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(theme): set default variant to light for Badge component
8
+
9
+ ## 2.0.0-beta.78
10
+
11
+ ### Patch Changes
12
+
13
+ - fix(theme): revert default component to 'button' for NavLink consistency
14
+
3
15
  ## 2.0.0-beta.77
4
16
 
5
17
  ### 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);
@@ -631,7 +636,8 @@ const theme = createTheme.createTheme({
631
636
  Badge: {
632
637
  defaultProps: {
633
638
  color: "peacock",
634
- size: "md"
639
+ size: "md",
640
+ variant: "light"
635
641
  },
636
642
  styles(theme2, props) {
637
643
  const color = props.color ?? theme2.primaryColor;
@@ -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);
@@ -629,7 +634,8 @@ const theme = createTheme({
629
634
  Badge: {
630
635
  defaultProps: {
631
636
  color: "peacock",
632
- size: "md"
637
+ size: "md",
638
+ variant: "light"
633
639
  },
634
640
  styles(theme2, props) {
635
641
  const color = props.color ?? theme2.primaryColor;
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.79",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",