@onesaz/ui 0.4.3 → 0.4.5
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 +16 -6
- package/dist/index.js +406 -303
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -189,14 +189,22 @@ declare const H6: React.ForwardRefExoticComponent<Omit<TypographyProps, "variant
|
|
|
189
189
|
declare const Text: React.ForwardRefExoticComponent<Omit<TypographyProps, "variant"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
190
190
|
declare const Caption: React.ForwardRefExoticComponent<Omit<TypographyProps, "variant"> & React.RefAttributes<HTMLSpanElement>>;
|
|
191
191
|
|
|
192
|
+
type ButtonColor = 'default' | 'success' | 'warning' | 'error' | 'destructive';
|
|
192
193
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
193
194
|
variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
|
|
194
195
|
size?: 'default' | 'sm' | 'lg' | 'icon';
|
|
196
|
+
color?: ButtonColor;
|
|
195
197
|
/** Whether the button should take the full width of its container */
|
|
196
198
|
fullWidth?: boolean;
|
|
199
|
+
/** Shows a loading spinner and disables the button */
|
|
200
|
+
loading?: boolean;
|
|
201
|
+
/** Element rendered before the button label */
|
|
202
|
+
startIcon?: React.ReactNode;
|
|
203
|
+
/** Element rendered after the button label */
|
|
204
|
+
endIcon?: React.ReactNode;
|
|
197
205
|
}
|
|
198
206
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
199
|
-
interface IconButtonProps extends Omit<ButtonProps, 'size'> {
|
|
207
|
+
interface IconButtonProps extends Omit<ButtonProps, 'size' | 'startIcon' | 'endIcon'> {
|
|
200
208
|
/** Size of the icon button */
|
|
201
209
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
202
210
|
/** Whether the button is rounded (circular) */
|
|
@@ -210,6 +218,8 @@ interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
210
218
|
variant?: ButtonProps['variant'];
|
|
211
219
|
/** Size applied to all child buttons (can be overridden per button) */
|
|
212
220
|
size?: ButtonProps['size'];
|
|
221
|
+
/** Color applied to all child buttons (can be overridden per button) */
|
|
222
|
+
color?: ButtonColor;
|
|
213
223
|
/** Layout direction */
|
|
214
224
|
orientation?: 'horizontal' | 'vertical';
|
|
215
225
|
/** Disable all child buttons */
|
|
@@ -777,19 +787,19 @@ interface PaginationProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
777
787
|
}
|
|
778
788
|
declare const PaginationContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & React.RefAttributes<HTMLUListElement>>;
|
|
779
789
|
declare const PaginationItem: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
|
|
780
|
-
interface PaginationLinkProps extends
|
|
790
|
+
interface PaginationLinkProps extends ButtonProps {
|
|
781
791
|
isActive?: boolean;
|
|
782
792
|
}
|
|
783
793
|
declare const PaginationLink: React.ForwardRefExoticComponent<PaginationLinkProps & React.RefAttributes<HTMLButtonElement>>;
|
|
784
|
-
declare const PaginationPrevious: React.ForwardRefExoticComponent<
|
|
785
|
-
declare const PaginationNext: React.ForwardRefExoticComponent<
|
|
794
|
+
declare const PaginationPrevious: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
795
|
+
declare const PaginationNext: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
786
796
|
declare const PaginationEllipsis: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
787
797
|
declare const PaginationNamespace: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>> & {
|
|
788
798
|
Content: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & React.RefAttributes<HTMLUListElement>>;
|
|
789
799
|
Item: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
|
|
790
800
|
Link: React.ForwardRefExoticComponent<PaginationLinkProps & React.RefAttributes<HTMLButtonElement>>;
|
|
791
|
-
Previous: React.ForwardRefExoticComponent<
|
|
792
|
-
Next: React.ForwardRefExoticComponent<
|
|
801
|
+
Previous: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
802
|
+
Next: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
793
803
|
Ellipsis: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
794
804
|
};
|
|
795
805
|
|