glintly-ui 1.0.2 → 1.0.3
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/glintly-ui.cjs +459 -390
- package/dist/glintly-ui.d.ts +45 -5
- package/dist/glintly-ui.js +4068 -3910
- package/dist/glintly-ui.umd.cjs +455 -386
- package/package.json +1 -1
package/dist/glintly-ui.d.ts
CHANGED
|
@@ -134,6 +134,7 @@ export declare const BoxIcon: default_2.FC<{
|
|
|
134
134
|
height?: string;
|
|
135
135
|
width?: string;
|
|
136
136
|
style?: default_2.CSSProperties;
|
|
137
|
+
className?: string;
|
|
137
138
|
}>;
|
|
138
139
|
|
|
139
140
|
declare type BreakpointKey = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
@@ -158,9 +159,9 @@ export declare interface ButtonProps extends Omit<default_2.ButtonHTMLAttributes
|
|
|
158
159
|
|
|
159
160
|
declare type ButtonShadow = "sm" | "md" | "lg";
|
|
160
161
|
|
|
161
|
-
declare type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
162
|
+
export declare type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
162
163
|
|
|
163
|
-
declare type ButtonVariant = "primary" | "
|
|
164
|
+
export declare type ButtonVariant = "primary" | "outline" | "gray" | "ghost" | "danger";
|
|
164
165
|
|
|
165
166
|
export declare const Card: default_2.FC<CardProps>;
|
|
166
167
|
|
|
@@ -573,16 +574,55 @@ export { ListSectionHeader }
|
|
|
573
574
|
|
|
574
575
|
export declare const Modal: default_2.FC<ModalProps>;
|
|
575
576
|
|
|
576
|
-
declare interface ModalProps {
|
|
577
|
+
export declare interface ModalProps {
|
|
578
|
+
/** Whether the modal is open */
|
|
577
579
|
isOpen: boolean;
|
|
578
|
-
title
|
|
580
|
+
/** Modal title */
|
|
581
|
+
title?: default_2.ReactNode;
|
|
582
|
+
/** Modal content */
|
|
579
583
|
children: default_2.ReactNode;
|
|
584
|
+
/** Callback when modal is closed */
|
|
580
585
|
onClose: () => void;
|
|
586
|
+
/** Callback when confirm button is clicked */
|
|
581
587
|
onConfirm?: () => void;
|
|
588
|
+
/** Whether to show footer with confirm/cancel buttons */
|
|
582
589
|
showFooter?: boolean;
|
|
590
|
+
/** Confirm button text */
|
|
583
591
|
confirmText?: string;
|
|
592
|
+
/** Cancel button text */
|
|
584
593
|
cancelText?: string;
|
|
585
|
-
|
|
594
|
+
/** Modal size */
|
|
595
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "fullWidth";
|
|
596
|
+
/** Background color of the modal */
|
|
597
|
+
backgroundColor?: string;
|
|
598
|
+
/** Background color of the overlay/backdrop */
|
|
599
|
+
overlayColor?: string;
|
|
600
|
+
/** Custom className for the modal container */
|
|
601
|
+
className?: string;
|
|
602
|
+
/** Custom className for the overlay */
|
|
603
|
+
overlayClassName?: string;
|
|
604
|
+
/** Whether to center the modal vertically */
|
|
605
|
+
centered?: boolean;
|
|
606
|
+
/** Whether to show close button */
|
|
607
|
+
closable?: boolean;
|
|
608
|
+
/** Whether to close modal when clicking mask/overlay */
|
|
609
|
+
maskClosable?: boolean;
|
|
610
|
+
/** Custom close icon */
|
|
611
|
+
closeIcon?: default_2.ReactNode;
|
|
612
|
+
/** Custom footer */
|
|
613
|
+
footer?: default_2.ReactNode | null;
|
|
614
|
+
/** Z-index of the modal */
|
|
615
|
+
zIndex?: number;
|
|
616
|
+
/** Custom styles for modal container */
|
|
617
|
+
style?: default_2.CSSProperties;
|
|
618
|
+
/** Custom styles for overlay */
|
|
619
|
+
overlayStyle?: default_2.CSSProperties;
|
|
620
|
+
/** Width of the modal */
|
|
621
|
+
width?: string | number;
|
|
622
|
+
/** Whether to destroy modal on close */
|
|
623
|
+
destroyOnClose?: boolean;
|
|
624
|
+
/** Animation duration in milliseconds */
|
|
625
|
+
animationDuration?: number;
|
|
586
626
|
}
|
|
587
627
|
|
|
588
628
|
declare type ModeType = 'light' | 'dark';
|