@delightui/components 0.1.8 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import './resources/themes/base.css';
3
+ import './resources/themes/light.css';
3
4
  import './resources/themes/dark.css';
4
- import './resources/themes/custom.css';
5
5
  declare function App(): React.JSX.Element;
6
6
  export default App;
@@ -1,5 +1,6 @@
1
1
  import { LinkProps as RouteLinkProps } from 'react-router-dom';
2
- export type NavLinkProps = Omit<RouteLinkProps, 'to'> & {
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 type { ButtonProps } from '../../atoms';
2
- export interface TabItemProps extends ButtonProps {
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
+ };