@sanity/ui 2.8.19 → 2.8.21
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 +12 -10
- package/dist/index.d.ts +12 -10
- package/dist/index.esm.js +425 -161
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +424 -160
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +425 -161
- package/dist/index.mjs.map +1 -1
- package/package.json +21 -21
- package/src/core/components/autocomplete/autocomplete.tsx +42 -31
- package/src/core/components/menu/menu.tsx +12 -10
- package/src/core/components/menu/menuButton.tsx +14 -36
- package/src/core/components/toast/toastProvider.tsx +5 -6
- package/src/core/components/toast/toastState.ts +6 -0
- package/src/core/constants.ts +1 -1
- package/src/core/hooks/useArrayProp.ts +14 -9
- package/src/core/primitives/avatar/avatarStack.tsx +2 -5
- package/src/core/utils/elementQuery/elementQuery.tsx +16 -17
- package/src/core/utils/layer/layerProvider.tsx +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1463,19 +1463,21 @@ export declare interface MenuProps extends ResponsivePaddingProps {
|
|
|
1463
1463
|
/**
|
|
1464
1464
|
* @deprecated Use `shouldFocus="first"` instead.
|
|
1465
1465
|
*/
|
|
1466
|
-
focusFirst?: boolean
|
|
1466
|
+
'focusFirst'?: boolean
|
|
1467
1467
|
/**
|
|
1468
1468
|
* @deprecated Use `shouldFocus="last"` instead.
|
|
1469
1469
|
*/
|
|
1470
|
-
focusLast?: boolean
|
|
1471
|
-
onClickOutside?: (event: MouseEvent) => void
|
|
1472
|
-
onEscape?: () => void
|
|
1473
|
-
onItemClick?: () => void
|
|
1474
|
-
onItemSelect?: (index: number) => void
|
|
1475
|
-
originElement?: HTMLElement | null
|
|
1476
|
-
registerElement?: (el: HTMLElement) => () => void
|
|
1477
|
-
shouldFocus?: 'first' | 'last' | null
|
|
1478
|
-
space?: number | number[]
|
|
1470
|
+
'focusLast'?: boolean
|
|
1471
|
+
'onClickOutside'?: (event: MouseEvent) => void
|
|
1472
|
+
'onEscape'?: () => void
|
|
1473
|
+
'onItemClick'?: () => void
|
|
1474
|
+
'onItemSelect'?: (index: number) => void
|
|
1475
|
+
'originElement'?: HTMLElement | null
|
|
1476
|
+
'registerElement'?: (el: HTMLElement) => () => void
|
|
1477
|
+
'shouldFocus'?: 'first' | 'last' | null
|
|
1478
|
+
'space'?: number | number[]
|
|
1479
|
+
'aria-labelledby'?: string
|
|
1480
|
+
'onBlurCapture'?: (event: FocusEvent) => void
|
|
1479
1481
|
}
|
|
1480
1482
|
|
|
1481
1483
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1463,19 +1463,21 @@ export declare interface MenuProps extends ResponsivePaddingProps {
|
|
|
1463
1463
|
/**
|
|
1464
1464
|
* @deprecated Use `shouldFocus="first"` instead.
|
|
1465
1465
|
*/
|
|
1466
|
-
focusFirst?: boolean
|
|
1466
|
+
'focusFirst'?: boolean
|
|
1467
1467
|
/**
|
|
1468
1468
|
* @deprecated Use `shouldFocus="last"` instead.
|
|
1469
1469
|
*/
|
|
1470
|
-
focusLast?: boolean
|
|
1471
|
-
onClickOutside?: (event: MouseEvent) => void
|
|
1472
|
-
onEscape?: () => void
|
|
1473
|
-
onItemClick?: () => void
|
|
1474
|
-
onItemSelect?: (index: number) => void
|
|
1475
|
-
originElement?: HTMLElement | null
|
|
1476
|
-
registerElement?: (el: HTMLElement) => () => void
|
|
1477
|
-
shouldFocus?: 'first' | 'last' | null
|
|
1478
|
-
space?: number | number[]
|
|
1470
|
+
'focusLast'?: boolean
|
|
1471
|
+
'onClickOutside'?: (event: MouseEvent) => void
|
|
1472
|
+
'onEscape'?: () => void
|
|
1473
|
+
'onItemClick'?: () => void
|
|
1474
|
+
'onItemSelect'?: (index: number) => void
|
|
1475
|
+
'originElement'?: HTMLElement | null
|
|
1476
|
+
'registerElement'?: (el: HTMLElement) => () => void
|
|
1477
|
+
'shouldFocus'?: 'first' | 'last' | null
|
|
1478
|
+
'space'?: number | number[]
|
|
1479
|
+
'aria-labelledby'?: string
|
|
1480
|
+
'onBlurCapture'?: (event: FocusEvent) => void
|
|
1479
1481
|
}
|
|
1480
1482
|
|
|
1481
1483
|
/**
|