@codezee/sixtify-brahma 0.2.73 → 0.2.75
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/Actions/ProcessIconAction.d.ts +4 -0
- package/packages/shared-components/dist/Actions/ProcessIconAction.d.ts.map +1 -0
- package/packages/shared-components/dist/Actions/ProcessIconAction.js +11 -0
- package/packages/shared-components/dist/Actions/index.d.ts +1 -0
- package/packages/shared-components/dist/Actions/index.d.ts.map +1 -1
- package/packages/shared-components/dist/Actions/index.js +1 -0
- package/packages/shared-components/dist/CellSelectionTable/CellSelectionTable.d.ts.map +1 -1
- package/packages/shared-components/dist/CellSelectionTable/CellSelectionTable.js +11 -5
- package/packages/shared-components/dist/CellSelectionTable/SubComponents/EmployeeCell.d.ts +3 -1
- package/packages/shared-components/dist/CellSelectionTable/SubComponents/EmployeeCell.d.ts.map +1 -1
- package/packages/shared-components/dist/CellSelectionTable/SubComponents/EmployeeCell.js +17 -2
- package/packages/shared-components/dist/FormFields/DatePicker/DatePicker.d.ts.map +1 -1
- package/packages/shared-components/dist/FormFields/DatePicker/DatePicker.js +17 -7
- package/packages/shared-components/dist/Svgs/InboxIcon.d.ts +3 -0
- package/packages/shared-components/dist/Svgs/InboxIcon.d.ts.map +1 -0
- package/packages/shared-components/dist/Svgs/InboxIcon.js +6 -0
- package/packages/shared-components/dist/Svgs/SvgAddRounded.d.ts +3 -0
- package/packages/shared-components/dist/Svgs/SvgAddRounded.d.ts.map +1 -0
- package/packages/shared-components/dist/Svgs/SvgAddRounded.js +8 -0
- package/packages/shared-components/dist/Svgs/index.d.ts +2 -0
- package/packages/shared-components/dist/Svgs/index.d.ts.map +1 -1
- package/packages/shared-components/dist/Svgs/index.js +2 -0
package/package.json
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IconButtonProps } from "@mui/material";
|
|
2
|
+
export type ProcessIconActionProps = IconButtonProps;
|
|
3
|
+
export declare const ProcessIconAction: (props: ProcessIconActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=ProcessIconAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProcessIconAction.d.ts","sourceRoot":"","sources":["../../src/Actions/ProcessIconAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAKrD,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAC;AAErD,eAAO,MAAM,iBAAiB,GAAI,OAAO,sBAAsB,4CAQ9D,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProcessIconAction = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const material_1 = require("@mui/material");
|
|
6
|
+
const Svgs_1 = require("../Svgs");
|
|
7
|
+
const Tooltip_1 = require("../Tooltip");
|
|
8
|
+
const ProcessIconAction = (props) => {
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, children: (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: "Add", children: (0, jsx_runtime_1.jsx)(Svgs_1.SvgAddRounded, {}) }) }));
|
|
10
|
+
};
|
|
11
|
+
exports.ProcessIconAction = ProcessIconAction;
|
|
@@ -9,5 +9,6 @@ export * from "./ExportIconAction";
|
|
|
9
9
|
export * from "./FilterIconAction";
|
|
10
10
|
export * from "./HistoryIconAction";
|
|
11
11
|
export * from "./ImportIconAction";
|
|
12
|
+
export * from "./ProcessIconAction";
|
|
12
13
|
export * from "./ViewIconAction";
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
|
|
@@ -25,4 +25,5 @@ __exportStar(require("./ExportIconAction"), exports);
|
|
|
25
25
|
__exportStar(require("./FilterIconAction"), exports);
|
|
26
26
|
__exportStar(require("./HistoryIconAction"), exports);
|
|
27
27
|
__exportStar(require("./ImportIconAction"), exports);
|
|
28
|
+
__exportStar(require("./ProcessIconAction"), exports);
|
|
28
29
|
__exportStar(require("./ViewIconAction"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CellSelectionTable.d.ts","sourceRoot":"","sources":["../../src/CellSelectionTable/CellSelectionTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CellSelectionTable.d.ts","sourceRoot":"","sources":["../../src/CellSelectionTable/CellSelectionTable.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EACL,KAAK,UAAU,EACf,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAYf,OAAO,KAAK,EACV,SAAS,EACT,MAAM,EAGP,MAAM,eAAe,CAAC;AAEvB,MAAM,MAAM,IAAI,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC;AAEnE,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,eAAe,EAAE,CACf,aAAa,EAAE,UAAU,CAAC,SAAS,EAAE,CAAC,EACtC,CAAC,EAAE,UAAU,KACV,IAAI,CAAC;IACV,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;CAC/C,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,oFAQhC,QAAQ,CAAC,uBAAuB,CAAC,4CA0XnC,CAAC"}
|
|
@@ -5,6 +5,7 @@ exports.CellSelectionTable = void 0;
|
|
|
5
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
6
|
const material_1 = require("@mui/material");
|
|
7
7
|
const react_1 = require("react");
|
|
8
|
+
const Tooltip_1 = require("../Tooltip");
|
|
8
9
|
const useStickyColumns_1 = require("./hook/useStickyColumns");
|
|
9
10
|
const EmployeeCell_1 = require("./SubComponents/EmployeeCell");
|
|
10
11
|
const TableBodyLoader_1 = require("./SubComponents/TableBodyLoader");
|
|
@@ -158,8 +159,13 @@ const CellSelectionTable = ({ columns, data, onCellSelection, cellColors, height
|
|
|
158
159
|
"& th, & td": {
|
|
159
160
|
borderRight: `1px solid ${slate[700]}`,
|
|
160
161
|
borderBottom: `1px solid ${slate[700]}`,
|
|
161
|
-
|
|
162
|
-
|
|
162
|
+
height: "40px",
|
|
163
|
+
},
|
|
164
|
+
"& th": {
|
|
165
|
+
padding: "2px 5px",
|
|
166
|
+
},
|
|
167
|
+
"& td": {
|
|
168
|
+
padding: "0px 5px",
|
|
163
169
|
},
|
|
164
170
|
}, 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", lockPinned = false, align = "left", }, ci) => {
|
|
165
171
|
const isSticky = stickyMap.has(ci);
|
|
@@ -174,7 +180,7 @@ const CellSelectionTable = ({ columns, data, onCellSelection, cellColors, height
|
|
|
174
180
|
backgroundColor: slate[700],
|
|
175
181
|
minWidth,
|
|
176
182
|
padding: "5px 10px",
|
|
177
|
-
}, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "subtitle2", children: label }) }, key));
|
|
183
|
+
}, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "subtitle2", lineHeight: "18px", children: label }) }, key));
|
|
178
184
|
}) }) }), loading ? ((0, jsx_runtime_1.jsx)(TableBodyLoader_1.TableBodyLoader, { columns: columns, rowCount: 25 })) : ((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", lockPinned = false, }, ci) => {
|
|
179
185
|
const cell = row[key];
|
|
180
186
|
const getRowTitle = (0, helper_1.getCellValue)(cell, "cellLabel");
|
|
@@ -187,7 +193,7 @@ const CellSelectionTable = ({ columns, data, onCellSelection, cellColors, height
|
|
|
187
193
|
const cellActive = (0, helper_1.getCellValue)(cell, "cellActive");
|
|
188
194
|
const isSticky = stickyMap.has(ci);
|
|
189
195
|
const left = isSticky ? stickyMap.get(ci) : 0;
|
|
190
|
-
const content = isEmployee ? ((0, jsx_runtime_1.jsx)(EmployeeCell_1.EmployeeCell, { row: row })) : ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", children: getRowTitle }));
|
|
196
|
+
const content = isEmployee ? ((0, jsx_runtime_1.jsx)(EmployeeCell_1.EmployeeCell, { row: row, maxWidth: maxWidth, minWidth: minWidth })) : ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", children: getRowTitle }));
|
|
191
197
|
const isNotDisabled = !(columns[ci]?.disableSelection || row?.rowDisabled);
|
|
192
198
|
return ((0, jsx_runtime_1.jsx)(material_1.TableCell, { align: align, sx: {
|
|
193
199
|
...(lockPinned && {
|
|
@@ -217,7 +223,7 @@ const CellSelectionTable = ({ columns, data, onCellSelection, cellColors, height
|
|
|
217
223
|
? handleCellMouseEnter(ri, ci)
|
|
218
224
|
: undefined, onMouseUp: (e) => handleCellMouseUp(ri, ci)(e), onContextMenu: isNotDisabled
|
|
219
225
|
? handleContextMenuCallback(ri, ci)
|
|
220
|
-
: undefined, children: tooltip ? ((0, jsx_runtime_1.jsx)(
|
|
226
|
+
: undefined, children: tooltip ? ((0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: tooltip, children: content })) : (content) }, key));
|
|
221
227
|
}) }, typeof row.id === "string" ? row.id : ""))) }))] }) }));
|
|
222
228
|
};
|
|
223
229
|
exports.CellSelectionTable = CellSelectionTable;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { ModifyCellObj } from "../utils";
|
|
2
2
|
type EmployeeCellProps = {
|
|
3
3
|
row: Record<string, string | ModifyCellObj | boolean | undefined>;
|
|
4
|
+
minWidth: number | string;
|
|
5
|
+
maxWidth: number | string;
|
|
4
6
|
};
|
|
5
|
-
export declare const EmployeeCell: ({ row }: EmployeeCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const EmployeeCell: ({ row, minWidth, maxWidth, }: EmployeeCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
8
|
export {};
|
|
7
9
|
//# sourceMappingURL=EmployeeCell.d.ts.map
|
package/packages/shared-components/dist/CellSelectionTable/SubComponents/EmployeeCell.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmployeeCell.d.ts","sourceRoot":"","sources":["../../../src/CellSelectionTable/SubComponents/EmployeeCell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,KAAK,iBAAiB,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"EmployeeCell.d.ts","sourceRoot":"","sources":["../../../src/CellSelectionTable/SubComponents/EmployeeCell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,KAAK,iBAAiB,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;IAClE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,8BAI1B,iBAAiB,4CAqDnB,CAAC"}
|
|
@@ -4,10 +4,25 @@ exports.EmployeeCell = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
6
|
const helper_1 = require("../utils/helper");
|
|
7
|
-
const EmployeeCell = ({ row }) => {
|
|
7
|
+
const EmployeeCell = ({ row, minWidth, maxWidth, }) => {
|
|
8
8
|
const avatar = (0, helper_1.getCellValue)(row.avatar, "avatar");
|
|
9
9
|
const name = (0, helper_1.getCellValue)(row.name, "name");
|
|
10
10
|
const employee_code = (0, helper_1.getCellValue)(row.employee_code, "employee_code");
|
|
11
|
-
|
|
11
|
+
const computedMinWidth = minWidth === "auto" ? maxWidth : minWidth;
|
|
12
|
+
const computedMaxWidth = maxWidth === "auto" ? minWidth : maxWidth;
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", alignItems: "center", gap: "10px", sx: {
|
|
14
|
+
minWidth: computedMinWidth,
|
|
15
|
+
maxWidth: computedMaxWidth,
|
|
16
|
+
}, children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { src: avatar, alt: name, sx: { width: 28, height: 28 } }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
17
|
+
maxWidth: "calc(100% - 28px - 10px)",
|
|
18
|
+
minWidth: 0,
|
|
19
|
+
}, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", noWrap: true, sx: {
|
|
20
|
+
overflow: "hidden",
|
|
21
|
+
textOverflow: "ellipsis",
|
|
22
|
+
display: "block",
|
|
23
|
+
lineHeight: "16px",
|
|
24
|
+
}, children: name }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "caption", sx: {
|
|
25
|
+
lineHeight: "15px",
|
|
26
|
+
}, children: employee_code })] })] }));
|
|
12
27
|
};
|
|
13
28
|
exports.EmployeeCell = EmployeeCell;
|
|
@@ -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;AAG5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AgB,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,2CAsJpB"}
|
|
@@ -124,16 +124,26 @@ function DatePicker({ setError, control, defaultValue, disabled = false, label,
|
|
|
124
124
|
restProps.onAccept(value, details);
|
|
125
125
|
}
|
|
126
126
|
}, onChange: (value, details) => {
|
|
127
|
+
if (!value) {
|
|
128
|
+
onChange(null);
|
|
129
|
+
setLocalError(undefined);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
127
132
|
const isValid = value?.isValid === true;
|
|
128
133
|
const hasError = Boolean(details.validationError ?? !isValid);
|
|
129
134
|
onChange(isValid ? value.toISODate() : null);
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
const errorMessage = hasError
|
|
136
|
+
? "Please enter a valid date"
|
|
137
|
+
: undefined;
|
|
138
|
+
setLocalError(errorMessage);
|
|
139
|
+
requestAnimationFrame(() => {
|
|
140
|
+
if ((0, isFunction_1.default)(setError) && hasError) {
|
|
141
|
+
setError(name, {
|
|
142
|
+
type: "manual",
|
|
143
|
+
message: errorMessage,
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
});
|
|
137
147
|
restProps?.onChange?.(value, details);
|
|
138
148
|
} })] }));
|
|
139
149
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InboxIcon.d.ts","sourceRoot":"","sources":["../../src/Svgs/InboxIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtC,eAAO,MAAM,SAAS,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,4CAuBvD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InboxIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const InboxIcon = (props) => ((0, jsx_runtime_1.jsxs)("svg", { width: "21", height: "21", viewBox: "0 0 18 18", fill: "none", ...props, style: { color: "inherit" }, xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { d: "M4.16019 0.312313C3.50003 0.488094 2.98441 1.01544 2.80863 1.68341C2.76175 1.85919 2.75003 2.1795 2.75003 3.1795V4.44903L1.77738 4.97247C0.363314 5.73028 0.410189 5.69903 0.324251 5.88653C0.253939 6.04669 0.250033 6.22247 0.250033 11.0701C0.250033 16.5389 0.24222 16.2928 0.468783 16.742C0.609408 17.0193 0.949251 17.3631 1.22269 17.5115C1.70316 17.7654 1.19144 17.7498 9.00003 17.7498C16.8086 17.7498 16.2969 17.7654 16.7774 17.5115C17.0508 17.3631 17.3907 17.0193 17.5313 16.742C17.7578 16.2928 17.75 16.5389 17.75 11.0701C17.75 6.23809 17.7461 6.04278 17.6758 5.89044C17.5899 5.69903 17.5743 5.69122 16.1993 4.95294L15.25 4.44903V3.1795C15.25 2.1795 15.2383 1.85919 15.1914 1.68341C15.0157 1.00763 14.4961 0.484188 13.8243 0.308407C13.4883 0.222469 4.48441 0.222469 4.16019 0.312313ZM13.711 1.60138C13.7696 1.64434 13.8555 1.73028 13.8985 1.78887C13.9805 1.89434 13.9805 1.92169 13.9805 5.31622V8.73419L11.8907 9.86309C10.7422 10.4842 9.68753 11.0272 9.55081 11.0701C9.20706 11.1795 8.75003 11.1756 8.41409 11.0584C8.27347 11.0076 7.2305 10.4647 6.08988 9.85137L4.01956 8.73028L4.00784 5.41778C4.00394 3.59747 4.00784 2.05059 4.01956 1.98028C4.04691 1.82403 4.21097 1.62481 4.37113 1.5545C4.46488 1.51153 5.31644 1.50372 9.04691 1.51153C13.5821 1.51934 13.6055 1.51934 13.711 1.60138ZM2.74222 7.50762L2.7305 8.05059L2.11331 7.71466L1.50003 7.37872L1.50785 6.94903L1.51956 6.52325L2.12503 6.20294L2.7305 5.88653L2.74222 6.42559C2.74613 6.72637 2.74613 7.21075 2.74222 7.50762ZM16.4141 6.48809C16.4961 6.53887 16.5 6.56622 16.5 6.96075V7.37872L15.8985 7.69903C15.5664 7.87872 15.2891 8.02325 15.2735 8.02325C15.2618 8.02325 15.25 7.53887 15.25 6.94903V5.87481L15.7891 6.15216C16.0821 6.30841 16.3633 6.45684 16.4141 6.48809ZM3.75003 10.0037C8.12503 12.3631 7.86331 12.2342 8.39456 12.3475C8.83597 12.4412 9.51566 12.4022 9.95706 12.2498C10.2071 12.1678 11.2071 11.6482 13.3946 10.4686L16.4805 8.8045L16.4922 12.3514C16.4961 14.3006 16.4922 15.9529 16.4805 16.0232C16.4493 16.1951 16.25 16.41 16.0782 16.4607C15.9766 16.492 13.7618 16.4998 8.91409 16.492L1.89456 16.4803L1.7891 16.3982C1.7305 16.3553 1.64456 16.2693 1.6016 16.2107C1.51956 16.1053 1.51956 16.0701 1.50785 12.449C1.50394 10.4412 1.51175 8.8045 1.53128 8.81231C1.54691 8.81622 2.54691 9.35528 3.75003 10.0037Z", fill: "#4C5D70" }), (0, jsx_runtime_1.jsx)("path", { d: "M6.24614 4.0548C5.98442 4.16808 5.83598 4.46886 5.89067 4.76183C5.92582 4.94542 6.12114 5.16027 6.29692 5.21105C6.39457 5.2423 7.30082 5.25011 9.08598 5.2423C11.6836 5.23058 11.7305 5.23058 11.836 5.14855C12.043 4.99621 12.1055 4.87121 12.1055 4.62511C12.1055 4.37902 12.043 4.25402 11.836 4.10167C11.7305 4.01964 11.6875 4.01964 9.04692 4.01183C6.87504 4.00402 6.33989 4.01183 6.24614 4.0548Z", fill: "#4C5D70" }), (0, jsx_runtime_1.jsx)("path", { d: "M6.24614 6.5548C5.98442 6.66808 5.83598 6.96886 5.89067 7.26183C5.92582 7.44542 6.12114 7.66027 6.29692 7.71105C6.39457 7.7423 7.20707 7.75011 8.77348 7.7423C11.0586 7.73058 11.1055 7.73058 11.211 7.64855C11.418 7.49621 11.4805 7.37121 11.4805 7.12511C11.4805 6.87902 11.418 6.75402 11.211 6.60167C11.1055 6.51964 11.0586 6.51964 8.73442 6.51183C6.82426 6.50402 6.33989 6.51183 6.24614 6.5548Z", fill: "#4C5D70" })] }));
|
|
6
|
+
exports.InboxIcon = InboxIcon;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SvgAddRounded.d.ts","sourceRoot":"","sources":["../../src/Svgs/SvgAddRounded.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,aAAa,GAAI,OAAO,YAAY,4CAmChD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SvgAddRounded = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const SvgAddRounded = (props) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: 30, height: 30, fill: "none", ...props, children: [(0, jsx_runtime_1.jsx)("path", { fill: "#fff", stroke: "#DBE1E6", strokeWidth: 1.565, d: "M.5 4A3.5 3.5 0 0 1 4 .5h22A3.5 3.5 0 0 1 29.5 4v22a3.5 3.5 0 0 1-3.5 3.5H4A3.5 3.5 0 0 1 .5 26V4Z" }), (0, jsx_runtime_1.jsx)("circle", { cx: "15", cy: "15", r: "8.35", stroke: "#4C5D70", strokeWidth: "1.2" }), (0, jsx_runtime_1.jsx)("path", { d: "M15 10.455v9.091", stroke: "#4C5D70", strokeWidth: 1.565, strokeLinecap: "round", strokeLinejoin: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M10.455 15h9.091", stroke: "#4C5D70", strokeWidth: 1.565, strokeLinecap: "round", strokeLinejoin: "round" })] }));
|
|
7
|
+
};
|
|
8
|
+
exports.SvgAddRounded = SvgAddRounded;
|
|
@@ -5,6 +5,7 @@ export * from "./ImportExcelSuccessIcon";
|
|
|
5
5
|
export * from "./LogoIcon";
|
|
6
6
|
export * from "./SvgAccessDenied";
|
|
7
7
|
export * from "./SvgAdd";
|
|
8
|
+
export * from "./SvgAddRounded";
|
|
8
9
|
export * from "./SvgCalendar";
|
|
9
10
|
export * from "./SvgColumn";
|
|
10
11
|
export * from "./SvgConfigure";
|
|
@@ -14,6 +15,7 @@ export * from "./SvgDrop";
|
|
|
14
15
|
export * from "./SvgExport";
|
|
15
16
|
export * from "./SvgHome";
|
|
16
17
|
export * from "./SvgImport";
|
|
18
|
+
export * from "./InboxIcon";
|
|
17
19
|
export * from "./SvgNoLogo";
|
|
18
20
|
export * from "./SvgNoSign";
|
|
19
21
|
export * from "./SvgPageNotFound";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Svgs/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Svgs/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
|
@@ -21,6 +21,7 @@ __exportStar(require("./ImportExcelSuccessIcon"), exports);
|
|
|
21
21
|
__exportStar(require("./LogoIcon"), exports);
|
|
22
22
|
__exportStar(require("./SvgAccessDenied"), exports);
|
|
23
23
|
__exportStar(require("./SvgAdd"), exports);
|
|
24
|
+
__exportStar(require("./SvgAddRounded"), exports);
|
|
24
25
|
__exportStar(require("./SvgCalendar"), exports);
|
|
25
26
|
__exportStar(require("./SvgColumn"), exports);
|
|
26
27
|
__exportStar(require("./SvgConfigure"), exports);
|
|
@@ -30,6 +31,7 @@ __exportStar(require("./SvgDrop"), exports);
|
|
|
30
31
|
__exportStar(require("./SvgExport"), exports);
|
|
31
32
|
__exportStar(require("./SvgHome"), exports);
|
|
32
33
|
__exportStar(require("./SvgImport"), exports);
|
|
34
|
+
__exportStar(require("./InboxIcon"), exports);
|
|
33
35
|
__exportStar(require("./SvgNoLogo"), exports);
|
|
34
36
|
__exportStar(require("./SvgNoSign"), exports);
|
|
35
37
|
__exportStar(require("./SvgPageNotFound"), exports);
|