elseware-ui 2.25.1 → 2.26.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.
@@ -1,4 +1,14 @@
1
1
  import { HTMLAttributes } from "react";
2
- export interface BaseComponentProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
2
+ /**
3
+ * Contains ReactElements such as "children" using HTMLAttributes
4
+ *
5
+ * Contains DOMAttributes such as "onClick" using HTMLAttributes
6
+ *
7
+ * Define the custom types as follows for the custom DOM elements
8
+ * BaseComponentProps<HTMLDivElement> // default
9
+ * BaseComponentProps<HTMLButtonElement> // buttons
10
+ * BaseComponentProps<HTMLAnchorElement> // links
11
+ */
12
+ export interface BaseComponentProps<T extends HTMLElement = HTMLDivElement> extends Omit<HTMLAttributes<T>, "children"> {
3
13
  className?: string;
4
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elseware-ui",
3
- "version": "2.25.1",
3
+ "version": "2.26.0",
4
4
  "private": false,
5
5
  "description": "A modern and customizable React UI component library by elseware Technology.",
6
6
  "keywords": [