@delightui/components 0.1.9 → 0.1.10
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/dist/cjs/App.d.ts +1 -1
- package/dist/cjs/components/molecules/Nav/NavLink/NavLink.types.d.ts +2 -1
- package/dist/cjs/components/molecules/TabItem/TabItem.types.d.ts +7 -3
- package/dist/cjs/library.css +25175 -6340
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/App.d.ts +1 -1
- package/dist/esm/components/molecules/Nav/NavLink/NavLink.types.d.ts +2 -1
- package/dist/esm/components/molecules/TabItem/TabItem.types.d.ts +7 -3
- package/dist/esm/library.css +25175 -6340
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +7 -3
- package/package.json +1 -1
package/dist/esm/App.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LinkProps as RouteLinkProps } from 'react-router-dom';
|
|
2
|
-
|
|
2
|
+
import { ButtonProps } from '../../../atoms/Button/Button.types';
|
|
3
|
+
export type NavLinkProps = Omit<RouteLinkProps, 'to'> & Pick<ButtonProps, 'size' | 'style' | 'type'> & {
|
|
3
4
|
/**
|
|
4
5
|
* The destination URL or path for the navigation link.
|
|
5
6
|
* If the URL starts with "https", it will be treated as an external link and rendered as an <a> tag.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
1
|
+
import { HTMLAttributes, MouseEvent } from 'react';
|
|
2
|
+
export type TabItemProps = Omit<HTMLAttributes<HTMLButtonElement>, 'style'> & {
|
|
3
3
|
/**
|
|
4
4
|
* The tabs value.
|
|
5
5
|
* @remarks
|
|
@@ -16,4 +16,8 @@ export interface TabItemProps extends ButtonProps {
|
|
|
16
16
|
* True means that this tab will be displayed initially
|
|
17
17
|
*/
|
|
18
18
|
defaultTab?: boolean;
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Click event handler for the button.
|
|
21
|
+
*/
|
|
22
|
+
onClick?: (event?: MouseEvent<HTMLElement>) => void;
|
|
23
|
+
};
|