@necto-react/components 1.4.0 → 1.4.3
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.cjs +171 -171
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -7
- package/dist/index.d.ts +0 -7
- package/dist/index.js +171 -171
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -32,13 +32,6 @@ type Primitives = {
|
|
|
32
32
|
[E in (typeof DOM.HTML_TAGS)[number] as E extends ElementType ? E : never]: ForwardRefExoticComponent<PrimitiveProps<E & ElementType>>;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
/**
|
|
36
|
-
* The public Primitive component for Necto.
|
|
37
|
-
*
|
|
38
|
-
* @param {PrimitiveProps<any>} props - Props for the polymorphic Primitive component.
|
|
39
|
-
* @param {Ref<any>} ref - Forwarded ref for the rendered element or cloned child.
|
|
40
|
-
* @returns {ReactElement | null} The rendered element or null.
|
|
41
|
-
*/
|
|
42
35
|
declare const Primitive: (<E extends ElementType = (typeof HTMLElements)['Div']>(props: PrimitiveProps<E> & {
|
|
43
36
|
ref?: Ref<any>;
|
|
44
37
|
}) => ReactElement | null) & FC<PrimitiveProps<ElementType>> & Primitives & {
|
package/dist/index.d.ts
CHANGED
|
@@ -32,13 +32,6 @@ type Primitives = {
|
|
|
32
32
|
[E in (typeof DOM.HTML_TAGS)[number] as E extends ElementType ? E : never]: ForwardRefExoticComponent<PrimitiveProps<E & ElementType>>;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
/**
|
|
36
|
-
* The public Primitive component for Necto.
|
|
37
|
-
*
|
|
38
|
-
* @param {PrimitiveProps<any>} props - Props for the polymorphic Primitive component.
|
|
39
|
-
* @param {Ref<any>} ref - Forwarded ref for the rendered element or cloned child.
|
|
40
|
-
* @returns {ReactElement | null} The rendered element or null.
|
|
41
|
-
*/
|
|
42
35
|
declare const Primitive: (<E extends ElementType = (typeof HTMLElements)['Div']>(props: PrimitiveProps<E> & {
|
|
43
36
|
ref?: Ref<any>;
|
|
44
37
|
}) => ReactElement | null) & FC<PrimitiveProps<ElementType>> & Primitives & {
|