@codezee/sixtify-brahma 0.2.80 → 0.2.82

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.
Files changed (63) hide show
  1. package/package.json +1 -1
  2. package/packages/shared-components/dist/AgGrid/ActionCell/ActionCell.js +2 -2
  3. package/packages/shared-components/dist/AgGrid/AgGrid.d.ts.map +1 -1
  4. package/packages/shared-components/dist/AgGrid/AgGrid.js +2 -1
  5. package/packages/shared-components/dist/AgGrid/AgGridStyleProvider.d.ts +4 -0
  6. package/packages/shared-components/dist/AgGrid/AgGridStyleProvider.d.ts.map +1 -0
  7. package/packages/shared-components/dist/AgGrid/AgGridStyleProvider.js +40 -0
  8. package/packages/shared-components/dist/AppBar/AppBar.d.ts.map +1 -1
  9. package/packages/shared-components/dist/AppBar/AppBar.js +4 -1
  10. package/packages/shared-components/dist/AppBar/AppBar.styled.d.ts +1 -1
  11. package/packages/shared-components/dist/AppBar/AppBar.styled.d.ts.map +1 -1
  12. package/packages/shared-components/dist/AppBar/AppBar.styled.js +35 -18
  13. package/packages/shared-components/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  14. package/packages/shared-components/dist/Breadcrumbs/Breadcrumbs.js +16 -1
  15. package/packages/shared-components/dist/Dialog/DeleteDialog.d.ts.map +1 -1
  16. package/packages/shared-components/dist/Dialog/DeleteDialog.js +2 -1
  17. package/packages/shared-components/dist/Dialog/Dialog.d.ts.map +1 -1
  18. package/packages/shared-components/dist/Dialog/Dialog.js +9 -2
  19. package/packages/shared-components/dist/Dialog/DialogActions.Styled.d.ts +10 -0
  20. package/packages/shared-components/dist/Dialog/DialogActions.Styled.d.ts.map +1 -0
  21. package/packages/shared-components/dist/Dialog/DialogActions.Styled.js +21 -0
  22. package/packages/shared-components/dist/Dialog/DialogContent.Styled.d.ts +3 -0
  23. package/packages/shared-components/dist/Dialog/DialogContent.Styled.d.ts.map +1 -0
  24. package/packages/shared-components/dist/Dialog/DialogContent.Styled.js +9 -0
  25. package/packages/shared-components/dist/Dialog/SaveDialog.d.ts.map +1 -1
  26. package/packages/shared-components/dist/Dialog/SaveDialog.js +2 -1
  27. package/packages/shared-components/dist/Drawer/Drawer.d.ts.map +1 -1
  28. package/packages/shared-components/dist/Drawer/Drawer.js +4 -1
  29. package/packages/shared-components/dist/Drawer/Drawer.styled.d.ts +2 -2
  30. package/packages/shared-components/dist/Drawer/Drawer.styled.d.ts.map +1 -1
  31. package/packages/shared-components/dist/Drawer/Drawer.styled.js +41 -36
  32. package/packages/shared-components/dist/FormFields/Autocomplete/Autocomplete.d.ts +2 -1
  33. package/packages/shared-components/dist/FormFields/Autocomplete/Autocomplete.d.ts.map +1 -1
  34. package/packages/shared-components/dist/FormFields/Autocomplete/Autocomplete.js +2 -2
  35. package/packages/shared-components/dist/FormFields/DatePicker/DatePicker.d.ts.map +1 -1
  36. package/packages/shared-components/dist/FormFields/DatePicker/DatePicker.js +16 -2
  37. package/packages/shared-components/dist/FormFields/DateTimePicker/DateTimePicker.d.ts.map +1 -1
  38. package/packages/shared-components/dist/FormFields/DateTimePicker/DateTimePicker.js +26 -9
  39. package/packages/shared-components/dist/Layouts/ButtonContainer.d.ts +8 -0
  40. package/packages/shared-components/dist/Layouts/ButtonContainer.d.ts.map +1 -0
  41. package/packages/shared-components/dist/Layouts/ButtonContainer.js +12 -0
  42. package/packages/shared-components/dist/Layouts/FormGridLayout.d.ts +2 -1
  43. package/packages/shared-components/dist/Layouts/FormGridLayout.d.ts.map +1 -1
  44. package/packages/shared-components/dist/Layouts/FormGridLayout.js +9 -3
  45. package/packages/shared-components/dist/Layouts/MasterPageLayout.d.ts +15 -0
  46. package/packages/shared-components/dist/Layouts/MasterPageLayout.d.ts.map +1 -0
  47. package/packages/shared-components/dist/Layouts/MasterPageLayout.js +26 -0
  48. package/packages/shared-components/dist/Layouts/index.d.ts +2 -0
  49. package/packages/shared-components/dist/Layouts/index.d.ts.map +1 -1
  50. package/packages/shared-components/dist/Layouts/index.js +2 -0
  51. package/packages/shared-components/dist/Tab/Tabs.d.ts +3 -2
  52. package/packages/shared-components/dist/Tab/Tabs.d.ts.map +1 -1
  53. package/packages/shared-components/dist/UserProfileMenu/UserProfileMenu.js +1 -1
  54. package/packages/shared-components/dist/utils/hooks/useDialogActions.d.ts +1 -1
  55. package/packages/shared-components/dist/utils/hooks/useDialogActions.d.ts.map +1 -1
  56. package/packages/shared-components/dist/utils/hooks/useGetDeviceType.d.ts +5 -0
  57. package/packages/shared-components/dist/utils/hooks/useGetDeviceType.d.ts.map +1 -0
  58. package/packages/shared-components/dist/utils/hooks/useGetDeviceType.js +20 -0
  59. package/packages/shared-components/dist/utils/index.d.ts +1 -0
  60. package/packages/shared-components/dist/utils/index.d.ts.map +1 -1
  61. package/packages/shared-components/dist/utils/index.js +1 -0
  62. package/packages/shared-components/dist/utils/theme/typography.d.ts.map +1 -1
  63. package/packages/shared-components/dist/utils/theme/typography.js +44 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codezee/sixtify-brahma",
