@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.js
CHANGED
|
@@ -5832,7 +5832,7 @@ function responsiveDialogPositionStyle(props) {
|
|
|
5832
5832
|
}));
|
|
5833
5833
|
}
|
|
5834
5834
|
function animationDialogStyle(props) {
|
|
5835
|
-
if (!props
|
|
5835
|
+
if (!props.$animate) return styled.css(_a$c || (_a$c = __template$c([""])));
|
|
5836
5836
|
return styled.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 "])));
|
|
5837
5837
|
}
|
|
5838
5838
|
const key$3 = Symbol.for("@sanity/ui/context/dialog");
|
|
@@ -6055,6 +6055,7 @@ const Dialog = react.forwardRef(function Dialog2(props, ref) {
|
|
|
6055
6055
|
__unstable_name: portalProp,
|
|
6056
6056
|
children: /* @__PURE__ */jsxRuntime.jsxs(Root$7, {
|
|
6057
6057
|
...restProps,
|
|
6058
|
+
$animate: animate,
|
|
6058
6059
|
$padding: padding,
|
|
6059
6060
|
$position: position,
|
|
6060
6061
|
"aria-labelledby": labelId,
|
|
@@ -6067,7 +6068,6 @@ const Dialog = react.forwardRef(function Dialog2(props, ref) {
|
|
|
6067
6068
|
ref,
|
|
6068
6069
|
role: "dialog",
|
|
6069
6070
|
zOffset,
|
|
6070
|
-
animate,
|
|
6071
6071
|
children: [/* @__PURE__ */jsxRuntime.jsx("div", {
|
|
6072
6072
|
ref: preDivRef,
|
|
6073
6073
|
tabIndex: 0
|