qucoon-components 0.0.6 → 0.0.7
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 +252 -241
- package/dist/index.es.js +90580 -80332
- package/dist/style.css +1 -1
- package/dist/types/components/custom/bulkUploadLayout.d.ts +26 -0
- package/dist/types/components/custom/index.d.ts +2 -0
- package/dist/types/components/ui/datepicker/BaseDatePicker.d.ts +6 -4
- package/dist/types/components/ui/datepicker/BaseDateRangePicker.d.ts +8 -8
- package/dist/types/components/ui/modal/BaseModal.d.ts +2 -1
- package/dist/types/components/ui/modal/GlobalModal.d.ts +1 -1
- package/dist/types/components/ui/modal/index.d.ts +1 -0
- package/dist/types/components/ui/modal/v2/BaseModal.d.ts +26 -0
- package/dist/types/components/ui/modal/v2/ModalRenderer.d.ts +6 -0
- package/dist/types/components/ui/modal/v2/index.d.ts +7 -0
- package/dist/types/utilities/context/modalContext.d.ts +11 -9
- package/dist/types/utilities/enhancedTimeUtil.d.ts +105 -0
- package/dist/types/utilities/factory/modalFactory.d.ts +55 -7
- package/dist/types/utilities/helpers/bulkUploadFileGenerator.d.ts +22 -0
- package/dist/types/utilities/helpers/bulkUploadFileParser.d.ts +50 -0
- package/dist/types/utilities/helpers/index.d.ts +2 -0
- package/dist/types/utilities/hooks/index.d.ts +2 -0
- package/dist/types/utilities/hooks/useBulkUpload.d.ts +39 -0
- package/dist/types/utilities/hooks/useModal.d.ts +11 -11
- package/dist/types/utilities/hooks/useModalRegistration.d.ts +2 -7
- package/dist/types/utilities/hooks/useModalRegistrations.d.ts +1 -2
- package/dist/types/utilities/hooks/useNotification.d.ts +7 -7
- package/dist/types/utilities/index.d.ts +1 -0
- package/dist/types/utilities/modalUtil.d.ts +14 -10
- package/dist/types/utilities/timeUtil.d.ts +2 -0
- package/dist/types/utilities/types/modalTypes.d.ts +32 -15
- package/package.json +1 -1
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { ConfirmationModalLayoutProps } from '../../components/layouts/confirmationModalLayout';
|
|
2
|
-
import { NotificationModalLayoutProps } from '../../components/layouts/notificationModalLayout';
|
|
3
|
-
import { ModalEnum } from '../enums/modalEnum';
|
|
4
1
|
export type ModalPosition = 'center' | 'top-center' | 'bottom-center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'fullscreen';
|
|
5
2
|
export type StackingBehavior = 'overlay' | 'queue' | 'push' | 'replace';
|
|
6
3
|
export type ModalBaseConfig = {
|
|
@@ -16,18 +13,38 @@ export type ModalBaseConfig = {
|
|
|
16
13
|
autoClose?: boolean | number;
|
|
17
14
|
animation?: 'fade' | 'slide' | 'scale' | 'none';
|
|
18
15
|
containerClassName?: string;
|
|
16
|
+
containerStyle?: React.CSSProperties;
|
|
17
|
+
theme?: 'default' | 'minimal' | 'glass' | 'elevated';
|
|
18
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | 'auto';
|
|
19
|
+
cssProps?: Record<string, string>;
|
|
20
|
+
backdropClassName?: string;
|
|
21
|
+
backdropStyle?: React.CSSProperties;
|
|
19
22
|
};
|
|
20
|
-
export interface
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
config: ModalBaseConfig;
|
|
30
|
-
};
|
|
23
|
+
export interface ModalRegistrationConfig<TData = any, TResult = any> {
|
|
24
|
+
key: string;
|
|
25
|
+
component: React.ComponentType<TData>;
|
|
26
|
+
defaultConfig?: ModalBaseConfig;
|
|
27
|
+
containerClassName?: string;
|
|
28
|
+
containerStyle?: React.CSSProperties;
|
|
29
|
+
theme?: 'default' | 'minimal' | 'glass' | 'elevated';
|
|
30
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | 'auto';
|
|
31
|
+
cssProps?: Record<string, string>;
|
|
31
32
|
}
|
|
32
|
-
export
|
|
33
|
+
export type ModalTheme = 'default' | 'minimal' | 'glass' | 'elevated';
|
|
34
|
+
export type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'auto';
|
|
35
|
+
export type ModalId = string;
|
|
36
|
+
export type ModalType = string;
|
|
37
|
+
export type ModalAnimation = 'fade' | 'slide' | 'scale' | 'none';
|
|
38
|
+
export type ModalBackdrop = 'transparent' | 'blur' | 'solid';
|
|
39
|
+
export interface CommonModalProps {
|
|
40
|
+
id: string;
|
|
41
|
+
children: React.ReactNode;
|
|
42
|
+
position?: ModalPosition;
|
|
43
|
+
animation?: ModalAnimation;
|
|
44
|
+
backdrop?: ModalBackdrop;
|
|
45
|
+
closeOnBackdropClick?: boolean;
|
|
46
|
+
closeOnEscape?: boolean;
|
|
47
|
+
onClose?: () => void;
|
|
48
|
+
onFocus?: () => void;
|
|
33
49
|
}
|
|
50
|
+
export type ModalRegistry = any;
|