@sanity/ui 4.0.0-static.41 → 4.0.0-static.42
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.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/core/components/toast/Toast.tsx +1 -1
- package/src/core/components/toast/ToastProvider.tsx +1 -1
- package/src/core/constants.ts +1 -1
- package/src/core/primitives/popover/Popover.tsx +1 -1
- package/src/core/primitives/popover/PopoverLayer.tsx +1 -1
- package/src/core/primitives/tooltip/Tooltip.tsx +1 -1
- package/src/core/primitives/tooltip/TooltipLayer.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/ui",
|
|
3
|
-
"version": "4.0.0-static.
|
|
3
|
+
"version": "4.0.0-static.42",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"react",
|
|
6
6
|
"ui",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"@sanity/icons": "^3.7.4",
|
|
120
120
|
"@vanilla-extract/dynamic": "^2.1.5",
|
|
121
121
|
"csstype": "^3.1.3",
|
|
122
|
-
"
|
|
122
|
+
"motion": "^12.23.24",
|
|
123
123
|
"react-refractor": "^4.0.0",
|
|
124
124
|
"use-effect-event": "^2.0.3"
|
|
125
125
|
},
|
|
@@ -132,10 +132,10 @@
|
|
|
132
132
|
"@commitlint/config-conventional": "^19.8.1",
|
|
133
133
|
"@eslint/js": "^9.37.0",
|
|
134
134
|
"@sanity/browserslist-config": "^1.0.5",
|
|
135
|
-
"@sanity/pkg-utils": "^8.1.
|
|
135
|
+
"@sanity/pkg-utils": "^8.1.24",
|
|
136
136
|
"@sanity/prettier-config": "^2.0.1",
|
|
137
137
|
"@sanity/semantic-release-preset": "^5.0.0",
|
|
138
|
-
"@sanity/ui-workshop": "4.0.0-static.
|
|
138
|
+
"@sanity/ui-workshop": "4.0.0-static.12",
|
|
139
139
|
"@testing-library/dom": "^10.4.1",
|
|
140
140
|
"@testing-library/jest-dom": "^6.8.0",
|
|
141
141
|
"@testing-library/react": "^16.3.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {CloseIcon} from '@sanity/icons'
|
|
2
2
|
import {type RadiusStyleProps, toast} from '@sanity/ui/css'
|
|
3
|
-
import {motion, type Variant, type Variants} from '
|
|
3
|
+
import {motion, type Variant, type Variants} from 'motion/react'
|
|
4
4
|
import {type ReactNode} from 'react'
|
|
5
5
|
|
|
6
6
|
import {usePrefersReducedMotion} from '../../hooks/usePrefersReducedMotion'
|
package/src/core/constants.ts
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useFloating,
|
|
12
12
|
} from '@floating-ui/react-dom'
|
|
13
13
|
import {type MaxWidth, popover as popoverCss, type ResponsiveProp} from '@sanity/ui/css'
|
|
14
|
-
import {AnimatePresence} from '
|
|
14
|
+
import {AnimatePresence} from 'motion/react'
|
|
15
15
|
import {
|
|
16
16
|
cloneElement,
|
|
17
17
|
type ForwardedRef,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type {Strategy} from '@floating-ui/react-dom'
|
|
2
2
|
import {popoverCard} from '@sanity/ui/css'
|
|
3
|
-
import {motion} from '
|
|
3
|
+
import {motion} from 'motion/react'
|
|
4
4
|
import {type CSSProperties, type ForwardedRef, useMemo} from 'react'
|
|
5
5
|
|
|
6
6
|
import {POPOVER_MOTION_PROPS} from '../../constants'
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from '@floating-ui/react-dom'
|
|
11
11
|
import {type RadiusStyleProps, type ShadowStyleProps, tooltip} from '@sanity/ui/css'
|
|
12
12
|
import type {CardTone, ColorScheme} from '@sanity/ui/theme'
|
|
13
|
-
import {AnimatePresence} from '
|
|
13
|
+
import {AnimatePresence} from 'motion/react'
|
|
14
14
|
import {
|
|
15
15
|
cloneElement,
|
|
16
16
|
type FocusEvent,
|