@sanity/ui 2.0.0-beta.15 → 2.0.0-beta.17
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 +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/theme.d.ts +6 -0
- package/dist/theme.esm.js +5 -3
- package/dist/theme.esm.js.map +1 -1
- package/dist/theme.js +5 -3
- package/dist/theme.js.map +1 -1
- package/package.json +1 -1
- package/src/core/components/dialog/dialog.tsx +1 -1
- package/src/core/components/dialog/styles.ts +2 -2
- package/src/theme/getScopedTheme.ts +1 -0
- package/src/theme/system/theme.ts +9 -1
- package/src/theme/versioning/getTheme_v2.ts +2 -1
package/dist/index.esm.js
CHANGED
|
@@ -5819,7 +5819,7 @@ function responsiveDialogPositionStyle(props) {
|
|
|
5819
5819
|
}));
|
|
5820
5820
|
}
|
|
5821
5821
|
function animationDialogStyle(props) {
|
|
5822
|
-
if (!props
|
|
5822
|
+
if (!props.$animate) return css(_a$c || (_a$c = __template$c([""])));
|
|
5823
5823
|
return css(_b$7 || (_b$7 = __template$c(["\n @keyframes zoomIn {\n from {\n opacity: 0;\n transform: scale(0.95);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n }\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n animation: fadeIn 200ms ease-out;\n // Animates the dialog card.\n & > [data-ui='DialogCard'] {\n animation: zoomIn 200ms ease-out;\n }\n "])));
|
|
5824
5824
|
}
|
|
5825
5825
|
const key$3 = Symbol.for("@sanity/ui/context/dialog");
|
|
@@ -6042,6 +6042,7 @@ const Dialog = forwardRef(function Dialog2(props, ref) {
|
|
|
6042
6042
|
__unstable_name: portalProp,
|
|
6043
6043
|
children: /* @__PURE__ */jsxs(Root$7, {
|
|
6044
6044
|
...restProps,
|
|
6045
|
+
$animate: animate,
|
|
6045
6046
|
$padding: padding,
|
|
6046
6047
|
$position: position,
|
|
6047
6048
|
"aria-labelledby": labelId,
|
|
@@ -6054,7 +6055,6 @@ const Dialog = forwardRef(function Dialog2(props, ref) {
|
|
|
6054
6055
|
ref,
|
|
6055
6056
|
role: "dialog",
|
|
6056
6057
|
zOffset,
|
|
6057
|
-
animate,
|
|
6058
6058
|
children: [/* @__PURE__ */jsx("div", {
|
|
6059
6059
|
ref: preDivRef,
|
|
6060
6060
|
tabIndex: 0
|