@sanity/ui 2.10.7 → 2.10.9
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- 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/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -2
- package/src/core/components/menu/menuItem.tsx +1 -1
- package/src/core/primitives/textInput/textInput.tsx +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/ui",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.9",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"sanity",
|
|
6
6
|
"ui",
|
|
@@ -164,7 +164,6 @@
|
|
|
164
164
|
"eslint-plugin-boundaries": "^5.0.1",
|
|
165
165
|
"eslint-plugin-import": "^2.31.0",
|
|
166
166
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
167
|
-
"eslint-plugin-prettier": "^5.2.1",
|
|
168
167
|
"eslint-plugin-react": "^7.37.2",
|
|
169
168
|
"eslint-plugin-react-compiler": "19.0.0-beta-37ed2a7-20241206",
|
|
170
169
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
@@ -118,6 +118,7 @@ export const MenuItem = forwardRef(function MenuItem(
|
|
|
118
118
|
return (
|
|
119
119
|
<Selectable
|
|
120
120
|
data-ui="MenuItem"
|
|
121
|
+
role="menuitem"
|
|
121
122
|
{...restProps}
|
|
122
123
|
aria-pressed={as === 'button' && pressed}
|
|
123
124
|
data-pressed={as !== 'button' && pressed ? '' : undefined}
|
|
@@ -133,7 +134,6 @@ export const MenuItem = forwardRef(function MenuItem(
|
|
|
133
134
|
onMouseEnter={onItemMouseEnter}
|
|
134
135
|
onMouseLeave={onItemMouseLeave}
|
|
135
136
|
ref={setRef}
|
|
136
|
-
role="menuitem"
|
|
137
137
|
tabIndex={-1}
|
|
138
138
|
type={as === 'button' ? 'button' : undefined}
|
|
139
139
|
>
|
|
@@ -6,15 +6,15 @@ import {styled} from 'styled-components'
|
|
|
6
6
|
import {EMPTY_RECORD} from '../../constants'
|
|
7
7
|
import {useArrayProp, useCustomValidity} from '../../hooks'
|
|
8
8
|
import {
|
|
9
|
+
responsiveInputPaddingStyle,
|
|
9
10
|
responsiveRadiusStyle,
|
|
10
11
|
ResponsiveRadiusStyleProps,
|
|
11
|
-
responsiveInputPaddingStyle,
|
|
12
|
-
TextInputInputStyleProps,
|
|
13
|
-
TextInputRepresentationStyleProps,
|
|
14
|
-
TextInputResponsivePaddingStyleProps,
|
|
15
12
|
textInputBaseStyle,
|
|
16
13
|
textInputFontSizeStyle,
|
|
14
|
+
TextInputInputStyleProps,
|
|
17
15
|
textInputRepresentationStyle,
|
|
16
|
+
TextInputRepresentationStyleProps,
|
|
17
|
+
TextInputResponsivePaddingStyleProps,
|
|
18
18
|
textInputRootStyle,
|
|
19
19
|
} from '../../styles/internal'
|
|
20
20
|
import {useRootTheme} from '../../theme'
|
|
@@ -34,6 +34,7 @@ export type TextInputClearButtonProps = Omit<ButtonProps, 'as'> &
|
|
|
34
34
|
* @public
|
|
35
35
|
*/
|
|
36
36
|
export type TextInputType =
|
|
37
|
+
| 'search'
|
|
37
38
|
| 'date'
|
|
38
39
|
| 'datetime-local'
|
|
39
40
|
| 'email'
|