@godown/react 3.0.0-canary.16 → 3.0.0-canary.17
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/alert.d.ts +1 -1
- package/avatar.d.ts +1 -1
- package/badge.d.ts +12 -0
- package/badge.js +5 -0
- package/breath.d.ts +1 -1
- package/button.d.ts +1 -1
- package/card.d.ts +1 -1
- package/carousel.d.ts +1 -1
- package/details.d.ts +1 -1
- package/dialog.d.ts +1 -1
- package/divider.d.ts +1 -1
- package/dragbox.d.ts +1 -1
- package/flex.d.ts +1 -1
- package/form.d.ts +1 -1
- package/grid.d.ts +1 -1
- package/heading.d.ts +12 -0
- package/heading.js +5 -0
- package/index.d.ts +8 -6
- package/index.js +8 -6
- package/input.d.ts +1 -1
- package/layout.d.ts +1 -1
- package/lib/create.d.ts +3 -0
- package/lib/create.js +10 -0
- package/lib/intrinsic.d.ts +19 -0
- package/lib/intrinsic.js +1 -0
- package/link.d.ts +1 -1
- package/package.json +3 -4
- package/progress.d.ts +1 -1
- package/range.d.ts +1 -1
- package/rotate.d.ts +1 -1
- package/router.d.ts +1 -1
- package/select.d.ts +1 -1
- package/skeleton.d.ts +1 -1
- package/split.d.ts +1 -1
- package/switch.d.ts +1 -1
- package/text.d.ts +1 -1
- package/time.d.ts +1 -1
- package/tooltip.d.ts +1 -1
- package/typewriter.d.ts +1 -1
package/alert.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/alert.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/alert.js";
|
6
6
|
declare global {
|
package/avatar.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/avatar.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/avatar.js";
|
6
6
|
declare global {
|
package/badge.d.ts
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
import component from "godown/badge.js";
|
2
|
+
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
|
+
export default _default;
|
5
|
+
export * from "godown/badge.js";
|
6
|
+
declare global {
|
7
|
+
namespace JSX {
|
8
|
+
interface IntrinsicElements {
|
9
|
+
"godown-badge": IntrinsicTag<"godown-badge">;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
}
|
package/badge.js
ADDED
package/breath.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/breath.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/breath.js";
|
6
6
|
declare global {
|
package/button.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/button.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/button.js";
|
6
6
|
declare global {
|
package/card.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/card.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/card.js";
|
6
6
|
declare global {
|
package/carousel.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/carousel.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/carousel.js";
|
6
6
|
declare global {
|
package/details.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/details.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/details.js";
|
6
6
|
declare global {
|
package/dialog.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/dialog.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/dialog.js";
|
6
6
|
declare global {
|
package/divider.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/divider.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/divider.js";
|
6
6
|
declare global {
|
package/dragbox.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/dragbox.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/dragbox.js";
|
6
6
|
declare global {
|
package/flex.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/flex.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/flex.js";
|
6
6
|
declare global {
|
package/form.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/form.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component<any>,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component<any>, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/form.js";
|
6
6
|
declare global {
|
package/grid.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/grid.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/grid.js";
|
6
6
|
declare global {
|
package/heading.d.ts
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
import component from "godown/heading.js";
|
2
|
+
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
|
+
export default _default;
|
5
|
+
export * from "godown/heading.js";
|
6
|
+
declare global {
|
7
|
+
namespace JSX {
|
8
|
+
interface IntrinsicElements {
|
9
|
+
"godown-heading": IntrinsicTag<"godown-heading">;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
}
|
package/heading.js
ADDED
package/index.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
export { default as Alert } from "./alert.js";
|
2
2
|
export { default as Avatar } from "./avatar.js";
|
3
|
+
export { default as Badge } from "./badge.js";
|
3
4
|
export { default as Breath } from "./breath.js";
|
4
5
|
export { default as Button } from "./button.js";
|
5
6
|
export { default as Card } from "./card.js";
|
@@ -8,20 +9,21 @@ export { default as Details } from "./details.js";
|
|
8
9
|
export { default as Dialog } from "./dialog.js";
|
9
10
|
export { default as Divider } from "./divider.js";
|
10
11
|
export { default as Dragbox } from "./dragbox.js";
|
11
|
-
export { default as
|
12
|
+
export { default as Flex } from "./flex.js";
|
12
13
|
export { default as Form } from "./form.js";
|
13
|
-
export { default as
|
14
|
+
export { default as Grid } from "./grid.js";
|
15
|
+
export { default as Heading } from "./heading.js";
|
14
16
|
export { default as Input } from "./input.js";
|
15
17
|
export { default as Layout } from "./layout.js";
|
16
18
|
export { default as Link } from "./link.js";
|
17
19
|
export { default as Progress } from "./progress.js";
|
18
|
-
export { default as
|
20
|
+
export { default as Range } from "./range.js";
|
19
21
|
export { default as Rotate } from "./rotate.js";
|
20
22
|
export { default as Router } from "./router.js";
|
21
|
-
export { default as
|
23
|
+
export { default as Select } from "./select.js";
|
22
24
|
export { default as Skeleton } from "./skeleton.js";
|
23
|
-
export { default as
|
24
|
-
export { default as
|
25
|
+
export { default as Split } from "./split.js";
|
26
|
+
export { default as Switch } from "./switch.js";
|
25
27
|
export { default as Text } from "./text.js";
|
26
28
|
export { default as Time } from "./time.js";
|
27
29
|
export { default as Tooltip } from "./tooltip.js";
|
package/index.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
export { default as Alert } from "./alert.js";
|
2
2
|
export { default as Avatar } from "./avatar.js";
|
3
|
+
export { default as Badge } from "./badge.js";
|
3
4
|
export { default as Breath } from "./breath.js";
|
4
5
|
export { default as Button } from "./button.js";
|
5
6
|
export { default as Card } from "./card.js";
|
@@ -8,20 +9,21 @@ export { default as Details } from "./details.js";
|
|
8
9
|
export { default as Dialog } from "./dialog.js";
|
9
10
|
export { default as Divider } from "./divider.js";
|
10
11
|
export { default as Dragbox } from "./dragbox.js";
|
11
|
-
export { default as
|
12
|
+
export { default as Flex } from "./flex.js";
|
12
13
|
export { default as Form } from "./form.js";
|
13
|
-
export { default as
|
14
|
+
export { default as Grid } from "./grid.js";
|
15
|
+
export { default as Heading } from "./heading.js";
|
14
16
|
export { default as Input } from "./input.js";
|
15
17
|
export { default as Layout } from "./layout.js";
|
16
18
|
export { default as Link } from "./link.js";
|
17
19
|
export { default as Progress } from "./progress.js";
|
18
|
-
export { default as
|
20
|
+
export { default as Range } from "./range.js";
|
19
21
|
export { default as Rotate } from "./rotate.js";
|
20
22
|
export { default as Router } from "./router.js";
|
21
|
-
export { default as
|
23
|
+
export { default as Select } from "./select.js";
|
22
24
|
export { default as Skeleton } from "./skeleton.js";
|
23
|
-
export { default as
|
24
|
-
export { default as
|
25
|
+
export { default as Split } from "./split.js";
|
26
|
+
export { default as Switch } from "./switch.js";
|
25
27
|
export { default as Text } from "./text.js";
|
26
28
|
export { default as Time } from "./time.js";
|
27
29
|
export { default as Tooltip } from "./tooltip.js";
|
package/input.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/input.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/input.js";
|
6
6
|
declare global {
|
package/layout.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/layout.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/layout.js";
|
6
6
|
declare global {
|
package/lib/create.d.ts
ADDED
package/lib/create.js
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
import { createComponent } from "@lit/react";
|
2
|
+
import * as React from "react";
|
3
|
+
export default function (elementClass, events) {
|
4
|
+
return createComponent({
|
5
|
+
elementClass: elementClass,
|
6
|
+
tagName: elementClass.elementTagName,
|
7
|
+
react: React,
|
8
|
+
events,
|
9
|
+
});
|
10
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import type * as React from "react";
|
2
|
+
export type IntrinsicElement<T extends HTMLElement> = React.DetailedHTMLProps<React.HTMLAttributes<T> & Partial<Omit<T, keyof HTMLElement>>, T>;
|
3
|
+
export type IntrinsicTag<T extends keyof HTMLElementTagNameMap> = IntrinsicElement<HTMLElementTagNameMap[T]>;
|
4
|
+
/**
|
5
|
+
* With @types/react 18.3.15+:
|
6
|
+
*
|
7
|
+
* ```ts
|
8
|
+
* import { type IntrinsicMap } from "@godown/react/lib/intrinsic.js";
|
9
|
+
*
|
10
|
+
* declare module "react" {
|
11
|
+
* namespace JSX {
|
12
|
+
* interface IntrinsicElements extends IntrinsicMap {}
|
13
|
+
* }
|
14
|
+
* }
|
15
|
+
* ```
|
16
|
+
*/
|
17
|
+
export type IntrinsicMap<K extends keyof HTMLElementTagNameMap = keyof HTMLElementTagNameMap> = {
|
18
|
+
[P in K]: IntrinsicTag<P>;
|
19
|
+
};
|
package/lib/intrinsic.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/link.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/link.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/link.js";
|
6
6
|
declare global {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@godown/react",
|
3
|
-
"version": "3.0.0-canary.
|
3
|
+
"version": "3.0.0-canary.17",
|
4
4
|
"description": "React components for godown",
|
5
5
|
"type": "module",
|
6
6
|
"main": "index.js",
|
@@ -24,16 +24,15 @@
|
|
24
24
|
"dependencies": {
|
25
25
|
"@lit/react": "^1.0.5",
|
26
26
|
"react": "^18.0.0",
|
27
|
-
"godown": "^3.0.0-canary.
|
27
|
+
"godown": "^3.0.0-canary.17"
|
28
28
|
},
|
29
29
|
"publishConfig": {
|
30
30
|
"access": "public"
|
31
31
|
},
|
32
32
|
"files": [
|
33
|
-
"
|
33
|
+
"**/*.{js,d.ts}"
|
34
34
|
],
|
35
35
|
"scripts": {
|
36
|
-
"dev": "tsc --watch",
|
37
36
|
"check-types": "tsc --noEmit",
|
38
37
|
"clean": "tsc --build --clean",
|
39
38
|
"build": "tsc",
|
package/progress.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/progress.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/progress.js";
|
6
6
|
declare global {
|
package/range.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/range.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/range.js";
|
6
6
|
declare global {
|
package/rotate.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/rotate.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/rotate.js";
|
6
6
|
declare global {
|
package/router.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/router.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/router.js";
|
6
6
|
declare global {
|
package/select.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/select.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/select.js";
|
6
6
|
declare global {
|
package/skeleton.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/skeleton.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/skeleton.js";
|
6
6
|
declare global {
|
package/split.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/split.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/split.js";
|
6
6
|
declare global {
|
package/switch.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/switch.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/switch.js";
|
6
6
|
declare global {
|
package/text.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/text.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/text.js";
|
6
6
|
declare global {
|
package/time.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/time.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/time.js";
|
6
6
|
declare global {
|
package/tooltip.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/tooltip.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/tooltip.js";
|
6
6
|
declare global {
|
package/typewriter.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import component from "godown/typewriter.js";
|
2
2
|
import type { IntrinsicTag } from "./lib/intrinsic.js";
|
3
|
-
declare const _default: import("@lit/react").ReactWebComponent<component,
|
3
|
+
declare const _default: import("@lit/react").ReactWebComponent<component, object>;
|
4
4
|
export default _default;
|
5
5
|
export * from "godown/typewriter.js";
|
6
6
|
declare global {
|