@sanity/ui 4.0.0-static.33 → 4.0.0-static.34
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.ts +0 -14
- package/dist/index.js +225 -196
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/core/components/dialog/Dialog.tsx +13 -5
- package/src/core/components/dialog/DialogProvider.tsx +1 -1
- package/src/core/components/menu/Menu.test.tsx +6 -6
- package/src/core/components/menu/Menu.tsx +2 -2
- package/src/core/components/toast/Toast.test.tsx +6 -6
- package/src/core/components/toast/ToastProvider.tsx +2 -2
- package/src/core/components/tree/Tree.tsx +2 -2
- package/src/core/components/tree/TreeItem.tsx +4 -4
- package/src/core/helpers/props.ts +0 -9
- package/src/core/hooks/useResponsiveProp.ts +4 -17
- package/src/core/index.ts +0 -1
- package/src/core/primitives/avatar/Avatar.tsx +2 -2
- package/src/core/primitives/card/CardProvider.tsx +2 -11
- package/src/core/primitives/layer/Layer.test.tsx +6 -6
- package/src/core/primitives/layer/LayerProvider.tsx +3 -3
- package/src/core/primitives/popover/Popover.tsx +2 -2
- package/src/core/primitives/textInput/TextInput.tsx +73 -53
- package/src/core/primitives/tooltip/tooltipDelayGroup/TooltipDelayGroupProvider.tsx +1 -3
- package/src/core/utils/boundaryElement/BoundaryElement.test.tsx +6 -6
- package/src/core/utils/boundaryElement/BoundaryElementProvider.tsx +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1040,11 +1040,6 @@ export declare function focusFirstDescendant(element: HTMLElement): boolean
|
|
|
1040
1040
|
*/
|
|
1041
1041
|
export declare function focusLastDescendant(element: HTMLElement): boolean
|
|
1042
1042
|
|
|
1043
|
-
/**
|
|
1044
|
-
* @internal
|
|
1045
|
-
*/
|
|
1046
|
-
export declare function _getArrayProp<T>(val: T | T[] | undefined, defaultVal?: T[]): T[]
|
|
1047
|
-
|
|
1048
1043
|
/**
|
|
1049
1044
|
* @internal
|
|
1050
1045
|
*/
|
|
@@ -2467,15 +2462,6 @@ export declare function usePrefersDark(getServerSnapshot?: () => boolean): boole
|
|
|
2467
2462
|
*/
|
|
2468
2463
|
export declare function usePrefersReducedMotion(getServerSnapshot?: () => boolean): boolean
|
|
2469
2464
|
|
|
2470
|
-
/**
|
|
2471
|
-
* This API might change. DO NOT USE IN PRODUCTION.
|
|
2472
|
-
* @beta
|
|
2473
|
-
*/
|
|
2474
|
-
export declare function useResponsiveProp<T>(
|
|
2475
|
-
val: ResponsiveProp<T> | undefined,
|
|
2476
|
-
defaultVal?: Partial<Record<Breakpoint, T>>,
|
|
2477
|
-
): Partial<Record<Breakpoint, T>>
|
|
2478
|
-
|
|
2479
2465
|
/** @public */
|
|
2480
2466
|
export declare function useToast(): ToastContextValue
|
|
2481
2467
|
|