@sanity/ui 2.0.0-beta.16 → 2.0.0-beta.18
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 +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.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/core/primitives/heading/styles.ts +4 -0
package/dist/index.js
CHANGED
|
@@ -2944,7 +2944,7 @@ function headingBaseStyle(props) {
|
|
|
2944
2944
|
const {
|
|
2945
2945
|
font
|
|
2946
2946
|
} = theme.getTheme_v2(props.theme);
|
|
2947
|
-
return styled.css(_c$8 || (_c$8 = __template$s(["\n ", "\n\n ", "\n\n & code {\n font-family: ", ";\n border-radius: 1px;\n }\n\n & a {\n text-decoration: none;\n border-radius: 1px;\n color: var(--card-link-color);\n outline: none;\n\n @media (hover: hover) {\n &:hover {\n text-decoration: underline;\n }\n }\n\n &:focus {\n box-shadow:\n 0 0 0 1px var(--card-bg-color),\n 0 0 0 3px var(--card-focus-ring-color);\n }\n\n &:focus:not(:focus-visible) {\n box-shadow: none;\n }\n }\n\n & svg {\n /* Certain popular CSS libraries changes the defaults for SVG display */\n /* Make sure SVGs are rendered as inline elements */\n display: inline;\n }\n\n & [data-sanity-icon] {\n vertical-align: baseline;\n }\n "])), $accent && styled.css(_a$s || (_a$s = __template$s(["\n color: var(--card-accent-fg-color);\n "]))), $muted && styled.css(_b$g || (_b$g = __template$s(["\n color: var(--card-muted-fg-color);\n "]))), font.code.family);
|
|
2947
|
+
return styled.css(_c$8 || (_c$8 = __template$s(["\n ", "\n\n ", "\n\n & code {\n font-family: ", ";\n border-radius: 1px;\n }\n\n & a {\n text-decoration: none;\n border-radius: 1px;\n color: var(--card-link-color);\n outline: none;\n\n @media (hover: hover) {\n &:hover {\n text-decoration: underline;\n }\n }\n\n &:focus {\n box-shadow:\n 0 0 0 1px var(--card-bg-color),\n 0 0 0 3px var(--card-focus-ring-color);\n }\n\n &:focus:not(:focus-visible) {\n box-shadow: none;\n }\n }\n\n & strong {\n font-weight: ", ";\n }\n\n & svg {\n /* Certain popular CSS libraries changes the defaults for SVG display */\n /* Make sure SVGs are rendered as inline elements */\n display: inline;\n }\n\n & [data-sanity-icon] {\n vertical-align: baseline;\n }\n "])), $accent && styled.css(_a$s || (_a$s = __template$s(["\n color: var(--card-accent-fg-color);\n "]))), $muted && styled.css(_b$g || (_b$g = __template$s(["\n color: var(--card-muted-fg-color);\n "]))), font.code.family, font.heading.weights.bold);
|
|
2948
2948
|
}
|
|
2949
2949
|
var __freeze$r = Object.freeze;
|
|
2950
2950
|
var __defProp$s = Object.defineProperty;
|
|
@@ -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
|