@sanity/ui 2.0.0-alpha.33 → 2.0.0-alpha.34
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/dist/index.esm.js +7 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/core/primitives/kbd/kbd.tsx +13 -4
package/dist/index.esm.js
CHANGED
|
@@ -3075,14 +3075,18 @@ var __template$o = (cooked, raw) => __freeze$o(__defProp$p(cooked, "raw", {
|
|
|
3075
3075
|
value: __freeze$o(raw || cooked.slice())
|
|
3076
3076
|
}));
|
|
3077
3077
|
var _a$o;
|
|
3078
|
-
function kbdStyle() {
|
|
3079
|
-
|
|
3078
|
+
function kbdStyle(props) {
|
|
3079
|
+
const {
|
|
3080
|
+
theme
|
|
3081
|
+
} = props;
|
|
3082
|
+
const color = theme.sanity.color.kbd || theme.sanity.color.base;
|
|
3083
|
+
return css(_a$o || (_a$o = __template$o(["\n --card-fg-color: ", ";\n --kbd-box-bg: ", ";\n --kbd-box-shadow: ", ";\n\n box-shadow: inset 0 0 0 1px var(--kbd-box-shadow);\n background: var(--kbd-box-bg);\n font: inherit;\n\n &:not([hidden]) {\n display: inline-block;\n }\n "])), color.fg, color.bg, color.border);
|
|
3080
3084
|
}
|
|
3081
3085
|
const Root$m = styled.kbd(responsiveRadiusStyle, kbdStyle);
|
|
3082
3086
|
const KBD = forwardRef(function KBD2(props, ref) {
|
|
3083
3087
|
const {
|
|
3084
3088
|
children,
|
|
3085
|
-
fontSize =
|
|
3089
|
+
fontSize = 0,
|
|
3086
3090
|
padding = 1,
|
|
3087
3091
|
radius = 2,
|
|
3088
3092
|
...restProps
|
|
@@ -3097,7 +3101,6 @@ const KBD = forwardRef(function KBD2(props, ref) {
|
|
|
3097
3101
|
padding,
|
|
3098
3102
|
children: /* @__PURE__ */jsx(Text, {
|
|
3099
3103
|
as: "span",
|
|
3100
|
-
muted: true,
|
|
3101
3104
|
size: fontSize,
|
|
3102
3105
|
weight: "medium",
|
|
3103
3106
|
children
|