@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.esm.js
CHANGED
|
@@ -2931,7 +2931,7 @@ function headingBaseStyle(props) {
|
|
|
2931
2931
|
const {
|
|
2932
2932
|
font
|
|
2933
2933
|
} = getTheme_v2(props.theme);
|
|
2934
|
-
return 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 && css(_a$s || (_a$s = __template$s(["\n color: var(--card-accent-fg-color);\n "]))), $muted && css(_b$g || (_b$g = __template$s(["\n color: var(--card-muted-fg-color);\n "]))), font.code.family);
|
|
2934
|
+
return 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 && css(_a$s || (_a$s = __template$s(["\n color: var(--card-accent-fg-color);\n "]))), $muted && css(_b$g || (_b$g = __template$s(["\n color: var(--card-muted-fg-color);\n "]))), font.code.family, font.heading.weights.bold);
|
|
2935
2935
|
}
|
|
2936
2936
|
var __freeze$r = Object.freeze;
|
|
2937
2937
|
var __defProp$s = Object.defineProperty;
|
|
@@ -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
|