@sanity/ui 2.0.0-gamma.1 → 2.0.0
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 +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/theme.d.ts +6 -1
- package/dist/theme.esm.js +2 -1
- package/dist/theme.esm.js.map +1 -1
- package/dist/theme.js +2 -1
- package/dist/theme.js.map +1 -1
- package/package.json +2 -6
- package/src/core/__workshop__/fontsPlugin.tsx +48 -8
- package/src/core/primitives/button/button.tsx +1 -1
- package/src/theme/defaults/colorTokens.ts +1 -1
- package/src/theme/system/color/state.ts +6 -0
- package/src/theme/system/v0/color/color.ts +0 -1
- package/src/theme/versioning/v2_v0.ts +1 -0
package/dist/theme.d.ts
CHANGED
|
@@ -539,7 +539,6 @@ export declare interface ThemeColor extends Partial<Omit<ThemeColorGenericState,
|
|
|
539
539
|
button: ThemeColorButton
|
|
540
540
|
card: ThemeColorCard
|
|
541
541
|
dark: boolean
|
|
542
|
-
focusRing?: string
|
|
543
542
|
input: ThemeColorInput
|
|
544
543
|
muted: ThemeColorMuted
|
|
545
544
|
selectable?: ThemeColorSelectable
|
|
@@ -1123,7 +1122,13 @@ export declare interface ThemeColorState_v2 {
|
|
|
1123
1122
|
accent: {
|
|
1124
1123
|
fg: string
|
|
1125
1124
|
}
|
|
1125
|
+
/**
|
|
1126
|
+
* @internal This may be removed in a future release
|
|
1127
|
+
* */
|
|
1126
1128
|
avatar: ThemeColorAvatar_v2
|
|
1129
|
+
/**
|
|
1130
|
+
* @internal This may be removed in a future release
|
|
1131
|
+
* */
|
|
1127
1132
|
badge: ThemeColorBadge_v2
|
|
1128
1133
|
bg: string
|
|
1129
1134
|
border: string
|
package/dist/theme.esm.js
CHANGED
|
@@ -1886,6 +1886,7 @@ function themeColor_v2_v0(color_v2) {
|
|
|
1886
1886
|
...color_v2.button.default,
|
|
1887
1887
|
transparent: color_v2.button.default.default
|
|
1888
1888
|
},
|
|
1889
|
+
selectable: color_v2.selectable,
|
|
1889
1890
|
spot: {
|
|
1890
1891
|
gray: color_v2.avatar.gray.bg,
|
|
1891
1892
|
blue: color_v2.avatar.blue.bg,
|
|
@@ -2164,7 +2165,7 @@ const defaultColorTokens = {
|
|
|
2164
2165
|
fg: ["white", "black"]
|
|
2165
2166
|
}
|
|
2166
2167
|
},
|
|
2167
|
-
backdrop: ["gray/200/0.
|
|
2168
|
+
backdrop: ["gray/200/0.5", "black/0.5"],
|
|
2168
2169
|
badge: {
|
|
2169
2170
|
"*": {
|
|
2170
2171
|
bg: ["100", "900"],
|