@sanity/themer 0.2.1 → 1.0.0-next.3
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/tool.js +3 -3
- package/package.json +4 -5
package/dist/tool.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as DEFAULT_BACKGROUND_DARK, c as resolveThemeOptions, i as DEFAULT_ACCENT, n as buildTheme, o as DEFAULT_BACKGROUND_LIGHT, r as buildPalette, s as deriveTextColor, t as presets } from "./presets-DWzYcsLg.js";
|
|
2
2
|
import { t as isColor } from "./mix-BfV6_Ke4.js";
|
|
3
3
|
import { COLOR_TINTS } from "@sanity/color";
|
|
4
|
-
import { c } from "react
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
5
|
import { definePlugin } from "sanity";
|
|
6
6
|
import { Box, Button, Card, Code, Flex, Grid, Layer, Stack, Text, ThemeProvider, Tooltip, useToast } from "@sanity/ui";
|
|
7
7
|
import { createContext, useContext, useEffect, useState } from "react";
|
|
@@ -75,10 +75,10 @@ registerLanguage(typescript);
|
|
|
75
75
|
*/
|
|
76
76
|
const Swatch = styled.input.withConfig({
|
|
77
77
|
displayName: "Swatch",
|
|
78
|
-
componentId: "sc-
|
|
78
|
+
componentId: "sc-y9uba3-0"
|
|
79
79
|
})`box-sizing:border-box;flex:none;width:33px;height:33px;padding:0;border:1px solid var(--card-border-color);border-radius:4px;background:none;cursor:pointer;&::-webkit-color-swatch-wrapper{padding:0;}&::-webkit-color-swatch{border:none;border-radius:3px;}&::-moz-color-swatch{border:none;border-radius:3px;}`, Range = styled.input.withConfig({
|
|
80
80
|
displayName: "Range",
|
|
81
|
-
componentId: "sc-
|
|
81
|
+
componentId: "sc-y9uba3-1"
|
|
82
82
|
})`display:block;width:100%;margin:0;accent-color:var(--card-focus-ring-color);`;
|
|
83
83
|
/**
|
|
84
84
|
* The themer sidebar: presets, the accent/text/background pickers and the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/themer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-next.3",
|
|
4
4
|
"description": "Generate Sanity Studio themes, and preview them with a Studio tool.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -33,12 +33,11 @@
|
|
|
33
33
|
"./package.json": "./package.json"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"react-compiler-runtime": "1.0.0",
|
|
37
36
|
"react-refractor": "^4.0.0",
|
|
38
37
|
"refractor": "^5.0.0",
|
|
39
38
|
"@sanity/color": "^3.0.8",
|
|
40
39
|
"@sanity/icons": "^5.2.1",
|
|
41
|
-
"@sanity/ui": "^
|
|
40
|
+
"@sanity/ui": "^4.0.0-next.3"
|
|
42
41
|
},
|
|
43
42
|
"devDependencies": {
|
|
44
43
|
"@sanity/tsdown-config": "^0.21.2",
|
|
@@ -54,7 +53,7 @@
|
|
|
54
53
|
"vitest": "^4.1.10"
|
|
55
54
|
},
|
|
56
55
|
"peerDependencies": {
|
|
57
|
-
"react": "^19",
|
|
56
|
+
"react": "^19.2",
|
|
58
57
|
"sanity": "^6",
|
|
59
58
|
"styled-components": "^6"
|
|
60
59
|
},
|
|
@@ -67,7 +66,7 @@
|
|
|
67
66
|
}
|
|
68
67
|
},
|
|
69
68
|
"engines": {
|
|
70
|
-
"node": ">=
|
|
69
|
+
"node": ">=22.12"
|
|
71
70
|
},
|
|
72
71
|
"scripts": {
|
|
73
72
|
"build": "tsdown",
|