@sanity/ui 2.0.0-gamma.1 → 2.0.1
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.d.ts +4 -0
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/theme.d.ts +6 -1
- package/dist/theme.esm.js +2 -1
- package/dist/theme.esm.js.map +1 -1
- package/dist/theme.js +2 -1
- package/dist/theme.js.map +1 -1
- package/package.json +2 -6
- package/src/core/__workshop__/fontsPlugin.tsx +48 -8
- package/src/core/primitives/button/button.tsx +1 -1
- package/src/core/primitives/popover/popover.tsx +6 -1
- package/src/theme/defaults/colorTokens.ts +1 -1
- package/src/theme/system/color/state.ts +6 -0
- package/src/theme/system/v0/color/color.ts +0 -1
- package/src/theme/versioning/v2_v0.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -2445,7 +2445,7 @@ const Button = react.forwardRef(function Button2(props, ref) {
|
|
|
2445
2445
|
iconRight,
|
|
2446
2446
|
justify: justifyProp = "center",
|
|
2447
2447
|
loading,
|
|
2448
|
-
mode = "
|
|
2448
|
+
mode = "default",
|
|
2449
2449
|
padding: paddingProp = 3,
|
|
2450
2450
|
paddingX: paddingXProp,
|
|
2451
2451
|
paddingY: paddingYProp,
|
|
@@ -4240,8 +4240,9 @@ const Popover = react.memo(react.forwardRef(function Popover2(props, ref) {
|
|
|
4240
4240
|
}
|
|
4241
4241
|
}, [update, updateRef]);
|
|
4242
4242
|
react.useEffect(() => {
|
|
4243
|
+
if (child) return;
|
|
4243
4244
|
refs.setReference(referenceElement || null);
|
|
4244
|
-
}, [referenceElement, refs]);
|
|
4245
|
+
}, [referenceElement, refs, child]);
|
|
4245
4246
|
if (disabled) {
|
|
4246
4247
|
return childProp || /* @__PURE__ */jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
4247
4248
|
}
|