@sanity/ui 2.0.0-beta.11 → 2.0.0-beta.13
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/index.esm.js +7 -10
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -10
- package/dist/index.js.map +1 -1
- package/dist/theme.esm.js +1 -1
- package/dist/theme.esm.js.map +1 -1
- package/dist/theme.js +1 -1
- package/dist/theme.js.map +1 -1
- package/package.json +1 -1
- package/src/core/primitives/button/button.tsx +9 -11
- package/src/theme/defaults/config.ts +1 -1
package/package.json
CHANGED
|
@@ -149,17 +149,15 @@ export const Button = forwardRef(function Button(
|
|
|
149
149
|
)}
|
|
150
150
|
|
|
151
151
|
{text && (
|
|
152
|
-
<
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
</Text>
|
|
162
|
-
</Box>
|
|
152
|
+
<Text
|
|
153
|
+
muted={muted}
|
|
154
|
+
align={textAlign}
|
|
155
|
+
size={fontSize}
|
|
156
|
+
textOverflow="ellipsis"
|
|
157
|
+
weight={button.textWeight}
|
|
158
|
+
>
|
|
159
|
+
{text}
|
|
160
|
+
</Text>
|
|
163
161
|
)}
|
|
164
162
|
|
|
165
163
|
{iconRight && (
|
|
@@ -24,7 +24,7 @@ export const defaultThemeConfig: Omit<RootTheme_v2, 'color' | 'font'> = {
|
|
|
24
24
|
focusRing: {offset: -1, width: 1},
|
|
25
25
|
shadow: {outline: OUTLINE_WIDTH},
|
|
26
26
|
},
|
|
27
|
-
container: [
|
|
27
|
+
container: [320, 640, 960, 1280, 1600, 1920],
|
|
28
28
|
media: [360, 600, 900, 1200, 1800, 2400],
|
|
29
29
|
layer: {
|
|
30
30
|
dialog: {zOffset: 600},
|