@godown/react 3.7.3 → 3.7.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/index.d.ts CHANGED
@@ -24,6 +24,7 @@ export { default as Select } from "./select.js";
24
24
  export { default as Skeleton } from "./skeleton.js";
25
25
  export { default as Split } from "./split.js";
26
26
  export { default as Switch } from "./switch.js";
27
+ export { default as Tabs } from "./tabs.js";
27
28
  export { default as Text } from "./text.js";
28
29
  export { default as Time } from "./time.js";
29
30
  export { default as Tooltip } from "./tooltip.js";
package/index.js CHANGED
@@ -24,6 +24,7 @@ export { default as Select } from "./select.js";
24
24
  export { default as Skeleton } from "./skeleton.js";
25
25
  export { default as Split } from "./split.js";
26
26
  export { default as Switch } from "./switch.js";
27
+ export { default as Tabs } from "./tabs.js";
27
28
  export { default as Text } from "./text.js";
28
29
  export { default as Time } from "./time.js";
29
30
  export { default as Tooltip } from "./tooltip.js";
@@ -1,8 +1,10 @@
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>;
1
+ import type { WebComponentProps } from "@lit/react";
2
+ import type { DetailedHTMLProps, HTMLAttributes } from "react";
3
+ export type _IntrinsicElement<T extends HTMLElement> = DetailedHTMLProps<HTMLAttributes<T> & Partial<Omit<T, keyof HTMLElement>>, T>;
4
+ export type IntrinsicElement<T extends HTMLElement> = WebComponentProps<T>;
3
5
  export type IntrinsicTag<T extends keyof HTMLElementTagNameMap> = IntrinsicElement<HTMLElementTagNameMap[T]>;
4
6
  /**
5
- * With @types/react 18.3.15+:
7
+ * With `@types/react` 18.3.15+:
6
8
  *
7
9
  * ```ts
8
10
  * import { type IntrinsicMap } from "@godown/react/lib/intrinsic.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@godown/react",
3
- "version": "3.7.3",
3
+ "version": "3.7.5",
4
4
  "description": "React components for godown",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -10,6 +10,7 @@
10
10
  "./*.js": "./*.js",
11
11
  "./*": "./*.js"
12
12
  },
13
+ "homepage": "https://godown.js.org",
13
14
  "repository": {
14
15
  "type": "git",
15
16
  "url": "https://github.com/startracex/godown.git",
@@ -24,7 +25,7 @@
24
25
  "dependencies": {
25
26
  "@lit/react": "^1.0.5",
26
27
  "react": "^18.0.0",
27
- "godown": "^3.7.3"
28
+ "godown": "^3.7.5"
28
29
  },
29
30
  "publishConfig": {
30
31
  "access": "public"
package/tabs.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ import component from "godown/tabs.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/tabs.js";
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ "godown-tabs": IntrinsicTag<"godown-tabs">;
10
+ }
11
+ }
12
+ }
package/tabs.js ADDED
@@ -0,0 +1,5 @@
1
+ "use client";
2
+ import component from "godown/tabs.js";
3
+ import create from "./lib/create.js";
4
+ export default create(component);
5
+ export * from "godown/tabs.js";