diff --git a/dist/index.d.ts b/dist/index.d.ts
index cf899fa204912a35c556a9fa94c58e6ac37ab6f9..db4f388608b7d0912ab12ac167796cf5df73a44b 100644
--- a/dist/index.d.ts
+++ b/dist/index.d.ts
@@ -1,9 +1,15 @@
///
import * as React$1 from 'react';
-import { RefObject, CSSProperties, SVGAttributes, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, ReactHTML, DetailedHTMLFactory, HTMLAttributes, useEffect } from 'react';
+import { JSX, RefObject, CSSProperties, SVGAttributes, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, DetailedHTMLProps, HTMLAttributes, useEffect } from 'react';
import { Easing as Easing$1, SpringOptions } from 'popmotion';
import { ScrollOptions, InViewOptions } from '@motionone/dom';
+type HTMLTagName = {
+ [K in keyof JSX.IntrinsicElements]: JSX.IntrinsicElements[K] extends HTMLAttributes ? K : never
+}[keyof JSX.IntrinsicElements];
+
+type HTMLIntrinsicElements = Pick;
+
/**
* @public
*/
@@ -2670,22 +2676,22 @@ declare type ForwardRefComponent = ForwardRefExoticComponent = F extends DetailedHTMLFactory ? P : never;
-declare type UnwrapFactoryElement = F extends DetailedHTMLFactory ? P : never;
+declare type UnwrapFactoryAttributes = F extends DetailedHTMLProps ? P : never;
+declare type UnwrapFactoryElement = F extends DetailedHTMLProps, infer P> ? P : never;
declare type HTMLAttributesWithoutMotionProps, Element extends HTMLElement> = {
[K in Exclude]?: Attributes[K];
};
/**
* @public
*/
-declare type HTMLMotionProps = HTMLAttributesWithoutMotionProps, UnwrapFactoryElement> & MotionProps;
+declare type HTMLMotionProps = HTMLAttributesWithoutMotionProps, UnwrapFactoryElement> & MotionProps;
/**
* Motion-optimised versions of React's HTML components.
*
* @public
*/
declare type HTMLMotionComponents = {
- [K in HTMLElements]: ForwardRefComponent, HTMLMotionProps>;
+ [K in HTMLElements]: ForwardRefComponent, HTMLMotionProps>;
};
interface SVGAttributesWithoutMotionProps extends Pick, Exclude, keyof MotionProps>> {
@@ -3023,7 +3029,7 @@ interface Props$1 {
*
* @public
*/
- as?: keyof ReactHTML;
+ as?: keyof HTMLIntrinsicElements;
/**
* The value in the list that this component represents.
*
@@ -3045,7 +3051,7 @@ interface Props {
*
* @public
*/
- as?: keyof ReactHTML;
+ as?: keyof HTMLIntrinsicElements;
/**
* The axis to reorder along. By default, items will be draggable on this axis.
* To make draggable on both axes, set ``