@sanity/ui 2.0.0-alpha.32 → 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.js CHANGED
@@ -3088,14 +3088,18 @@ var __template$o = (cooked, raw) => __freeze$o(__defProp$p(cooked, "raw", {
3088
3088
  value: __freeze$o(raw || cooked.slice())
3089
3089
  }));
3090
3090
  var _a$o;
3091
- function kbdStyle() {
3092
- return styled.css(_a$o || (_a$o = __template$o(["\n background: var(--card-bg2-color);\n font: inherit;\n\n &:not([hidden]) {\n display: inline-block;\n }\n "])));
3091
+ function kbdStyle(props) {
3092
+ const {
3093
+ theme
3094
+ } = props;
3095
+ const color = theme.sanity.color.kbd || theme.sanity.color.base;
3096
+ return styled.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);
3093
3097
  }
3094
3098
  const Root$m = styled__default.default.kbd(responsiveRadiusStyle, kbdStyle);
3095
3099
  const KBD = react.forwardRef(function KBD2(props, ref) {
3096
3100
  const {
3097
3101
  children,
3098
- fontSize = 1,
3102
+ fontSize = 0,
3099
3103
  padding = 1,
3100
3104
  radius = 2,
3101
3105
  ...restProps
@@ -3110,7 +3114,6 @@ const KBD = react.forwardRef(function KBD2(props, ref) {
3110
3114
  padding,
3111
3115
  children: /* @__PURE__ */jsxRuntime.jsx(Text, {
3112
3116
  as: "span",
3113
- muted: true,
3114
3117
  size: fontSize,
3115
3118
  weight: "medium",
3116
3119
  children