@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
|
@@ -109,7 +109,7 @@ function responsiveFont(fontKey, props) {
|
|
|
109
109
|
} = font[fontKey], fontWeight = $weight && weights[$weight] || weights.regular, defaultSize = sizes[2], base = {
|
|
110
110
|
position: "relative",
|
|
111
111
|
fontFamily: family,
|
|
112
|
-
fontWeight
|
|
112
|
+
fontWeight: `${fontWeight}`,
|
|
113
113
|
padding: "1px 0",
|
|
114
114
|
margin: 0,
|
|
115
115
|
"&:before": {
|
|
@@ -596,7 +596,7 @@ function responsiveFlexItemStyle(props) {
|
|
|
596
596
|
media
|
|
597
597
|
} = theme.getTheme_v2(props.theme);
|
|
598
598
|
return props.$flex ? _responsive(media, props.$flex, (flex) => ({
|
|
599
|
-
flex
|
|
599
|
+
flex: `${flex}`
|
|
600
600
|
})) : EMPTY_ARRAY;
|
|
601
601
|
}
|
|
602
602
|
const BASE_STYLE$2 = {
|
|
@@ -684,7 +684,7 @@ function responsiveGridItemRowStartStyle(props) {
|
|
|
684
684
|
media
|
|
685
685
|
} = theme.getTheme_v2(props.theme);
|
|
686
686
|
return _responsive(media, props.$rowStart, (rowStart) => ({
|
|
687
|
-
gridRowStart: rowStart
|
|
687
|
+
gridRowStart: `${rowStart}`
|
|
688
688
|
}));
|
|
689
689
|
}
|
|
690
690
|
function responsiveGridItemRowEndStyle(props) {
|
|
@@ -692,7 +692,7 @@ function responsiveGridItemRowEndStyle(props) {
|
|
|
692
692
|
media
|
|
693
693
|
} = theme.getTheme_v2(props.theme);
|
|
694
694
|
return _responsive(media, props.$rowEnd, (rowEnd) => ({
|
|
695
|
-
gridRowEnd: rowEnd
|
|
695
|
+
gridRowEnd: `${rowEnd}`
|
|
696
696
|
}));
|
|
697
697
|
}
|
|
698
698
|
function responsiveGridItemColumnStyle(props) {
|
|
@@ -710,7 +710,7 @@ function responsiveGridItemColumnStartStyle(props) {
|
|
|
710
710
|
media
|
|
711
711
|
} = theme.getTheme_v2(props.theme);
|
|
712
712
|
return _responsive(media, props.$columnStart, (columnStart) => ({
|
|
713
|
-
gridColumnStart: columnStart
|
|
713
|
+
gridColumnStart: `${columnStart}`
|
|
714
714
|
}));
|
|
715
715
|
}
|
|
716
716
|
function responsiveGridItemColumnEndStyle(props) {
|
|
@@ -718,7 +718,7 @@ function responsiveGridItemColumnEndStyle(props) {
|
|
|
718
718
|
media
|
|
719
719
|
} = theme.getTheme_v2(props.theme);
|
|
720
720
|
return _responsive(media, props.$columnEnd, (columnEnd) => ({
|
|
721
|
-
gridColumnEnd: columnEnd
|
|
721
|
+
gridColumnEnd: `${columnEnd}`
|
|
722
722
|
}));
|
|
723
723
|
}
|
|
724
724
|
const GRID_CSS = {
|
|
@@ -933,7 +933,7 @@ function textInputFontSizeStyle(props) {
|
|
|
933
933
|
const size2 = font.text.sizes[sizeIndex] || font.text.sizes[2];
|
|
934
934
|
return {
|
|
935
935
|
fontSize: rem(size2.fontSize),
|
|
936
|
-
lineHeight: size2.lineHeight / size2.fontSize
|
|
936
|
+
lineHeight: `${size2.lineHeight / size2.fontSize}`
|
|
937
937
|
};
|
|
938
938
|
});
|
|
939
939
|
}
|
|
@@ -1206,8 +1206,8 @@ function avatarArrowStyle() {
|
|
|
1206
1206
|
return {
|
|
1207
1207
|
position: "absolute",
|
|
1208
1208
|
boxSizing: "border-box",
|
|
1209
|
-
zIndex: 0,
|
|
1210
|
-
opacity: 0,
|
|
1209
|
+
zIndex: "0",
|
|
1210
|
+
opacity: "0",
|
|
1211
1211
|
transition: "all 0.2s linear",
|
|
1212
1212
|
transform: "rotate(-90deg) translate3d(0, 6px, 0)",
|
|
1213
1213
|
left: 0,
|
|
@@ -1227,14 +1227,14 @@ function avatarArrowStyle() {
|
|
|
1227
1227
|
},
|
|
1228
1228
|
"[data-arrow-position='inside'] > &": {
|
|
1229
1229
|
transform: "rotate(-90deg) translate3d(0, 6px, 0)",
|
|
1230
|
-
opacity: 0
|
|
1230
|
+
opacity: "0"
|
|
1231
1231
|
},
|
|
1232
1232
|
"[data-arrow-position='top'] > &": {
|
|
1233
|
-
opacity: 1,
|
|
1233
|
+
opacity: "1",
|
|
1234
1234
|
transform: "rotate(0deg)"
|
|
1235
1235
|
},
|
|
1236
1236
|
"[data-arrow-position='bottom'] > &": {
|
|
1237
|
-
opacity: 1,
|
|
1237
|
+
opacity: "1",
|
|
1238
1238
|
transform: "rotate(-180deg)"
|
|
1239
1239
|
}
|
|
1240
1240
|
};
|
|
@@ -1254,7 +1254,7 @@ function avatarRootStyle(props) {
|
|
|
1254
1254
|
userSelect: "none",
|
|
1255
1255
|
boxShadow: "0 0 0 1px var(--card-bg-color)",
|
|
1256
1256
|
'&[data-status="inactive"]': {
|
|
1257
|
-
opacity: 0.5
|
|
1257
|
+
opacity: "0.5"
|
|
1258
1258
|
},
|
|
1259
1259
|
"&>svg": {
|
|
1260
1260
|
"&:not([hidden])": {
|
|
@@ -2669,7 +2669,7 @@ const StyledHeading = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
|
2669
2669
|
Heading.displayName = "ForwardRef(Heading)";
|
|
2670
2670
|
function inlineBaseStyle() {
|
|
2671
2671
|
return {
|
|
2672
|
-
lineHeight: 0,
|
|
2672
|
+
lineHeight: "0",
|
|
2673
2673
|
"&&:not([hidden])": {
|
|
2674
2674
|
display: "block"
|
|
2675
2675
|
},
|
|
@@ -3886,7 +3886,7 @@ function inputColorStyle(props) {
|
|
|
3886
3886
|
function textSize(size2) {
|
|
3887
3887
|
return {
|
|
3888
3888
|
fontSize: rem(size2.fontSize),
|
|
3889
|
-
lineHeight: rem(size2.lineHeight)
|
|
3889
|
+
lineHeight: `${rem(size2.lineHeight)}`
|
|
3890
3890
|
};
|
|
3891
3891
|
}
|
|
3892
3892
|
function inputTextSizeStyle(props) {
|