3
- "version": "0.2.80",
3
+ "version": "0.2.82",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/hardikranpariya/sixtify-brahma.git"
@@ -19,10 +19,10 @@ const ActionCell = ({ items, disabled }) => {
19
19
  setAnchorEl(event.currentTarget);
20
20
  };
21
21
  return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { width: "100%" }, children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, { component: "div", sx: { cursor: "pointer", alignItems: "center", width: "100%" }, onClick: HandleClick, disabled: disabled, children: (0, jsx_runtime_1.jsx)(MoreVert_1.default, {}) }), !!anchorEl && ((0, jsx_runtime_1.jsx)(Popover_1.Popover, { open: true, anchorEl: anchorEl, onClose: HandleClose, children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: "2px" }, children: items.map((item) => {
22
- return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, { sx: { width: "100%", textAlign: "center" }, onClick: () => {
22
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, { sx: { width: "100%", textAlign: "start" }, onClick: () => {
23
23
  item?.onClick();
24
24
  setAnchorEl(null);
25
- }, children: item.title }) }, item.title));
25
+ }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", children: item.title }) }) }, item.title));
26
26
  }) }) }))] }));
27
27
  };
28
28
  exports.ActionCell = ActionCell;
@@ -1 +1 @@
1
- {"version":3,"file":"AgGrid.d.ts","sourceRoot":"","sources":["../../src/AgGrid/AgGrid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAIjC,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,eAAO,MAAM,eAAe,UAAqB,CAAC;AAGlD,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,OAAO,IAAI,gBAAgB,CAAC,CAAC,CAAC,GAAG;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,KAAK,UAAU,GAAG,KAAK,CAAC,yBAAyB,CAAC,WAAW,CAAC,GAC5D,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,WAAW,CAAC,WAAW,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC;AAElE,eAAO,MAAM,MAAM,EAmFd,UAAU,CAAC"}
1
+ {"version":3,"file":"AgGrid.d.ts","sourceRoot":"","sources":["../../src/AgGrid/AgGrid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAKjC,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,eAAO,MAAM,eAAe,UAAqB,CAAC;AAGlD,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,OAAO,IAAI,gBAAgB,CAAC,CAAC,CAAC,GAAG;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,KAAK,UAAU,GAAG,KAAK,CAAC,yBAAyB,CAAC,WAAW,CAAC,GAC5D,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,WAAW,CAAC,WAAW,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC;AAElE,eAAO,MAAM,MAAM,EAmFd,UAAU,CAAC"}
@@ -6,6 +6,7 @@ const material_1 = require("@mui/material");
6
6
  const ag_grid_react_1 = require("ag-grid-react");
7
7
  const react_1 = require("react");
8
8
  const PadBox_1 = require("../PadBox");
9
+ const AgGridStyleProvider_1 = require("./AgGridStyleProvider");
9
10
  exports.defaultPageSize = 50;
10
11
  exports.pageSizeOptions = [20, 50, 100, 200];
11
12
  exports.AgGrid = (0, react_1.forwardRef)((props, ref) => {
@@ -34,6 +35,6 @@ exports.AgGrid = (0, react_1.forwardRef)((props, ref) => {
34
35
  backgroundColor: color.butterflyBlue[700],
35
36
  }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h6", children: "No result found" }) }));
36
37
  }
37
- return ((0, jsx_runtime_1.jsxs)("div", { className: "ag-theme-quartz ", style: { width: "100%", height, position: "relative" }, children: [(0, jsx_runtime_1.jsx)(ag_grid_react_1.AgGridReact, { ref: ref, cacheBlockSize: cacheBlockSize, defaultColDef: defaultColDef, rowHeight: rowHeight, rowModelType: rowModelType, rowBuffer: rowBuffer, infiniteInitialRowCount: infiniteInitialRowCount, overlayNoRowsTemplate: overlayNoRowsTemplate, pagination: pagination, ...(pagination ? { paginationPageSize: exports.defaultPageSize } : {}), paginationPageSizeSelector: pagination ? exports.pageSizeOptions : false, ...rest }), !!props.selectedItems && pagination && ((0, jsx_runtime_1.jsx)(material_1.Box, { position: "absolute", bottom: "15px", children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { paddingLeft: "20px" }, children: (0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "body2", children: ["Selected Rows ", props.selectedItems] }) }) }))] }));
38
+ return ((0, jsx_runtime_1.jsxs)(AgGridStyleProvider_1.AgGridStyleProvider, { className: "ag-theme-quartz ", style: { width: "100%", height, position: "relative" }, children: [(0, jsx_runtime_1.jsx)(ag_grid_react_1.AgGridReact, { ref: ref, cacheBlockSize: cacheBlockSize, defaultColDef: defaultColDef, rowHeight: rowHeight, rowModelType: rowModelType, rowBuffer: rowBuffer, infiniteInitialRowCount: infiniteInitialRowCount, overlayNoRowsTemplate: overlayNoRowsTemplate, pagination: pagination, ...(pagination ? { paginationPageSize: exports.defaultPageSize } : {}), paginationPageSizeSelector: pagination ? exports.pageSizeOptions : false, ...rest }), !!props.selectedItems && pagination && ((0, jsx_runtime_1.jsx)(material_1.Box, { position: "absolute", bottom: "15px", children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { paddingLeft: "20px" }, children: (0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "body2", children: ["Selected Rows ", props.selectedItems] }) }) }))] }));
38
39
  });
