@sanity/ui 4.0.0-static.37 → 4.0.0-static.39
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-es/Refractor.js.map +1 -1
- package/dist/css/index.css +1 -1
- package/dist/css/index.css.map +1 -1
- package/dist/index.js +52 -45
- package/dist/index.js.map +1 -1
- package/package.json +3 -4
- package/src/core/components/tree/Tree.tsx +0 -1
- package/src/css/primitives/_input/_input.css.ts +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/ui",
|
|
3
|
-
"version": "4.0.0-static.
|
|
3
|
+
"version": "4.0.0-static.39",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"react",
|
|
6
6
|
"ui",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"@vanilla-extract/vite-plugin": "^5.1.1",
|
|
149
149
|
"@vitejs/plugin-react": "^5.0.4",
|
|
150
150
|
"@vitest/browser": "^3.2.4",
|
|
151
|
-
"babel-plugin-react-compiler": "
|
|
151
|
+
"babel-plugin-react-compiler": "1.0.0",
|
|
152
152
|
"browserslist-config-baseline": "^0.5.0",
|
|
153
153
|
"cac": "^6.7.14",
|
|
154
154
|
"commitizen": "^4.3.1",
|
|
@@ -163,8 +163,7 @@
|
|
|
163
163
|
"eslint-plugin-import": "^2.32.0",
|
|
164
164
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
165
165
|
"eslint-plugin-react": "^7.37.5",
|
|
166
|
-
"eslint-plugin-react-hooks": "
|
|
167
|
-
"eslint-plugin-react-hooks-with-use-effect-event": "npm:eslint-plugin-react-hooks@0.0.0-experimental-83c88ad4-20250923",
|
|
166
|
+
"eslint-plugin-react-hooks": "7.0.0",
|
|
168
167
|
"eslint-plugin-react-refresh": "^0.4.23",
|
|
169
168
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
170
169
|
"eslint-plugin-storybook": "^9.1.10",
|
|
@@ -226,7 +226,6 @@ export function Tree<E extends TreeElementType = typeof DEFAULT_TREE_ELEMENT>(
|
|
|
226
226
|
ref.current.querySelectorAll('[data-ui="TreeItem"]'),
|
|
227
227
|
) as HTMLElement[]
|
|
228
228
|
|
|
229
|
-
// eslint-disable-next-line react-hooks/set-state-in-effect
|
|
230
229
|
setItemElements(_itemElements)
|
|
231
230
|
}, [children])
|
|
232
231
|
|
|
@@ -56,7 +56,6 @@ export const element: string = _style(layers.primitives, {
|
|
|
56
56
|
[`${root}:not([data-invalid]) &`]: {
|
|
57
57
|
vars: {
|
|
58
58
|
[vars.color.input.text.fg]: vars.color.tinted.default.fg[2],
|
|
59
|
-
[vars.color.input.text.placeholder]: vars.color.tinted.default.border[4],
|
|
60
59
|
},
|
|
61
60
|
},
|
|
62
61
|
|
|
@@ -75,14 +74,12 @@ export const element: string = _style(layers.primitives, {
|
|
|
75
74
|
[`${root}:not([data-invalid]) &:disabled`]: {
|
|
76
75
|
vars: {
|
|
77
76
|
[vars.color.input.text.fg]: vars.color.tinted.default.border[4],
|
|
78
|
-
[vars.color.input.text.placeholder]: vars.color.tinted.default.border[1],
|
|
79
77
|
},
|
|
80
78
|
},
|
|
81
79
|
|
|
82
80
|
[`${root}[data-invalid] &`]: {
|
|
83
81
|
vars: {
|
|
84
82
|
[vars.color.input.text.fg]: vars.color.tinted.critical.fg[2],
|
|
85
|
-
[vars.color.input.text.placeholder]: vars.color.tinted.critical.border[2],
|
|
86
83
|
},
|
|
87
84
|
},
|
|
88
85
|
|
|
@@ -101,10 +98,14 @@ export const element: string = _style(layers.primitives, {
|
|
|
101
98
|
[`${root}[data-invalid] &:disabled`]: {
|
|
102
99
|
vars: {
|
|
103
100
|
[vars.color.input.text.fg]: vars.color.tinted.critical.border[4],
|
|
104
|
-
[vars.color.input.text.placeholder]: vars.color.tinted.critical.border[2],
|
|
105
101
|
},
|
|
106
102
|
},
|
|
107
103
|
},
|
|
104
|
+
|
|
105
|
+
vars: {
|
|
106
|
+
[vars.color.input.text.placeholder]:
|
|
107
|
+
`color-mix(in srgb, transparent, ${vars.color.input.text.fg} 50%)`,
|
|
108
|
+
},
|
|
108
109
|
})
|
|
109
110
|
|
|
110
111
|
export const presentation: string = _style(layers.primitives, {
|