@sanity/ui 2.16.9 → 2.16.11

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": "2.16.9",
3
+ "version": "2.16.11",
4
4
  "keywords": [
5
5
  "sanity",
6
6
  "ui",
@@ -106,7 +106,7 @@
106
106
  },
107
107
  "main",
108
108
  {
109
- "name": "v4",
109
+ "name": "static",
110
110
  "channel": "static",
111
111
  "prerelease": true
112
112
  }
@@ -119,7 +119,7 @@
119
119
  "@sanity/color": "^3.0.6",
120
120
  "@sanity/icons": "^3.7.4",
121
121
  "csstype": "^3.1.3",
122
- "framer-motion": "^12.23.9",
122
+ "framer-motion": "^12.23.11",
123
123
  "react-compiler-runtime": "19.1.0-rc.2",
124
124
  "react-refractor": "^2.2.0",
125
125
  "use-effect-event": "^2.0.3"
@@ -131,8 +131,8 @@
131
131
  "@babel/preset-typescript": "^7.27.1",
132
132
  "@commitlint/cli": "^19.8.1",
133
133
  "@commitlint/config-conventional": "^19.8.1",
134
- "@eslint/js": "^9.31.0",
135
- "@sanity/pkg-utils": "^7.9.10",
134
+ "@eslint/js": "^9.32.0",
135
+ "@sanity/pkg-utils": "^7.9.14",
136
136
  "@sanity/prettier-config": "^2.0.1",
137
137
  "@sanity/semantic-release-preset": "^5.0.0",
138
138
  "@sanity/ui-workshop": "^2.1.6",
@@ -150,15 +150,15 @@
150
150
  "@storybook/react-vite": "^8.6.14",
151
151
  "@storybook/test": "^8.6.14",
152
152
  "@storybook/theming": "^8.6.14",
153
- "@testing-library/dom": "^10.4.0",
154
- "@testing-library/jest-dom": "^6.6.3",
153
+ "@testing-library/dom": "^10.4.1",
154
+ "@testing-library/jest-dom": "^6.6.4",
155
155
  "@testing-library/react": "^16.3.0",
156
156
  "@testing-library/user-event": "^14.6.1",
157
157
  "@types/jest": "^30.0.0",
158
158
  "@types/jest-axe": "^3.5.9",
159
159
  "@types/node": "^20.12.7",
160
- "@types/react": "^19.1.8",
161
- "@types/react-dom": "^19.1.6",
160
+ "@types/react": "^19.1.9",
161
+ "@types/react-dom": "^19.1.7",
162
162
  "@types/react-is": "^19.0.0",
163
163
  "@vitejs/plugin-react": "^4.7.0",
164
164
  "babel-plugin-react-compiler": "19.1.0-rc.2",
@@ -167,7 +167,7 @@
167
167
  "cypress": "^13.17.0",
168
168
  "cypress-real-events": "^1.14.0",
169
169
  "cz-conventional-changelog": "^3.3.0",
170
- "eslint": "^9.31.0",
170
+ "eslint": "^9.32.0",
171
171
  "eslint-config-prettier": "^10.1.8",
172
172
  "eslint-formatter-compact": "^8.40.0",
173
173
  "eslint-plugin-boundaries": "^5.0.1",
@@ -188,9 +188,9 @@
188
188
  "module-alias": "^2.2.3",
189
189
  "npm-run-all2": "^5.0.2",
190
190
  "prettier": "^3.6.2",
191
- "react": "^19.1.0",
192
- "react-dom": "^19.1.0",
193
- "react-is": "^19.1.0",
191
+ "react": "^19.1.1",
192
+ "react-dom": "^19.1.1",
193
+ "react-is": "^19.1.1",
194
194
  "refractor": "^4.9.0",
195
195
  "rimraf": "^5.0.5",
196
196
  "semantic-release": "^24.2.7",
