hiver-ui-kit-extended 1.0.0-beta.14 → 1.0.0-beta.16
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 +54 -0
- package/dist/env.hui.js +65 -3
- package/dist/env.hui.js.map +1 -1
- package/dist/env.prime.d.ts +85 -0
- package/dist/env.prime.js +83 -10
- package/dist/env.prime.js.map +1 -1
- package/dist/hiver-ui-kit-extended.css +122 -8
- package/package.json +1 -1
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';
|
|
@@ -100,6 +101,10 @@ export declare interface DialogProps {
|
|
|
100
101
|
variant?: 'standard' | 'confirmation';
|
|
101
102
|
/** Callback fired when the back button is clicked (for confirmation variant) */
|
|
102
103
|
onBack?: () => void;
|
|
104
|
+
/** If true, shows the back button in confirmation variant (defaults to true) */
|
|
105
|
+
showBackButton?: boolean;
|
|
106
|
+
/** If true, shows the close button (defaults to true) */
|
|
107
|
+
showCloseButton?: boolean;
|
|
103
108
|
className?: string;
|
|
104
109
|
style?: React.CSSProperties;
|
|
105
110
|
rest?: DialogProps_2;
|
|
@@ -126,8 +131,57 @@ declare interface HUIThemeProviderProps {
|
|
|
126
131
|
theme?: typeof HUITheme;
|
|
127
132
|
}
|
|
128
133
|
|
|
134
|
+
export declare const IconButton: (props: IconButtonProps) => JSX_2.Element;
|
|
135
|
+
|
|
136
|
+
declare type IconButtonColor = 'default' | 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info' | 'inherit';
|
|
137
|
+
|
|
138
|
+
export declare interface IconButtonProps {
|
|
139
|
+
/** The icon element to display (for HUI) */
|
|
140
|
+
children?: ReactNode;
|
|
141
|
+
/** PrimeReact icon class (e.g., 'pi pi-check') */
|
|
142
|
+
icon?: string;
|
|
143
|
+
/** Image source for custom icon (alternative to icon prop) */
|
|
144
|
+
image?: string;
|
|
145
|
+
/** Alt text for the image */
|
|
146
|
+
alt?: string;
|
|
147
|
+
/** The color of the button (for HUI) */
|
|
148
|
+
color?: IconButtonColor;
|
|
149
|
+
/** The size of the button (for HUI) */
|
|
150
|
+
size?: IconButtonSize | PrimeReactSize;
|
|
151
|
+
/** Whether the button is disabled */
|
|
152
|
+
disabled?: boolean;
|
|
153
|
+
/** Click handler */
|
|
154
|
+
onClick?: (event: MouseEvent_2<HTMLButtonElement>) => void;
|
|
155
|
+
/** Additional CSS classes */
|
|
156
|
+
className?: string;
|
|
157
|
+
/** Additional CSS classes for the icon wrapper */
|
|
158
|
+
iconWrapperClassName?: string;
|
|
159
|
+
/** Additional CSS classes for the icon/image */
|
|
160
|
+
iconClassName?: string;
|
|
161
|
+
/** Inline styles */
|
|
162
|
+
style?: CSSProperties;
|
|
163
|
+
/** The edge placement of the button (for HUI) */
|
|
164
|
+
edge?: 'start' | 'end' | false;
|
|
165
|
+
/** Aria label for accessibility */
|
|
166
|
+
ariaLabel?: string;
|
|
167
|
+
/** Aria label for accessibility (alternative) */
|
|
168
|
+
'aria-label'?: string;
|
|
169
|
+
/** Rounded corners */
|
|
170
|
+
rounded?: boolean;
|
|
171
|
+
/** Outlined style */
|
|
172
|
+
outlined?: boolean;
|
|
173
|
+
/** Text style (no background) */
|
|
174
|
+
text?: boolean;
|
|
175
|
+
/** Raised/elevated style */
|
|
176
|
+
raised?: boolean;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
declare type IconButtonSize = 'small' | 'medium' | 'large';
|
|
180
|
+
|
|
129
181
|
declare type IconType = ReactNode | string;
|
|
130
182
|
|
|
183
|
+
declare type PrimeReactSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
184
|
+
|
|
131
185
|
export declare type SxProps = React.CSSProperties | ((theme: any) => React.CSSProperties);
|
|
132
186
|
|
|
133
187
|
export declare const Tab: (props: TabProps) => JSX_2.Element;
|