@codezee/sixtify-brahma 0.2.81 → 0.2.83
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/package.json +1 -1
- package/packages/shared-components/dist/AgGrid/ActionCell/ActionCell.js +2 -2
- package/packages/shared-components/dist/AgGrid/AgGrid.d.ts.map +1 -1
- package/packages/shared-components/dist/AgGrid/AgGrid.js +2 -1
- package/packages/shared-components/dist/AgGrid/AgGridStyleProvider.d.ts +4 -0
- package/packages/shared-components/dist/AgGrid/AgGridStyleProvider.d.ts.map +1 -0
- package/packages/shared-components/dist/AgGrid/AgGridStyleProvider.js +40 -0
- package/packages/shared-components/dist/AppBar/AppBar.d.ts.map +1 -1
- package/packages/shared-components/dist/AppBar/AppBar.js +4 -1
- package/packages/shared-components/dist/AppBar/AppBar.styled.d.ts +1 -1
- package/packages/shared-components/dist/AppBar/AppBar.styled.d.ts.map +1 -1
- package/packages/shared-components/dist/AppBar/AppBar.styled.js +35 -18
- package/packages/shared-components/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/packages/shared-components/dist/Breadcrumbs/Breadcrumbs.js +16 -1
- package/packages/shared-components/dist/CellSelectionTable/CellSelectionTable.d.ts.map +1 -1
- package/packages/shared-components/dist/CellSelectionTable/CellSelectionTable.js +16 -2
- package/packages/shared-components/dist/CellSelectionTable/hook/useOutsideClick.d.ts +4 -0
- package/packages/shared-components/dist/CellSelectionTable/hook/useOutsideClick.d.ts.map +1 -0
- package/packages/shared-components/dist/CellSelectionTable/hook/useOutsideClick.js +48 -0
- package/packages/shared-components/dist/Dialog/DeleteDialog.d.ts.map +1 -1
- package/packages/shared-components/dist/Dialog/DeleteDialog.js +2 -1
- package/packages/shared-components/dist/Dialog/Dialog.d.ts.map +1 -1
- package/packages/shared-components/dist/Dialog/Dialog.js +9 -2
- package/packages/shared-components/dist/Dialog/DialogActions.Styled.d.ts +10 -0
- package/packages/shared-components/dist/Dialog/DialogActions.Styled.d.ts.map +1 -0
- package/packages/shared-components/dist/Dialog/DialogActions.Styled.js +21 -0
- package/packages/shared-components/dist/Dialog/DialogContent.Styled.d.ts +3 -0
- package/packages/shared-components/dist/Dialog/DialogContent.Styled.d.ts.map +1 -0
- package/packages/shared-components/dist/Dialog/DialogContent.Styled.js +9 -0
- package/packages/shared-components/dist/Dialog/SaveDialog.d.ts.map +1 -1
- package/packages/shared-components/dist/Dialog/SaveDialog.js +2 -1
- package/packages/shared-components/dist/Drawer/Drawer.d.ts.map +1 -1
- package/packages/shared-components/dist/Drawer/Drawer.js +4 -1
- package/packages/shared-components/dist/Drawer/Drawer.styled.d.ts +2 -2
- package/packages/shared-components/dist/Drawer/Drawer.styled.d.ts.map +1 -1
- package/packages/shared-components/dist/Drawer/Drawer.styled.js +41 -36
- package/packages/shared-components/dist/FormFields/Autocomplete/Autocomplete.d.ts +2 -1
- package/packages/shared-components/dist/FormFields/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/packages/shared-components/dist/FormFields/Autocomplete/Autocomplete.js +2 -2
- package/packages/shared-components/dist/FormFields/DatePicker/DatePicker.d.ts +2 -1
- package/packages/shared-components/dist/FormFields/DatePicker/DatePicker.d.ts.map +1 -1
- package/packages/shared-components/dist/FormFields/DatePicker/DatePicker.js +24 -7
- package/packages/shared-components/dist/FormFields/DateTimePicker/DateTimePicker.d.ts.map +1 -1
- package/packages/shared-components/dist/FormFields/DateTimePicker/DateTimePicker.js +26 -9
- package/packages/shared-components/dist/Layouts/ButtonContainer.d.ts +8 -0
- package/packages/shared-components/dist/Layouts/ButtonContainer.d.ts.map +1 -0
- package/packages/shared-components/dist/Layouts/ButtonContainer.js +12 -0
- package/packages/shared-components/dist/Layouts/FormGridLayout.d.ts +2 -1
- package/packages/shared-components/dist/Layouts/FormGridLayout.d.ts.map +1 -1
- package/packages/shared-components/dist/Layouts/FormGridLayout.js +9 -3
- package/packages/shared-components/dist/Layouts/MasterPageLayout.d.ts +15 -0
- package/packages/shared-components/dist/Layouts/MasterPageLayout.d.ts.map +1 -0
- package/packages/shared-components/dist/Layouts/MasterPageLayout.js +26 -0
- package/packages/shared-components/dist/Layouts/index.d.ts +2 -0
- package/packages/shared-components/dist/Layouts/index.d.ts.map +1 -1
- package/packages/shared-components/dist/Layouts/index.js +2 -0
- package/packages/shared-components/dist/Tooltip/Tooltip.d.ts.map +1 -1
- package/packages/shared-components/dist/Tooltip/Tooltip.js +13 -2
- package/packages/shared-components/dist/UserProfileMenu/UserProfileMenu.js +1 -1
- package/packages/shared-components/dist/utils/hooks/useDialogActions.d.ts +1 -1
- package/packages/shared-components/dist/utils/hooks/useDialogActions.d.ts.map +1 -1
- package/packages/shared-components/dist/utils/hooks/useGetDeviceType.d.ts +5 -0
- package/packages/shared-components/dist/utils/hooks/useGetDeviceType.d.ts.map +1 -0
- package/packages/shared-components/dist/utils/hooks/useGetDeviceType.js +20 -0
- package/packages/shared-components/dist/utils/index.d.ts +1 -0
- package/packages/shared-components/dist/utils/index.d.ts.map +1 -1
- package/packages/shared-components/dist/utils/index.js +1 -0
- package/packages/shared-components/dist/utils/theme/typography.d.ts.map +1 -1
- package/packages/shared-components/dist/utils/theme/typography.js +44 -11
|
@@ -28,6 +28,7 @@ export type AutocompleteProps<P extends FieldValues> = UseControllerProps<P> & O
|
|
|
28
28
|
}) => JSX.Element;
|
|
29
29
|
getOptionLabel?: (option: string) => string;
|
|
30
30
|
defaultOption?: AutocompleteValue<Option, boolean, boolean, boolean>;
|
|
31
|
+
disableClearable?: boolean;
|
|
31
32
|
};
|
|
32
|
-
export declare function Autocomplete<P extends FieldValues>({ control, defaultValue, name, required, label, multiple, disabled, options, rules, loading, helperText, error, withLabel, placeholder, freeSolo, isShowOptionsOnType, isShowSelectAll, isShowAvatar, isShowEmployeeData, shouldCloseOnSelect, onAction, renderOption, getOptionLabel, maxLimit, defaultOption, ...restProps }: AutocompleteProps<P>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare function Autocomplete<P extends FieldValues>({ control, defaultValue, name, required, label, multiple, disabled, options, rules, loading, helperText, error, withLabel, placeholder, freeSolo, isShowOptionsOnType, isShowSelectAll, isShowAvatar, isShowEmployeeData, shouldCloseOnSelect, onAction, renderOption, getOptionLabel, maxLimit, defaultOption, disableClearable, ...restProps }: AutocompleteProps<P>): import("react/jsx-runtime").JSX.Element;
|
|
33
34
|
//# sourceMappingURL=Autocomplete.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/FormFields/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,IAAI,oBAAoB,EAC1C,MAAM,eAAe,CAAC;AAmBvB,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AAOzB,MAAM,MAAM,MAAM,GAAG;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,WAAW,IAAI,kBAAkB,CAAC,CAAC,CAAC,GAC1E,IAAI,CACF,IAAI,CACF,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EACvD,aAAa,CACd,EACD,MAAM,qBAAqB,CAAC,CAAC,CAAC,CAC/B,GAAG;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,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AE,EAClD,OAAO,EACP,YAAY,EACZ,IAAI,EACJ,QAAgB,EAChB,KAAK,EACL,QAAgB,EAChB,QAAgB,EAChB,OAAY,EACZ,KAAK,EACL,OAAe,EACf,UAAU,EACV,KAAK,EACL,SAAiB,EACjB,WAAgB,EAChB,QAAQ,EACR,mBAA2B,EAC3B,eAAsB,EACtB,YAAoB,EACpB,kBAA0B,EAC1B,mBAA2B,EAC3B,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,aAAa,EACb,gBAA0C,EAC1C,GAAG,SAAS,EACb,EAAE,iBAAiB,CAAC,CAAC,CAAC,2CAmYtB"}
|
|
@@ -11,7 +11,7 @@ const Actions_1 = require("../../Actions");
|
|
|
11
11
|
const Toast_1 = require("../../Toast");
|
|
12
12
|
const CheckBox_styled_1 = require("../CheckBox/CheckBox.styled");
|
|
13
13
|
const Skeleton_1 = require("./Skeleton");
|
|
14
|
-
function Autocomplete({ control, defaultValue, name, required = false, label, multiple = false, disabled = false, options = [], rules, loading = false, helperText, error, withLabel = false, placeholder = "", freeSolo, isShowOptionsOnType = false, isShowSelectAll = true, isShowAvatar = false, isShowEmployeeData = false, shouldCloseOnSelect = false, onAction, renderOption, getOptionLabel, maxLimit, defaultOption, ...restProps }) {
|
|
14
|
+
function Autocomplete({ control, defaultValue, name, required = false, label, multiple = false, disabled = false, options = [], rules, loading = false, helperText, error, withLabel = false, placeholder = "", freeSolo, isShowOptionsOnType = false, isShowSelectAll = true, isShowAvatar = false, isShowEmployeeData = false, shouldCloseOnSelect = false, onAction, renderOption, getOptionLabel, maxLimit, defaultOption, disableClearable = required ? true : false, ...restProps }) {
|
|
15
15
|
const { field: { onChange, value, ...restField }, } = (0, react_hook_form_1.useController)({
|
|
16
16
|
name,
|
|
17
17
|
control,
|
|
@@ -119,7 +119,7 @@ function Autocomplete({ control, defaultValue, name, required = false, label, mu
|
|
|
119
119
|
highlightedOptionRef.current = option.value;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
}, disableCloseOnSelect: shouldCloseOnSelect, disabled: disabled, freeSolo: freeSolo, ...restProps, ...restField, renderTags: (value, getTagProps) => value.map((option, index) => {
|
|
122
|
+
}, disableCloseOnSelect: shouldCloseOnSelect, disabled: disabled, freeSolo: freeSolo, ...restProps, ...restField, disableClearable: disableClearable, renderTags: (value, getTagProps) => value.map((option, index) => {
|
|
123
123
|
const { key, ...tagProps } = getTagProps({ index });
|
|
124
124
|
const label = typeof option === "string" ? option : option.label;
|
|
125
125
|
let avatarContent = "";
|
|
@@ -13,6 +13,7 @@ export type DatePickerProps<P extends FieldValues> = UseControllerProps<P> & Mui
|
|
|
13
13
|
clearable?: boolean;
|
|
14
14
|
view?: DateView[];
|
|
15
15
|
disableKeyboardInput?: boolean;
|
|
16
|
+
setOnFinalChange?: boolean;
|
|
16
17
|
setError: (name: keyof P, error: FieldError | {
|
|
17
18
|
type: string;
|
|
18
19
|
message?: string;
|
|
@@ -24,5 +25,5 @@ export declare const dateFormats: {
|
|
|
24
25
|
};
|
|
25
26
|
export declare const LeftArrowIcon: React.FC;
|
|
26
27
|
export declare const RightArrowIcon: React.FC;
|
|
27
|
-
export declare function DatePicker<P extends FieldValues>({ setError, control, defaultValue, disabled, label, readOnly, name, error, helperText, loading, required, clearable, rules, disableKeyboardInput, views, format, ...restProps }: DatePickerProps<P>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare function DatePicker<P extends FieldValues>({ setError, control, defaultValue, disabled, label, readOnly, name, error, helperText, loading, required, clearable, rules, disableKeyboardInput, setOnFinalChange, views, format, ...restProps }: DatePickerProps<P>): import("react/jsx-runtime").JSX.Element;
|
|
28
29
|
//# sourceMappingURL=DatePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/FormFields/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,IAAI,kBAAkB,EAAE,MA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,EACP,YAAY,EACZ,QAAgB,EAChB,KAAK,EACL,QAAgB,EAChB,IAAI,EACJ,KAAa,EACb,UAAU,EACV,OAAe,EACf,QAAgB,EAChB,SAAmC,EACnC,KAAK,EACL,oBAA4B,EAC5B,gBAAwB,EACxB,KAAgC,EAChC,MAAqC,EACrC,GAAG,SAAS,EACb,EAAE,eAAe,CAAC,CAAC,CAAC,2CAiMpB"}
|
|
@@ -40,18 +40,18 @@ const RightArrowIcon = () => {
|
|
|
40
40
|
} }));
|
|
41
41
|
};
|
|
42
42
|
exports.RightArrowIcon = RightArrowIcon;
|
|
43
|
-
function DatePicker({ setError, control, defaultValue, disabled = false, label, readOnly = false, name, error = false, helperText, loading = false, required = false, clearable = true, rules, disableKeyboardInput = false, views = ["year", "month", "day"], format = exports.dateFormats.dateWithEuropean, ...restProps }) {
|
|
43
|
+
function DatePicker({ setError, control, defaultValue, disabled = false, label, readOnly = false, name, error = false, helperText, loading = false, required = false, clearable = required ? false : true, rules, disableKeyboardInput = false, setOnFinalChange = false, views = ["year", "month", "day"], format = exports.dateFormats.dateWithEuropean, ...restProps }) {
|
|
44
44
|
const [localError, setLocalError] = (0, react_1.useState)();
|
|
45
45
|
const { field: { value, onChange, ...restField }, } = (0, react_hook_form_1.useController)({ name, control, defaultValue, rules });
|
|
46
46
|
const [open, setOpen] = (0, react_1.useState)(false);
|
|
47
47
|
const theme = (0, material_1.useTheme)();
|
|
48
48
|
const { iron, butterflyBlue, mirage } = theme.palette.app.color;
|
|
49
49
|
const finalValue = (0, react_1.useMemo)(() => {
|
|
50
|
-
if (disableKeyboardInput && open) {
|
|
50
|
+
if ((disableKeyboardInput || setOnFinalChange) && open) {
|
|
51
51
|
return value ? luxon_1.DateTime.fromISO(value) : undefined;
|
|
52
52
|
}
|
|
53
53
|
return value ? luxon_1.DateTime.fromISO(value) : undefined;
|
|
54
|
-
}, [value, disableKeyboardInput, open]);
|
|
54
|
+
}, [value, disableKeyboardInput, setOnFinalChange, open]);
|
|
55
55
|
// eslint-disable-next-line sonarjs/rules-of-hooks
|
|
56
56
|
(0, react_1.useMemo)(() => {
|
|
57
57
|
if (!error && localError) {
|
|
@@ -111,12 +111,18 @@ function DatePicker({ setError, control, defaultValue, disabled = false, label,
|
|
|
111
111
|
color: butterflyBlue[900],
|
|
112
112
|
backgroundColor: iron[600],
|
|
113
113
|
},
|
|
114
|
+
"&.MuiPickersDay-root:not(.Mui-selected):hover": {
|
|
115
|
+
color: butterflyBlue[900],
|
|
116
|
+
},
|
|
114
117
|
},
|
|
115
118
|
},
|
|
116
119
|
calendarHeader: {
|
|
117
120
|
sx: {
|
|
118
121
|
"& .MuiPickersCalendarHeader-label": {
|
|
119
|
-
fontWeight: "
|
|
122
|
+
fontWeight: "500",
|
|
123
|
+
"&:hover": {
|
|
124
|
+
color: butterflyBlue[900],
|
|
125
|
+
},
|
|
120
126
|
},
|
|
121
127
|
},
|
|
122
128
|
},
|
|
@@ -124,6 +130,10 @@ function DatePicker({ setError, control, defaultValue, disabled = false, label,
|
|
|
124
130
|
sx: {
|
|
125
131
|
"&.MuiPickersYear-yearButton.Mui-selected": {
|
|
126
132
|
backgroundColor: butterflyBlue[900],
|
|
133
|
+
color: iron[600],
|
|
134
|
+
},
|
|
135
|
+
"&.MuiPickersYear-yearButton:not(.Mui-selected):hover": {
|
|
136
|
+
color: butterflyBlue[900],
|
|
127
137
|
},
|
|
128
138
|
},
|
|
129
139
|
},
|
|
@@ -131,6 +141,10 @@ function DatePicker({ setError, control, defaultValue, disabled = false, label,
|
|
|
131
141
|
sx: {
|
|
132
142
|
"&.MuiPickersMonth-monthButton.Mui-selected": {
|
|
133
143
|
backgroundColor: butterflyBlue[900],
|
|
144
|
+
color: iron[600],
|
|
145
|
+
},
|
|
146
|
+
"&.MuiPickersMonth-monthButton:not(.Mui-selected):hover": {
|
|
147
|
+
color: butterflyBlue[900],
|
|
134
148
|
},
|
|
135
149
|
},
|
|
136
150
|
},
|
|
@@ -138,11 +152,14 @@ function DatePicker({ setError, control, defaultValue, disabled = false, label,
|
|
|
138
152
|
leftArrowIcon: exports.LeftArrowIcon,
|
|
139
153
|
rightArrowIcon: exports.RightArrowIcon,
|
|
140
154
|
}, dayOfWeekFormatter: (weekday) => `${weekday.toFormat("ccc")}`, onAccept: (value, details) => {
|
|
141
|
-
if (
|
|
142
|
-
|
|
155
|
+
if (setOnFinalChange && value?.isValid) {
|
|
156
|
+
onChange(value.toISODate());
|
|
157
|
+
setLocalError(undefined);
|
|
143
158
|
}
|
|
159
|
+
restProps?.onAccept?.(value, details);
|
|
144
160
|
}, onChange: (value, details) => {
|
|
145
|
-
if (disableKeyboardInput && open) {
|
|
161
|
+
if ((disableKeyboardInput || setOnFinalChange) && open) {
|
|
162
|
+
// ✅ block only while popup open
|
|
146
163
|
return;
|
|
147
164
|
}
|
|
148
165
|
if (!value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimePicker.d.ts","sourceRoot":"","sources":["../../../src/FormFields/DateTimePicker/DateTimePicker.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,IAAI,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAExG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAc,EAAE,KAAK,YAAY,EAAY,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EAGX,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAKzB,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,WAAW,IAAI,kBAAkB,CAAC,CAAC,CAAC,GAC5E,sBAAsB,CAAC,eAAe,CAAC,GACvC,OAAO,CAAC;IACN,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;I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B,QAAQ,EAAE,CACR,IAAI,EAAE,MAAM,CAAC,EACb,KAAK,EAAE,UAAU,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,KACnD,IAAI,CAAC;CACX,CAAC,CAAC;AAwCL,wBAAgB,cAAc,CAAC,CAAC,SAAS,WAAW,EAAE,EACpD,OAAO,EACP,YAAY,EACZ,QAAgB,EAChB,KAAK,EACL,QAAgB,EAChB,IAAI,EACJ,KAAa,EACb,UAAU,EACV,OAAe,EACf,QAAgB,EAChB,SAAmC,EACnC,KAAK,EACL,MAA2B,EAC3B,UAAU,EACV,WAAW,EACX,gBAAoB,EACpB,GAAG,SAAS,EACb,EAAE,mBAAmB,CAAC,CAAC,CAAC,2CAgLxB"}
|
|
@@ -14,6 +14,11 @@ const react_1 = require("react");
|
|
|
14
14
|
const react_hook_form_1 = require("react-hook-form");
|
|
15
15
|
const Actions_1 = require("../../Actions");
|
|
16
16
|
const Skeleton_1 = require("./Skeleton");
|
|
17
|
+
const hoverTextStyle = (color) => ({
|
|
18
|
+
"&:hover": {
|
|
19
|
+
color,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
17
22
|
const LeftArrowIcon = () => {
|
|
18
23
|
const theme = (0, material_1.useTheme)();
|
|
19
24
|
const { iron } = theme.palette.app.color;
|
|
@@ -32,7 +37,7 @@ const RightArrowIcon = () => {
|
|
|
32
37
|
p: "4px",
|
|
33
38
|
} }));
|
|
34
39
|
};
|
|
35
|
-
function DateTimePicker({ control, defaultValue, disabled = false, label, readOnly = false, name, error = false, helperText, loading = false, required = false, clearable = true, rules, format = "dd-MM-yyyy HH:mm", helperIcon, toolTipText, timeStepsMinutes = 1, ...restProps }) {
|
|
40
|
+
function DateTimePicker({ control, defaultValue, disabled = false, label, readOnly = false, name, error = false, helperText, loading = false, required = false, clearable = required ? false : true, rules, format = "dd-MM-yyyy HH:mm", helperIcon, toolTipText, timeStepsMinutes = 1, ...restProps }) {
|
|
36
41
|
const { field: { value, onChange, ...restField }, } = (0, react_hook_form_1.useController)({ name, control, defaultValue, rules });
|
|
37
42
|
const [open, setOpen] = (0, react_1.useState)(false);
|
|
38
43
|
if (error && value && typeof value === "object") {
|
|
@@ -41,8 +46,7 @@ function DateTimePicker({ control, defaultValue, disabled = false, label, readOn
|
|
|
41
46
|
const theme = (0, material_1.useTheme)();
|
|
42
47
|
const { iron, butterflyBlue, mirage } = theme.palette.app.color;
|
|
43
48
|
const pickerValue = value
|
|
44
|
-
?
|
|
45
|
-
luxon_1.DateTime.fromISO(value)
|
|
49
|
+
? luxon_1.DateTime.fromISO(value)
|
|
46
50
|
: null;
|
|
47
51
|
if (loading) {
|
|
48
52
|
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: "350px" }, children: (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { label: label }) }));
|
|
@@ -77,23 +81,27 @@ function DateTimePicker({ control, defaultValue, disabled = false, label, readOn
|
|
|
77
81
|
"& .MuiList-padding": {
|
|
78
82
|
padding: "10px",
|
|
79
83
|
},
|
|
84
|
+
"& .MuiMultiSectionDigitalClockSection-item:not(.Mui-selected)": {
|
|
85
|
+
padding: "4px",
|
|
86
|
+
...hoverTextStyle(butterflyBlue[900]),
|
|
87
|
+
},
|
|
80
88
|
"& .MuiMultiSectionDigitalClockSection-item": {
|
|
81
89
|
padding: "4px",
|
|
82
90
|
},
|
|
83
91
|
"& .MuiMultiSectionDigitalClockSection-item.Mui-selected": {
|
|
84
92
|
backgroundColor: butterflyBlue[900],
|
|
85
93
|
borderRadius: "5px",
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
94
|
+
"&:hover": {
|
|
95
|
+
backgroundColor: butterflyBlue[900],
|
|
96
|
+
color: iron[600],
|
|
97
|
+
},
|
|
90
98
|
},
|
|
91
99
|
"& .Mui-selected:hover": {
|
|
92
100
|
backgroundColor: butterflyBlue[900],
|
|
93
101
|
borderRadius: "5px",
|
|
94
102
|
},
|
|
95
103
|
"& .MuiMultiSectionDigitalClockSection-item.Mui-selected:focus-visible": {
|
|
96
|
-
backgroundColor: butterflyBlue[900]
|
|
104
|
+
backgroundColor: `${butterflyBlue[900]} !important`,
|
|
97
105
|
borderRadius: "5px",
|
|
98
106
|
},
|
|
99
107
|
"& .Mui-selected:focus-visible": {
|
|
@@ -114,6 +122,9 @@ function DateTimePicker({ control, defaultValue, disabled = false, label, readOn
|
|
|
114
122
|
backgroundColor: butterflyBlue[900],
|
|
115
123
|
color: iron[600],
|
|
116
124
|
},
|
|
125
|
+
"&.MuiPickersDay-root:not(.Mui-selected)": {
|
|
126
|
+
...hoverTextStyle(butterflyBlue[900]),
|
|
127
|
+
},
|
|
117
128
|
"&.MuiPickersDay-today": {
|
|
118
129
|
color: butterflyBlue[900],
|
|
119
130
|
backgroundColor: iron[600],
|
|
@@ -126,7 +137,8 @@ function DateTimePicker({ control, defaultValue, disabled = false, label, readOn
|
|
|
126
137
|
calendarHeader: {
|
|
127
138
|
sx: {
|
|
128
139
|
"& .MuiPickersCalendarHeader-label": {
|
|
129
|
-
fontWeight: "
|
|
140
|
+
fontWeight: "500",
|
|
141
|
+
...hoverTextStyle(butterflyBlue[900]),
|
|
130
142
|
},
|
|
131
143
|
},
|
|
132
144
|
},
|
|
@@ -134,6 +146,11 @@ function DateTimePicker({ control, defaultValue, disabled = false, label, readOn
|
|
|
134
146
|
sx: {
|
|
135
147
|
"&.MuiPickersYear-yearButton.Mui-selected": {
|
|
136
148
|
backgroundColor: butterflyBlue[900],
|
|
149
|
+
borderRadius: "25px",
|
|
150
|
+
},
|
|
151
|
+
"&.MuiPickersYear-yearButton:not(.Mui-selected)": {
|
|
152
|
+
...hoverTextStyle(butterflyBlue[900]),
|
|
153
|
+
borderRadius: "25px",
|
|
137
154
|
},
|
|
138
155
|
},
|
|
139
156
|
},
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
type ButtonContainerProps = PropsWithChildren & {
|
|
3
|
+
columns?: number;
|
|
4
|
+
columnsOnMobile?: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const ButtonContainer: ({ columns, columnsOnMobile, children, }: ButtonContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=ButtonContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonContainer.d.ts","sourceRoot":"","sources":["../../src/Layouts/ButtonContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,KAAK,oBAAoB,GAAG,iBAAiB,GAAG;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,yCAI7B,oBAAoB,4CAYtB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ButtonContainer = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const material_1 = require("@mui/material");
|
|
6
|
+
const useGetDeviceType_1 = require("../utils/hooks/useGetDeviceType");
|
|
7
|
+
const FormGridLayout_1 = require("./FormGridLayout");
|
|
8
|
+
const ButtonContainer = ({ columns = 2, columnsOnMobile = 2, children, }) => {
|
|
9
|
+
const { layout } = (0, useGetDeviceType_1.useGetDeviceType)();
|
|
10
|
+
return layout === "mobile" ? ((0, jsx_runtime_1.jsx)(FormGridLayout_1.FormGridLayout, { columnsOnMobile: columnsOnMobile, columns: columns, children: children })) : ((0, jsx_runtime_1.jsx)(material_1.Stack, { direction: "row", gap: "5px", children: children }));
|
|
11
|
+
};
|
|
12
|
+
exports.ButtonContainer = ButtonContainer;
|
|
@@ -2,7 +2,8 @@ import { type ReactNode } from "react";
|
|
|
2
2
|
type FormGridLayoutProps = {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
columns?: number;
|
|
5
|
+
columnsOnMobile?: number;
|
|
5
6
|
};
|
|
6
|
-
export declare const FormGridLayout: ({ children, columns, }: FormGridLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const FormGridLayout: ({ children, columns, columnsOnMobile, }: FormGridLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
8
9
|
//# sourceMappingURL=FormGridLayout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormGridLayout.d.ts","sourceRoot":"","sources":["../../src/Layouts/FormGridLayout.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD,KAAK,mBAAmB,GAAG;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"FormGridLayout.d.ts","sourceRoot":"","sources":["../../src/Layouts/FormGridLayout.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD,KAAK,mBAAmB,GAAG;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,yCAI5B,mBAAmB,4CA+BrB,CAAC"}
|
|
@@ -4,9 +4,15 @@ exports.FormGridLayout = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
6
|
const react_1 = require("react");
|
|
7
|
-
const FormGridLayout = ({ children, columns = 3, }) => {
|
|
8
|
-
|
|
7
|
+
const FormGridLayout = ({ children, columns = 3, columnsOnMobile = 1, }) => {
|
|
8
|
+
const validColumns = columns ? columns : 3;
|
|
9
|
+
const validColumnsOnMobile = columnsOnMobile ? columnsOnMobile : 1;
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, spacing: 2, rowSpacing: 1, children: react_1.Children.map(children, (child, index) => child && ((0, jsx_runtime_1.jsx)(material_1.Grid
|
|
9
11
|
// eslint-disable-next-line sonarjs/no-array-index-key
|
|
10
|
-
|
|
12
|
+
, { sx: {
|
|
13
|
+
"& > *": {
|
|
14
|
+
width: { xs: "100%", sm: "auto" },
|
|
15
|
+
},
|
|
16
|
+
}, item: true, xs: 12 / validColumnsOnMobile, sm: 12 / Math.min(validColumns, 2), md: 12 / Math.min(validColumns, 3), lg: 12 / validColumns, children: child }, index))) }));
|
|
11
17
|
};
|
|
12
18
|
exports.FormGridLayout = FormGridLayout;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { DialogTypes } from "../utils";
|
|
3
|
+
type MasterPageLayoutProps = {
|
|
4
|
+
breadcrumbs: ReactNode;
|
|
5
|
+
btnLabel?: string;
|
|
6
|
+
dialogKey: DialogTypes;
|
|
7
|
+
dialogRenderer?: Record<string, ReactNode>;
|
|
8
|
+
list: ReactNode;
|
|
9
|
+
onDialogOpen: (key: DialogTypes) => void;
|
|
10
|
+
openedDialog?: DialogTypes;
|
|
11
|
+
title: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const MasterPageLayout: ({ breadcrumbs, btnLabel, dialogKey, dialogRenderer, list, onDialogOpen, openedDialog, title, }: MasterPageLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=MasterPageLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MasterPageLayout.d.ts","sourceRoot":"","sources":["../../src/Layouts/MasterPageLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C,KAAK,qBAAqB,GAAG;IAC3B,WAAW,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,WAAW,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAC3C,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;IACzC,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,gGAS9B,qBAAqB,4CAsDvB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MasterPageLayout = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const icons_material_1 = require("@mui/icons-material");
|
|
6
|
+
const material_1 = require("@mui/material");
|
|
7
|
+
const Button_1 = require("../Button");
|
|
8
|
+
const ContentBox_1 = require("../ContentBox");
|
|
9
|
+
const PadBox_1 = require("../PadBox");
|
|
10
|
+
const useGetDeviceType_1 = require("../utils/hooks/useGetDeviceType");
|
|
11
|
+
const MasterPageLayout = ({ breadcrumbs, btnLabel, dialogKey = "add", dialogRenderer, list, onDialogOpen, openedDialog, title, }) => {
|
|
12
|
+
const { layout } = (0, useGetDeviceType_1.useGetDeviceType)();
|
|
13
|
+
const isMobile = layout === "mobile";
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { gap: isMobile ? "6px" : "10px", children: [breadcrumbs, (0, jsx_runtime_1.jsxs)(ContentBox_1.ContentBox, { children: [(0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: isMobile ? "6px" : "10px" }, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "subtitle1", children: title }), isMobile ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { variant: "outlined", onClick: () => {
|
|
15
|
+
onDialogOpen(dialogKey);
|
|
16
|
+
}, sx: {
|
|
17
|
+
borderRadius: "6px",
|
|
18
|
+
height: "36px",
|
|
19
|
+
minWidth: "36px",
|
|
20
|
+
padding: 0,
|
|
21
|
+
width: "36px",
|
|
22
|
+
}, children: (0, jsx_runtime_1.jsx)(icons_material_1.Add, { fontSize: "small" }) })) : ((0, jsx_runtime_1.jsx)(Button_1.Button, { variant: "outlined", onClick: () => {
|
|
23
|
+
onDialogOpen(dialogKey);
|
|
24
|
+
}, startIcon: (0, jsx_runtime_1.jsx)(icons_material_1.Add, {}), children: btnLabel }))] }) }), list] }), dialogRenderer && openedDialog && dialogRenderer[openedDialog]] }));
|
|
25
|
+
};
|
|
26
|
+
exports.MasterPageLayout = MasterPageLayout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Layouts/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Layouts/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
|
|
@@ -19,3 +19,5 @@ __exportStar(require("./FormGridLayout"), exports);
|
|
|
19
19
|
__exportStar(require("./FormRow"), exports);
|
|
20
20
|
__exportStar(require("./FormSection"), exports);
|
|
21
21
|
__exportStar(require("./FilePreviewContainer"), exports);
|
|
22
|
+
__exportStar(require("./ButtonContainer"), exports);
|
|
23
|
+
__exportStar(require("./MasterPageLayout"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAErE,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAErE,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG1D,KAAK,YAAY,GAAG,iBAAiB,CAAC;IACpC,YAAY,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IACzC,MAAM,CAAC,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;CACpC,CAAC,CAAC;AAEH,eAAO,MAAM,OAAO,GAAI,wDAMrB,YAAY,4CA4Cd,CAAC"}
|
|
@@ -3,12 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Tooltip = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
|
+
const react_1 = require("react");
|
|
6
7
|
const Tooltip = ({ toolTipLabel, children, placement = "top-start", hidden = false, ...rest }) => {
|
|
7
|
-
|
|
8
|
+
const wrapperRef = (0, react_1.useRef)(null);
|
|
9
|
+
const [isOverflowed, setIsOverflowed] = (0, react_1.useState)(false);
|
|
10
|
+
// Tried Managing with useMemo but it didn't work as expected
|
|
11
|
+
(0, react_1.useEffect)(() => {
|
|
12
|
+
if (wrapperRef.current) {
|
|
13
|
+
const el = wrapperRef.current;
|
|
14
|
+
setIsOverflowed(el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight);
|
|
15
|
+
}
|
|
16
|
+
}, [children]);
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Tooltip, { arrow: true, placement: placement, title: isOverflowed ? toolTipLabel : "", disableHoverListener: !isOverflowed || hidden, ...rest, children: (0, jsx_runtime_1.jsx)(material_1.Box, { ref: wrapperRef, sx: {
|
|
8
18
|
maxWidth: "150px",
|
|
9
19
|
overflow: "hidden",
|
|
10
20
|
textOverflow: "ellipsis",
|
|
11
21
|
whiteSpace: "nowrap",
|
|
12
|
-
|
|
22
|
+
display: "inline-flex",
|
|
23
|
+
}, children: typeof children === "string" ? ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", fontWeight: 500, children: children })) : (children) }) }));
|
|
13
24
|
};
|
|
14
25
|
exports.Tooltip = Tooltip;
|
|
@@ -23,7 +23,7 @@ function UserProfileMenu({ userDetails, menuItems, }) {
|
|
|
23
23
|
setAnchorEl(null);
|
|
24
24
|
};
|
|
25
25
|
const { name } = userDetails;
|
|
26
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { position: "relative", children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: { display: "flex", alignItems: "center", textAlign: "center" }, children: (0, jsx_runtime_1.jsx)(UserProfileMenu_styled_1.IconButtonStyled, { onClick: handleClick, size: "small", sx: { ml: 2 }, "aria-controls": open ? "account-menu" : undefined, "aria-haspopup": "true", "aria-expanded": open ? "true" : undefined, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", alignItems: "center", gap: 1, color: "black", children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { src: userDetails.avatar, sx: { border: `1px solid ${iron[700]}` } }), (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: name, children: (0, jsx_runtime_1.jsx)(material_1.Typography, {
|
|
26
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { position: "relative", children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: { display: "flex", alignItems: "center", textAlign: "center" }, children: (0, jsx_runtime_1.jsx)(UserProfileMenu_styled_1.IconButtonStyled, { onClick: handleClick, size: "small", sx: { ml: 2 }, "aria-controls": open ? "account-menu" : undefined, "aria-haspopup": "true", "aria-expanded": open ? "true" : undefined, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", alignItems: "center", gap: 1, color: "black", children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { src: userDetails.avatar, sx: { border: `1px solid ${iron[700]}` } }), (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: name, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { maxWidth: 150, noWrap: true, children: name }) }), open ? (0, jsx_runtime_1.jsx)(icons_material_1.KeyboardArrowUp, {}) : (0, jsx_runtime_1.jsx)(icons_material_1.KeyboardArrowDown, {})] }) }) }), (0, jsx_runtime_1.jsx)(material_1.Menu, { anchorEl: anchorEl, id: "account-menu", open: open, onClose: handleClose, onClick: handleClose, sx: {
|
|
27
27
|
"& .MuiPaper-root": {
|
|
28
28
|
width: "220px",
|
|
29
29
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
export type DialogTypes = "add" | "edit" | "delete" | "viewAttachment" | "deleteTemplate" | "editTemplate" | "addTemplate";
|
|
2
|
+
export type DialogTypes = "add" | "edit" | "delete" | "viewAttachment" | "deleteTemplate" | "editTemplate" | "addTemplate" | "addDepartment" | "addWorkType" | "addSubDepartment" | "addDocument" | "addGrade" | "addSkillType" | "addDesignation" | "cancel" | "saveAsDraft" | "history" | "view" | "action" | "updateShift" | "updateWeeklyOff" | "updateHoliday" | "configureLeave" | "approve" | "reject" | "cancelled" | "formulaBuilderDialog" | "revise" | "manageEmployeeAccess" | "saveTemplate" | "confirm" | "reset" | "addExistingEmployee" | "reviewAllEmployees" | "eligibleEmployees" | "saveAsDefault" | "bankRegister" | "applyLeave" | "providentFundReport" | "esicReport" | "professionalTaxReport" | "incomeTaxReport" | "lwfReport" | "approveOvertime" | "rejectOvertime" | "approveExit" | "rejectExit" | "approveLoan" | "rejectLoan" | "approveSalary" | "rejectSalary" | "approveBulkLeave" | "rejectBulkLeave" | "approveBulkOvertime" | "rejectBulkOvertime";
|
|
3
3
|
export type DialogRenderer = {
|
|
4
4
|
[key in DialogTypes]?: ReactNode;
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDialogActions.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/useDialogActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAEjD,MAAM,MAAM,WAAW,GACnB,KAAK,GACL,MAAM,GACN,QAAQ,GACR,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"useDialogActions.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/useDialogActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAEjD,MAAM,MAAM,WAAW,GACnB,KAAK,GACL,MAAM,GACN,QAAQ,GACR,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,aAAa,GACb,eAAe,GACf,aAAa,GACb,kBAAkB,GAClB,aAAa,GACb,UAAU,GACV,cAAc,GACd,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,SAAS,GACT,MAAM,GACN,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,SAAS,GACT,QAAQ,GACR,WAAW,GACX,sBAAsB,GACtB,QAAQ,GACR,sBAAsB,GACtB,cAAc,GACd,SAAS,GACT,OAAO,GACP,qBAAqB,GACrB,oBAAoB,GACpB,mBAAmB,GACnB,eAAe,GACf,cAAc,GACd,YAAY,GACZ,qBAAqB,GACrB,YAAY,GACZ,uBAAuB,GACvB,iBAAiB,GACjB,WAAW,GACX,iBAAiB,GACjB,gBAAgB,GAChB,aAAa,GACb,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,eAAe,GACf,cAAc,GACd,kBAAkB,GAClB,iBAAiB,GACjB,qBAAqB,GACrB,oBAAoB,CAAC;AAEzB,MAAM,MAAM,cAAc,GAAG;KAAG,GAAG,IAAI,WAAW,CAAC,CAAC,EAAE,SAAS;CAAE,CAAC;AAElE,MAAM,MAAM,mBAAmB,GAAG;IAChC,YAAY,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5C,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,wBAAgB,gBAAgB;;gCAGK,WAAW;;EAU/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGetDeviceType.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/useGetDeviceType.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAErD,wBAAgB,gBAAgB,IAAI;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAgBrD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.useGetDeviceType = useGetDeviceType;
|
|
7
|
+
const styles_1 = require("@mui/material/styles");
|
|
8
|
+
const useMediaQuery_1 = __importDefault(require("@mui/material/useMediaQuery"));
|
|
9
|
+
function useGetDeviceType() {
|
|
10
|
+
const theme = (0, styles_1.useTheme)();
|
|
11
|
+
const isMobile = (0, useMediaQuery_1.default)(theme.breakpoints.down("sm")); // <600px
|
|
12
|
+
const isTablet = (0, useMediaQuery_1.default)(theme.breakpoints.between("sm", "md")); // 600–900px
|
|
13
|
+
if (isMobile) {
|
|
14
|
+
return { layout: "mobile" };
|
|
15
|
+
}
|
|
16
|
+
if (isTablet) {
|
|
17
|
+
return { layout: "tablet" };
|
|
18
|
+
}
|
|
19
|
+
return { layout: "desktop" };
|
|
20
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,0BAA0B,CAAC;AACzC,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,0BAA0B,CAAC;AACzC,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC"}
|
|
@@ -23,3 +23,4 @@ __exportStar(require("./regex"), exports);
|
|
|
23
23
|
__exportStar(require("./theme/colorPaletteUI"), exports);
|
|
24
24
|
__exportStar(require("./theme/theme"), exports);
|
|
25
25
|
__exportStar(require("./urlToNestedObject"), exports);
|
|
26
|
+
__exportStar(require("./hooks/useGetDeviceType"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/utils/theme/typography.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,OAAO,EACR,MAAM,uCAAuC,CAAC;AAE/C,KAAK,iBAAiB,GAAG,MAAM,+BAA+B,CAAC;AAC/D,KAAK,wBAAwB,GAAG;KAC7B,CAAC,IAAI,iBAAiB,GAAG,+BAA+B,CAAC,CAAC,CAAC,SAAS,IAAI,GACrE,CAAC,GACD,KAAK;CACV,CAAC,iBAAiB,CAAC,CAAC;AAErB,eAAO,MAAM,0BAA0B,EAAE,gBAGxC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,OAAO,CACrC,MAAM,CAAC,OAAO,EAAE,sBAAsB,CAAC,
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/utils/theme/typography.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,OAAO,EACR,MAAM,uCAAuC,CAAC;AAE/C,KAAK,iBAAiB,GAAG,MAAM,+BAA+B,CAAC;AAC/D,KAAK,wBAAwB,GAAG;KAC7B,CAAC,IAAI,iBAAiB,GAAG,+BAA+B,CAAC,CAAC,CAAC,SAAS,IAAI,GACrE,CAAC,GACD,KAAK;CACV,CAAC,iBAAiB,CAAC,CAAC;AAErB,eAAO,MAAM,0BAA0B,EAAE,gBAGxC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,OAAO,CACrC,MAAM,CAAC,OAAO,EAAE,sBAAsB,CAAC,CA8CxC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAC3C,wBAAwB,EACxB,MAAM,CAQP,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,iBAGpC,CAAC"}
|
|
@@ -6,17 +6,50 @@ exports.typographyFontStyleOptions = {
|
|
|
6
6
|
fontFamily: "Poppins",
|
|
7
7
|
};
|
|
8
8
|
exports.typographyOptions = {
|
|
9
|
-
h1: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
h1: {
|
|
10
|
+
fontSize: "clamp(2.5rem, 5vw, 6rem)",
|
|
11
|
+
lineHeight: "clamp(3rem, 6vw, 7rem)",
|
|
12
|
+
},
|
|
13
|
+
h2: {
|
|
14
|
+
fontSize: "clamp(2rem, 4vw, 3.75rem)",
|
|
15
|
+
lineHeight: "clamp(2.5rem, 5vw, 4.5rem)",
|
|
16
|
+
},
|
|
17
|
+
h3: {
|
|
18
|
+
fontSize: "clamp(1.75rem, 3.5vw, 3rem)",
|
|
19
|
+
lineHeight: "clamp(2.25rem, 4vw, 3.5rem)",
|
|
20
|
+
},
|
|
21
|
+
h4: {
|
|
22
|
+
fontSize: "clamp(1.5rem, 3vw, 2.25rem)",
|
|
23
|
+
lineHeight: "clamp(1.75rem, 3.5vw, 2.625rem)",
|
|
24
|
+
},
|
|
25
|
+
h5: {
|
|
26
|
+
fontSize: "clamp(1.25rem, 2.5vw, 1.5rem)",
|
|
27
|
+
lineHeight: "clamp(1.5rem, 3vw, 1.5rem)",
|
|
28
|
+
},
|
|
29
|
+
h6: {
|
|
30
|
+
fontSize: "clamp(1.125rem, 2vw, 1.25rem)",
|
|
31
|
+
lineHeight: "clamp(1.5rem, 2.5vw, 1.5rem)",
|
|
32
|
+
},
|
|
33
|
+
subtitle1: {
|
|
34
|
+
fontSize: "clamp(1rem, 1.5vw, 1.125rem)",
|
|
35
|
+
lineHeight: "clamp(1.5rem, 2vw, 1.5rem)",
|
|
36
|
+
},
|
|
37
|
+
subtitle2: {
|
|
38
|
+
fontSize: "clamp(0.875rem, 1.2vw, 0.875rem)",
|
|
39
|
+
lineHeight: "clamp(1.25rem, 2vw, 1.5rem)",
|
|
40
|
+
},
|
|
41
|
+
body1: {
|
|
42
|
+
fontSize: "clamp(0.875rem, 1.2vw, 1rem)",
|
|
43
|
+
lineHeight: "clamp(1.25rem, 2vw, 1.5rem)",
|
|
44
|
+
},
|
|
45
|
+
body2: {
|
|
46
|
+
fontSize: "clamp(0.75rem, 1vw, 0.875rem)",
|
|
47
|
+
lineHeight: "clamp(1rem, 1.5vw, 1.25rem)",
|
|
48
|
+
},
|
|
49
|
+
caption: {
|
|
50
|
+
fontSize: "clamp(0.625rem, 0.8vw, 0.75rem)",
|
|
51
|
+
lineHeight: "clamp(0.875rem, 1vw, 1rem)",
|
|
52
|
+
},
|
|
20
53
|
};
|
|
21
54
|
exports.typographyVariantMapping = {
|
|
22
55
|
subHeader1: "p",
|