@htmlplus/element 3.4.3 → 3.4.5
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/jsx-runtime.d.ts +9 -11
- package/dist/transformer.js +10 -4
- package/package.json +1 -1
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JSX as JSXReact } from '
|
|
1
|
+
import type { JSX as JSXReact } from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
3
|
type WithPart<T> = T & {
|
|
4
4
|
part?: string;
|
|
@@ -8,15 +8,13 @@ type IntrinsicElementsWithPart = {
|
|
|
8
8
|
[K in keyof JSXReact.IntrinsicElements]: WithPart<Omit<JSXReact.IntrinsicElements[K], 'ref'>>;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
declare
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
}
|
|
11
|
+
declare namespace JSX {
|
|
12
|
+
interface IntrinsicElements extends IntrinsicElementsWithPart {
|
|
13
|
+
host: WithPart<JSXReact.IntrinsicElements['div']> & {
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
slot: WithPart<JSXReact.IntrinsicElements['slot']> & {
|
|
17
|
+
onSlotChange?: (event: Event) => void;
|
|
18
|
+
};
|
|
21
19
|
}
|
|
22
20
|
}
|
package/dist/transformer.js
CHANGED
|
@@ -743,8 +743,6 @@ const customElement = (userOptions) => {
|
|
|
743
743
|
|
|
744
744
|
export type ${context.className}Properties = Filter<${context.className}PropertiesBase, ${context.className}PropertiesDisables>;
|
|
745
745
|
|
|
746
|
-
export type ${context.className}AttributesAndEvents = ${context.className}Attributes & ${context.className}Events;
|
|
747
|
-
|
|
748
746
|
export interface ${context.className}JSX extends ${context.className}Events, ${context.className}Properties { }
|
|
749
747
|
|
|
750
748
|
declare global {
|
|
@@ -765,13 +763,21 @@ const customElement = (userOptions) => {
|
|
|
765
763
|
"${context.elementTagName}": ${context.className}Attributes & ${context.className}Events;
|
|
766
764
|
}
|
|
767
765
|
}
|
|
766
|
+
|
|
767
|
+
declare module "react" {
|
|
768
|
+
namespace JSX {
|
|
769
|
+
interface IntrinsicElements {
|
|
770
|
+
"${context.elementTagName}": ${context.className}Attributes & ${context.className}Events & Omit<DetailedHTMLProps<HTMLAttributes<${context.elementInterfaceName}>, ${context.elementInterfaceName}>, keyof (${context.className}Attributes & ${context.className}Events)>;
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
}
|
|
768
774
|
|
|
769
|
-
${['@builder.io/qwik', 'inferno', 'preact', '
|
|
775
|
+
${['@builder.io/qwik', 'inferno', 'preact', 'solid-js']
|
|
770
776
|
.map((key) => `
|
|
771
777
|
declare module "${key}" {
|
|
772
778
|
namespace JSX {
|
|
773
779
|
interface IntrinsicElements {
|
|
774
|
-
"${context.elementTagName}": ${context.className}
|
|
780
|
+
"${context.elementTagName}": ${context.className}Attributes & ${context.className}Events & Omit<HTMLAttributes<${context.elementInterfaceName}>, keyof (${context.className}Attributes & ${context.className}Events)>;
|
|
775
781
|
}
|
|
776
782
|
}
|
|
777
783
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlplus/element",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.5",
|
|
4
4
|
"description": "A powerful library for building scalable, reusable, fast, tastable and lightweight design system for any web technologies. Powered by Web Component.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|