@sanity/ui 3.0.2 → 3.0.4
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/_visual-editing.js +15 -15
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs +15 -15
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/package.json +10 -10
- package/src/core/primitives/avatar/styles.ts +6 -6
- package/src/core/primitives/inline/styles.ts +1 -1
- package/src/core/primitives/select/styles.ts +1 -1
- package/src/core/styles/flex/flexItemStyle.ts +1 -1
- package/src/core/styles/font/responsiveFont.ts +1 -1
- package/src/core/styles/grid/gridItemStyle.ts +4 -4
- package/src/core/styles/input/textInputStyle.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/ui",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"sanity",
|
|
6
6
|
"ui",
|
|
@@ -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.
|
|
122
|
+
"framer-motion": "^12.23.12",
|
|
123
123
|
"react-compiler-runtime": "19.1.0-rc.2",
|
|
124
124
|
"react-refractor": "^4.0.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.
|
|
135
|
-
"@sanity/pkg-utils": "^7.9.
|
|
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": "^3.1.2",
|
|
@@ -157,8 +157,8 @@
|
|
|
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.
|
|
161
|
-
"@types/react-dom": "^19.1.
|
|
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.
|
|
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": "^8.0.4",
|
|
190
190
|
"prettier": "^3.6.2",
|
|
191
|
-
"react": "^19.1.
|
|
192
|
-
"react-dom": "^19.1.
|
|
193
|
-
"react-is": "^19.1.
|
|
191
|
+
"react": "^19.1.1",
|
|
192
|
+
"react-dom": "^19.1.1",
|
|
193
|
+
"react-is": "^19.1.1",
|
|
194
194
|
"refractor": "^5.0.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': {
|
|
@@ -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) {
|
|
@@ -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
|
}
|