@tidbcloud/uikit 2.4.3 → 2.4.4
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 +6 -0
- package/dist/theme/theme.cjs +32 -17
- package/dist/theme/theme.mjs +32 -17
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/theme/theme.cjs
CHANGED
|
@@ -342,25 +342,40 @@ const theme = createTheme.createTheme({
|
|
|
342
342
|
},
|
|
343
343
|
Tabs: {
|
|
344
344
|
styles(theme2, props) {
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
fontWeight: 600,
|
|
353
|
-
paddingLeft: 0,
|
|
354
|
-
paddingRight: props.orientation === "vertical" ? 8 : 0,
|
|
355
|
-
"&[data-active]": {
|
|
356
|
-
color: themeColor(theme2, "carbon", 9)
|
|
345
|
+
const variant = props.variant || "default";
|
|
346
|
+
if (variant === "default") {
|
|
347
|
+
return {
|
|
348
|
+
list: {
|
|
349
|
+
"--tab-border-color": "transparent",
|
|
350
|
+
gap: props.orientation === "vertical" ? 8 : 32,
|
|
351
|
+
border: 0
|
|
357
352
|
},
|
|
358
|
-
|
|
359
|
-
color: themeColor(theme2, "carbon",
|
|
360
|
-
|
|
353
|
+
tab: {
|
|
354
|
+
color: themeColor(theme2, "carbon", 7),
|
|
355
|
+
fontWeight: 600,
|
|
356
|
+
paddingLeft: 0,
|
|
357
|
+
paddingRight: props.orientation === "vertical" ? 8 : 0,
|
|
358
|
+
"&[data-active]": {
|
|
359
|
+
color: themeColor(theme2, "carbon", 9)
|
|
360
|
+
},
|
|
361
|
+
"&:hover": {
|
|
362
|
+
color: themeColor(theme2, "carbon", 9),
|
|
363
|
+
backgroundColor: "transparent"
|
|
364
|
+
}
|
|
361
365
|
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
if (variant === "outline") {
|
|
369
|
+
return {
|
|
370
|
+
list: {
|
|
371
|
+
"--tab-border-color": themeColor(theme2, "carbon", 4)
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
if (variant === "pills") {
|
|
376
|
+
return {};
|
|
377
|
+
}
|
|
378
|
+
return {};
|
|
364
379
|
}
|
|
365
380
|
},
|
|
366
381
|
Notification: {
|
package/dist/theme/theme.mjs
CHANGED
|
@@ -340,25 +340,40 @@ const theme = createTheme({
|
|
|
340
340
|
},
|
|
341
341
|
Tabs: {
|
|
342
342
|
styles(theme2, props) {
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
fontWeight: 600,
|
|
351
|
-
paddingLeft: 0,
|
|
352
|
-
paddingRight: props.orientation === "vertical" ? 8 : 0,
|
|
353
|
-
"&[data-active]": {
|
|
354
|
-
color: themeColor(theme2, "carbon", 9)
|
|
343
|
+
const variant = props.variant || "default";
|
|
344
|
+
if (variant === "default") {
|
|
345
|
+
return {
|
|
346
|
+
list: {
|
|
347
|
+
"--tab-border-color": "transparent",
|
|
348
|
+
gap: props.orientation === "vertical" ? 8 : 32,
|
|
349
|
+
border: 0
|
|
355
350
|
},
|
|
356
|
-
|
|
357
|
-
color: themeColor(theme2, "carbon",
|
|
358
|
-
|
|
351
|
+
tab: {
|
|
352
|
+
color: themeColor(theme2, "carbon", 7),
|
|
353
|
+
fontWeight: 600,
|
|
354
|
+
paddingLeft: 0,
|
|
355
|
+
paddingRight: props.orientation === "vertical" ? 8 : 0,
|
|
356
|
+
"&[data-active]": {
|
|
357
|
+
color: themeColor(theme2, "carbon", 9)
|
|
358
|
+
},
|
|
359
|
+
"&:hover": {
|
|
360
|
+
color: themeColor(theme2, "carbon", 9),
|
|
361
|
+
backgroundColor: "transparent"
|
|
362
|
+
}
|
|
359
363
|
}
|
|
360
|
-
}
|
|
361
|
-
}
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
if (variant === "outline") {
|
|
367
|
+
return {
|
|
368
|
+
list: {
|
|
369
|
+
"--tab-border-color": themeColor(theme2, "carbon", 4)
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
if (variant === "pills") {
|
|
374
|
+
return {};
|
|
375
|
+
}
|
|
376
|
+
return {};
|
|
362
377
|
}
|
|
363
378
|
},
|
|
364
379
|
Notification: {
|