@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/index.d.ts CHANGED
@@ -1037,7 +1037,7 @@ type NavItemProps = LiHTMLAttributes<HTMLElement> & {};
1037
1037
 
1038
1038
  declare const NavItem: (props: NavItemProps) => React$1.JSX.Element;
1039
1039
 
1040
- type NavLinkProps = Omit<LinkProps, 'to'> & {
1040
+ type NavLinkProps = Omit<LinkProps, 'to'> & Pick<ButtonProps, 'size' | 'style' | 'type'> & {
1041
1041
  /**
1042
1042
  * The destination URL or path for the navigation link.
1043
1043
  * If the URL starts with "https", it will be treated as an external link and rendered as an <a> tag.
@@ -1279,7 +1279,7 @@ interface TabContentProps {
1279
1279
 
1280
1280
  declare const TabContent: (props: TabContentProps) => React$1.JSX.Element | null;
1281
1281
 
1282
- interface TabItemProps extends ButtonProps {
1282
+ type TabItemProps = Omit<HTMLAttributes<HTMLButtonElement>, 'style'> & {
1283
1283
  /**
1284
1284
  * The tabs value.
1285
1285
  * @remarks
@@ -1296,7 +1296,11 @@ interface TabItemProps extends ButtonProps {
1296
1296
  * True means that this tab will be displayed initially
1297
1297
  */
1298
1298
  defaultTab?: boolean;
1299
- }
1299
+ /**
1300
+ * Click event handler for the button.
1301
+ */
1302
+ onClick?: (event?: MouseEvent<HTMLElement>) => void;
1303
+ };
1300
1304
 
1301
1305
  declare const TabItem: (props: TabItemProps) => React$1.JSX.Element;
1302
1306
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delightui/components",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "vite",