@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.d.ts
CHANGED
|
@@ -1859,6 +1859,10 @@ export declare interface PopoverProps
|
|
|
1859
1859
|
portal?: boolean | string
|
|
1860
1860
|
preventOverflow?: boolean
|
|
1861
1861
|
referenceBoundary?: HTMLElement | null
|
|
1862
|
+
/**
|
|
1863
|
+
* When defined, the popover will be positioned relative to this element.
|
|
1864
|
+
* The children of the popover won't be rendered.
|
|
1865
|
+
*/
|
|
1862
1866
|
referenceElement?: HTMLElement | null
|
|
1863
1867
|
scheme?: ThemeColorSchemeKey_2
|
|
1864
1868
|
tone?: CardTone
|
package/dist/index.esm.js
CHANGED
|
@@ -2432,7 +2432,7 @@ const Button = forwardRef(function Button2(props, ref) {
|
|
|
2432
2432
|
iconRight,
|
|
2433
2433
|
justify: justifyProp = "center",
|
|
2434
2434
|
loading,
|
|
2435
|
-
mode = "
|
|
2435
|
+
mode = "default",
|
|
2436
2436
|
padding: paddingProp = 3,
|
|
2437
2437
|
paddingX: paddingXProp,
|
|
2438
2438
|
paddingY: paddingYProp,
|
|
@@ -4227,8 +4227,9 @@ const Popover = memo(forwardRef(function Popover2(props, ref) {
|
|
|
4227
4227
|
}
|
|
4228
4228
|
}, [update, updateRef]);
|
|
4229
4229
|
useEffect(() => {
|
|
4230
|
+
if (child) return;
|
|
4230
4231
|
refs.setReference(referenceElement || null);
|
|
4231
|
-
}, [referenceElement, refs]);
|
|
4232
|
+
}, [referenceElement, refs, child]);
|
|
4232
4233
|
if (disabled) {
|
|
4233
4234
|
return childProp || /* @__PURE__ */jsx(Fragment, {});
|
|
4234
4235
|
}
|