@sanity/ui 1.2.4 → 1.3.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"workshop:start": "http-server -a localhost -c-0 -p 1337 -s -P http://localhost:1337/index.html? dist"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@floating-ui/react-dom": "1.
|
|
52
|
+
"@floating-ui/react-dom": "1.1.1",
|
|
53
53
|
"@sanity/color": "^2.2.3",
|
|
54
54
|
"@sanity/icons": "^2.2.2",
|
|
55
55
|
"csstype": "^3.1.1",
|
|
56
|
-
"framer-motion": "^9.0.
|
|
56
|
+
"framer-motion": "^9.0.4",
|
|
57
57
|
"react-refractor": "^2.1.7"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"@babel/preset-env": "^7.20.2",
|
|
62
62
|
"@babel/preset-react": "^7.18.6",
|
|
63
63
|
"@babel/preset-typescript": "^7.18.6",
|
|
64
|
-
"@commitlint/cli": "^17.4.
|
|
65
|
-
"@commitlint/config-conventional": "^17.4.
|
|
64
|
+
"@commitlint/cli": "^17.4.4",
|
|
65
|
+
"@commitlint/config-conventional": "^17.4.4",
|
|
66
66
|
"@juggle/resize-observer": "^3.4.0",
|
|
67
67
|
"@sanity/pkg-utils": "^2.2.5",
|
|
68
68
|
"@sanity/semantic-release-preset": "^4.0.0",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"@testing-library/react": "^13.4.0",
|
|
73
73
|
"@types/jest": "^29.4.0",
|
|
74
74
|
"@types/jest-axe": "^3.5.5",
|
|
75
|
-
"@types/node": "^18.
|
|
75
|
+
"@types/node": "^18.14.0",
|
|
76
76
|
"@types/react": "^18.0.28",
|
|
77
|
-
"@types/react-dom": "^18.0.
|
|
77
|
+
"@types/react-dom": "^18.0.11",
|
|
78
78
|
"@types/react-is": "^17.0.3",
|
|
79
79
|
"@types/refractor": "^3.0.2",
|
|
80
80
|
"@types/styled-components": "^5.1.26",
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
"@typescript-eslint/eslint-plugin": "^5.52.0",
|
|
83
83
|
"@typescript-eslint/parser": "^5.52.0",
|
|
84
84
|
"commitizen": "^4.3.0",
|
|
85
|
-
"cypress": "^12.
|
|
85
|
+
"cypress": "^12.6.0",
|
|
86
86
|
"cypress-real-events": "^1.7.6",
|
|
87
87
|
"cz-conventional-changelog": "^3.3.0",
|
|
88
|
-
"esbuild": "^0.17.
|
|
88
|
+
"esbuild": "^0.17.9",
|
|
89
89
|
"esbuild-register": "^3.4.2",
|
|
90
90
|
"eslint": "^8.34.0",
|
|
91
91
|
"eslint-config-prettier": "^8.6.0",
|
|
@@ -96,9 +96,9 @@
|
|
|
96
96
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
97
97
|
"http-server": "^14.1.1",
|
|
98
98
|
"husky": "^8.0.3",
|
|
99
|
-
"jest": "^29.4.
|
|
99
|
+
"jest": "^29.4.3",
|
|
100
100
|
"jest-axe": "^7.0.0",
|
|
101
|
-
"jest-environment-jsdom": "^29.4.
|
|
101
|
+
"jest-environment-jsdom": "^29.4.3",
|
|
102
102
|
"lint-staged": "^13.1.2",
|
|
103
103
|
"module-alias": "^2.2.2",
|
|
104
104
|
"npm-run-all": "^4.1.5",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"prettier --write --cache --ignore-unknown"
|
|
147
147
|
]
|
|
148
148
|
},
|
|
149
|
-
"packageManager": "pnpm@7.27.
|
|
149
|
+
"packageManager": "pnpm@7.27.1",
|
|
150
150
|
"publishConfig": {
|
|
151
151
|
"access": "public"
|
|
152
152
|
},
|
|
@@ -65,6 +65,7 @@ export function selectableColorStyle(
|
|
|
65
65
|
|
|
66
66
|
@media (hover: hover) {
|
|
67
67
|
&:not([data-selected]) {
|
|
68
|
+
&[data-hovered],
|
|
68
69
|
&:hover {
|
|
69
70
|
${_colorVarsStyle(base, tone.hovered)}
|
|
70
71
|
}
|
|
@@ -94,6 +95,7 @@ export function selectableColorStyle(
|
|
|
94
95
|
|
|
95
96
|
@media (hover: hover) {
|
|
96
97
|
&:not([data-selected]) {
|
|
98
|
+
&[data-hovered],
|
|
97
99
|
&:hover {
|
|
98
100
|
${_colorVarsStyle(base, tone.hovered)}
|
|
99
101
|
}
|
|
@@ -72,6 +72,7 @@ export function buttonColorStyles(
|
|
|
72
72
|
'@media (hover: hover)': {
|
|
73
73
|
'&:hover': _colorVarsStyle(base, color.hovered),
|
|
74
74
|
'&:active': _colorVarsStyle(base, color.pressed),
|
|
75
|
+
'&[data-hovered]': _colorVarsStyle(base, color.hovered),
|
|
75
76
|
},
|
|
76
77
|
'&[data-selected]': _colorVarsStyle(base, color.pressed),
|
|
77
78
|
},
|
|
@@ -81,6 +81,7 @@ export function cardColorStyle(props: CardStyleProps & ThemeProps): FlattenSimpl
|
|
|
81
81
|
|
|
82
82
|
@media (hover: hover) {
|
|
83
83
|
&:not([data-pressed]):not([data-selected]) {
|
|
84
|
+
&[data-hovered],
|
|
84
85
|
&:hover {
|
|
85
86
|
${_colorVarsStyle(base, card.hovered, $checkered)}
|
|
86
87
|
}
|
|
@@ -123,6 +124,7 @@ export function cardColorStyle(props: CardStyleProps & ThemeProps): FlattenSimpl
|
|
|
123
124
|
|
|
124
125
|
@media (hover: hover) {
|
|
125
126
|
&:not([data-pressed]):not([data-selected]) {
|
|
127
|
+
&[data-hovered],
|
|
126
128
|
&:hover {
|
|
127
129
|
${_colorVarsStyle(base, card.hovered, $checkered)}
|
|
128
130
|
}
|