jb-core 0.23.0 → 0.24.0
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/package.json
CHANGED
package/react/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { DetailedHTMLProps } from "react";
|
|
2
|
-
type ReactElementStandardProps = DetailedHTMLProps<React.HTMLAttributes<
|
|
3
|
-
export type JBElementStandardProps = Omit<ReactElementStandardProps
|
|
2
|
+
type ReactElementStandardProps<TElement = HTMLElement> = DetailedHTMLProps<React.HTMLAttributes<TElement>, TElement>;
|
|
3
|
+
export type JBElementStandardProps<TElement = HTMLElement, TOmit extends string = never> = Omit<ReactElementStandardProps<TElement>, 'ref' | 'key' | TOmit>;
|
|
4
4
|
export {};
|
package/react/lib/types/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DetailedHTMLProps } from "react";
|
|
2
2
|
|
|
3
|
-
type ReactElementStandardProps = DetailedHTMLProps<React.HTMLAttributes<
|
|
3
|
+
type ReactElementStandardProps<TElement=HTMLElement> = DetailedHTMLProps<React.HTMLAttributes<TElement>, TElement>;
|
|
4
4
|
// Mandatory props that every JB Design System web component react wrapper should support
|
|
5
|
-
export type JBElementStandardProps = Omit<ReactElementStandardProps
|
|
5
|
+
export type JBElementStandardProps<TElement=HTMLElement, TOmit extends string = never> = Omit<ReactElementStandardProps<TElement>, 'ref' | 'key' | TOmit>
|