@hybr1d-tech/charizard 0.6.62 → 0.6.68
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/components/alert/Alert.d.ts +18 -0
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/alert/types.d.ts +7 -0
- package/dist/components/date-picker/DatePicker.d.ts +5 -3
- package/dist/components/index.d.ts +2 -0
- package/dist/components/modal/ModalFooter.d.ts +1 -0
- package/dist/components/task-cards/helper.d.ts +1 -0
- package/dist/components/task-cards/types.d.ts +13 -1
- package/dist/components/upload/Upload.d.ts +52 -0
- package/dist/components/upload/helper.d.ts +2 -0
- package/dist/components/upload/index.d.ts +1 -0
- package/dist/components/upload/types.d.ts +15 -0
- package/dist/components/upload/upload.stories.d.ts +7 -0
- package/dist/hybr1d-ui.js +4525 -4091
- package/dist/hybr1d-ui.umd.cjs +15 -14
- package/dist/style.css +1 -1
- package/package.json +15 -15
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AlertPropTypes } from './types';
|
|
2
|
+
|
|
3
|
+
export declare enum ALERT_TYPES {
|
|
4
|
+
DEFAULT = "default",
|
|
5
|
+
POSITIVE = "positive"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ALERT_ACTION_TYPES {
|
|
8
|
+
CLOSE = "close",
|
|
9
|
+
SHOW_MORE = "show-more"
|
|
10
|
+
}
|
|
11
|
+
export declare function Alert({ alertType, actionType, header, body }: AlertPropTypes): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const alertTypeMap: {
|
|
13
|
+
[key: string]: {
|
|
14
|
+
bg: string;
|
|
15
|
+
color: string;
|
|
16
|
+
icon: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Alert';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Matcher, PropsSingle } from 'react-day-picker';
|
|
2
2
|
import { Placement } from '@popperjs/core';
|
|
3
3
|
import { BUTTON_VARIANT } from '../index';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
interface DatePickerProps extends
|
|
5
|
+
interface DatePickerProps extends PropsSingle {
|
|
6
6
|
value?: Date | string;
|
|
7
7
|
onChange: (value?: Date | string) => void;
|
|
8
8
|
mode: 'single';
|
|
@@ -23,6 +23,8 @@ interface DatePickerProps extends DayPickerSingleProps {
|
|
|
23
23
|
popoverConfig?: {
|
|
24
24
|
placement?: Placement;
|
|
25
25
|
};
|
|
26
|
+
showOutsideDays?: boolean;
|
|
27
|
+
disabled?: Matcher | Matcher[];
|
|
26
28
|
}
|
|
27
|
-
export declare function DatePicker({ value, onChange, mode, variant, displayDateFormat, errorMsg, disableDatepicker, disabled, buttonVariant, customContainerStyles, popoverConfig, isError, ...props }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare function DatePicker({ value, onChange, mode, variant, displayDateFormat, errorMsg, disableDatepicker, disabled, buttonVariant, customContainerStyles, popoverConfig, isError, showOutsideDays, ...props }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
28
30
|
export {};
|
|
@@ -10,6 +10,7 @@ export type FooterButtons = Array<{
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
isLoading?: boolean;
|
|
12
12
|
loadingText?: string;
|
|
13
|
+
icon?: string;
|
|
13
14
|
}>;
|
|
14
15
|
export declare const mapVariant: (variant?: BUTTON_VARIANT | BUTTON_V2_VARIANT) => BUTTON_V2_VARIANT | undefined;
|
|
15
16
|
interface ModalFooterProps {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function getStatus(status: string): "pending" | "cancelled" | "declined" | "pending_second_approver" | "approved" | "unknown";
|
|
@@ -20,5 +20,17 @@ export interface ITaskObjectValue {
|
|
|
20
20
|
}
|
|
21
21
|
export interface ITaskDetails {
|
|
22
22
|
key: string;
|
|
23
|
-
value: string | ITaskObjectValue |
|
|
23
|
+
value: string | ITaskObjectValue | FileType[] | null;
|
|
24
24
|
}
|
|
25
|
+
interface FileType {
|
|
26
|
+
details: {
|
|
27
|
+
ext: string;
|
|
28
|
+
key: string;
|
|
29
|
+
type: string;
|
|
30
|
+
file_name: string;
|
|
31
|
+
icon?: string;
|
|
32
|
+
};
|
|
33
|
+
doc_link: string;
|
|
34
|
+
file_name: string;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { DOCS_TYPE } from './types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type UploadFileType = {
|
|
4
|
+
id?: string;
|
|
5
|
+
ext: string;
|
|
6
|
+
type: string;
|
|
7
|
+
url: string;
|
|
8
|
+
metaData?: {
|
|
9
|
+
fileName: string;
|
|
10
|
+
key: string;
|
|
11
|
+
};
|
|
12
|
+
key: string;
|
|
13
|
+
fileName: string;
|
|
14
|
+
isUploaded: boolean;
|
|
15
|
+
size: string;
|
|
16
|
+
setIntervalFunction?: any;
|
|
17
|
+
};
|
|
18
|
+
export declare enum UPLOAD_ALIGN_BTN_CONTENT {
|
|
19
|
+
LEFT = "flex-start",
|
|
20
|
+
CENTER = "center",
|
|
21
|
+
RIGHT = "flex-end"
|
|
22
|
+
}
|
|
23
|
+
interface UploadProps {
|
|
24
|
+
type: DOCS_TYPE;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
getUploadDoc: (arg: any) => void;
|
|
27
|
+
setIsUploading?: (arg: any) => void;
|
|
28
|
+
customComponent?: React.ReactChild;
|
|
29
|
+
fileUploadLimit?: number;
|
|
30
|
+
isMultiple?: boolean;
|
|
31
|
+
singleFileClassName?: string;
|
|
32
|
+
fileContainerClassName?: string;
|
|
33
|
+
uploadFileLimit?: number;
|
|
34
|
+
uploadBtnClassName?: string;
|
|
35
|
+
alignContent?: UPLOAD_ALIGN_BTN_CONTENT;
|
|
36
|
+
showUploadIcon?: boolean;
|
|
37
|
+
additionalNode?: React.ReactElement;
|
|
38
|
+
addDocumentText?: string;
|
|
39
|
+
customUrl?: string;
|
|
40
|
+
beforeUploadHandler?: () => void;
|
|
41
|
+
inventoryId?: string | null;
|
|
42
|
+
softwareId?: string | null;
|
|
43
|
+
preLoadedFiles?: Array<UploadFileType>;
|
|
44
|
+
showFileList?: boolean;
|
|
45
|
+
acceptedFileTypes?: string;
|
|
46
|
+
extraSubtitleText?: string;
|
|
47
|
+
error?: string | null;
|
|
48
|
+
addDocumentSubtitle?: string;
|
|
49
|
+
handleImageUpload: (images: any[], type: DOCS_TYPE, key?: string, value?: string, customUrl?: string, inventoryId?: string | null, softwareId?: string | null) => Promise<UploadFileType[]>;
|
|
50
|
+
}
|
|
51
|
+
export declare function Upload({ getUploadDoc, setIsUploading, customComponent, fileUploadLimit, type, isMultiple, uploadFileLimit, singleFileClassName, fileContainerClassName, uploadBtnClassName, alignContent, showUploadIcon, additionalNode, disabled, addDocumentText, customUrl, beforeUploadHandler, extraSubtitleText, inventoryId, softwareId, preLoadedFiles, showFileList, acceptedFileTypes, error, addDocumentSubtitle, handleImageUpload, }: UploadProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Upload } from './Upload';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum DOCS_TYPE {
|
|
2
|
+
USER_DOCS = "user_document",
|
|
3
|
+
COMPANY_DOCS = "company_document",
|
|
4
|
+
IDENTIFICATION_DOC = "identification_document",
|
|
5
|
+
COMMENT_DOCS = "comment_document",
|
|
6
|
+
ORDER_DOC = "order_document",
|
|
7
|
+
SOFTWARE_DOCS = "software_document",
|
|
8
|
+
SOFTWARE_LOGO = "software_logo",
|
|
9
|
+
INVENTORY_DOCS = "inventory_document",
|
|
10
|
+
INVENTORY_DOCS_EQUIPMENT = "equipment",
|
|
11
|
+
INVENTORY_DOCS_FINANCE = "finance",
|
|
12
|
+
USER_OFFBOARDING_DOCS = "user_offboarding_document",
|
|
13
|
+
LEAVE_DOCS = "leave_document",
|
|
14
|
+
INTEGRATION_DOCS = "integration_document"
|
|
15
|
+
}
|