39
40
  exports.AgGrid.displayName = "AgGrid";
@@ -0,0 +1,4 @@
1
+ import type { StyledComponent } from "@emotion/styled";
2
+ import type { BoxProps } from "@mui/material";
3
+ export declare const AgGridStyleProvider: StyledComponent<BoxProps>;
4
+ //# sourceMappingURL=AgGridStyleProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgGridStyleProvider.d.ts","sourceRoot":"","sources":["../../src/AgGrid/AgGridStyleProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG9C,eAAO,MAAM,mBAAmB,EAAE,eAAe,CAAC,QAAQ,CAyCzD,CAAC"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgGridStyleProvider = void 0;
4
+ const material_1 = require("@mui/material");
5
+ exports.AgGridStyleProvider = (0, material_1.styled)(material_1.Box)(({ theme }) => ({
6
+ width: "100%",
7
+ height: "100%",
8
+ position: "relative",
9
+ "& .ag-paging-panel": {
10
+ display: "flex",
11
+ flexWrap: "wrap",
12
+ gap: "8px",
13
+ padding: "8px",
14
+ },
15
+ "& .ag-paging-page-summary-panel": {
16
+ fontSize: "14px",
17
+ },
18
+ "& .ag-paging-button": {
19
+ minWidth: "28px",
20
+ },
21
+ [theme.breakpoints.down("sm")]: {
22
+ "& .ag-paging-panel": {
23
+ flexDirection: "row",
24
+ alignItems: "center",
25
+ justifyContent: "center",
26
+ gap: "5px",
27
+ height: "60px",
28
+ margin: 0,
29
+ },
30
+ "& .ag-paging-button, & .ag-paging-page-summary-panel": {
31
+ fontSize: "12px",
32
+ },
33
+ "& .ag-paging-page-size": {
34
+ display: "none",
35
+ },
36
+ "& .ag-paging-row-summary-panel": {
37
+ margin: 0,
38
+ },
39
+ },
40
+ }));
@@ -1 +1 @@
1
- {"version":3,"file":"AppBar.d.ts","sourceRoot":"","sources":["../../src/AppBar/AppBar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,2BAGpB,iBAAiB,CAAC,WAAW,CAAC,4CAMhC,CAAC"}
1
+ {"version":3,"file":"AppBar.d.ts","sourceRoot":"","sources":["../../src/AppBar/AppBar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/C,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,2BAGpB,iBAAiB,CAAC,WAAW,CAAC,4CAkBhC,CAAC"}
@@ -4,8 +4,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.AppBar = void 0;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const material_1 = require("@mui/material");
7
+ const PadBox_1 = require("../PadBox");
7
8
  const AppBar_styled_1 = require("./AppBar.styled");
8
9
  const AppBar = ({ drawerOpen, children, }) => {
9
- return ((0, jsx_runtime_1.jsx)(AppBar_styled_1.StyledAppBar, { position: "fixed", open: drawerOpen, children: (0, jsx_runtime_1.jsx)(material_1.Toolbar, { children: children }) }));
10
+ return ((0, jsx_runtime_1.jsx)(AppBar_styled_1.StyledAppBar, { position: "fixed", open: drawerOpen, children: (0, jsx_runtime_1.jsx)(material_1.Stack, { direction: "row", alignItems: "center", minHeight: { xs: "58px", lg: "64px" }, children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: {
11
+ padding: { lg: "0 20px", xs: "0px 5px" },
12
+ }, children: children }) }) }));
10
13
  };
11
14
  exports.AppBar = AppBar;
@@ -1,4 +1,4 @@
1
- import type { AppBarProps as MuiAppBarProps } from "@mui/material/AppBar";
1
+ import { type AppBarProps as MuiAppBarProps } from "@mui/material/AppBar";
2
2
  import type { ComponentType } from "react";
