@tidbcloud/uikit 2.3.2 → 2.3.3

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.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(theme): update Accordion styles in theme configuration ([#538](https://github.com/tidbcloud/tidbcloud-uikit/pull/538))
8
+
3
9
  ## 2.3.2
4
10
 
5
11
  ### Patch Changes
@@ -1190,6 +1190,24 @@ const theme = createTheme.createTheme({
1190
1190
  withArrow: true,
1191
1191
  shadow: "md"
1192
1192
  }
1193
+ },
1194
+ Accordion: {
1195
+ styles: (theme2, props) => {
1196
+ if (props.variant === "contained") {
1197
+ return {
1198
+ item: {
1199
+ "--item-border-color": themeColor(theme2, "carbon", 4),
1200
+ "--item-filled-color": "inherit"
1201
+ },
1202
+ control: {
1203
+ "&:hover": {
1204
+ backgroundColor: "inherit"
1205
+ }
1206
+ }
1207
+ };
1208
+ }
1209
+ return {};
1210
+ }
1193
1211
  }
1194
1212
  }
1195
1213
  });
@@ -1188,6 +1188,24 @@ const theme = createTheme({
1188
1188
  withArrow: true,
1189
1189
  shadow: "md"
1190
1190
  }
1191
+ },
1192
+ Accordion: {
1193
+ styles: (theme2, props) => {
1194
+ if (props.variant === "contained") {
1195
+ return {
1196
+ item: {
1197
+ "--item-border-color": themeColor(theme2, "carbon", 4),
1198
+ "--item-filled-color": "inherit"
1199
+ },
1200
+ control: {
1201
+ "&:hover": {
1202
+ backgroundColor: "inherit"
1203
+ }
1204
+ }
1205
+ };
1206
+ }
1207
+ return {};
1208
+ }
1191
1209
  }
1192
1210
  }
1193
1211
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidbcloud/uikit",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "description": "tidbcloud uikit",
5
5
  "type": "module",
6
6
  "main": "dist/primitive/index.cjs",