@mahatisystems/mahati-ui-components 1.2.1 → 1.3.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.
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+
3
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "danger" | "dotted" | "pill";
5
+ size?: "default" | "sm" | "md" | "lg" | "icon";
6
+ name?: string;
7
+ iconButton?: boolean;
8
+ iconButtonHeightClass?: string;
9
+ iconButtonWidthClass?: string;
10
+ iconButtonBgClass?: string;
11
+ iconButtonRadiusClass?: string;
12
+ iconButtonBgPaddingClass?: string;
13
+ iconButtonHoverBgClass?: string;
14
+ iconButtonHoverIntensity?: number;
15
+ }
16
+ interface IconButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
17
+ direction?: "row" | "col";
18
+ gapClass?: string;
19
+ }
20
+ /**
21
+ * IconButtonGroup - Groups icon buttons with consistent spacing
22
+ */
23
+ declare const IconButtonGroup: React.ForwardRefExoticComponent<IconButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
24
+ /**
25
+ * ButtonBase - Main button component
26
+ */
27
+ declare const ButtonBase: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
28
+ type ButtonWithGroup = typeof ButtonBase & {
29
+ IconButtonGroup: typeof IconButtonGroup;
30
+ };
31
+ declare const Button: ButtonWithGroup;
32
+
33
+ export { Button as MahatiButton };
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+
3
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "danger" | "dotted" | "pill";
5
+ size?: "default" | "sm" | "md" | "lg" | "icon";
6
+ name?: string;
7
+ iconButton?: boolean;
8
+ iconButtonHeightClass?: string;
9
+ iconButtonWidthClass?: string;
10
+ iconButtonBgClass?: string;
11
+ iconButtonRadiusClass?: string;
12
+ iconButtonBgPaddingClass?: string;
13
+ iconButtonHoverBgClass?: string;
14
+ iconButtonHoverIntensity?: number;
15
+ }
16
+ interface IconButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
17
+ direction?: "row" | "col";
18
+ gapClass?: string;
19
+ }
20
+ /**
21
+ * IconButtonGroup - Groups icon buttons with consistent spacing
22
+ */
23
+ declare const IconButtonGroup: React.ForwardRefExoticComponent<IconButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
24
+ /**
25
+ * ButtonBase - Main button component
26
+ */
27
+ declare const ButtonBase: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
28
+ type ButtonWithGroup = typeof ButtonBase & {
29
+ IconButtonGroup: typeof IconButtonGroup;
30
+ };
31
+ declare const Button: ButtonWithGroup;
32
+
33
+ export { Button as MahatiButton };