hans-ui-design-lib 1.0.30 → 1.0.32
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.cjs.js +55 -69
- package/dist/index.css +1 -1
- package/dist/index.d.ts +79 -1
- package/dist/index.es.js +10554 -10261
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -736,10 +736,11 @@ export declare type HansModalProps = InferPropsFromSchema<typeof HansModalSchema
|
|
|
736
736
|
onClose?: (reason: ModalCloseReason) => void;
|
|
737
737
|
onConfirm?: () => void;
|
|
738
738
|
onCancel?: () => void;
|
|
739
|
+
onPageChange?: (page: number) => void;
|
|
739
740
|
portalTarget?: HTMLElement | null;
|
|
740
741
|
};
|
|
741
742
|
|
|
742
|
-
export declare const HansModalPropsList: Partial<Record<"customClasses" | "loading" | "title" | "isOpen" | "footer" | "header" | "dismissible" | "closeButtonLabel" | "defaultOpen" | "modalSize" | "modalColor" | "modalVariant" | "placement" | "showOverlay" | "closeOnBackdropClick" | "closeOnEscape" | "lockBodyScroll" | "showHeaderDivider" | "showFooterDivider" | "renderBody" | "disablePortal" | "confirmLabel" | "cancelLabel" | "confirmButtonColor" | "cancelButtonColor" | "dismissButtonColor" | "overlayClassName" | "dialogClassName" | "headerClassName" | "bodyClassName" | "footerClassName" | "contentClassName" | "maxBodyHeight", "string" | "number" | "boolean" | "function" | "json" | "method" | undefined>>;
|
|
743
|
+
export declare const HansModalPropsList: Partial<Record<"customClasses" | "loading" | "title" | "isOpen" | "footer" | "header" | "paginationColor" | "paginationSize" | "dismissible" | "closeButtonLabel" | "defaultOpen" | "modalSize" | "modalColor" | "modalVariant" | "placement" | "showOverlay" | "closeOnBackdropClick" | "closeOnEscape" | "closeOnConfirm" | "closeOnCancel" | "lockBodyScroll" | "showHeaderDivider" | "showFooterDivider" | "renderBody" | "disablePortal" | "confirmLabel" | "cancelLabel" | "confirmButtonColor" | "cancelButtonColor" | "dismissButtonColor" | "confirmDisabled" | "cancelDisabled" | "confirmLoading" | "paginationCurrentPage" | "paginationTotalPages" | "paginationDisabled" | "paginationAriaLabel" | "paginationFirstLabel" | "paginationPreviousLabel" | "paginationNextLabel" | "paginationLastLabel" | "paginationPageLabel" | "paginationFirstContent" | "paginationPreviousContent" | "paginationNextContent" | "paginationLastContent" | "paginationMaxVisiblePages" | "paginationActivePageVariant" | "paginationInactivePageVariant" | "overlayClassName" | "dialogClassName" | "headerClassName" | "bodyClassName" | "footerClassName" | "contentClassName" | "maxBodyHeight", "string" | "number" | "boolean" | "function" | "json" | "method" | undefined>>;
|
|
743
744
|
|
|
744
745
|
declare const HansModalSchema: {
|
|
745
746
|
readonly isOpen: "boolean";
|
|
@@ -767,6 +768,8 @@ declare const HansModalSchema: {
|
|
|
767
768
|
readonly showOverlay: "boolean";
|
|
768
769
|
readonly closeOnBackdropClick: "boolean";
|
|
769
770
|
readonly closeOnEscape: "boolean";
|
|
771
|
+
readonly closeOnConfirm: "boolean";
|
|
772
|
+
readonly closeOnCancel: "boolean";
|
|
770
773
|
readonly lockBodyScroll: "boolean";
|
|
771
774
|
readonly showHeaderDivider: "boolean";
|
|
772
775
|
readonly showFooterDivider: "boolean";
|
|
@@ -788,6 +791,39 @@ declare const HansModalSchema: {
|
|
|
788
791
|
readonly type: "custom";
|
|
789
792
|
readonly ref: Color;
|
|
790
793
|
};
|
|
794
|
+
readonly confirmDisabled: "boolean";
|
|
795
|
+
readonly cancelDisabled: "boolean";
|
|
796
|
+
readonly confirmLoading: "boolean";
|
|
797
|
+
readonly paginationCurrentPage: "number";
|
|
798
|
+
readonly paginationTotalPages: "number";
|
|
799
|
+
readonly paginationDisabled: "boolean";
|
|
800
|
+
readonly paginationAriaLabel: "string";
|
|
801
|
+
readonly paginationFirstLabel: "string";
|
|
802
|
+
readonly paginationPreviousLabel: "string";
|
|
803
|
+
readonly paginationNextLabel: "string";
|
|
804
|
+
readonly paginationLastLabel: "string";
|
|
805
|
+
readonly paginationPageLabel: "string";
|
|
806
|
+
readonly paginationFirstContent: "node";
|
|
807
|
+
readonly paginationPreviousContent: "node";
|
|
808
|
+
readonly paginationNextContent: "node";
|
|
809
|
+
readonly paginationLastContent: "node";
|
|
810
|
+
readonly paginationMaxVisiblePages: "number";
|
|
811
|
+
readonly paginationColor: {
|
|
812
|
+
readonly type: "custom";
|
|
813
|
+
readonly ref: Color;
|
|
814
|
+
};
|
|
815
|
+
readonly paginationSize: {
|
|
816
|
+
readonly type: "custom";
|
|
817
|
+
readonly ref: Size;
|
|
818
|
+
};
|
|
819
|
+
readonly paginationActivePageVariant: {
|
|
820
|
+
readonly type: "custom";
|
|
821
|
+
readonly ref: Variant;
|
|
822
|
+
};
|
|
823
|
+
readonly paginationInactivePageVariant: {
|
|
824
|
+
readonly type: "custom";
|
|
825
|
+
readonly ref: Variant;
|
|
826
|
+
};
|
|
791
827
|
readonly customClasses: "string";
|
|
792
828
|
readonly overlayClassName: "string";
|
|
793
829
|
readonly dialogClassName: "string";
|
|
@@ -798,6 +834,48 @@ declare const HansModalSchema: {
|
|
|
798
834
|
readonly maxBodyHeight: "string";
|
|
799
835
|
};
|
|
800
836
|
|
|
837
|
+
export declare const HansPagination: default_4.MemoExoticComponent<(props: HansPaginationProps) => JSX.Element | null>;
|
|
838
|
+
|
|
839
|
+
export declare type HansPaginationProps = InferPropsFromSchema<typeof HansPaginationSchema> & Omit<default_4.HTMLAttributes<HTMLElement>, 'children' | 'color' | 'onChange'> & {
|
|
840
|
+
onPageChange?: (page: number) => void;
|
|
841
|
+
};
|
|
842
|
+
|
|
843
|
+
export declare const HansPaginationPropsList: Partial<Record<"customClasses" | "disabled" | "ariaLabel" | "currentPage" | "totalPages" | "firstLabel" | "previousLabel" | "nextLabel" | "lastLabel" | "pageLabel" | "firstContent" | "previousContent" | "nextContent" | "lastContent" | "maxVisiblePages" | "paginationColor" | "paginationSize" | "activePageVariant" | "inactivePageVariant", "string" | "number" | "boolean" | "function" | "json" | "method" | undefined>>;
|
|
844
|
+
|
|
845
|
+
declare const HansPaginationSchema: {
|
|
846
|
+
readonly currentPage: "number";
|
|
847
|
+
readonly totalPages: "number";
|
|
848
|
+
readonly disabled: "boolean";
|
|
849
|
+
readonly ariaLabel: "string";
|
|
850
|
+
readonly firstLabel: "string";
|
|
851
|
+
readonly previousLabel: "string";
|
|
852
|
+
readonly nextLabel: "string";
|
|
853
|
+
readonly lastLabel: "string";
|
|
854
|
+
readonly pageLabel: "string";
|
|
855
|
+
readonly firstContent: "node";
|
|
856
|
+
readonly previousContent: "node";
|
|
857
|
+
readonly nextContent: "node";
|
|
858
|
+
readonly lastContent: "node";
|
|
859
|
+
readonly maxVisiblePages: "number";
|
|
860
|
+
readonly paginationColor: {
|
|
861
|
+
readonly type: "custom";
|
|
862
|
+
readonly ref: Color;
|
|
863
|
+
};
|
|
864
|
+
readonly paginationSize: {
|
|
865
|
+
readonly type: "custom";
|
|
866
|
+
readonly ref: Size;
|
|
867
|
+
};
|
|
868
|
+
readonly activePageVariant: {
|
|
869
|
+
readonly type: "custom";
|
|
870
|
+
readonly ref: Variant;
|
|
871
|
+
};
|
|
872
|
+
readonly inactivePageVariant: {
|
|
873
|
+
readonly type: "custom";
|
|
874
|
+
readonly ref: Variant;
|
|
875
|
+
};
|
|
876
|
+
readonly customClasses: "string";
|
|
877
|
+
};
|
|
878
|
+
|
|
801
879
|
export declare const HansPopup: default_4.MemoExoticComponent<(props: HansPopupProps) => JSX.Element>;
|
|
802
880
|
|
|
803
881
|
export declare type HansPopupProps = InferPropsFromSchema<typeof HansPopupSchema> & Omit<default_4.HTMLAttributes<HTMLDivElement>, 'children'> & {
|