@@ -17,8 +17,8 @@ function avatarArrowStyle(): CSSObject {
17
17
  return {
18
18
  'position': 'absolute',
19
19
  'boxSizing': 'border-box',
20
- 'zIndex': 0,
21
- 'opacity': 0,
20
+ 'zIndex': '0',
21
+ 'opacity': '0',
22
22
  'transition': 'all 0.2s linear',
23
23
  'transform': 'rotate(-90deg) translate3d(0, 6px, 0)',
24
24
  'left': 0,
@@ -41,16 +41,16 @@ function avatarArrowStyle(): CSSObject {
41
41
 
42
42
  "[data-arrow-position='inside'] > &": {
43
43
  transform: 'rotate(-90deg) translate3d(0, 6px, 0)',
44
- opacity: 0,
44
+ opacity: '0',
45
45
  },
46
46
 
47
47
  "[data-arrow-position='top'] > &": {
48
- opacity: 1,
48
+ opacity: '1',
49
49
  transform: 'rotate(0deg)',
50
50
  },
51
51
 
52
52
  "[data-arrow-position='bottom'] > &": {
53
- opacity: 1,
53
+ opacity: '1',
54
54
  transform: 'rotate(-180deg)',
55
55
  },
56
56
  }
@@ -71,7 +71,7 @@ export function avatarRootStyle(props: AvatarRootStyleProps & ThemeProps): CSSOb
71
71
  'boxShadow': '0 0 0 1px var(--card-bg-color)',
72
72
 
73
73
  '&[data-status="inactive"]': {
74
- opacity: 0.5,
74
+ opacity: '0.5',
75
75
  },
76
76
 
77
77
  '&>svg': {
@@ -5,7 +5,7 @@ import {ResponsiveInlineSpaceStyleProps} from './types'
5
5
 
6
6
  export function inlineBaseStyle(): CSSObject {
7
7
  return {
8
- 'lineHeight': 0,
8
+ 'lineHeight': '0',
9
9
 
10
10
  '&&:not([hidden])': {
11
11
  display: 'block',
@@ -97,7 +97,7 @@ function inputColorStyle(props: ThemeProps) {
97
97
  }
98
98
 
99
99
  function textSize(size: ThemeFontSize) {
100
- return {fontSize: rem(size.fontSize), lineHeight: rem(size.lineHeight)}
100
+ return {fontSize: rem(size.fontSize), lineHeight: `${rem(size.lineHeight)}`}
101
101
  }
102
102
 
103
103
  function inputTextSizeStyle(props: {$fontSize: number[]} & ThemeProps) {
@@ -23,5 +23,5 @@ export function responsiveFlexItemStyle(
23
23
 
24
24
  if (!props.$flex) return EMPTY_ARRAY
25
25
 
26
- return _responsive(media, props.$flex, (flex) => ({flex}))
26
+ return _responsive(media, props.$flex, (flex) => ({flex: `${flex}`}))
27
27
  }
@@ -23,7 +23,7 @@ export function responsiveFont(
23
23
  const base: CSSObject = {
24
24
  'position': 'relative',
25
25
  'fontFamily': family,
26
- fontWeight,
26
+ 'fontWeight': `${fontWeight}`,
27
27
  'padding': '1px 0',
28
28
  'margin': 0,
29
29
 
@@ -43,14 +43,14 @@ function responsiveGridItemRowStartStyle(props: ResponsiveGridItemStyleProps & T
43
43
  const {media} = getTheme_v2(props.theme)
44
44
 
45
45
  return _responsive(media, props.$rowStart, (rowStart) => ({
46
- gridRowStart: rowStart,
46
+ gridRowStart: `${rowStart}`,
47
47
  }))
48
48
  }
49
49
 
50
50
  function responsiveGridItemRowEndStyle(props: ResponsiveGridItemStyleProps & ThemeProps) {
51
51
  const {media} = getTheme_v2(props.theme)
52
52
 
53
- return _responsive(media, props.$rowEnd, (rowEnd) => ({gridRowEnd: rowEnd}))
53
+ return _responsive(media, props.$rowEnd, (rowEnd) => ({gridRowEnd: `${rowEnd}`}))
54
54
  }
55
55
 
56
56
  function responsiveGridItemColumnStyle(props: ResponsiveGridItemStyleProps & ThemeProps) {
@@ -69,7 +69,7 @@ function responsiveGridItemColumnStartStyle(props: ResponsiveGridItemStyleProps
69
69
  const {media} = getTheme_v2(props.theme)
70
70
 
71
71
  return _responsive(media, props.$columnStart, (columnStart) => ({
72
- gridColumnStart: columnStart,
72
+ gridColumnStart: `${columnStart}`,
73
73
  }))
74
74
  }
75
75
 
@@ -77,6 +77,6 @@ function responsiveGridItemColumnEndStyle(props: ResponsiveGridItemStyleProps &
77
77
  const {media} = getTheme_v2(props.theme)
78
78
 
79
79
  return _responsive(media, props.$columnEnd, (columnEnd) => ({
80
- gridColumnEnd: columnEnd,
80
+ gridColumnEnd: `${columnEnd}`,
81
81
  }))
82
82
  }
@@ -120,7 +120,7 @@ export function textInputFontSizeStyle(props: TextInputInputStyleProps & ThemePr
120
120
 
121
121
  return {
122
122
  fontSize: rem(size.fontSize),
123
- lineHeight: size.lineHeight / size.fontSize,
123
+ lineHeight: `${size.lineHeight / size.fontSize}`,
124
124
  }
125
125
  })
126
126
  }