@sanity/ui 3.0.0-static.46 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/ui",
3
- "version": "3.0.0-static.46",
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.3",
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.0",
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.18.1",
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": "^1.0.2"
103
+ "use-effect-event": "^2.0.2"
105
104
  },
106
105
  "devDependencies": {
107
- "@babel/core": "^7.27.4",
108
- "@babel/preset-env": "^7.27.2",
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.0",
112
- "@commitlint/config-conventional": "^19.8.0",
113
- "@eslint/js": "^9.29.0",
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.6.1",
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.6",
130
- "@vitejs/plugin-react": "^4.5.2",
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.29.0",
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.31.0",
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 ? {type: 'spring', visualDuration, bounce: 0.25} : {duration: 0}
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']
@@ -36,7 +36,6 @@ export function Skeleton<E extends SkeletonElementType = typeof DEFAULT_SKELETON
36
36
  animated = false,
37
37
  className,
38
38
  delay,
39
- radius,
40
39
  ...rest
41
40
  } = props as SkeletonProps<typeof DEFAULT_SKELETON_ELEMENT>
42
41
 
@@ -62,7 +61,7 @@ export function Skeleton<E extends SkeletonElementType = typeof DEFAULT_SKELETON
62
61
  {...rest}
63
62
  className={skeleton({
64
63
  className,
65
- radius,
64
+ ...rest,
66
65
  })}
67
66
  data-animated={animated ? '' : undefined}
68
67
  data-visible={visible ? '' : undefined}