@sanity/ui 3.0.0-static.47 → 3.0.0-static.48
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/refractor.cjs.map +1 -1
- package/dist/_chunks-es/refractor.js.map +1 -1
- package/dist/css/index.cjs.map +1 -1
- package/dist/css/index.css +1 -1
- package/dist/css/index.js.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/theme.cjs.map +1 -1
- package/dist/theme.js.map +1 -1
- package/package.json +15 -16
- package/src/core/components/toast/toast.tsx +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/ui",
|
|
3
|
-
"version": "3.0.0-static.
|
|
3
|
+
"version": "3.0.0-static.48",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"react",
|
|
6
6
|
"ui",
|
|
@@ -90,29 +90,28 @@
|
|
|
90
90
|
"extends": "@sanity/semantic-release-preset"
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@floating-ui/react-dom": "^2.1.
|
|
93
|
+
"@floating-ui/react-dom": "^2.1.4",
|
|
94
94
|
"@juggle/resize-observer": "^3.4.0",
|
|
95
95
|
"@sanity/color": "^3.0.6",
|
|
96
|
-
"@sanity/icons": "^3.7.
|
|
96
|
+
"@sanity/icons": "^3.7.4",
|
|
97
97
|
"@vanilla-extract/css": "^1.17.4",
|
|
98
98
|
"@vanilla-extract/dynamic": "^2.1.5",
|
|
99
99
|
"csstype": "^3.1.3",
|
|
100
|
-
"framer-motion": "^12.
|
|
101
|
-
"gzip-size": "^7.0.0",
|
|
100
|
+
"framer-motion": "^12.23.6",
|
|
102
101
|
"react-compiler-runtime": "19.1.0-rc.2",
|
|
103
102
|
"react-refractor": "^2.2.0",
|
|
104
|
-
"use-effect-event": "^
|
|
103
|
+
"use-effect-event": "^2.0.2"
|
|
105
104
|
},
|
|
106
105
|
"devDependencies": {
|
|
107
|
-
"@babel/core": "^7.
|
|
108
|
-
"@babel/preset-env": "^7.
|
|
106
|
+
"@babel/core": "^7.28.0",
|
|
107
|
+
"@babel/preset-env": "^7.28.0",
|
|
109
108
|
"@babel/preset-react": "^7.27.1",
|
|
110
109
|
"@babel/preset-typescript": "^7.27.1",
|
|
111
|
-
"@commitlint/cli": "^19.8.
|
|
112
|
-
"@commitlint/config-conventional": "^19.8.
|
|
113
|
-
"@eslint/js": "^9.
|
|
110
|
+
"@commitlint/cli": "^19.8.1",
|
|
111
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
112
|
+
"@eslint/js": "^9.30.1",
|
|
114
113
|
"@sanity/browserslist-config": "^1.0.5",
|
|
115
|
-
"@sanity/pkg-utils": "^7.
|
|
114
|
+
"@sanity/pkg-utils": "^7.9.5",
|
|
116
115
|
"@sanity/prettier-config": "^1.0.4",
|
|
117
116
|
"@sanity/semantic-release-preset": "^5.0.0",
|
|
118
117
|
"@sanity/ui-workshop": "^3.0.0",
|
|
@@ -126,8 +125,8 @@
|
|
|
126
125
|
"@types/react-is": "^19.0.0",
|
|
127
126
|
"@types/refractor": "^3.4.1",
|
|
128
127
|
"@vanilla-extract/rollup-plugin": "^1.3.17",
|
|
129
|
-
"@vanilla-extract/vite-plugin": "^5.0
|
|
130
|
-
"@vitejs/plugin-react": "^4.
|
|
128
|
+
"@vanilla-extract/vite-plugin": "^5.1.0",
|
|
129
|
+
"@vitejs/plugin-react": "^4.6.0",
|
|
131
130
|
"@vitest/browser": "^3.2.3",
|
|
132
131
|
"autoprefixer": "^10.4.21",
|
|
133
132
|
"babel-plugin-react-compiler": "19.1.0-rc.2",
|
|
@@ -138,11 +137,11 @@
|
|
|
138
137
|
"cypress-real-events": "^1.14.0",
|
|
139
138
|
"cz-conventional-changelog": "^3.3.0",
|
|
140
139
|
"dotenv-flow": "^4.1.0",
|
|
141
|
-
"eslint": "^9.
|
|
140
|
+
"eslint": "^9.30.1",
|
|
142
141
|
"eslint-config-prettier": "^10.1.5",
|
|
143
142
|
"eslint-formatter-compact": "^8.40.0",
|
|
144
143
|
"eslint-plugin-boundaries": "^5.0.1",
|
|
145
|
-
"eslint-plugin-import": "^2.
|
|
144
|
+
"eslint-plugin-import": "^2.32.0",
|
|
146
145
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
147
146
|
"eslint-plugin-react": "^7.37.5",
|
|
148
147
|
"eslint-plugin-react-hooks": "0.0.0-experimental-12bc60f5-20250613",
|
|
@@ -85,7 +85,9 @@ export function Toast<E extends ToastElementType = typeof DEFAULT_TOAST_ELEMENT>
|
|
|
85
85
|
const prefersReducedMotion = usePrefersReducedMotion()
|
|
86
86
|
|
|
87
87
|
const visualDuration: number = prefersReducedMotion ? 0 : 0.26
|
|
88
|
-
const transition = visualDuration
|
|
88
|
+
const transition = visualDuration
|
|
89
|
+
? {type: 'spring' as const, visualDuration, bounce: 0.25}
|
|
90
|
+
: {duration: 0}
|
|
89
91
|
|
|
90
92
|
const hasDuration = duration && isFinite(duration) && duration < LONG_ENOUGH_BUT_NOT_TOO_LONG
|
|
91
93
|
const initial: ContainerVariants[] = ['hidden', 'initial']
|