jb-core 0.19.1 → 0.20.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
@@ -15,7 +15,7 @@
15
15
  "theme",
16
16
  "event"
17
17
  ],
18
- "version": "0.19.1",
18
+ "version": "0.20.0",
19
19
  "bugs": "https://github.com/javadbat/jb-core/issues",
20
20
  "license": "MIT",
21
21
  "files": [
@@ -1 +1,2 @@
1
1
  export * from './hooks/index.js';
2
+ export * from './types/index.js';
@@ -0,0 +1,3 @@
1
+ import type { DetailedHTMLProps } from "react";
2
+ export type ReactElementStandardProps = DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
3
+ export type JBElementStandardProps = Omit<ReactElementStandardProps, 'ref' | 'key'>;
@@ -1 +1,2 @@
1
- export * from './hooks/index.js';
1
+ export * from './hooks/index.js';
2
+ export * from './types/index.js';
@@ -0,0 +1,5 @@
1
+ import type { DetailedHTMLProps } from "react";
2
+
3
+ type ReactElementStandardProps = DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
4
+ // Mandatory props that every JB Design System web component react wrapper should support
5
+ export type JBElementStandardProps = Omit<ReactElementStandardProps, 'ref' | 'key'>