hi-tm 0.0.1
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/README.md +0 -0
- package/dist/components/AutoComplete/AutoComplete.d.ts +4 -0
- package/dist/components/AutoComplete/AutoComplete.js +132 -0
- package/dist/components/AutoComplete/AutoCompleteMultiSelect.d.ts +4 -0
- package/dist/components/AutoComplete/AutoCompleteMultiSelect.js +155 -0
- package/dist/components/AutoComplete/TreeAutoComplete.d.ts +65 -0
- package/dist/components/AutoComplete/TreeAutoComplete.js +150 -0
- package/dist/components/Cards/AutoComplete&DropDown/CourierCard.d.ts +4 -0
- package/dist/components/Cards/AutoComplete&DropDown/CourierCard.js +13 -0
- package/dist/components/Cards/AutoComplete&DropDown/GeographyCard.d.ts +4 -0
- package/dist/components/Cards/AutoComplete&DropDown/GeographyCard.js +11 -0
- package/dist/components/Cards/AutoComplete&DropDown/ItemCard.d.ts +4 -0
- package/dist/components/Cards/AutoComplete&DropDown/ItemCard.js +12 -0
- package/dist/components/Cards/AutoComplete&DropDown/PersonCard.d.ts +4 -0
- package/dist/components/Cards/AutoComplete&DropDown/PersonCard.js +12 -0
- package/dist/components/Cards/AutoComplete&DropDown/SimpleCard.d.ts +4 -0
- package/dist/components/Cards/AutoComplete&DropDown/SimpleCard.js +11 -0
- package/dist/components/DropDowns/DropDown.d.ts +4 -0
- package/dist/components/DropDowns/DropDown.js +170 -0
- package/dist/components/DropDowns/DropDownItemsPerPage.d.ts +8 -0
- package/dist/components/DropDowns/DropDownItemsPerPage.js +44 -0
- package/dist/components/DropDowns/DropDownMultiSelect.d.ts +4 -0
- package/dist/components/DropDowns/DropDownMultiSelect.js +154 -0
- package/dist/components/Inputs/Buttons/Button.d.ts +14 -0
- package/dist/components/Inputs/Buttons/Button.js +39 -0
- package/dist/components/Inputs/DaysCheckBox.d.ts +4 -0
- package/dist/components/Inputs/DaysCheckBox.js +27 -0
- package/dist/components/Inputs/InputBarcode.d.ts +4 -0
- package/dist/components/Inputs/InputBarcode.js +148 -0
- package/dist/components/Inputs/InputCurrency.d.ts +25 -0
- package/dist/components/Inputs/InputCurrency.js +105 -0
- package/dist/components/Inputs/InputMultiselect.d.ts +20 -0
- package/dist/components/Inputs/InputMultiselect.js +106 -0
- package/dist/components/Inputs/InputPercent.d.ts +40 -0
- package/dist/components/Inputs/InputPercent.js +100 -0
- package/dist/components/Inputs/InputSearch.d.ts +4 -0
- package/dist/components/Inputs/InputSearch.js +35 -0
- package/dist/components/Inputs/RangePicker.d.ts +18 -0
- package/dist/components/Inputs/RangePicker.js +132 -0
- package/dist/components/Inputs/TextArea.d.ts +4 -0
- package/dist/components/Inputs/TextArea.js +61 -0
- package/dist/components/Inputs/TextInput.d.ts +4 -0
- package/dist/components/Inputs/TextInput.js +74 -0
- package/dist/components/Inputs/Toggle.d.ts +20 -0
- package/dist/components/Inputs/Toggle.js +83 -0
- package/dist/components/Layout/Footers/FooterLayout.d.ts +5 -0
- package/dist/components/Layout/Footers/FooterLayout.js +80 -0
- package/dist/components/Layout/Headers/HeaderLayout.d.ts +85 -0
- package/dist/components/Layout/Headers/HeaderLayout.js +333 -0
- package/dist/components/Layout/Headers/HeaderSelectBranch.d.ts +38 -0
- package/dist/components/Layout/Headers/HeaderSelectBranch.js +153 -0
- package/dist/components/Layout/Sidebar.d.ts +4 -0
- package/dist/components/Layout/Sidebar.js +304 -0
- package/dist/components/Pagination/PaginationPrimary.d.ts +8 -0
- package/dist/components/Pagination/PaginationPrimary.js +40 -0
- package/dist/components/Table/TableHeader.d.ts +17 -0
- package/dist/components/Table/TableHeader.js +73 -0
- package/dist/components/Table/TableHeaderDiv.d.ts +33 -0
- package/dist/components/Table/TableHeaderDiv.js +121 -0
- package/dist/components/Table/TableRow.d.ts +4 -0
- package/dist/components/Table/TableRow.js +156 -0
- package/dist/components/Table/TableRowCards/TableRowCardChildren.d.ts +11 -0
- package/dist/components/Table/TableRowCards/TableRowCardChildren.js +68 -0
- package/dist/components/Table/TableRowCards/TableRowCardSimple.d.ts +12 -0
- package/dist/components/Table/TableRowCards/TableRowCardSimple.js +66 -0
- package/dist/components/Table/TableRowDiv.d.ts +59 -0
- package/dist/components/Table/TableRowDiv.js +329 -0
- package/dist/components/Tabs/Tabs.d.ts +15 -0
- package/dist/components/Tabs/Tabs.js +45 -0
- package/dist/components/Wrapper/Bounded.d.ts +30 -0
- package/dist/components/Wrapper/Bounded.js +17 -0
- package/dist/components/Wrapper/GlobalWrapper.d.ts +6 -0
- package/dist/components/Wrapper/GlobalWrapper.js +12 -0
- package/dist/components/Wrapper/Modals/Modal.d.ts +9 -0
- package/dist/components/Wrapper/Modals/Modal.js +77 -0
- package/dist/components/Wrapper/TableBodyBounded.d.ts +5 -0
- package/dist/components/Wrapper/TableBodyBounded.js +50 -0
- package/dist/components/Wrapper/TableBodyBoundedDiv.d.ts +6 -0
- package/dist/components/Wrapper/TableBodyBoundedDiv.js +11 -0
- package/dist/components/Wrapper/TableBounded.d.ts +18 -0
- package/dist/components/Wrapper/TableBounded.js +22 -0
- package/dist/components/Wrapper/TableBoundedDiv.d.ts +6 -0
- package/dist/components/Wrapper/TableBoundedDiv.js +11 -0
- package/dist/components/sections/components/Inputs/Toggle.d.ts +6 -0
- package/dist/components/sections/components/Inputs/Toggle.js +19 -0
- package/dist/components/sections/components/Loader/BtnLoader.d.ts +3 -0
- package/dist/components/sections/components/Loader/BtnLoader.js +15 -0
- package/dist/components/sections/components/Modals/ModalProvider.d.ts +4 -0
- package/dist/components/sections/components/Modals/ModalProvider.js +10 -0
- package/dist/components/sections/components/Modals/ModalSearchContentInHeader.d.ts +4 -0
- package/dist/components/sections/components/Modals/ModalSearchContentInHeader.js +104 -0
- package/dist/components/sections/components/Tabs/BreadCrumbs.d.ts +4 -0
- package/dist/components/sections/components/Tabs/BreadCrumbs.js +23 -0
- package/dist/components/sections/components/Tabs/TabsComponent.d.ts +4 -0
- package/dist/components/sections/components/Tabs/TabsComponent.js +109 -0
- package/dist/helper/formatNumberWithCommas.d.ts +1 -0
- package/dist/helper/formatNumberWithCommas.js +32 -0
- package/dist/helper/getValueByTypeInList.d.ts +2 -0
- package/dist/helper/getValueByTypeInList.js +7 -0
- package/dist/helper/modalStyleOperationHandler.d.ts +3 -0
- package/dist/helper/modalStyleOperationHandler.js +12 -0
- package/dist/helper/truncateText.d.ts +2 -0
- package/dist/helper/truncateText.js +19 -0
- package/dist/helper/useBackAndEscModal.d.ts +24 -0
- package/dist/helper/useBackAndEscModal.js +26 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +85 -0
- package/dist/styles/globals.css +176 -0
- package/dist/tailwind-preset.d.ts +42 -0
- package/dist/tailwind-preset.js +43 -0
- package/dist/tailwind-preset.ts +41 -0
- package/dist/types/AutoComplete/AutoComplete.d.ts +22 -0
- package/dist/types/AutoComplete/AutoComplete.js +2 -0
- package/dist/types/AutoComplete/AutoCompleteMultiSelect.d.ts +27 -0
- package/dist/types/AutoComplete/AutoCompleteMultiSelect.js +2 -0
- package/dist/types/BreakCrumbTypes.d.ts +12 -0
- package/dist/types/BreakCrumbTypes.js +2 -0
- package/dist/types/Buttons/PrimaryButton.d.ts +14 -0
- package/dist/types/Buttons/PrimaryButton.js +2 -0
- package/dist/types/Cards/AutoComplete&DropDown/CardsType.d.ts +30 -0
- package/dist/types/Cards/AutoComplete&DropDown/CardsType.js +2 -0
- package/dist/types/DropDown/DropDownMultiSelectType.d.ts +31 -0
- package/dist/types/DropDown/DropDownMultiSelectType.js +2 -0
- package/dist/types/DropDown/DropDownType.d.ts +30 -0
- package/dist/types/DropDown/DropDownType.js +2 -0
- package/dist/types/Inputs/AutoCompleteType.d.ts +37 -0
- package/dist/types/Inputs/AutoCompleteType.js +2 -0
- package/dist/types/Inputs/DaysCheckBoxType.d.ts +13 -0
- package/dist/types/Inputs/DaysCheckBoxType.js +2 -0
- package/dist/types/Inputs/DropDownType.d.ts +24 -0
- package/dist/types/Inputs/DropDownType.js +2 -0
- package/dist/types/Inputs/InputBarcodeType.d.ts +17 -0
- package/dist/types/Inputs/InputBarcodeType.js +2 -0
- package/dist/types/Inputs/InputCurrencyType.d.ts +17 -0
- package/dist/types/Inputs/InputCurrencyType.js +2 -0
- package/dist/types/Inputs/InputMultiselectType.d.ts +19 -0
- package/dist/types/Inputs/InputMultiselectType.js +2 -0
- package/dist/types/Inputs/InputSearchType.d.ts +19 -0
- package/dist/types/Inputs/InputSearchType.js +2 -0
- package/dist/types/Inputs/RangePickerType.d.ts +14 -0
- package/dist/types/Inputs/RangePickerType.js +2 -0
- package/dist/types/Inputs/TextAreaType.d.ts +12 -0
- package/dist/types/Inputs/TextAreaType.js +2 -0
- package/dist/types/Inputs/TextInputType.d.ts +20 -0
- package/dist/types/Inputs/TextInputType.js +2 -0
- package/dist/types/Inputs/ToggleType.d.ts +11 -0
- package/dist/types/Inputs/ToggleType.js +2 -0
- package/dist/types/Layout/Headers/HeaderLayout.d.ts +75 -0
- package/dist/types/Layout/Headers/HeaderLayout.js +2 -0
- package/dist/types/Layout/Sidebar.d.ts +21 -0
- package/dist/types/Layout/Sidebar.js +2 -0
- package/dist/types/Layout/SidebarType.d.ts +42 -0
- package/dist/types/Layout/SidebarType.js +2 -0
- package/dist/types/Modals/ModalProviderType.d.ts +4 -0
- package/dist/types/Modals/ModalProviderType.js +2 -0
- package/dist/types/Modals/ModalSearchContentInHeaderPropsType.d.ts +10 -0
- package/dist/types/Modals/ModalSearchContentInHeaderPropsType.js +2 -0
- package/dist/types/Table/TableRowType.d.ts +41 -0
- package/dist/types/Table/TableRowType.js +2 -0
- package/dist/types/TabsType.d.ts +24 -0
- package/dist/types/TabsType.js +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +17 -0
- package/package.json +44 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface DropDownPropsType {
|
|
2
|
+
label: string;
|
|
3
|
+
data: ItemDropDown[];
|
|
4
|
+
valueHandler: (item: number[]) => void;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
required: boolean;
|
|
7
|
+
textError: string | null;
|
|
8
|
+
iconsSRC: {
|
|
9
|
+
arrowSRC: string;
|
|
10
|
+
deleteSRC: string;
|
|
11
|
+
};
|
|
12
|
+
maxSelection: 'max' | number;
|
|
13
|
+
value: number[];
|
|
14
|
+
disable?: boolean;
|
|
15
|
+
modalOpenHandler?: (isOpen: boolean) => void;
|
|
16
|
+
style?: {
|
|
17
|
+
width?: string;
|
|
18
|
+
margin?: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface ItemDropDown {
|
|
22
|
+
id: number;
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface InputBarcodeType {
|
|
2
|
+
required: boolean;
|
|
3
|
+
value: string | string[] | null;
|
|
4
|
+
placeholderText: string;
|
|
5
|
+
autoComplete: boolean;
|
|
6
|
+
textError: string | null;
|
|
7
|
+
disable: boolean;
|
|
8
|
+
type: 'single' | 'multi';
|
|
9
|
+
onChangeValueHandler: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
label?: string;
|
|
11
|
+
autoFocus?: boolean;
|
|
12
|
+
onBlurHandler?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
13
|
+
onFocusHandler?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
14
|
+
onKeyUpHandler?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
15
|
+
onKeyDownHandler?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
16
|
+
inlineStyle?: {};
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface InputCurrencyPropsType {
|
|
2
|
+
placeholder: string;
|
|
3
|
+
currencyUnit: string;
|
|
4
|
+
value: number | null;
|
|
5
|
+
required: boolean;
|
|
6
|
+
textError: string | null;
|
|
7
|
+
label: string;
|
|
8
|
+
autoComplete: boolean;
|
|
9
|
+
autoFocus: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
inlineCss?: object;
|
|
12
|
+
onChangeValueHandler: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
13
|
+
onBlurHandler?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
14
|
+
onFocusHandler?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
15
|
+
onKeyUpHandler?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
16
|
+
onKeyDownHandler?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface InputMultiselectProps {
|
|
2
|
+
label: string;
|
|
3
|
+
required: boolean;
|
|
4
|
+
placeholder: string;
|
|
5
|
+
textError: string | null;
|
|
6
|
+
autoComplete: boolean;
|
|
7
|
+
autoFocus: boolean;
|
|
8
|
+
value: string[] | null;
|
|
9
|
+
onChangeHandler: any;
|
|
10
|
+
onFocusHandler?: (event: React.FocusEvent) => void;
|
|
11
|
+
onKeyUpHandler?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
12
|
+
handleKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
13
|
+
onBlurHandler?: (event: React.FocusEvent) => void;
|
|
14
|
+
closeIconSRC: string;
|
|
15
|
+
style?: {
|
|
16
|
+
width?: string;
|
|
17
|
+
margin?: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface InputSearchProps {
|
|
2
|
+
searchSRC: string;
|
|
3
|
+
required: boolean;
|
|
4
|
+
placeholderText: string;
|
|
5
|
+
autoComplete: boolean;
|
|
6
|
+
autoFocus: boolean;
|
|
7
|
+
textError: string;
|
|
8
|
+
onChangeValueHandler: React.ChangeEventHandler<HTMLInputElement>;
|
|
9
|
+
onBlurHandler?: React.FocusEventHandler<HTMLInputElement>;
|
|
10
|
+
onFocusHandler?: React.FocusEventHandler<HTMLInputElement>;
|
|
11
|
+
onKeyUpHandler?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
12
|
+
onKeyDownHandler?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
13
|
+
label?: string;
|
|
14
|
+
style?: {
|
|
15
|
+
width?: string;
|
|
16
|
+
margin?: string;
|
|
17
|
+
height?: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface RangePickerProps {
|
|
2
|
+
label: string;
|
|
3
|
+
value: number | null;
|
|
4
|
+
required: boolean;
|
|
5
|
+
maxNumber: number;
|
|
6
|
+
minNumber: number;
|
|
7
|
+
step: number;
|
|
8
|
+
textError: string | null;
|
|
9
|
+
onChangeValueHandler: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
style?: {
|
|
11
|
+
width?: string;
|
|
12
|
+
margin?: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface TextAreaPropsType {
|
|
2
|
+
label: string;
|
|
3
|
+
placeholder: string;
|
|
4
|
+
required: boolean;
|
|
5
|
+
textError: string | null;
|
|
6
|
+
value: string | null;
|
|
7
|
+
onChangeValueHandler: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
8
|
+
style?: {
|
|
9
|
+
width?: string;
|
|
10
|
+
margin?: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface TextInputPropsType {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string | number | null;
|
|
4
|
+
required: boolean;
|
|
5
|
+
placeholderText: string;
|
|
6
|
+
autoComplete: boolean;
|
|
7
|
+
autoFocus: boolean;
|
|
8
|
+
textError: string;
|
|
9
|
+
onChangeValueHandler: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
onBlurHandler?: React.FocusEventHandler<HTMLInputElement>;
|
|
11
|
+
onFocusHandler?: React.FocusEventHandler<HTMLInputElement>;
|
|
12
|
+
onKeyUpHandler?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
13
|
+
onKeyDownHandler?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
type?: 'text' | 'number';
|
|
16
|
+
style?: {
|
|
17
|
+
width?: string;
|
|
18
|
+
margin?: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { SecondarySubset, SideBarItem } from '../Sidebar';
|
|
2
|
+
export interface HeaderLayoutProps {
|
|
3
|
+
appVersion: string;
|
|
4
|
+
branchName: string;
|
|
5
|
+
brandNameText: string;
|
|
6
|
+
sidebarHandler: () => void;
|
|
7
|
+
userFirstName: string;
|
|
8
|
+
userLastName: string;
|
|
9
|
+
logOutText: string;
|
|
10
|
+
logOutHandler: () => void;
|
|
11
|
+
modalData: userModalDataType[];
|
|
12
|
+
iconsSRC: iconsSRC;
|
|
13
|
+
cdnURL: string | undefined;
|
|
14
|
+
imageDefaultSRC: string;
|
|
15
|
+
userBranchesData: userBranchesDataType[];
|
|
16
|
+
selectBranchHandler: (item: userBranchesDataType) => void | userBranchesDataType;
|
|
17
|
+
sidebarData: SideBarItem[];
|
|
18
|
+
searchIconSRC: string;
|
|
19
|
+
modalItemOnClickHandler: (item: userModalDataType) => void | userModalDataType;
|
|
20
|
+
searchItemHandler: (item: SecondarySubset) => void | SecondarySubset;
|
|
21
|
+
refreshPageHandler: () => void;
|
|
22
|
+
languages: LanguageDataType[];
|
|
23
|
+
changeLanguageHandler: (language: LanguageDataType) => void;
|
|
24
|
+
}
|
|
25
|
+
export interface iconsSRC {
|
|
26
|
+
logoSRC: string;
|
|
27
|
+
iconProfileUserSRC: string;
|
|
28
|
+
logOutIconSRC: string;
|
|
29
|
+
arrowSRC: string;
|
|
30
|
+
refreshIconSRC: string;
|
|
31
|
+
notificationIconSRC: string;
|
|
32
|
+
languageIconSRC: string;
|
|
33
|
+
menuIconSRC: string;
|
|
34
|
+
trashIconSRC: string;
|
|
35
|
+
closeIconSRC: string;
|
|
36
|
+
}
|
|
37
|
+
export interface userModalDataType {
|
|
38
|
+
id: number;
|
|
39
|
+
title: string;
|
|
40
|
+
link: string;
|
|
41
|
+
iconSrc: string;
|
|
42
|
+
}
|
|
43
|
+
export interface userBranchesDataType {
|
|
44
|
+
id: number;
|
|
45
|
+
name: string;
|
|
46
|
+
urlName: string;
|
|
47
|
+
imageName: string;
|
|
48
|
+
logoName: string;
|
|
49
|
+
}
|
|
50
|
+
interface SelectBranchHeaderModalDataItem {
|
|
51
|
+
id: number;
|
|
52
|
+
title: string;
|
|
53
|
+
link: string;
|
|
54
|
+
iconSrc: string;
|
|
55
|
+
}
|
|
56
|
+
export interface SelectBranchHeaderProps {
|
|
57
|
+
brandNameText: string;
|
|
58
|
+
logoSRC: string;
|
|
59
|
+
userFirstName?: string;
|
|
60
|
+
userLastName?: string;
|
|
61
|
+
modalData: SelectBranchHeaderModalDataItem[];
|
|
62
|
+
logOutText: string;
|
|
63
|
+
logOutHandler: () => void;
|
|
64
|
+
modalItemOnClickHandler: (item: SelectBranchHeaderModalDataItem) => void;
|
|
65
|
+
iconProfileUserSRC: string;
|
|
66
|
+
logOutIconSRC: string;
|
|
67
|
+
arrowSRC: string;
|
|
68
|
+
}
|
|
69
|
+
export interface LanguageDataType {
|
|
70
|
+
id: number;
|
|
71
|
+
name: string;
|
|
72
|
+
showName: string;
|
|
73
|
+
flagIcon: string;
|
|
74
|
+
}
|
|
75
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface SideBarItem {
|
|
2
|
+
id: number;
|
|
3
|
+
imgSrc: string;
|
|
4
|
+
name: string;
|
|
5
|
+
keyNameLang: string;
|
|
6
|
+
FirstSubsets?: FirstSubset[];
|
|
7
|
+
}
|
|
8
|
+
export interface SecondarySubset {
|
|
9
|
+
id: number;
|
|
10
|
+
name: string;
|
|
11
|
+
routeURL: string;
|
|
12
|
+
iconSRC: string;
|
|
13
|
+
keyNameLang: string;
|
|
14
|
+
}
|
|
15
|
+
export interface FirstSubset {
|
|
16
|
+
id: number;
|
|
17
|
+
name: string;
|
|
18
|
+
keyNameLang: string;
|
|
19
|
+
iconSRC: string;
|
|
20
|
+
secondarySubsets?: SecondarySubset[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { TabDataType } from '../TabsType';
|
|
2
|
+
export interface SidebarProps {
|
|
3
|
+
isOpenSidebar: boolean;
|
|
4
|
+
logoSRC: string;
|
|
5
|
+
sidebarData: SideBarItem[];
|
|
6
|
+
tabsData: TabDataType[] | [];
|
|
7
|
+
activeItems: number[] | null;
|
|
8
|
+
deleteTabHandler: (id: number) => void;
|
|
9
|
+
tabRouteHandler: (route: string) => void;
|
|
10
|
+
isShowBreadCrumbs: boolean;
|
|
11
|
+
secondeSubsetHandler: (item: SecondarySubset) => void;
|
|
12
|
+
iconsSRC: {
|
|
13
|
+
breakCrumbsIconsSRC: string;
|
|
14
|
+
closeSidebarIconSRC: string;
|
|
15
|
+
arrowIconSRC: string;
|
|
16
|
+
trashIconSRC: string;
|
|
17
|
+
closeIconSRC: string;
|
|
18
|
+
};
|
|
19
|
+
onClickSideBar: (onClicked: boolean) => void;
|
|
20
|
+
}
|
|
21
|
+
export interface SecondarySubset {
|
|
22
|
+
id: number;
|
|
23
|
+
name: string;
|
|
24
|
+
routeURL: string;
|
|
25
|
+
iconSRC: string;
|
|
26
|
+
keyNameLang: string;
|
|
27
|
+
}
|
|
28
|
+
export interface FirstSubset {
|
|
29
|
+
id: number;
|
|
30
|
+
name: string;
|
|
31
|
+
keyNameLang: string;
|
|
32
|
+
iconSRC: string;
|
|
33
|
+
isOpen?: boolean;
|
|
34
|
+
secondarySubsets?: SecondarySubset[];
|
|
35
|
+
}
|
|
36
|
+
export interface SideBarItem {
|
|
37
|
+
id: number;
|
|
38
|
+
imgSrc: string;
|
|
39
|
+
name: string;
|
|
40
|
+
keyNameLang: string;
|
|
41
|
+
FirstSubsets?: FirstSubset[];
|
|
42
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { iconsSRC } from '../Layout/Headers/HeaderLayout';
|
|
2
|
+
import { SecondarySubset, SideBarItem } from '../Layout/SidebarType';
|
|
3
|
+
export interface ModalSearchContentInHeaderPropsType {
|
|
4
|
+
sidebarData: SideBarItem[];
|
|
5
|
+
searchIconSRC: string;
|
|
6
|
+
searchItemHandler: (item: SecondarySubset) => void;
|
|
7
|
+
setIsShowModalSearch: (value: boolean) => void;
|
|
8
|
+
isShowModalSearch: boolean;
|
|
9
|
+
iconsSRC: iconsSRC;
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface TableRowProps {
|
|
2
|
+
itemId?: number;
|
|
3
|
+
data: DataTRType[];
|
|
4
|
+
modalClickHandler: (params: {
|
|
5
|
+
modalItemId: number;
|
|
6
|
+
modalText: string;
|
|
7
|
+
itemId: number;
|
|
8
|
+
}) => void;
|
|
9
|
+
editClickHandler: (itemId: number) => void;
|
|
10
|
+
modalData: modalTRData[];
|
|
11
|
+
iconsSRC: {
|
|
12
|
+
editIcon: string;
|
|
13
|
+
menuIcon: string;
|
|
14
|
+
};
|
|
15
|
+
changeStatusToggleHandler: (status: 0 | 1) => void;
|
|
16
|
+
modalPosition: boolean;
|
|
17
|
+
isShowToggle: boolean;
|
|
18
|
+
type: 'simple' | 'hasChildren';
|
|
19
|
+
lastTrHeight?: string;
|
|
20
|
+
hasEdit?: boolean;
|
|
21
|
+
isShowModalProps?: boolean;
|
|
22
|
+
modalOpenHandler?: (isOpen: boolean) => void;
|
|
23
|
+
operation?: boolean;
|
|
24
|
+
trOnClickHandler?: (itemId: number) => void;
|
|
25
|
+
selectHandle?: (itemId: number) => void;
|
|
26
|
+
isShowCheckbox?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export type DataTRType = {
|
|
29
|
+
value: string;
|
|
30
|
+
itemId: number;
|
|
31
|
+
type: 'status' | 'text' | 'date' | 'price';
|
|
32
|
+
inlineCSS?: {};
|
|
33
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
34
|
+
statusClass?: 'danger' | 'success' | 'warning' | 'info' | 'primary' | 'secondary';
|
|
35
|
+
children?: DataTRType[];
|
|
36
|
+
};
|
|
37
|
+
export interface modalTRData {
|
|
38
|
+
text: string;
|
|
39
|
+
id: number;
|
|
40
|
+
class?: 'delete';
|
|
41
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface TabDataType {
|
|
2
|
+
id: number;
|
|
3
|
+
imgSrc: string;
|
|
4
|
+
name: string;
|
|
5
|
+
keyNameLang: string;
|
|
6
|
+
routeURL: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TabComponentPropsType {
|
|
9
|
+
isOpenSidebar: boolean;
|
|
10
|
+
tabsData: TabDataType[];
|
|
11
|
+
setActiveTabId: React.Dispatch<React.SetStateAction<number | null>>;
|
|
12
|
+
activeTabId: number | null;
|
|
13
|
+
deleteTabHandler: (id: number) => void;
|
|
14
|
+
tabRouteHandler: (route: string) => void;
|
|
15
|
+
setActiveSecondeSubsetID: React.Dispatch<React.SetStateAction<number | null>>;
|
|
16
|
+
setActiveTabName: React.Dispatch<React.SetStateAction<string | null>>;
|
|
17
|
+
iconsSRC: {
|
|
18
|
+
breakCrumbsIconsSRC: string;
|
|
19
|
+
closeSidebarIconSRC: string;
|
|
20
|
+
arrowIconSRC: string;
|
|
21
|
+
trashIconSRC: string;
|
|
22
|
+
closeIconSRC: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../types';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("../types"), exports);
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hi-tm",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"styles": "dist/styles/globals.css",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
"./preset": "./dist/tailwind-preset.ts"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "tsc && npx cpx \"src/styles/**/*\" dist/styles && npx cpx \"src/tailwind-preset.ts\" dist/",
|
|
11
|
+
"prepare": "npm run build"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"next": ">=13.0.0",
|
|
15
|
+
"react": ">=18.0.0",
|
|
16
|
+
"react-dom": ">=18.0.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/node": "^20",
|
|
20
|
+
"@types/react": "^18",
|
|
21
|
+
"@types/react-dom": "^18",
|
|
22
|
+
"cpx": "^1.5.0",
|
|
23
|
+
"eslint": "^8",
|
|
24
|
+
"eslint-config-next": "15.0.3",
|
|
25
|
+
"postcss": "^8",
|
|
26
|
+
"tailwindcss": "^3.4.1",
|
|
27
|
+
"typescript": "^5"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist/",
|
|
31
|
+
"/dist/styles/globals.css",
|
|
32
|
+
"/dist/tailwind-preset.ts"
|
|
33
|
+
],
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"next": ">=13.0.0",
|
|
36
|
+
"react": ">=18.0.0",
|
|
37
|
+
"react-dom": ">=18.0.0",
|
|
38
|
+
"tailwindcss": "^3.4.1"
|
|
39
|
+
},
|
|
40
|
+
"author": {
|
|
41
|
+
"name": "Mohammad Khaefi",
|
|
42
|
+
"email": "mkhaefi.work@gmail.com"
|
|
43
|
+
}
|
|
44
|
+
}
|