hiver-ui-kit-extended 1.0.0-beta.12 → 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 +50 -0
- package/dist/env.hui.js +65 -3
- package/dist/env.hui.js.map +1 -1
- package/dist/env.prime.d.ts +81 -0
- package/dist/env.prime.js +52 -1
- 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.prime.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { BreadCrumbProps } from 'primereact/breadcrumb';
|
|
2
2
|
import { ButtonHTMLAttributes } from 'react';
|
|
3
|
+
import { ButtonProps as ButtonProps_2 } from 'primereact/button';
|
|
3
4
|
import { ChipProps as ChipProps_2 } from 'primereact/chip';
|
|
5
|
+
import { CSSProperties } from 'react';
|
|
4
6
|
import { DataTableProps as DataTableProps_2 } from 'primereact/datatable';
|
|
5
7
|
import { default as default_2 } from 'react';
|
|
6
8
|
import { DialogProps as DialogProps_2 } from 'primereact/dialog';
|
|
@@ -106,8 +108,85 @@ export declare interface DialogProps {
|
|
|
106
108
|
rest?: DialogProps_2;
|
|
107
109
|
}
|
|
108
110
|
|
|
111
|
+
export declare const IconButton: default_2.FC<IconButtonProps_2>;
|
|
112
|
+
|
|
113
|
+
declare type IconButtonColor = 'default' | 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info' | 'inherit';
|
|
114
|
+
|
|
115
|
+
export declare interface IconButtonProps {
|
|
116
|
+
/** The icon element to display (for HUI) */
|
|
117
|
+
children?: ReactNode;
|
|
118
|
+
/** PrimeReact icon class (e.g., 'pi pi-check') */
|
|
119
|
+
icon?: string;
|
|
120
|
+
/** Image source for custom icon (alternative to icon prop) */
|
|
121
|
+
image?: string;
|
|
122
|
+
/** Alt text for the image */
|
|
123
|
+
alt?: string;
|
|
124
|
+
/** The color of the button (for HUI) */
|
|
125
|
+
color?: IconButtonColor;
|
|
126
|
+
/** The size of the button (for HUI) */
|
|
127
|
+
size?: IconButtonSize | PrimeReactSize;
|
|
128
|
+
/** Whether the button is disabled */
|
|
129
|
+
disabled?: boolean;
|
|
130
|
+
/** Click handler */
|
|
131
|
+
onClick?: (event: MouseEvent_2<HTMLButtonElement>) => void;
|
|
132
|
+
/** Additional CSS classes */
|
|
133
|
+
className?: string;
|
|
134
|
+
/** Additional CSS classes for the icon wrapper */
|
|
135
|
+
iconWrapperClassName?: string;
|
|
136
|
+
/** Additional CSS classes for the icon/image */
|
|
137
|
+
iconClassName?: string;
|
|
138
|
+
/** Inline styles */
|
|
139
|
+
style?: CSSProperties;
|
|
140
|
+
/** The edge placement of the button (for HUI) */
|
|
141
|
+
edge?: 'start' | 'end' | false;
|
|
142
|
+
/** Aria label for accessibility */
|
|
143
|
+
ariaLabel?: string;
|
|
144
|
+
/** Aria label for accessibility (alternative) */
|
|
145
|
+
'aria-label'?: string;
|
|
146
|
+
/** Rounded corners */
|
|
147
|
+
rounded?: boolean;
|
|
148
|
+
/** Outlined style */
|
|
149
|
+
outlined?: boolean;
|
|
150
|
+
/** Text style (no background) */
|
|
151
|
+
text?: boolean;
|
|
152
|
+
/** Raised/elevated style */
|
|
153
|
+
raised?: boolean;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare interface IconButtonProps_2 extends Omit<ButtonProps_2, 'icon' | 'size'> {
|
|
157
|
+
/** PrimeReact icon class (e.g., 'pi pi-check') */
|
|
158
|
+
icon?: string;
|
|
159
|
+
/** Image source for custom icon (alternative to icon prop) */
|
|
160
|
+
image?: string;
|
|
161
|
+
/** Alt text for the image */
|
|
162
|
+
alt?: string;
|
|
163
|
+
/** Click handler */
|
|
164
|
+
onClick?: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
|
|
165
|
+
/** Additional CSS classes for the button */
|
|
166
|
+
className?: string;
|
|
167
|
+
/** Additional CSS classes for the icon wrapper */
|
|
168
|
+
iconWrapperClassName?: string;
|
|
169
|
+
/** Additional CSS classes for the icon/image */
|
|
170
|
+
iconClassName?: string;
|
|
171
|
+
/** Aria label for accessibility */
|
|
172
|
+
ariaLabel?: string;
|
|
173
|
+
/** Whether the button is disabled */
|
|
174
|
+
disabled?: boolean;
|
|
175
|
+
/** Severity/color variant */
|
|
176
|
+
/** Size variant */
|
|
177
|
+
size?: Size;
|
|
178
|
+
/** Rounded corners */
|
|
179
|
+
rounded?: boolean;
|
|
180
|
+
/** Outlined style */
|
|
181
|
+
outlined?: boolean;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
declare type IconButtonSize = 'small' | 'medium' | 'large';
|
|
185
|
+
|
|
109
186
|
declare type IconType = ReactNode | string;
|
|
110
187
|
|
|
188
|
+
declare type PrimeReactSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
189
|
+
|
|
111
190
|
export declare const PrimeReactTheme: {
|
|
112
191
|
primitive: {
|
|
113
192
|
borderRadius: {
|
|
@@ -998,6 +1077,8 @@ declare interface PrimeReactThemeProviderProps {
|
|
|
998
1077
|
theme?: typeof PrimeReactTheme;
|
|
999
1078
|
}
|
|
1000
1079
|
|
|
1080
|
+
declare type Size = 'sm' | 'md' | 'lg' | 'xl';
|
|
1081
|
+
|
|
1001
1082
|
export declare type SxProps = React.CSSProperties | ((theme: any) => React.CSSProperties);
|
|
1002
1083
|
|
|
1003
1084
|
export declare const Tab: default_2.FC<TabProps>;
|
package/dist/env.prime.js
CHANGED
|
@@ -3657,5 +3657,56 @@ function Typography({
|
|
|
3657
3657
|
return /* @__PURE__ */ jsx(Component, { className: classes, ...rest, children: children || text });
|
|
3658
3658
|
}
|
|
3659
3659
|
|
|
3660
|
-
|
|
3660
|
+
const IconButton = ({
|
|
3661
|
+
icon,
|
|
3662
|
+
image,
|
|
3663
|
+
alt = "",
|
|
3664
|
+
onClick,
|
|
3665
|
+
className = "",
|
|
3666
|
+
iconWrapperClassName = "",
|
|
3667
|
+
iconClassName = "",
|
|
3668
|
+
ariaLabel,
|
|
3669
|
+
disabled = false,
|
|
3670
|
+
size = "md",
|
|
3671
|
+
rounded = false,
|
|
3672
|
+
outlined = false,
|
|
3673
|
+
text = false,
|
|
3674
|
+
raised = false,
|
|
3675
|
+
...rest
|
|
3676
|
+
}) => {
|
|
3677
|
+
const sizeClass = `icon-button--${size}`;
|
|
3678
|
+
const variantClasses = [
|
|
3679
|
+
outlined && "icon-button--outlined",
|
|
3680
|
+
text && "icon-button--text",
|
|
3681
|
+
rounded && "icon-button--rounded",
|
|
3682
|
+
raised && "icon-button--raised"
|
|
3683
|
+
].filter(Boolean).join(" ");
|
|
3684
|
+
if (image) {
|
|
3685
|
+
return /* @__PURE__ */ jsx(
|
|
3686
|
+
"button",
|
|
3687
|
+
{
|
|
3688
|
+
className: `icon-button ${sizeClass} ${variantClasses} ${className}`.trim(),
|
|
3689
|
+
onClick,
|
|
3690
|
+
"aria-label": ariaLabel,
|
|
3691
|
+
disabled,
|
|
3692
|
+
children: /* @__PURE__ */ jsx("div", { className: `icon-button__icon-wrapper ${iconWrapperClassName}`, children: /* @__PURE__ */ jsx("img", { src: image, alt, className: `icon-button__icon ${iconClassName}` }) })
|
|
3693
|
+
}
|
|
3694
|
+
);
|
|
3695
|
+
}
|
|
3696
|
+
return /* @__PURE__ */ jsx(
|
|
3697
|
+
Button$1,
|
|
3698
|
+
{
|
|
3699
|
+
icon,
|
|
3700
|
+
onClick,
|
|
3701
|
+
className,
|
|
3702
|
+
"aria-label": ariaLabel,
|
|
3703
|
+
disabled,
|
|
3704
|
+
rounded,
|
|
3705
|
+
outlined,
|
|
3706
|
+
...rest
|
|
3707
|
+
}
|
|
3708
|
+
);
|
|
3709
|
+
};
|
|
3710
|
+
|
|
3711
|
+
export { Breadcrumb, Button, Chip, DataTable, Dialog, IconButton, Tab, Tabs, TextField, Toast, Typography };
|
|
3661
3712
|
//# sourceMappingURL=env.prime.js.map
|