hiver-ui-kit-extended 1.0.0-beta.14 → 1.0.0-beta.15

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/env.hui.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { BreadCrumbProps } from 'primereact/breadcrumb';
2
2
  import { ButtonHTMLAttributes } from 'react';
3
3
  import { ChipProps as ChipProps_2 } from 'primereact/chip';
4
+ import { CSSProperties } from 'react';
4
5
  import { DataTableProps as DataTableProps_2 } from 'primereact/datatable';
5
6
  import { DialogProps as DialogProps_2 } from 'primereact/dialog';
6
7
  import { ElementType } from 'react';
@@ -126,8 +127,57 @@ declare interface HUIThemeProviderProps {
126
127
  theme?: typeof HUITheme;
127
128
  }
128
129
 
130
+ export declare const IconButton: (props: IconButtonProps) => JSX_2.Element;
131
+
132
+ declare type IconButtonColor = 'default' | 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info' | 'inherit';
133
+
134
+ export declare interface IconButtonProps {
135
+ /** The icon element to display (for HUI) */
136
+ children?: ReactNode;
137
+ /** PrimeReact icon class (e.g., 'pi pi-check') */
138
+ icon?: string;
139
+ /** Image source for custom icon (alternative to icon prop) */
140
+ image?: string;
141
+ /** Alt text for the image */
142
+ alt?: string;
143
+ /** The color of the button (for HUI) */
144
+ color?: IconButtonColor;
145
+ /** The size of the button (for HUI) */
146
+ size?: IconButtonSize | PrimeReactSize;
147
+ /** Whether the button is disabled */
148
+ disabled?: boolean;
149
+ /** Click handler */
150
+ onClick?: (event: MouseEvent_2<HTMLButtonElement>) => void;
151
+ /** Additional CSS classes */
152
+ className?: string;
153
+ /** Additional CSS classes for the icon wrapper */
154
+ iconWrapperClassName?: string;
155
+ /** Additional CSS classes for the icon/image */
156
+ iconClassName?: string;
157
+ /** Inline styles */
158
+ style?: CSSProperties;
159
+ /** The edge placement of the button (for HUI) */
160
+ edge?: 'start' | 'end' | false;
161
+ /** Aria label for accessibility */
162
+ ariaLabel?: string;
163
+ /** Aria label for accessibility (alternative) */
164
+ 'aria-label'?: string;
165
+ /** Rounded corners */
166
+ rounded?: boolean;
167
+ /** Outlined style */
168
+ outlined?: boolean;
169
+ /** Text style (no background) */
170
+ text?: boolean;
171
+ /** Raised/elevated style */
172
+ raised?: boolean;
173
+ }
174
+
175
+ declare type IconButtonSize = 'small' | 'medium' | 'large';
176
+
129
177
  declare type IconType = ReactNode | string;
130
178
 
179
+ declare type PrimeReactSize = 'sm' | 'md' | 'lg' | 'xl';
180
+
131
181
  export declare type SxProps = React.CSSProperties | ((theme: any) => React.CSSProperties);
132
182
 
133
183
  export declare const Tab: (props: TabProps) => JSX_2.Element;