@sanity/ui 2.13.4 → 2.13.5
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/_chunks-cjs/_visual-editing.js +7 -0
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs +7 -0
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_legacy/_visual-editing.esm.js +7 -0
- package/dist/_legacy/_visual-editing.esm.js.map +1 -1
- package/dist/index.esm.js +3 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/core/components/toast/styles.ts +3 -0
- package/src/core/components/toast/toastProvider.tsx +6 -0
- package/src/core/constants.ts +7 -0
|
@@ -5,8 +5,15 @@ function _interopDefaultCompat(e) {
|
|
|
5
5
|
}
|
|
6
6
|
var ReactIs__default = /* @__PURE__ */ _interopDefaultCompat(ReactIs);
|
|
7
7
|
const createColorTheme = theme.createColorTheme, hexToRgb = theme.hexToRgb, hslToRgb = theme.hslToRgb, multiply = theme.multiply, parseColor = theme.parseColor, rgbToHex = theme.rgbToHex, rgbToHsl = theme.rgbToHsl, rgba = theme.rgba, screen = theme.screen, studioTheme = theme.buildTheme(), EMPTY_ARRAY = [], EMPTY_RECORD = {}, POPOVER_MOTION_CONTENT_OPACITY_PROPERTY = "--motion-content-opacity", POPOVER_MOTION_PROPS = {
|
|
8
|
+
/**
|
|
9
|
+
* These variants makes use of special timing, by using a negative opacity as a starting position,
|
|
10
|
+
* as well as double opacity as the end position.
|
|
11
|
+
* The purpose of this is to make the tooltip/popover container appear before the content, and when exiting
|
|
12
|
+
* we want the content to disappear faster than the container.
|
|
13
|
+
*/
|
|
8
14
|
initial: {
|
|
9
15
|
opacity: 0.5,
|
|
16
|
+
// the nagative opacity here, as well as the double opacity further down, are to make the content appear after the backgdrop, and when exiting the content should disappear first.
|
|
10
17
|
[POPOVER_MOTION_CONTENT_OPACITY_PROPERTY]: -1,
|
|
11
18
|
scale: 0.97,
|
|
12
19
|
willChange: "transform"
|