3
3
  type StyledAppBarProps = {
4
4
  open?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"AppBar.styled.d.ts","sourceRoot":"","sources":["../../src/AppBar/AppBar.styled.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,KAAK,iBAAiB,GAAG;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,cAAc,CAAC;AAEnB,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,iBAAiB,CAuBvD,CAAC"}
1
+ {"version":3,"file":"AppBar.styled.d.ts","sourceRoot":"","sources":["../../src/AppBar/AppBar.styled.tsx"],"names":[],"mappings":"AAAA,OAAkB,EAChB,KAAK,WAAW,IAAI,cAAc,EACnC,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,KAAK,iBAAiB,GAAG;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,cAAc,CAAC;AAEnB,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,iBAAiB,CAgDxD,CAAC"}
@@ -4,26 +4,43 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.StyledAppBar = void 0;
7
- const material_1 = require("@mui/material");
8
7
  const AppBar_1 = __importDefault(require("@mui/material/AppBar"));
9
- exports.StyledAppBar = (0, material_1.styled)(AppBar_1.default, {
8
+ const styles_1 = require("@mui/material/styles");
9
+ exports.StyledAppBar = (0, styles_1.styled)(AppBar_1.default, {
10
10
  shouldForwardProp: (prop) => prop !== "open",
11
- })(({ theme, open }) => ({
12
- background: theme.palette.app.color.iron[600],
13
- boxShadow: "unset",
14
- zIndex: theme.zIndex.drawer + 1,
15
- transition: theme.transitions.create(["width", "margin"], {
16
- easing: theme.transitions.easing.sharp,
17
- duration: theme.transitions.duration.leavingScreen,
18
- }),
19
- marginLeft: "80px",
20
- width: "calc(100% - 80px)",
21
- ...(open && {
22
- marginLeft: "300px",
23
- width: "calc(100% - 300px)",
11
+ })(({ theme, open }) => {
12
+ const drawerWidth = 300;
13
+ const collapsedWidth = 80;
14
+ const mobileOffset = open ? collapsedWidth : 0;
15
+ const desktopOffset = open ? drawerWidth : collapsedWidth;
16
+ return {
17
+ background: theme.palette.app.color.iron[600],
18
+ boxShadow: "unset",
19
+ zIndex: theme.zIndex.drawer + 1,
24
20
  transition: theme.transitions.create(["width", "margin"], {
25
21
  easing: theme.transitions.easing.sharp,
26
- duration: theme.transitions.duration.enteringScreen,
22
+ duration: theme.transitions.duration.standard,
27
23
  }),
28
- }),
29
- }));
24
+ width: "100%",
25
+ [theme.breakpoints.down("md")]: {
26
+ paddingLeft: "0px",
27
+ paddingRight: "0px",
28
+ marginLeft: `${mobileOffset}px`,
29
+ width: `calc(100% - ${mobileOffset}px)`,
30
+ },
31
+ [theme.breakpoints.up("md")]: {
32
+ paddingLeft: "0px",
33
+ paddingRight: "0px",
34
+ marginLeft: `${desktopOffset}px`,
35
+ width: `calc(100% - ${desktopOffset}px)`,
36
+ },
37
+ ...(open && {
38
+ marginLeft: "300px",
39
+ width: "calc(100% - 300px)",
40
+ transition: theme.transitions.create(["width", "margin"], {
41
+ easing: theme.transitions.easing.sharp,
42
+ duration: theme.transitions.duration.enteringScreen,
43
+ }),
44
+ }),
45
+ };
46
+ });
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,cAAc,GAAG;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,WAAW,eAAe,4CAsDrD,CAAC"}
1
+ {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,cAAc,GAAG;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,WAAW,eAAe,4CAuErD,CAAC"}
@@ -7,7 +7,22 @@ const uuid_1 = require("uuid");
7
7
  const Breadcrumbs = ({ items }) => {
8
8
  const theme = (0, material_1.useTheme)();
9
9
  const { butterflyBlue } = theme.palette.app.color;
10
- return ((0, jsx_runtime_1.jsx)(material_1.Breadcrumbs, { children: items.map((item) => {
10
+ return ((0, jsx_runtime_1.jsx)(material_1.Breadcrumbs, { sx: {
11
+ display: "flex",
12
+ flexWrap: "nowrap",
13
+ overflowX: "auto",
14
+ whiteSpace: "nowrap",
15
+ "& .MuiBreadcrumbs-ol": {
16
+ display: "flex",
17
+ flexWrap: "nowrap",
18
+ },
19
+ "& .MuiBreadcrumbs-li": {
20
+ whiteSpace: "nowrap",
21
+ },
22
+ "&::-webkit-scrollbar": {
23
+ display: "none",
24
+ },
25
+ }, children: items.map((item) => {
11
26
  const { icon, text, onClick } = item;
12
27
  if (onClick) {
13
28
  return ((0, jsx_runtime_1.jsxs)(material_1.Link, { underline: "hover", sx: { display: "flex", alignItems: "center" }, onClick: (e) => {
@@ -1 +1 @@
1
- {"version":3,"file":"DeleteDialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/DeleteDialog.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,sDAM1B,iBAAiB,4CA4BnB,CAAC"}
1
+ {"version":3,"file":"DeleteDialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/DeleteDialog.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,sDAM1B,iBAAiB,4CA4BnB,CAAC"}
@@ -9,7 +9,8 @@ const InfoTwoTone_1 = __importDefault(require("@mui/icons-material/InfoTwoTone")
9
9
  const material_1 = require("@mui/material");
10
10
  const Button_1 = require("../Button");
11
11
  const Dialog_1 = require("./Dialog");
12
+ const Layouts_1 = require("../Layouts");
12
13
  const DeleteDialog = ({ title, open, isDeleteLoading, onDelete, onClose, }) => {
13
- return ((0, jsx_runtime_1.jsx)(Dialog_1.Dialog, { maxWidth: "xs", isHideCloseIcon: true, isHideDividers: true, open: open, actions: (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", gap: "5px", children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onClose, variant: "outlined", children: "Cancel" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onDelete, color: "error", loading: isDeleteLoading, children: "Delete" })] }), children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { gap: "10px", direction: "row", children: [(0, jsx_runtime_1.jsx)(InfoTwoTone_1.default, { color: "error", sx: { mt: "1px" } }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "subtitle1", fontWeight: 700, children: title })] }) }));
14
+ return ((0, jsx_runtime_1.jsx)(Dialog_1.Dialog, { maxWidth: "xs", isHideCloseIcon: true, isHideDividers: true, open: open, actions: (0, jsx_runtime_1.jsxs)(Layouts_1.ButtonContainer, { children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onClose, variant: "outlined", children: "Cancel" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onDelete, color: "error", loading: isDeleteLoading, children: "Delete" })] }), children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { gap: "10px", direction: "row", children: [(0, jsx_runtime_1.jsx)(InfoTwoTone_1.default, { color: "error", sx: { mt: "1px" } }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "subtitle1", fontWeight: 700, children: title })] }) }));
14
15
  };
15
16
  exports.DeleteDialog = DeleteDialog;
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/Dialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAQL,KAAK,WAAW,IAAI,cAAc,EACnC,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG1D,MAAM,MAAM,WAAW,GAAG,iBAAiB,CACzC,cAAc,GAAG;IACf,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CACF,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,kFAQpB,WAAW,4CA6Bb,CAAC"}
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/Dialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,WAAW,IAAI,cAAc,EACnC,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAK1D,MAAM,MAAM,WAAW,GAAG,iBAAiB,CACzC,cAAc,GAAG;IACf,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CACF,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,kFAQpB,WAAW,4CAuCb,CAAC"}
@@ -7,8 +7,15 @@ exports.Dialog = void 0;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const HighlightOff_1 = __importDefault(require("@mui/icons-material/HighlightOff"));
9
9
  const material_1 = require("@mui/material");
10
- const PadBox_1 = require("../PadBox");
10
+ const utils_1 = require("../utils");
11
+ const DialogContent_Styled_1 = require("./DialogContent.Styled");
12
+ const DialogActions_Styled_1 = require("./DialogActions.Styled");
11
13
  const Dialog = ({ title, isHideCloseIcon = false, isHideDividers = false, children, onClose, actions, ...props }) => {
12
- return ((0, jsx_runtime_1.jsxs)(material_1.Dialog, { fullWidth: true, ...props, children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { textAlign: "center", children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h5", fontWeight: 500, flex: 1, children: title }), !isHideCloseIcon && ((0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: (event) => onClose && onClose(event, "escapeKeyDown"), color: "secondary", children: (0, jsx_runtime_1.jsx)(HighlightOff_1.default, { fontSize: "large" }) }))] }) }), (0, jsx_runtime_1.jsx)(material_1.DialogContent, { dividers: !isHideDividers, children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: "10px" }, children: children }) }), actions && ((0, jsx_runtime_1.jsx)(material_1.DialogActions, { sx: { py: "16px", px: "24px" }, children: actions }))] }));
14
+ const { layout } = (0, utils_1.useGetDeviceType)();
15
+ return ((0, jsx_runtime_1.jsxs)(material_1.Dialog, { fullWidth: true, ...props, children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { padding: {
16
+ xs: "10px",
17
+ sm: "16px 20px",
18
+ md: "16px 24px",
19
+ }, textAlign: "center", children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h6", fontWeight: 500, flex: 1, children: title }), !isHideCloseIcon && ((0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: (event) => onClose && onClose(event, "escapeKeyDown"), color: "secondary", size: "small", children: (0, jsx_runtime_1.jsx)(HighlightOff_1.default, { fontSize: layout === "desktop" ? "large" : "medium" }) }))] }) }), (0, jsx_runtime_1.jsx)(DialogContent_Styled_1.StyledDialogContent, { dividers: !isHideDividers, children: children }), actions && (0, jsx_runtime_1.jsx)(DialogActions_Styled_1.StyledDialogActions, { children: actions })] }));
13
20
  };
14
21
  exports.Dialog = Dialog;
@@ -0,0 +1,10 @@
1
+ import type { DialogActionsProps } from "@mui/material/DialogActions";
2
+ import { type Theme } from "@mui/material/styles";
3
+ export declare const getDialogTheme: (theme: Theme) => {
4
+ [x: string]: string | {
5
+ padding: string;
6
+ };
7
+ padding: string;
8
+ };
9
+ export declare const StyledDialogActions: React.ComponentType<DialogActionsProps>;
10
+ //# sourceMappingURL=DialogActions.Styled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DialogActions.Styled.d.ts","sourceRoot":"","sources":["../../src/Dialog/DialogActions.Styled.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAO,MAAM,cAAc,GAAI,OAAO,KAAK;;;;;CAYzC,CAAC;AAEH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAGnE,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StyledDialogActions = exports.getDialogTheme = void 0;
4
+ const material_1 = require("@mui/material");
5
+ const styles_1 = require("@mui/material/styles");
6
+ const getDialogTheme = (theme) => ({
7
+ padding: "16px 24px",
8
+ [theme.breakpoints.up("xs")]: {
9
+ padding: "10px",
10
+ },
11
+ [theme.breakpoints.up("sm")]: {
12
+ padding: "16px 20px",
13
+ },
14
+ [theme.breakpoints.up("md")]: {
15
+ padding: "16px 24px",
16
+ },
17
+ });
18
+ exports.getDialogTheme = getDialogTheme;
19
+ exports.StyledDialogActions = (0, styles_1.styled)(material_1.DialogActions)(({ theme }) => ({
20
+ ...(0, exports.getDialogTheme)(theme),
21
+ }));
@@ -0,0 +1,3 @@
1
+ import { type DialogContentProps } from "@mui/material";
2
+ export declare const StyledDialogContent: React.ComponentType<DialogContentProps>;
3
+ //# sourceMappingURL=DialogContent.Styled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DialogContent.Styled.d.ts","sourceRoot":"","sources":["../../src/Dialog/DialogContent.Styled.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAIvE,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAGnE,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StyledDialogContent = void 0;
4
+ const material_1 = require("@mui/material");
5
+ const styles_1 = require("@mui/material/styles");
6
+ const DialogActions_Styled_1 = require("./DialogActions.Styled");
7
+ exports.StyledDialogContent = (0, styles_1.styled)(material_1.DialogContent)(({ theme }) => ({
8
+ ...(0, DialogActions_Styled_1.getDialogTheme)(theme),
9
+ }));
@@ -1 +1 @@
1
- {"version":3,"file":"SaveDialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/SaveDialog.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,kDAMxB,eAAe,4CA8BjB,CAAC"}
1
+ {"version":3,"file":"SaveDialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/SaveDialog.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,kDAMxB,eAAe,4CA8BjB,CAAC"}
@@ -8,10 +8,11 @@ const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const InfoTwoTone_1 = __importDefault(require("@mui/icons-material/InfoTwoTone"));
9
9
  const material_1 = require("@mui/material");
10
10
  const Button_1 = require("../Button");
11
+ const Layouts_1 = require("../Layouts");
11
12
  const Dialog_1 = require("./Dialog");
12
13
  const SaveDialog = ({ title, open, isSaveLoading = false, onSave, onClose, }) => {
13
14
  const theme = (0, material_1.useTheme)();
14
15
  const { butterflyBlue } = theme.palette.app.color;
15
- return ((0, jsx_runtime_1.jsx)(Dialog_1.Dialog, { maxWidth: "xs", isHideCloseIcon: true, isHideDividers: true, open: open, actions: (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", gap: "5px", children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onClose, variant: "outlined", children: "Cancel" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onSave, loading: isSaveLoading, children: "Save" })] }), children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { gap: "10px", direction: "row", children: [(0, jsx_runtime_1.jsx)(InfoTwoTone_1.default, { htmlColor: butterflyBlue[900], sx: { mt: "1px" } }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "subtitle1", children: title })] }) }));
16
+ return ((0, jsx_runtime_1.jsx)(Dialog_1.Dialog, { maxWidth: "xs", isHideCloseIcon: true, isHideDividers: true, open: open, actions: (0, jsx_runtime_1.jsxs)(Layouts_1.ButtonContainer, { children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onClose, variant: "outlined", children: "Cancel" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onSave, loading: isSaveLoading, children: "Save" })] }), children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { gap: "10px", direction: "row", children: [(0, jsx_runtime_1.jsx)(InfoTwoTone_1.default, { htmlColor: butterflyBlue[900], sx: { mt: "1px" } }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "subtitle1", children: title })] }) }));
16
17
  };
17
18
  exports.SaveDialog = SaveDialog;
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../src/Drawer/Drawer.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAQf,MAAM,MAAM,QAAQ,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACrE,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,uCAIpB,WAAW,4CAgCb,CAAC"}
1
+ {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../src/Drawer/Drawer.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAUf,MAAM,MAAM,QAAQ,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACrE,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,uCAIpB,WAAW,4CA2Db,CAAC"}
@@ -12,6 +12,7 @@ const react_1 = require("react");
12
12
  const PadBox_1 = require("../PadBox");
13
13
  const AppLogoMedium_1 = require("../Svgs/AppLogo/AppLogoMedium");
14
14
  const AppLogoSmall_1 = require("../Svgs/AppLogo/AppLogoSmall");
15
+ const useGetDeviceType_1 = require("../utils/hooks/useGetDeviceType");
15
16
  const CloseDrawerMenuItemList_1 = require("./CloseDrawer/CloseDrawerMenuItemList");
16
17
  const Drawer_styled_1 = require("./Drawer.styled");
17
18
  const OpenDrawerMenuItemList_1 = require("./OpenDrawer/OpenDrawerMenuItemList");
@@ -20,6 +21,8 @@ const Drawer = ({ menuItems = [], open, currentPathname, }) => {
20
21
  const handleClose = () => {
21
22
  setAnchorEl(null);
22
23
  };
23
- return ((0, jsx_runtime_1.jsxs)(Drawer_styled_1.StyledDrawer, { variant: "permanent", open: open, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { textAlign: "center", children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { paddingTop: "1.5rem" }, children: open ? (0, jsx_runtime_1.jsx)(AppLogoMedium_1.AppLogoMedium, {}) : (0, jsx_runtime_1.jsx)(AppLogoSmall_1.AppLogoSmall, {}) }) }), (0, jsx_runtime_1.jsx)(List_1.default, { component: "nav", onMouseLeave: handleClose, children: open ? ((0, jsx_runtime_1.jsx)(OpenDrawerMenuItemList_1.OpenDrawerMenuItemList, { menuItems: menuItems, currentPathname: currentPathname })) : ((0, jsx_runtime_1.jsx)(CloseDrawerMenuItemList_1.CloseDrawerMenuItemList, { menuItems: menuItems, currentPathname: currentPathname, anchorEl: anchorEl, setAnchorEl: setAnchorEl })) })] }));
24
+ const { layout } = (0, useGetDeviceType_1.useGetDeviceType)();
25
+ const isDesktop = layout === "desktop";
26
+ return ((0, jsx_runtime_1.jsxs)(Drawer_styled_1.StyledDrawer, { variant: "permanent", open: open, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { textAlign: "center", children: [isDesktop && ((0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { paddingTop: "1.5rem" }, children: open ? (0, jsx_runtime_1.jsx)(AppLogoMedium_1.AppLogoMedium, {}) : (0, jsx_runtime_1.jsx)(AppLogoSmall_1.AppLogoSmall, {}) })), !isDesktop && ((0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { paddingTop: "0.5rem", paddingBottom: "0.5rem" }, children: (0, jsx_runtime_1.jsx)(AppLogoSmall_1.AppLogoSmall, {}) }))] }), isDesktop && ((0, jsx_runtime_1.jsx)(List_1.default, { component: "nav", onMouseLeave: handleClose, children: open ? ((0, jsx_runtime_1.jsx)(OpenDrawerMenuItemList_1.OpenDrawerMenuItemList, { menuItems: menuItems, currentPathname: currentPathname })) : ((0, jsx_runtime_1.jsx)(CloseDrawerMenuItemList_1.CloseDrawerMenuItemList, { menuItems: menuItems, currentPathname: currentPathname, anchorEl: anchorEl, setAnchorEl: setAnchorEl })) })), !isDesktop && ((0, jsx_runtime_1.jsx)(material_1.ClickAwayListener, { onClickAway: handleClose, children: (0, jsx_runtime_1.jsx)(List_1.default, { component: "nav", onMouseLeave: handleClose, children: (0, jsx_runtime_1.jsx)(CloseDrawerMenuItemList_1.CloseDrawerMenuItemList, { menuItems: menuItems, currentPathname: currentPathname, anchorEl: anchorEl, setAnchorEl: setAnchorEl }) }) }))] }));
24
27
  };
25
28
  exports.Drawer = Drawer;
@@ -1,9 +1,9 @@
1
1
  import type { BoxProps, DrawerProps as MuiDrawerProps } from "@mui/material";
2
2
  import type { ComponentType } from "react";
3
3
  export declare const Bullet: ComponentType<BoxProps>;
4
- type StyledDrawerProps = {
4
+ type StyledDrawerProps = MuiDrawerProps & {
5
5
  open?: boolean;
6
- } & MuiDrawerProps;
6
+ };
7
7
  export declare const StyledDrawer: ComponentType<StyledDrawerProps>;
8
8
  export {};
9
9
  //# sourceMappingURL=Drawer.styled.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.styled.d.ts","sourceRoot":"","sources":["../../src/Drawer/Drawer.styled.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EAER,WAAW,IAAI,cAAc,EAE9B,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,eAAO,MAAM,MAAM,EAAE,aAAa,CAAC,QAAQ,CAKxC,CAAC;AA2BJ,KAAK,iBAAiB,GAAG;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,cAAc,CAAC;AACnB,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,iBAAiB,CAkBvD,CAAC"}
1
+ {"version":3,"file":"Drawer.styled.d.ts","sourceRoot":"","sources":["../../src/Drawer/Drawer.styled.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EAER,WAAW,IAAI,cAAc,EAE9B,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,eAAO,MAAM,MAAM,EAAE,aAAa,CAAC,QAAQ,CAKxC,CAAC;AAEJ,KAAK,iBAAiB,GAAG,cAAc,GAAG;IACxC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,iBAAiB,CAiDxD,CAAC"}
@@ -8,41 +8,46 @@ exports.Bullet = (0, material_1.styled)(material_1.Box)(({ theme }) => ({
8
8
  borderRadius: "50%",
9
9
  background: theme.palette.app.color.butterflyBlue[400],
10
10
  }));
11
- const drawerWidth = 300;
12
- const openedMixin = (theme) => ({
13
- width: drawerWidth,
14
- transition: theme.transitions.create("width", {
15
- easing: theme.transitions.easing.sharp,
16
- duration: theme.transitions.duration.enteringScreen,
17
- }),
18
- overflowX: "hidden",
19
- backgroundColor: theme.palette.app.color.mirage[900],
20
- });
21
- const closedMixin = (theme) => ({
22
- transition: theme.transitions.create("width", {
23
- easing: theme.transitions.easing.sharp,
24
- duration: theme.transitions.duration.leavingScreen,
25
- }),
26
- overflowX: "hidden",
27
- width: "80px",
28
- [theme.breakpoints.up("sm")]: {
29
- width: "80px",
30
- },
31
- backgroundColor: theme.palette.app.color.mirage[900],
32
- });
33
11
  exports.StyledDrawer = (0, material_1.styled)(material_1.Drawer, {
34
12
  shouldForwardProp: (prop) => prop !== "open",
35
- })(({ theme, open }) => ({
36
- width: drawerWidth,
37
- flexShrink: 0,
38
- whiteSpace: "nowrap",
39
- boxSizing: "border-box",
40
- ...(open && {
41
- ...openedMixin(theme),
42
- "& .MuiDrawer-paper": openedMixin(theme),
43
- }),
44
- ...(!open && {
45
- ...closedMixin(theme),
46
- "& .MuiDrawer-paper": closedMixin(theme),
47
- }),
48
- }));
13
+ })(({ theme, open }) => {
14
+ const drawerWidth = 300;
15
+ const openedMixin = (theme) => ({
16
+ width: drawerWidth,
17
+ transition: theme.transitions.create("width", {
18
+ easing: theme.transitions.easing.sharp,
19
+ duration: theme.transitions.duration.enteringScreen,
20
+ }),
21
+ overflowX: "hidden",
22
+ backgroundColor: theme.palette.app.color.mirage[900],
23
+ [theme.breakpoints.down("md")]: {
24
+ width: "80px",
25
+ },
26
+ });
27
+ const closedMixin = (theme) => ({
28
+ transition: theme.transitions.create("width", {
29
+ easing: theme.transitions.easing.sharp,
30
+ duration: theme.transitions.duration.leavingScreen,
31
+ }),
32
+ overflowX: "hidden",
33
+ width: "0px",
34
+ [theme.breakpoints.up("md")]: {
35
+ width: "80px",
36
+ },
37
+ backgroundColor: theme.palette.app.color.mirage[900],
38
+ });
39
+ return {
40
+ width: drawerWidth,
41
+ flexShrink: 0,
42
+ whiteSpace: "nowrap",
43
+ boxSizing: "border-box",
44
+ ...(open && {
45
+ ...openedMixin(theme),
46
+ "& .MuiDrawer-paper": openedMixin(theme),
47
+ }),
48
+ ...(!open && {
49
+ ...closedMixin(theme),
50
+ "& .MuiDrawer-paper": closedMixin(theme),
51
+ }),
52
+ };
53
+ });
@@ -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,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,CACb,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,EACrC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,KACzB,GAAG,CAAC,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5C,aAAa,CAAC,EAAE,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;CACtE,CAAC;AAEJ,wBAAgB,YAAY,CAAC,CAAC,SAAS,WAAW,EAAE,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,GAAG,SAAS,EACb,EAAE,iBAAiB,CAAC,CAAC,CAAC,2CAkYtB"}
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,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,CACb,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,EACrC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,KACzB,GAAG,CAAC,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5C,aAAa,CAAC,EAAE,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACrE,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEJ,wBAAgB,YAAY,CAAC,CAAC,SAAS,WAAW,EAAE,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 = "";
@@ -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,MAAM,gCAAgC,CAAC;AAE5F,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAG5E,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAKzB,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,WAAW,IAAI,kBAAkB,CAAC,CAAC,CAAC,GACxE,kBAAkB,CAAC,eAAe,CAAC,GACnC,OAAO,CAAC;IACN,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;IAClB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/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;AAEL,eAAO,MAAM,WAAW;;;CAGvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAcjC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAclC,CAAC;AAEF,wBAAgB,UAAU,CAAC,CAAC,SAAS,WAAW,EAAE,EAChD,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,QAAgB,EAChB,KAAK,EACL,QAAgB,EAChB,IAAI,EACJ,KAAa,EACb,UAAU,EACV,OAAe,EACf,QAAgB,EAChB,SAAgB,EAChB,KAAK,EACL,oBAA4B,EAC5B,KAAgC,EAChC,MAAqC,EACrC,GAAG,SAAS,EACb,EAAE,eAAe,CAAC,CAAC,CAAC,2CAgLpB"}
1
+ {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/FormFields/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,IAAI,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAE5F,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAG5E,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAKzB,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,WAAW,IAAI,kBAAkB,CAAC,CAAC,CAAC,GACxE,kBAAkB,CAAC,eAAe,CAAC,GACnC,OAAO,CAAC;IACN,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;IAClB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/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;AAEL,eAAO,MAAM,WAAW;;;CAGvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAcjC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAclC,CAAC;AAEF,wBAAgB,UAAU,CAAC,CAAC,SAAS,WAAW,EAAE,EAChD,QAAQ,EACR,OAAO,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,KAAgC,EAChC,MAAqC,EACrC,GAAG,SAAS,EACb,EAAE,eAAe,CAAC,CAAC,CAAC,2CA8LpB"}
@@ -40,7 +40,7 @@ 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, 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);
@@ -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: "bold",
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
  },
@@ -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;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,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;AAkCL,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,SAAgB,EAChB,KAAK,EACL,MAA2B,EAC3B,UAAU,EACV,WAAW,EACX,gBAAoB,EACpB,GAAG,SAAS,EACb,EAAE,mBAAmB,CAAC,CAAC,CAAC,2CAqKxB"}
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;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,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
- ? // eslint-disable-next-line sonarjs/no-nested-conditional
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
- "& .MuiMultiSectionDigitalClockSection-item.Mui-selected:hover": {
88
- backgroundColor: butterflyBlue[900],
89
- borderRadius: "5px",
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: "bold",
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;CAClB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,wBAG5B,mBAAmB,4CAerB,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
- return ((0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, spacing: 2, children: react_1.Children.map(children, (child, index) => child && (
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
- (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12 / columns, children: child }, index))) }));
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;
@@ -3,4 +3,6 @@ export * from "./FormGridLayout";
3
3
  export * from "./FormRow";
4
4
  export * from "./FormSection";
5
5
  export * from "./FilePreviewContainer";
6
+ export * from "./ButtonContainer";
7
+ export * from "./MasterPageLayout";
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -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,5 +1,5 @@
1
1
  import type { TabOwnProps } from "@mui/material/Tab";
2
- import type { ReactElement } from "react";
2
+ import type { MouseEvent, ReactElement } from "react";
3
3
  export type TabsItems = {
4
4
  value: string;
5
5
  label: string;
@@ -7,7 +7,8 @@ export type TabsItems = {
7
7
  toolTipLabel?: string;
8
8
  iconPosition?: TabOwnProps["iconPosition"];
9
9
  isView?: boolean;
10
- onClick: () => void;
10
+ onClick: (e: MouseEvent) => void;
11
+ onMouseDown?: (e: MouseEvent) => void;
11
12
  };
12
13
  type TabsProps = {
13
14
  tabs: TabsItems[];
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../src/Tab/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;IAC3C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,0BAA0B,SAAS,4CAoCvD,CAAC"}
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../src/Tab/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAKtD,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;IAC3C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,0BAA0B,SAAS,4CAoCvD,CAAC"}
@@ -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, { width: 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: {
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;AAElB,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"}
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,5 @@
1
+ export type Layout = "mobile" | "tablet" | "desktop";
2
+ export declare function useGetDeviceType(): {
3
+ layout: Layout;
4
+ };
5
+ //# sourceMappingURL=useGetDeviceType.d.ts.map
@@ -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
+ }
@@ -7,4 +7,5 @@ export * from "./regex";
7
7
  export * from "./theme/colorPaletteUI";
8
8
  export * from "./theme/theme";
9
9
  export * from "./urlToNestedObject";
10
+ export * from "./hooks/useGetDeviceType";
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -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,CAaxC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAC3C,wBAAwB,EACxB,MAAM,CAQP,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,iBAGpC,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: { fontSize: "96px", lineHeight: "112px" },
10
- h2: { fontSize: "60px", lineHeight: "72px" },
11
- h3: { fontSize: "48px", lineHeight: "56px" },
12
- h4: { fontSize: "36px", lineHeight: "42px" },
13
- h5: { fontSize: "24px", lineHeight: "24px" },
14
- h6: { fontSize: "20px", lineHeight: "24px" },
15
- subtitle1: { fontSize: "18px", lineHeight: "24px" },
16
- subtitle2: { fontSize: "14px", lineHeight: "24px" },
17
- body1: { fontSize: "16px", lineHeight: "24px" },
18
- body2: { fontSize: "14px", lineHeight: "20px" },
19
- caption: { fontSize: "12px", lineHeight: "16px" },
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",