elseware-ui 2.25.1 → 2.26.1
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/build/compositions/navigation/index.d.ts +1 -0
- package/build/compositions/navigation/top-nav/TopNav.d.ts +2 -0
- package/build/compositions/navigation/top-nav/com/TNContext.d.ts +8 -0
- package/build/compositions/navigation/top-nav/com/TNDropdown.d.ts +8 -0
- package/build/compositions/navigation/top-nav/com/TNDropdownGroup.d.ts +12 -0
- package/build/compositions/navigation/top-nav/com/TNDropdownItem.d.ts +11 -0
- package/build/compositions/navigation/top-nav/com/TNDropdownTitle.d.ts +5 -0
- package/build/compositions/navigation/top-nav/com/TNGroup.d.ts +12 -0
- package/build/compositions/navigation/top-nav/com/TNItem.d.ts +10 -0
- package/build/compositions/navigation/top-nav/index.d.ts +7 -0
- package/build/compositions/navigation/top-nav/types.d.ts +37 -0
- package/build/index.d.ts +1 -1
- package/build/index.es.js +140 -6
- package/build/index.js +146 -5
- package/build/interfaces/components.d.ts +11 -1
- package/package.json +1 -1
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
|
|
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
|
}
|