@codezee/sixtify-brahma 0.2.57 → 0.2.59
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/ActionButtons/ActionButtons.d.ts.map +1 -1
- package/packages/shared-components/dist/ActionButtons/ActionButtons.js +3 -5
- package/packages/shared-components/dist/ActionButtons/types.d.ts +1 -0
- package/packages/shared-components/dist/ActionButtons/types.d.ts.map +1 -1
- package/packages/shared-components/dist/Actions/ColumnIconAction.js +1 -1
- package/packages/shared-components/dist/Button/ButtonGroup.d.ts +1 -0
- package/packages/shared-components/dist/Button/ButtonGroup.d.ts.map +1 -1
- package/packages/shared-components/dist/Button/ButtonGroup.js +2 -2
- package/packages/shared-components/dist/CellSelectionTable/CellSelectionTable.d.ts +12 -0
- package/packages/shared-components/dist/CellSelectionTable/CellSelectionTable.d.ts.map +1 -0
- package/packages/shared-components/dist/CellSelectionTable/CellSelectionTable.js +116 -0
- package/packages/shared-components/dist/CellSelectionTable/SubComponents/EmployeeCell.d.ts +6 -0
- package/packages/shared-components/dist/CellSelectionTable/SubComponents/EmployeeCell.d.ts.map +1 -0
- package/packages/shared-components/dist/CellSelectionTable/SubComponents/EmployeeCell.js +10 -0
- package/packages/shared-components/dist/CellSelectionTable/index.d.ts +2 -0
- package/packages/shared-components/dist/CellSelectionTable/index.d.ts.map +1 -0
- package/packages/shared-components/dist/CellSelectionTable/index.js +17 -0
- package/packages/shared-components/dist/CellSelectionTable/utils/helper.d.ts +6 -0
- package/packages/shared-components/dist/CellSelectionTable/utils/helper.d.ts.map +1 -0
- package/packages/shared-components/dist/CellSelectionTable/utils/helper.js +54 -0
- package/packages/shared-components/dist/CellSelectionTable/utils/types.d.ts +55 -0
- package/packages/shared-components/dist/CellSelectionTable/utils/types.d.ts.map +1 -0
- package/packages/shared-components/dist/CellSelectionTable/utils/types.js +2 -0
- package/packages/shared-components/dist/Svgs/SvgColumn.js +1 -1
- package/packages/shared-components/dist/Tooltip/Tooltip.js +1 -1
- package/packages/shared-components/dist/index.d.ts +1 -0
- package/packages/shared-components/dist/index.d.ts.map +1 -1
- package/packages/shared-components/dist/index.js +1 -0
- package/packages/shared-components/dist/utils/colorVariant.d.ts +1 -1
- package/packages/shared-components/dist/utils/colorVariant.d.ts.map +1 -1
- package/packages/shared-components/dist/utils/theme/colorPalette.d.ts +14 -15
- package/packages/shared-components/dist/utils/theme/colorPalette.d.ts.map +1 -1
- package/packages/shared-components/dist/utils/theme/colorPalette.js +136 -1
- package/packages/shared-components/dist/utils/theme/paletteDark.d.ts +1 -1
- package/packages/shared-components/dist/utils/theme/theme.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionButtons.d.ts","sourceRoot":"","sources":["../../src/ActionButtons/ActionButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAKhD,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEvD,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG;IAC3C,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,cAAc,CAAC,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;CAC/C,CAAC;AAGF,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,cAAsB,GACvB,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ActionButtons.d.ts","sourceRoot":"","sources":["../../src/ActionButtons/ActionButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAKhD,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEvD,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG;IAC3C,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,cAAc,CAAC,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;CAC/C,CAAC;AAGF,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,cAAsB,GACvB,EAAE,kBAAkB,2CAqGpB"}
|
|
@@ -23,7 +23,7 @@ function ActionButtons({ buttons, justifyContent = "end", }) {
|
|
|
23
23
|
};
|
|
24
24
|
return ((0, jsx_runtime_1.jsx)(material_1.Stack, { direction: "row", gap: "1.6rem", justifyContent: justifyContent, children: buttons
|
|
25
25
|
.filter((button) => !button.hidden)
|
|
26
|
-
.map(({ menuItems, ...button }) => {
|
|
26
|
+
.map(({ menuItems, key, ...button }) => {
|
|
27
27
|
const visibleMenuItems = menuItems?.filter((menuItem) => !menuItem.hidden);
|
|
28
28
|
const isMenuOpen = openMenuKey === button.key;
|
|
29
29
|
const onClick = visibleMenuItems && visibleMenuItems.length > 0
|
|
@@ -31,11 +31,9 @@ function ActionButtons({ buttons, justifyContent = "end", }) {
|
|
|
31
31
|
: (button.onClick ?? noop_1.default);
|
|
32
32
|
const buttonProps = {
|
|
33
33
|
...button,
|
|
34
|
-
dataPTag: button.dataPTag,
|
|
35
|
-
dataCy: button.dataCy,
|
|
36
34
|
onClick,
|
|
37
35
|
};
|
|
38
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
36
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [button.label ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { ...buttonProps, children: button.label }, key)) : ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...buttonProps, children: button.icon }, key)), isMenuOpen && visibleMenuItems && ((0, jsx_runtime_1.jsx)(material_1.Menu, { anchorEl: anchorEl, open: Boolean(anchorEl && isMenuOpen), onClose: handleMenuClose, anchorOrigin: {
|
|
39
37
|
vertical: "bottom",
|
|
40
38
|
horizontal: button.menuPlacement === "left" ? "left" : "right",
|
|
41
39
|
}, children: visibleMenuItems.map((item) => {
|
|
@@ -51,6 +49,6 @@ function ActionButtons({ buttons, justifyContent = "end", }) {
|
|
|
51
49
|
handleMenuClose();
|
|
52
50
|
item.onClick?.();
|
|
53
51
|
}, children: [item.icon, item.label] }, item.key));
|
|
54
|
-
}) }))] }));
|
|
52
|
+
}) }))] }, key));
|
|
55
53
|
}) }));
|
|
56
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ActionButtons/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ActionButtons/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -6,6 +6,6 @@ const material_1 = require("@mui/material");
|
|
|
6
6
|
const Svgs_1 = require("../Svgs");
|
|
7
7
|
const Tooltip_1 = require("../Tooltip");
|
|
8
8
|
const ColumnIconAction = (props) => {
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, sx: { padding: 0 }, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Column Chooser", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgColumn, {}) }) }));
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, sx: { padding: 0, height: "43px" }, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Column Chooser", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgColumn, {}) }) }));
|
|
10
10
|
};
|
|
11
11
|
exports.ColumnIconAction = ColumnIconAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["../../src/Button/ButtonGroup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["../../src/Button/ButtonGroup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACrC,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,aAAa,EAAE,YAAY,EAAE,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,mBAAmB,gBAAgB,4CAsB9D,CAAC"}
|
|
@@ -6,10 +6,10 @@ const material_1 = require("@mui/material");
|
|
|
6
6
|
const lodash_1 = require("lodash");
|
|
7
7
|
const Button_1 = require("./Button");
|
|
8
8
|
const ButtonGroup = ({ renderButtons }) => {
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(material_1.ButtonGroup, { sx: { boxShadow: "none" }, "aria-label": "Basic button group", children: renderButtons?.map(({ icon, value, label, selected, onClick }) => ((0, jsx_runtime_1.jsx)(Button_1.Button, { variant: !selected ? "outlined" : "contained", onClick: () => {
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(material_1.ButtonGroup, { sx: { boxShadow: "none" }, "aria-label": "Basic button group", children: renderButtons?.map(({ icon, value, label, selected, onClick, size = "medium" }) => ((0, jsx_runtime_1.jsx)(Button_1.Button, { variant: !selected ? "outlined" : "contained", onClick: () => {
|
|
10
10
|
if ((0, lodash_1.isFunction)(onClick)) {
|
|
11
11
|
onClick(value);
|
|
12
12
|
}
|
|
13
|
-
}, startIcon: icon, children: label }, value))) }));
|
|
13
|
+
}, startIcon: icon, size: size, children: label }, value))) }));
|
|
14
14
|
};
|
|
15
15
|
exports.ButtonGroup = ButtonGroup;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Dictionary } from "lodash";
|
|
2
|
+
import { type MouseEvent } from "react";
|
|
3
|
+
import type { CellCoord, Column } from "./utils/types";
|
|
4
|
+
export type CellSelectionTableProps = {
|
|
5
|
+
columns: Column[];
|
|
6
|
+
data: Record<string, string>[];
|
|
7
|
+
onCellSelection: (selectedCells: Dictionary<CellCoord[]>, e?: MouseEvent) => void;
|
|
8
|
+
cellColors?: (status: string) => string;
|
|
9
|
+
height?: string | number;
|
|
10
|
+
};
|
|
11
|
+
export declare const CellSelectionTable: ({ columns, data, onCellSelection, cellColors, height, }: Readonly<CellSelectionTableProps>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=CellSelectionTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CellSelectionTable.d.ts","sourceRoot":"","sources":["../../src/CellSelectionTable/CellSelectionTable.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAGzC,OAAO,EAAE,KAAK,UAAU,EAA0C,MAAM,OAAO,CAAC;AAShF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAoB,MAAM,eAAe,CAAC;AAEzE,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IAC/B,eAAe,EAAE,CACf,aAAa,EAAE,UAAU,CAAC,SAAS,EAAE,CAAC,EACtC,CAAC,CAAC,EAAE,UAAU,KACX,IAAI,CAAC;IACV,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,yDAMhC,QAAQ,CAAC,uBAAuB,CAAC,4CAiNnC,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.CellSelectionTable = void 0;
|
|
8
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
|
+
const material_1 = require("@mui/material");
|
|
10
|
+
const groupBy_1 = __importDefault(require("lodash/groupBy"));
|
|
11
|
+
const uniqBy_1 = __importDefault(require("lodash/uniqBy"));
|
|
12
|
+
const react_1 = require("react");
|
|
13
|
+
const Tooltip_1 = require("../Tooltip");
|
|
14
|
+
const EmployeeCell_1 = require("./SubComponents/EmployeeCell");
|
|
15
|
+
const helper_1 = require("./utils/helper");
|
|
16
|
+
const CellSelectionTable = ({ columns, data, onCellSelection, cellColors, height, }) => {
|
|
17
|
+
const theme = (0, material_1.useTheme)();
|
|
18
|
+
const { slate, iron, butterflyBlue } = theme.palette.app.color;
|
|
19
|
+
const selectingRef = (0, react_1.useRef)(false);
|
|
20
|
+
const anchorRef = (0, react_1.useRef)(null);
|
|
21
|
+
const hoveringRef = (0, react_1.useRef)(null);
|
|
22
|
+
const [selectedRanges, setSelectedRanges] = (0, react_1.useState)([]);
|
|
23
|
+
const selectedSet = (0, react_1.useMemo)(() => {
|
|
24
|
+
const set = new Set();
|
|
25
|
+
selectedRanges.flat().forEach((cell) => {
|
|
26
|
+
set.add(`${cell.row}-${cell.col}`);
|
|
27
|
+
});
|
|
28
|
+
return set;
|
|
29
|
+
}, [selectedRanges]);
|
|
30
|
+
const isSelectedCell = (0, react_1.useCallback)((rowIndex, colIndex) => selectedSet.has(`${rowIndex}-${colIndex}`), [selectedSet]);
|
|
31
|
+
const memoizedData = (0, react_1.useMemo)(() => data, [data]);
|
|
32
|
+
function getCellColor({ cellKey, isSelected = false, }) {
|
|
33
|
+
if (isSelected) {
|
|
34
|
+
return butterflyBlue[800];
|
|
35
|
+
}
|
|
36
|
+
if (!isSelected && cellKey && cellColors) {
|
|
37
|
+
return cellColors(cellKey);
|
|
38
|
+
}
|
|
39
|
+
return iron[600];
|
|
40
|
+
}
|
|
41
|
+
const groupedRanges = (0, react_1.useMemo)(() => {
|
|
42
|
+
const unique = (0, uniqBy_1.default)(selectedRanges, (cell) => `${cell.row}-${cell.col}`);
|
|
43
|
+
return (0, groupBy_1.default)(unique, "row");
|
|
44
|
+
}, [selectedRanges]);
|
|
45
|
+
(0, react_1.useMemo)(() => {
|
|
46
|
+
onCellSelection(groupedRanges);
|
|
47
|
+
}, [groupedRanges, onCellSelection]);
|
|
48
|
+
const handleCellMouseDown = (0, react_1.useCallback)((ri, ci) => (e) => {
|
|
49
|
+
(0, helper_1.handleMouseDown)({
|
|
50
|
+
e,
|
|
51
|
+
ri,
|
|
52
|
+
ci,
|
|
53
|
+
selectingRef,
|
|
54
|
+
anchorRef,
|
|
55
|
+
setSelectedRanges,
|
|
56
|
+
});
|
|
57
|
+
}, []);
|
|
58
|
+
const handleCellMouseEnter = (0, react_1.useCallback)((ri, ci) => () => {
|
|
59
|
+
(0, helper_1.handleMouseEnter)({
|
|
60
|
+
selectingRef,
|
|
61
|
+
anchorRef,
|
|
62
|
+
hoveringRef,
|
|
63
|
+
ri,
|
|
64
|
+
ci,
|
|
65
|
+
setSelectedRanges,
|
|
66
|
+
});
|
|
67
|
+
}, []);
|
|
68
|
+
const handleCellMouseUp = (0, react_1.useCallback)((e) => {
|
|
69
|
+
(0, helper_1.handleMouseUp)({
|
|
70
|
+
e,
|
|
71
|
+
selectingRef,
|
|
72
|
+
anchorRef,
|
|
73
|
+
hoveringRef,
|
|
74
|
+
setSelectedRanges,
|
|
75
|
+
});
|
|
76
|
+
}, []);
|
|
77
|
+
const handleContextMenuCallback = (0, react_1.useCallback)((ri, ci) => (e) => {
|
|
78
|
+
if (Object.keys(groupedRanges).length && !e) {
|
|
79
|
+
setSelectedRanges([]);
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
(0, helper_1.handleContextMenu)({
|
|
83
|
+
e,
|
|
84
|
+
ri,
|
|
85
|
+
ci,
|
|
86
|
+
setSelectedRanges,
|
|
87
|
+
onCellSelection,
|
|
88
|
+
});
|
|
89
|
+
}, [setSelectedRanges, onCellSelection, groupedRanges]);
|
|
90
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { position: "relative", overflow: "auto", height: height, bgcolor: iron[600], children: (0, jsx_runtime_1.jsxs)(material_1.Table, { stickyHeader: true, sx: {
|
|
91
|
+
borderCollapse: "separate",
|
|
92
|
+
borderSpacing: 0,
|
|
93
|
+
"& th, & td": {
|
|
94
|
+
borderRight: `1px solid ${slate[700]}`,
|
|
95
|
+
borderBottom: `1px solid ${slate[700]}`,
|
|
96
|
+
padding: "5px",
|
|
97
|
+
height: "50px",
|
|
98
|
+
},
|
|
99
|
+
}, children: [(0, jsx_runtime_1.jsx)(material_1.TableHead, { children: (0, jsx_runtime_1.jsx)(material_1.TableRow, { children: columns.map(({ key, label, minWidth = "auto", align = "left" }) => ((0, jsx_runtime_1.jsx)(material_1.TableCell, { align: align, sx: {
|
|
100
|
+
backgroundColor: slate[700],
|
|
101
|
+
minWidth,
|
|
102
|
+
}, children: label }, key))) }) }), (0, jsx_runtime_1.jsx)(material_1.TableBody, { children: memoizedData.map((row, ri) => ((0, jsx_runtime_1.jsx)(material_1.TableRow, { sx: { backgroundColor: iron[600] }, children: columns.map(({ key, maxWidth = "auto", minWidth = "auto", isEmployee, align = "center", }, ci) => {
|
|
103
|
+
return ((0, jsx_runtime_1.jsx)(material_1.TableCell, { align: align, sx: {
|
|
104
|
+
userSelect: "none",
|
|
105
|
+
overflow: "hidden",
|
|
106
|
+
bgcolor: (0, material_1.lighten)(getCellColor({
|
|
107
|
+
cellKey: row[key],
|
|
108
|
+
isSelected: isSelectedCell(ri, ci),
|
|
109
|
+
}), 0.8),
|
|
110
|
+
cursor: "pointer",
|
|
111
|
+
maxWidth,
|
|
112
|
+
minWidth,
|
|
113
|
+
}, onMouseDown: handleCellMouseDown(ri, ci), onMouseEnter: handleCellMouseEnter(ri, ci), onMouseUp: handleCellMouseUp, onContextMenu: handleContextMenuCallback(ri, ci), children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: row[key], children: isEmployee ? ((0, jsx_runtime_1.jsx)(EmployeeCell_1.EmployeeCell, { row: row })) : ((0, jsx_runtime_1.jsx)(material_1.Typography, { title: row[key], children: row[key] })) }) }, key));
|
|
114
|
+
}) }, row.id))) })] }) }));
|
|
115
|
+
};
|
|
116
|
+
exports.CellSelectionTable = CellSelectionTable;
|
package/packages/shared-components/dist/CellSelectionTable/SubComponents/EmployeeCell.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmployeeCell.d.ts","sourceRoot":"","sources":["../../../src/CellSelectionTable/SubComponents/EmployeeCell.tsx"],"names":[],"mappings":"AAEA,KAAK,iBAAiB,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,SAAS,iBAAiB,4CAatD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EmployeeCell = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const material_1 = require("@mui/material");
|
|
6
|
+
const EmployeeCell = ({ row }) => {
|
|
7
|
+
const { avatar, name, employee_code } = row ?? {};
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", alignItems: "center", gap: "10px", children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { src: avatar, alt: name, sx: { width: 40, height: 40 } }), (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { children: name }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "caption", children: employee_code })] })] }));
|
|
9
|
+
};
|
|
10
|
+
exports.EmployeeCell = EmployeeCell;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/CellSelectionTable/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CellSelectionTable"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { HandleContextMenuArgs, HandleMouseDownArgs, HandleMouseEnterArgs, HandleMunseUpArgs } from "./types";
|
|
2
|
+
export declare function handleMouseEnter({ selectingRef, anchorRef, hoveringRef, ri, ci, setSelectedRanges, }: HandleMouseEnterArgs): void;
|
|
3
|
+
export declare function handleMouseDown({ e, ri, ci, selectingRef, anchorRef, setSelectedRanges, }: HandleMouseDownArgs): void;
|
|
4
|
+
export declare function handleMouseUp({ e, selectingRef, anchorRef, hoveringRef, setSelectedRanges, }: HandleMunseUpArgs): void;
|
|
5
|
+
export declare function handleContextMenu({ e, ri, ci, setSelectedRanges, onCellSelection, }: HandleContextMenuArgs): void;
|
|
6
|
+
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/CellSelectionTable/utils/helper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAgCjB,wBAAgB,gBAAgB,CAAC,EAC/B,YAAY,EACZ,SAAS,EACT,WAAW,EACX,EAAE,EACF,EAAE,EACF,iBAAiB,GAClB,EAAE,oBAAoB,QAOtB;AAED,wBAAgB,eAAe,CAAC,EAC9B,CAAC,EACD,EAAE,EACF,EAAE,EACF,YAAY,EACZ,SAAS,EACT,iBAAiB,GAClB,EAAE,mBAAmB,QAcrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,CAAC,EACD,YAAY,EACZ,SAAS,EACT,WAAW,EACX,iBAAiB,GAClB,EAAE,iBAAiB,QAQnB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,CAAC,EACD,EAAE,EACF,EAAE,EACF,iBAAiB,EACjB,eAAe,GAChB,EAAE,qBAAqB,QAUvB"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handleMouseEnter = handleMouseEnter;
|
|
4
|
+
exports.handleMouseDown = handleMouseDown;
|
|
5
|
+
exports.handleMouseUp = handleMouseUp;
|
|
6
|
+
exports.handleContextMenu = handleContextMenu;
|
|
7
|
+
function updateRange(start, end, setSelectedRanges) {
|
|
8
|
+
const top = Math.min(start.row, end.row);
|
|
9
|
+
const bottom = Math.max(start.row, end.row);
|
|
10
|
+
const left = Math.min(start.col, end.col);
|
|
11
|
+
const right = Math.max(start.col, end.col);
|
|
12
|
+
const range = [];
|
|
13
|
+
for (let r = top; r <= bottom; r++) {
|
|
14
|
+
for (let c = left; c <= right; c++) {
|
|
15
|
+
range.push({ row: r, col: c });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
setSelectedRanges((prev) => {
|
|
19
|
+
const out = [...prev];
|
|
20
|
+
out.splice(out.length - 1, 1, ...range);
|
|
21
|
+
return out;
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function handleMouseEnter({ selectingRef, anchorRef, hoveringRef, ri, ci, setSelectedRanges, }) {
|
|
25
|
+
if (!selectingRef.current || !anchorRef.current) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
hoveringRef.current = { row: ri, col: ci };
|
|
29
|
+
updateRange(anchorRef.current, hoveringRef.current, setSelectedRanges);
|
|
30
|
+
}
|
|
31
|
+
function handleMouseDown({ e, ri, ci, selectingRef, anchorRef, setSelectedRanges, }) {
|
|
32
|
+
const anchor = { row: ri, col: ci };
|
|
33
|
+
selectingRef.current = true;
|
|
34
|
+
anchorRef.current = anchor;
|
|
35
|
+
if (e.ctrlKey || e.metaKey) {
|
|
36
|
+
setSelectedRanges((prev) => [...prev, anchor]);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
setSelectedRanges([anchor]);
|
|
40
|
+
}
|
|
41
|
+
function handleMouseUp({ e, selectingRef, anchorRef, hoveringRef, setSelectedRanges, }) {
|
|
42
|
+
selectingRef.current = false;
|
|
43
|
+
anchorRef.current = null;
|
|
44
|
+
hoveringRef.current = null;
|
|
45
|
+
if (!e.ctrlKey && !e.metaKey) {
|
|
46
|
+
setSelectedRanges([]);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function handleContextMenu({ e, ri, ci, setSelectedRanges, onCellSelection, }) {
|
|
50
|
+
e.preventDefault();
|
|
51
|
+
const singleCell = [{ row: ri, col: ci }];
|
|
52
|
+
setSelectedRanges((prev) => e.ctrlKey || e.metaKey ? [...prev, ...singleCell] : singleCell);
|
|
53
|
+
onCellSelection?.({ selectedCells: singleCell }, e);
|
|
54
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { TableCellProps } from "@mui/material";
|
|
2
|
+
import type { Dictionary } from "lodash";
|
|
3
|
+
import type { Dispatch, MouseEvent, MutableRefObject, SetStateAction } from "react";
|
|
4
|
+
export type Column = {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
isEmployee?: boolean;
|
|
8
|
+
minWidth?: string | number;
|
|
9
|
+
maxWidth?: string | number;
|
|
10
|
+
align?: TableCellProps["align"];
|
|
11
|
+
};
|
|
12
|
+
export type OptionsType = {
|
|
13
|
+
value: string;
|
|
14
|
+
label: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type CellCoord = {
|
|
18
|
+
row: number;
|
|
19
|
+
col: number;
|
|
20
|
+
};
|
|
21
|
+
export type HandleMouseEnterArgs = {
|
|
22
|
+
selectingRef: MutableRefObject<boolean>;
|
|
23
|
+
anchorRef: MutableRefObject<CellCoord | null>;
|
|
24
|
+
hoveringRef: MutableRefObject<CellCoord | null>;
|
|
25
|
+
ri: number;
|
|
26
|
+
ci: number;
|
|
27
|
+
setSelectedRanges: Dispatch<SetStateAction<CellCoord[]>>;
|
|
28
|
+
};
|
|
29
|
+
export type HandleMouseDownArgs = {
|
|
30
|
+
e: MouseEvent<HTMLTableCellElement>;
|
|
31
|
+
ri: number;
|
|
32
|
+
ci: number;
|
|
33
|
+
selectingRef: MutableRefObject<boolean>;
|
|
34
|
+
anchorRef: MutableRefObject<CellCoord | null>;
|
|
35
|
+
setSelectedRanges: Dispatch<SetStateAction<CellCoord[]>>;
|
|
36
|
+
};
|
|
37
|
+
export type HandleMunseUpArgs = {
|
|
38
|
+
e: MouseEvent<HTMLTableCellElement>;
|
|
39
|
+
selectingRef: MutableRefObject<boolean>;
|
|
40
|
+
anchorRef: MutableRefObject<CellCoord | null>;
|
|
41
|
+
hoveringRef: MutableRefObject<CellCoord | null>;
|
|
42
|
+
setSelectedRanges: Dispatch<SetStateAction<CellCoord[]>>;
|
|
43
|
+
};
|
|
44
|
+
export type HandleContextMenuArgs = {
|
|
45
|
+
e: MouseEvent<HTMLTableCellElement>;
|
|
46
|
+
ri: number;
|
|
47
|
+
ci: number;
|
|
48
|
+
setSelectedRanges: Dispatch<SetStateAction<CellCoord[]>>;
|
|
49
|
+
onCellSelection: (ranges: Dictionary<CellCoord[]>, e?: MouseEvent<HTMLTableCellElement>) => void;
|
|
50
|
+
};
|
|
51
|
+
export type GetCellColorArgs = {
|
|
52
|
+
cellKey?: string;
|
|
53
|
+
isSelected: boolean;
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/CellSelectionTable/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,KAAK,EACV,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,cAAc,EACf,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,MAAM,GAAG;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAErD,MAAM,MAAM,oBAAoB,GAAG;IACjC,YAAY,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACxC,SAAS,EAAE,gBAAgB,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAC9C,WAAW,EAAE,gBAAgB,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,EAAE,QAAQ,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;CAC1D,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,EAAE,UAAU,CAAC,oBAAoB,CAAC,CAAC;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACxC,SAAS,EAAE,gBAAgB,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAC9C,iBAAiB,EAAE,QAAQ,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;CAC1D,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,CAAC,EAAE,UAAU,CAAC,oBAAoB,CAAC,CAAC;IACpC,YAAY,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACxC,SAAS,EAAE,gBAAgB,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAC9C,WAAW,EAAE,gBAAgB,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAChD,iBAAiB,EAAE,QAAQ,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;CAC1D,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,CAAC,EAAE,UAAU,CAAC,oBAAoB,CAAC,CAAC;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,EAAE,QAAQ,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;IACzD,eAAe,EAAE,CACf,MAAM,EAAE,UAAU,CAAC,SAAS,EAAE,CAAC,EAC/B,CAAC,CAAC,EAAE,UAAU,CAAC,oBAAoB,CAAC,KACjC,IAAI,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC"}
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SvgColumn = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const SvgColumn = (props) => {
|
|
6
|
-
return ((0, jsx_runtime_1.jsxs)("svg", { width:
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { width: 41, height: 45, viewBox: "0 0 44 45", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [(0, jsx_runtime_1.jsx)("rect", { x: 0.5, y: 1, width: 41, height: 41, rx: 3.5, fill: "white" }), (0, jsx_runtime_1.jsx)("rect", { x: 0.5, y: 1, width: 41, height: 41, rx: 3.5, stroke: "#BCBFC2" }), (0, jsx_runtime_1.jsx)("g", { clipPath: "url(#clip0_38460_84386)", children: (0, jsx_runtime_1.jsx)("path", { d: "M18 12.5V30.5M24 12.5V30.5M16.8 12.5H25.2C26.8802 12.5 27.7202 12.5 28.362 12.827C28.9265 13.1146 29.3854 13.5735 29.673 14.138C30 14.7798 30 15.6198 30 17.3V25.7C30 27.3802 30 28.2202 29.673 28.862C29.3854 29.4265 28.9265 29.8854 28.362 30.173C27.7202 30.5 26.8802 30.5 25.2 30.5H16.8C15.1198 30.5 14.2798 30.5 13.638 30.173C13.0735 29.8854 12.6146 29.4265 12.327 28.862C12 28.2202 12 27.3802 12 25.7V17.3C12 15.6198 12 14.7798 12.327 14.138C12.6146 13.5735 13.0735 13.1146 13.638 12.827C14.2798 12.5 15.1198 12.5 16.8 12.5Z", stroke: "#151E28", strokeWidth: 1, strokeLinecap: "round", strokeLinejoin: "round" }) }), (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", { id: "clip0_38460_84386", children: (0, jsx_runtime_1.jsx)("rect", { width: 20, height: 20, fill: "white", transform: "translate(11 11.5)" }) }) })] }));
|
|
7
7
|
};
|
|
8
8
|
exports.SvgColumn = SvgColumn;
|
|
@@ -9,6 +9,6 @@ const Tooltip = ({ toolTipLabel, children, placement = "top-start", ...rest }) =
|
|
|
9
9
|
overflow: "hidden",
|
|
10
10
|
textOverflow: "ellipsis",
|
|
11
11
|
whiteSpace: "nowrap",
|
|
12
|
-
}, children: children })) : ((0, jsx_runtime_1.jsx)(material_1.Box, { children: children })) }));
|
|
12
|
+
}, children: children })) : ((0, jsx_runtime_1.jsx)(material_1.Box, { display: "inline-flex", children: children })) }));
|
|
13
13
|
};
|
|
14
14
|
exports.Tooltip = Tooltip;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC"}
|
|
@@ -22,6 +22,7 @@ __exportStar(require("./Badge"), exports);
|
|
|
22
22
|
__exportStar(require("./Breadcrumbs"), exports);
|
|
23
23
|
__exportStar(require("./Button"), exports);
|
|
24
24
|
__exportStar(require("./Card"), exports);
|
|
25
|
+
__exportStar(require("./CellSelectionTable"), exports);
|
|
25
26
|
__exportStar(require("./Charts"), exports);
|
|
26
27
|
__exportStar(require("./Chips"), exports);
|
|
27
28
|
__exportStar(require("./ColumnArranger"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type WorkDayType = "present" | "holiday" | "weekly_off" | "working" | "first_half_off" | "second_half_off" | "full_day_weekly_off" | "first_half_weekly_off" | "second_half_weekly_off" | "paid_leave" | "absent" | "late_in_early_out" | "unpaid_leave" | "loss_of_pay" | "penalty" | "first_half_paid_leave" | "second_half_paid_leave" | "full_day_paid_leave" | "first_half_unpaid_leave" | "second_half_unpaid_leave" | "full_day_unpaid_leave" | "leave";
|
|
2
2
|
export type WorkDayTypeShort = "P" | "H" | "WO" | "HO" | "FHWO" | "SHWO" | "PL" | "A" | "LIEO" | "UPL" | "PEN" | "LOP" | "L";
|
|
3
3
|
export declare const serverityOptions: Record<WorkDayType, WorkDayTypeShort>;
|
|
4
|
-
export declare const getColorByVariant: (variant: WorkDayType, type?: string) => string
|
|
4
|
+
export declare const getColorByVariant: (variant: WorkDayType, type?: string) => string;
|
|
5
5
|
export declare const getStatusLabel: (status: WorkDayType) => "Present" | "Absent" | "Weekly Off" | "Working" | "Holiday" | "Paid Leave" | "Unpaid Leave" | "First Half Weekly Off" | "Second Half Weekly Off" | "First Half Off" | "Second Half Off" | "Late In/Early Out" | "Loss of Pay" | "Penalty" | "First Half Paid Leave" | "Second Half Paid Leave" | "Full Day Paid Leave" | "First Half Unpaid Leave" | "Second Half Unpaid Leave" | "Full Day Unpaid Leave" | "Leave";
|
|
6
6
|
//# sourceMappingURL=colorVariant.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colorVariant.d.ts","sourceRoot":"","sources":["../../src/utils/colorVariant.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,SAAS,GACT,YAAY,GACZ,SAAS,GACT,gBAAgB,GAChB,iBAAiB,GACjB,qBAAqB,GACrB,uBAAuB,GACvB,wBAAwB,GACxB,YAAY,GACZ,QAAQ,GACR,mBAAmB,GACnB,cAAc,GACd,aAAa,GACb,SAAS,GACT,uBAAuB,GACvB,wBAAwB,GACxB,qBAAqB,GACrB,yBAAyB,GACzB,0BAA0B,GAC1B,uBAAuB,GACvB,OAAO,CAAC;AAEZ,MAAM,MAAM,gBAAgB,GACxB,GAAG,GACH,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,MAAM,GACN,MAAM,GACN,IAAI,GACJ,GAAG,GACH,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,GAAG,CAAC;AAER,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,WAAW,EAAE,gBAAgB,CAuBlE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,SAAS,WAAW,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"colorVariant.d.ts","sourceRoot":"","sources":["../../src/utils/colorVariant.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,SAAS,GACT,YAAY,GACZ,SAAS,GACT,gBAAgB,GAChB,iBAAiB,GACjB,qBAAqB,GACrB,uBAAuB,GACvB,wBAAwB,GACxB,YAAY,GACZ,QAAQ,GACR,mBAAmB,GACnB,cAAc,GACd,aAAa,GACb,SAAS,GACT,uBAAuB,GACvB,wBAAwB,GACxB,qBAAqB,GACrB,yBAAyB,GACzB,0BAA0B,GAC1B,uBAAuB,GACvB,OAAO,CAAC;AAEZ,MAAM,MAAM,gBAAgB,GACxB,GAAG,GACH,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,MAAM,GACN,MAAM,GACN,IAAI,GACJ,GAAG,GACH,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,GAAG,CAAC;AAER,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,WAAW,EAAE,gBAAgB,CAuBlE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,SAAS,WAAW,EAAE,aAAa,WA4EpE,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,QAAQ,WAAW,wZAuEjD,CAAC"}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import type { Color } from "@mui/material";
|
|
2
|
-
export type ColorShades = Partial<Color>;
|
|
3
2
|
export type ColorPalette = {
|
|
4
|
-
lightSlateBlue:
|
|
5
|
-
lipstickRed:
|
|
6
|
-
darkOrange:
|
|
7
|
-
deepAqua:
|
|
8
|
-
sapphireBlue:
|
|
9
|
-
darkMint:
|
|
10
|
-
butterflyBlue:
|
|
11
|
-
orchid:
|
|
12
|
-
mirage:
|
|
13
|
-
iron:
|
|
14
|
-
slate:
|
|
15
|
-
red:
|
|
16
|
-
lightBlue:
|
|
17
|
-
black:
|
|
3
|
+
lightSlateBlue: Color;
|
|
4
|
+
lipstickRed: Color;
|
|
5
|
+
darkOrange: Color;
|
|
6
|
+
deepAqua: Color;
|
|
7
|
+
sapphireBlue: Color;
|
|
8
|
+
darkMint: Color;
|
|
9
|
+
butterflyBlue: Color;
|
|
10
|
+
orchid: Color;
|
|
11
|
+
mirage: Color;
|
|
12
|
+
iron: Color;
|
|
13
|
+
slate: Color;
|
|
14
|
+
red: Color;
|
|
15
|
+
lightBlue: Color;
|
|
16
|
+
black: Color;
|
|
18
17
|
};
|
|
19
18
|
export declare const colorPalette: ColorPalette;
|
|
20
19
|
//# sourceMappingURL=colorPalette.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colorPalette.d.ts","sourceRoot":"","sources":["../../../src/utils/theme/colorPalette.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"colorPalette.d.ts","sourceRoot":"","sources":["../../../src/utils/theme/colorPalette.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG;IACzB,cAAc,EAAE,KAAK,CAAC;IACtB,WAAW,EAAE,KAAK,CAAC;IACnB,UAAU,EAAE,KAAK,CAAC;IAClB,QAAQ,EAAE,KAAK,CAAC;IAChB,YAAY,EAAE,KAAK,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC;IAChB,aAAa,EAAE,KAAK,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC;IACd,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,KAAK,CAAC;IACb,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,KAAK,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,YAiO1B,CAAC"}
|
|
@@ -9,7 +9,14 @@ exports.colorPalette = {
|
|
|
9
9
|
600: "hsla(0, 0%, 100%, 1)", // white
|
|
10
10
|
500: "hsla(218, 15%, 59%, 1)",
|
|
11
11
|
400: "hsla(0, 0%, 18%, 1)",
|
|
12
|
-
300: "hsla(0, 0%, 0%, 0.35)",
|
|
12
|
+
300: "hsla(0, 0%, 0%, 0.35)",
|
|
13
|
+
50: "hsla(0, 0%, 0%, 0)",
|
|
14
|
+
100: "hsla(0, 0%, 0%, 0)",
|
|
15
|
+
200: "hsla(0, 0%, 0%, 0)",
|
|
16
|
+
A100: "hsla(0, 0%, 0%, 0)",
|
|
17
|
+
A200: "hsla(0, 0%, 0%, 0)",
|
|
18
|
+
A400: "hsla(0, 0%, 0%, 0)",
|
|
19
|
+
A700: "hsla(0, 0%, 0%, 0)",
|
|
13
20
|
},
|
|
14
21
|
slate: {
|
|
15
22
|
900: "hsla(212, 19%, 37%, 1)", // info
|
|
@@ -17,6 +24,15 @@ exports.colorPalette = {
|
|
|
17
24
|
700: "hsl(193, 22%, 92%)",
|
|
18
25
|
600: " hsl(0, 0%, 98%)",
|
|
19
26
|
500: "hsl(0, 0%, 49%)",
|
|
27
|
+
50: "hsla(0, 0%, 0%, 0)",
|
|
28
|
+
100: "hsla(0, 0%, 0%, 0)",
|
|
29
|
+
200: "hsla(0, 0%, 0%, 0)",
|
|
30
|
+
300: "hsla(0, 0%, 0%, 0)",
|
|
31
|
+
400: "hsla(0, 0%, 0%, 0)",
|
|
32
|
+
A100: "hsla(0, 0%, 0%, 0)",
|
|
33
|
+
A200: "hsla(0, 0%, 0%, 0)",
|
|
34
|
+
A400: "hsla(0, 0%, 0%, 0)",
|
|
35
|
+
A700: "hsla(0, 0%, 0%, 0)",
|
|
20
36
|
},
|
|
21
37
|
mirage: {
|
|
22
38
|
900: "hsla(224, 35%, 12%, 1)", // primary
|
|
@@ -24,30 +40,79 @@ exports.colorPalette = {
|
|
|
24
40
|
700: "hsla(226, 34%, 15%, 1)",
|
|
25
41
|
600: "hsla(0, 0%, 22%, 0.7)",
|
|
26
42
|
500: "hsla(0, 0%, 18%, 1)",
|
|
43
|
+
50: "hsla(0, 0%, 0%, 0)",
|
|
44
|
+
100: "hsla(0, 0%, 0%, 0)",
|
|
45
|
+
200: "hsla(0, 0%, 0%, 0)",
|
|
46
|
+
300: "hsla(0, 0%, 0%, 0)",
|
|
47
|
+
400: "hsla(0, 0%, 0%, 0)",
|
|
48
|
+
A100: "hsla(0, 0%, 0%, 0)",
|
|
49
|
+
A200: "hsla(0, 0%, 0%, 0)",
|
|
50
|
+
A400: "hsla(0, 0%, 0%, 0)",
|
|
51
|
+
A700: "hsla(0, 0%, 0%, 0)",
|
|
27
52
|
},
|
|
28
53
|
lightSlateBlue: {
|
|
29
54
|
900: "hsla(234, 99%, 68%, 1)",
|
|
30
55
|
800: "hsla(234, 98%, 81%, 1)",
|
|
31
56
|
700: "hsla(233, 100%, 94%, 1)",
|
|
32
57
|
600: "hsla(236, 100%, 97%, 1)",
|
|
58
|
+
50: "hsla(0, 0%, 0%, 0)",
|
|
59
|
+
100: "hsla(0, 0%, 0%, 0)",
|
|
60
|
+
200: "hsla(0, 0%, 0%, 0)",
|
|
61
|
+
300: "hsla(0, 0%, 0%, 0)",
|
|
62
|
+
400: "hsla(0, 0%, 0%, 0)",
|
|
63
|
+
500: "hsla(0, 0%, 0%, 0)",
|
|
64
|
+
A100: "hsla(0, 0%, 0%, 0)",
|
|
65
|
+
A200: "hsla(0, 0%, 0%, 0)",
|
|
66
|
+
A400: "hsla(0, 0%, 0%, 0)",
|
|
67
|
+
A700: "hsla(0, 0%, 0%, 0)",
|
|
33
68
|
},
|
|
34
69
|
lipstickRed: {
|
|
35
70
|
900: "hsla(349, 90%, 41%, 1)",
|
|
36
71
|
800: "hsla(350, 63%, 64%, 1)",
|
|
37
72
|
700: "hsla(349, 66%, 87%, 1)",
|
|
38
73
|
600: "hsla(348, 100%, 95%, 1)",
|
|
74
|
+
50: "hsla(0, 0%, 0%, 0)",
|
|
75
|
+
100: "hsla(0, 0%, 0%, 0)",
|
|
76
|
+
200: "hsla(0, 0%, 0%, 0)",
|
|
77
|
+
300: "hsla(0, 0%, 0%, 0)",
|
|
78
|
+
400: "hsla(0, 0%, 0%, 0)",
|
|
79
|
+
500: "hsla(0, 0%, 0%, 0)",
|
|
80
|
+
A100: "hsla(0, 0%, 0%, 0)",
|
|
81
|
+
A200: "hsla(0, 0%, 0%, 0)",
|
|
82
|
+
A400: "hsla(0, 0%, 0%, 0)",
|
|
83
|
+
A700: "hsla(0, 0%, 0%, 0)",
|
|
39
84
|
},
|
|
40
85
|
darkOrange: {
|
|
41
86
|
900: "hsla(32, 100%, 52%, 1)", //warning
|
|
42
87
|
800: "hsla(32, 100%, 71%, 1)",
|
|
43
88
|
700: "hsla(33, 100%, 90%, 1)",
|
|
44
89
|
600: "hsla(33, 100%, 95%, 1)",
|
|
90
|
+
50: "hsla(0, 0%, 0%, 0)",
|
|
91
|
+
100: "hsla(0, 0%, 0%, 0)",
|
|
92
|
+
200: "hsla(0, 0%, 0%, 0)",
|
|
93
|
+
300: "hsla(0, 0%, 0%, 0)",
|
|
94
|
+
400: "hsla(0, 0%, 0%, 0)",
|
|
95
|
+
500: "hsla(0, 0%, 0%, 0)",
|
|
96
|
+
A100: "hsla(0, 0%, 0%, 0)",
|
|
97
|
+
A200: "hsla(0, 0%, 0%, 0)",
|
|
98
|
+
A400: "hsla(0, 0%, 0%, 0)",
|
|
99
|
+
A700: "hsla(0, 0%, 0%, 0)",
|
|
45
100
|
},
|
|
46
101
|
deepAqua: {
|
|
47
102
|
900: "hsla(183, 87%, 27%, 1)",
|
|
48
103
|
800: "hsla(184, 50%, 68%, 1)",
|
|
49
104
|
700: "hsla(183, 68%, 79%, 1)",
|
|
50
105
|
600: "hsla(183, 85%, 95%, 1)",
|
|
106
|
+
50: "hsla(0, 0%, 0%, 0)",
|
|
107
|
+
100: "hsla(0, 0%, 0%, 0)",
|
|
108
|
+
200: "hsla(0, 0%, 0%, 0)",
|
|
109
|
+
300: "hsla(0, 0%, 0%, 0)",
|
|
110
|
+
400: "hsla(0, 0%, 0%, 0)",
|
|
111
|
+
500: "hsla(0, 0%, 0%, 0)",
|
|
112
|
+
A100: "hsla(0, 0%, 0%, 0)",
|
|
113
|
+
A200: "hsla(0, 0%, 0%, 0)",
|
|
114
|
+
A400: "hsla(0, 0%, 0%, 0)",
|
|
115
|
+
A700: "hsla(0, 0%, 0%, 0)",
|
|
51
116
|
},
|
|
52
117
|
sapphireBlue: {
|
|
53
118
|
900: "hsla(223, 59%, 49%, 1)",
|
|
@@ -57,12 +122,29 @@ exports.colorPalette = {
|
|
|
57
122
|
500: "hsl(216, 100%, 91%)",
|
|
58
123
|
400: " hsl(217, 100%, 95%)",
|
|
59
124
|
300: " hsl(193, 22%, 92%)",
|
|
125
|
+
50: "hsla(0, 0%, 0%, 0)",
|
|
126
|
+
100: "hsla(0, 0%, 0%, 0)",
|
|
127
|
+
200: "hsla(0, 0%, 0%, 0)",
|
|
128
|
+
A100: "hsla(0, 0%, 0%, 0)",
|
|
129
|
+
A200: "hsla(0, 0%, 0%, 0)",
|
|
130
|
+
A400: "hsla(0, 0%, 0%, 0)",
|
|
131
|
+
A700: "hsla(0, 0%, 0%, 0)",
|
|
60
132
|
},
|
|
61
133
|
darkMint: {
|
|
62
134
|
900: "hsla(136, 59%, 49%, 1)",
|
|
63
135
|
800: "hsla(136, 56%, 69%, 1)",
|
|
64
136
|
700: "hsla(136, 58%, 90%, 1)",
|
|
65
137
|
600: "hsla(133, 54%, 95%, 1)",
|
|
138
|
+
50: "hsla(0, 0%, 0%, 0)",
|
|
139
|
+
100: "hsla(0, 0%, 0%, 0)",
|
|
140
|
+
200: "hsla(0, 0%, 0%, 0)",
|
|
141
|
+
300: "hsla(0, 0%, 0%, 0)",
|
|
142
|
+
400: "hsla(0, 0%, 0%, 0)",
|
|
143
|
+
500: "hsla(0, 0%, 0%, 0)",
|
|
144
|
+
A100: "hsla(0, 0%, 0%, 0)",
|
|
145
|
+
A200: "hsla(0, 0%, 0%, 0)",
|
|
146
|
+
A400: "hsla(0, 0%, 0%, 0)",
|
|
147
|
+
A700: "hsla(0, 0%, 0%, 0)",
|
|
66
148
|
},
|
|
67
149
|
butterflyBlue: {
|
|
68
150
|
900: "hsla(203, 79%, 57%, 1)", //secondary
|
|
@@ -72,23 +154,76 @@ exports.colorPalette = {
|
|
|
72
154
|
500: "hsla(203, 82%, 96%, 1)",
|
|
73
155
|
400: "hsla(208, 25%, 66%, 1)", //primary.light
|
|
74
156
|
300: "hsla(207, 17%, 88%, 1)",
|
|
157
|
+
50: "hsla(0, 0%, 0%, 0)",
|
|
158
|
+
100: "hsla(0, 0%, 0%, 0)",
|
|
159
|
+
200: "hsla(0, 0%, 0%, 0)",
|
|
160
|
+
A100: "hsla(0, 0%, 0%, 0)",
|
|
161
|
+
A200: "hsla(0, 0%, 0%, 0)",
|
|
162
|
+
A400: "hsla(0, 0%, 0%, 0)",
|
|
163
|
+
A700: "hsla(0, 0%, 0%, 0)",
|
|
75
164
|
},
|
|
76
165
|
orchid: {
|
|
77
166
|
900: "hsla(295, 60%, 66%, 1)",
|
|
78
167
|
800: "hsla(295, 61%, 80%, 1)",
|
|
79
168
|
700: "hsla(297, 60%, 93%, 1)",
|
|
80
169
|
600: "hsla(295, 65%, 97%, 1)",
|
|
170
|
+
50: "hsla(0, 0%, 0%, 0)",
|
|
171
|
+
100: "hsla(0, 0%, 0%, 0)",
|
|
172
|
+
200: "hsla(0, 0%, 0%, 0)",
|
|
173
|
+
300: "hsla(0, 0%, 0%, 0)",
|
|
174
|
+
400: "hsla(0, 0%, 0%, 0)",
|
|
175
|
+
500: "hsla(0, 0%, 0%, 0)",
|
|
176
|
+
A100: "hsla(0, 0%, 0%, 0)",
|
|
177
|
+
A200: "hsla(0, 0%, 0%, 0)",
|
|
178
|
+
A400: "hsla(0, 0%, 0%, 0)",
|
|
179
|
+
A700: "hsla(0, 0%, 0%, 0)",
|
|
81
180
|
},
|
|
82
181
|
red: {
|
|
83
182
|
900: "hsla(0, 90%, 47%, 1)", //error
|
|
84
183
|
800: "hsla(0, 73%, 59%, 1)",
|
|
85
184
|
700: "hsla(0, 81%, 37%, 1)",
|
|
185
|
+
50: "hsla(0, 0%, 0%, 0)",
|
|
186
|
+
100: "hsla(0, 0%, 0%, 0)",
|
|
187
|
+
200: "hsla(0, 0%, 0%, 0)",
|
|
188
|
+
300: "hsla(0, 0%, 0%, 0)",
|
|
189
|
+
400: "hsla(0, 0%, 0%, 0)",
|
|
190
|
+
500: "hsla(0, 0%, 0%, 0)",
|
|
191
|
+
600: "hsla(0, 0%, 0%, 0)",
|
|
192
|
+
A100: "hsla(0, 0%, 0%, 0)",
|
|
193
|
+
A200: "hsla(0, 0%, 0%, 0)",
|
|
194
|
+
A400: "hsla(0, 0%, 0%, 0)",
|
|
195
|
+
A700: "hsla(0, 0%, 0%, 0)",
|
|
86
196
|
},
|
|
87
197
|
lightBlue: {
|
|
88
198
|
100: "hsla(193, 4%, 92%)",
|
|
89
199
|
50: "hsla(193, 0%, 100%)",
|
|
200
|
+
200: "hsla(0, 0%, 0%, 0)",
|
|
201
|
+
300: "hsla(0, 0%, 0%, 0)",
|
|
202
|
+
400: "hsla(0, 0%, 0%, 0)",
|
|
203
|
+
500: "hsla(0, 0%, 0%, 0)",
|
|
204
|
+
600: "hsla(0, 0%, 0%, 0)",
|
|
205
|
+
700: "hsla(0, 0%, 0%, 0)",
|
|
206
|
+
800: "hsla(0, 0%, 0%, 0)",
|
|
207
|
+
900: "hsla(0, 0%, 0%, 0)",
|
|
208
|
+
A100: "hsla(0, 0%, 0%, 0)",
|
|
209
|
+
A200: "hsla(0, 0%, 0%, 0)",
|
|
210
|
+
A400: "hsla(0, 0%, 0%, 0)",
|
|
211
|
+
A700: "hsla(0, 0%, 0%, 0)",
|
|
90
212
|
},
|
|
91
213
|
black: {
|
|
92
214
|
900: "hsl(0, 0%, 0%)",
|
|
215
|
+
50: "hsla(0, 0%, 0%, 0)",
|
|
216
|
+
100: "hsla(0, 0%, 0%, 0)",
|
|
217
|
+
200: "hsla(0, 0%, 0%, 0)",
|
|
218
|
+
300: "hsla(0, 0%, 0%, 0)",
|
|
219
|
+
400: "hsla(0, 0%, 0%, 0)",
|
|
220
|
+
500: "hsla(0, 0%, 0%, 0)",
|
|
221
|
+
600: "hsla(0, 0%, 0%, 0)",
|
|
222
|
+
700: "hsla(0, 0%, 0%, 0)",
|
|
223
|
+
800: "hsla(0, 0%, 0%, 0)",
|
|
224
|
+
A100: "hsla(0, 0%, 0%, 0)",
|
|
225
|
+
A200: "hsla(0, 0%, 0%, 0)",
|
|
226
|
+
A400: "hsla(0, 0%, 0%, 0)",
|
|
227
|
+
A700: "hsla(0, 0%, 0%, 0)",
|
|
93
228
|
},
|
|
94
229
|
};
|
|
@@ -11,7 +11,7 @@ export declare const getPaletteByTheme: (mode: PaletteMode) => {
|
|
|
11
11
|
color: import("./colorPalette").ColorPalette;
|
|
12
12
|
paperBoxShadow: string;
|
|
13
13
|
};
|
|
14
|
-
divider: string
|
|
14
|
+
divider: string;
|
|
15
15
|
mode: PaletteMode;
|
|
16
16
|
} | {
|
|
17
17
|
primary?: import("@mui/material").PaletteColorOptions;
|