@sanity/ui 2.10.2 → 2.10.3
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/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/core/constants.ts +1 -1
- package/src/core/primitives/popover/popoverCard.tsx +2 -2
- package/src/core/primitives/tooltip/tooltipCard.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/ui",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.3",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"sanity",
|
|
6
6
|
"ui",
|
|
@@ -117,12 +117,12 @@
|
|
|
117
117
|
"devDependencies": {
|
|
118
118
|
"@babel/core": "^7.26.0",
|
|
119
119
|
"@babel/preset-env": "^7.26.0",
|
|
120
|
-
"@babel/preset-react": "^7.
|
|
120
|
+
"@babel/preset-react": "^7.26.3",
|
|
121
121
|
"@babel/preset-typescript": "^7.26.0",
|
|
122
|
-
"@commitlint/cli": "^19.
|
|
123
|
-
"@commitlint/config-conventional": "^19.
|
|
122
|
+
"@commitlint/cli": "^19.6.0",
|
|
123
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
124
124
|
"@juggle/resize-observer": "^3.4.0",
|
|
125
|
-
"@sanity/pkg-utils": "^6.11.
|
|
125
|
+
"@sanity/pkg-utils": "^6.11.15",
|
|
126
126
|
"@sanity/prettier-config": "^1.0.3",
|
|
127
127
|
"@sanity/semantic-release-preset": "^5.0.0",
|
|
128
128
|
"@sanity/ui-workshop": "^2.0.16",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"@testing-library/jest-dom": "^6.6.3",
|
|
145
145
|
"@testing-library/react": "^16.1.0",
|
|
146
146
|
"@testing-library/user-event": "^14.5.2",
|
|
147
|
-
"@types/jest": "^29.5.
|
|
147
|
+
"@types/jest": "^29.5.14",
|
|
148
148
|
"@types/jest-axe": "^3.5.9",
|
|
149
149
|
"@types/node": "^20.12.7",
|
|
150
150
|
"@types/react": "^19.0.1",
|
|
@@ -153,10 +153,10 @@
|
|
|
153
153
|
"@types/refractor": "^3.4.1",
|
|
154
154
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
155
155
|
"@typescript-eslint/parser": "^7.18.0",
|
|
156
|
-
"@vitejs/plugin-react": "^4.3.
|
|
156
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
157
157
|
"babel-plugin-react-compiler": "19.0.0-beta-37ed2a7-20241206",
|
|
158
|
-
"commitizen": "^4.3.
|
|
159
|
-
"cypress": "^13.
|
|
158
|
+
"commitizen": "^4.3.1",
|
|
159
|
+
"cypress": "^13.16.1",
|
|
160
160
|
"cypress-real-events": "^1.13.0",
|
|
161
161
|
"cz-conventional-changelog": "^3.3.0",
|
|
162
162
|
"eslint": "^8.57.1",
|
|
@@ -167,8 +167,8 @@
|
|
|
167
167
|
"eslint-plugin-prettier": "^5.2.1",
|
|
168
168
|
"eslint-plugin-react": "^7.37.2",
|
|
169
169
|
"eslint-plugin-react-compiler": "19.0.0-beta-37ed2a7-20241206",
|
|
170
|
-
"eslint-plugin-react-hooks": "^5.
|
|
171
|
-
"eslint-plugin-storybook": "^0.11.
|
|
170
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
171
|
+
"eslint-plugin-storybook": "^0.11.1",
|
|
172
172
|
"http-server": "^14.1.1",
|
|
173
173
|
"husky": "^8.0.3",
|
|
174
174
|
"jest": "^29.7.0",
|
|
@@ -177,18 +177,18 @@
|
|
|
177
177
|
"lint-staged": "^14.0.1",
|
|
178
178
|
"module-alias": "^2.2.3",
|
|
179
179
|
"npm-run-all2": "^5.0.2",
|
|
180
|
-
"prettier": "^3.
|
|
180
|
+
"prettier": "^3.4.2",
|
|
181
181
|
"react": "^19.0.0",
|
|
182
182
|
"react-dom": "^19.0.0",
|
|
183
183
|
"react-is": "^19.0.0",
|
|
184
184
|
"refractor": "^4.8.1",
|
|
185
185
|
"rimraf": "^5.0.5",
|
|
186
|
-
"semantic-release": "^24.
|
|
187
|
-
"start-server-and-test": "^2.0.
|
|
186
|
+
"semantic-release": "^24.2.0",
|
|
187
|
+
"start-server-and-test": "^2.0.8",
|
|
188
188
|
"storybook": "^8.4.7",
|
|
189
189
|
"styled-components": "^6.1.13",
|
|
190
190
|
"tsconfig-paths": "^4.2.0",
|
|
191
|
-
"typescript": "5.
|
|
191
|
+
"typescript": "5.7.2",
|
|
192
192
|
"vite": "^5.4.11",
|
|
193
193
|
"vite-tsconfig-paths": "^5.1.4"
|
|
194
194
|
},
|
package/src/core/constants.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {Strategy} from '@floating-ui/react-dom'
|
|
2
2
|
import {ThemeColorSchemeKey} from '@sanity/ui/theme'
|
|
3
|
-
import {MotionProps, motion} from 'framer-motion'
|
|
3
|
+
import {type MotionProps, motion} from 'framer-motion'
|
|
4
4
|
import React, {CSSProperties, forwardRef, memo, useMemo} from 'react'
|
|
5
5
|
import {styled} from 'styled-components'
|
|
6
6
|
import {POPOVER_MOTION_CONTENT_OPACITY_PROPERTY, POPOVER_MOTION_PROPS} from '../../constants'
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
DEFAULT_POPOVER_MARGINS,
|
|
16
16
|
} from './constants'
|
|
17
17
|
|
|
18
|
-
const MotionCard = styled(motion(Card))`
|
|
18
|
+
const MotionCard = styled(motion.create(Card))`
|
|
19
19
|
&:not([hidden]) {
|
|
20
20
|
display: flex;
|
|
21
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {ThemeColorSchemeKey} from '@sanity/ui/theme'
|
|
2
|
-
import {MotionProps, motion} from 'framer-motion'
|
|
2
|
+
import {type MotionProps, motion} from 'framer-motion'
|
|
3
3
|
import React, {CSSProperties, forwardRef, memo, useMemo} from 'react'
|
|
4
4
|
import {styled} from 'styled-components'
|
|
5
5
|
import {POPOVER_MOTION_CONTENT_OPACITY_PROPERTY, POPOVER_MOTION_PROPS} from '../../constants'
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
DEFAULT_TOOLTIP_ARROW_WIDTH,
|
|
13
13
|
} from './constants'
|
|
14
14
|
|
|
15
|
-
const MotionCard = styled(motion(Card))`
|
|
15
|
+
const MotionCard = styled(motion.create(Card))`
|
|
16
16
|
& > * {
|
|
17
17
|
opacity: var(${POPOVER_MOTION_CONTENT_OPACITY_PROPERTY}, 1);
|
|
18
18
|
will-change: opacity;
|