@codezee/sixtify-brahma 0.2.40 → 0.2.42
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/Badge/Badge.d.ts +3 -0
- package/packages/shared-components/dist/Badge/Badge.d.ts.map +1 -0
- package/packages/shared-components/dist/Badge/Badge.js +16 -0
- package/packages/shared-components/dist/Badge/index.d.ts +2 -0
- package/packages/shared-components/dist/Badge/index.d.ts.map +1 -0
- package/packages/shared-components/dist/Badge/index.js +17 -0
- package/packages/shared-components/dist/FilterList/FilterListV2.d.ts.map +1 -1
- package/packages/shared-components/dist/FilterList/FilterListV2.js +11 -3
- package/packages/shared-components/dist/FormFields/DatePicker/DatePicker.js +1 -1
- package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/FilePreview.d.ts +11 -0
- package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/FilePreview.d.ts.map +1 -0
- package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/FilePreview.js +41 -0
- package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/ViewFilePreviewDialog.d.ts +8 -0
- package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/ViewFilePreviewDialog.d.ts.map +1 -0
- package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/ViewFilePreviewDialog.js +34 -0
- package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/index.d.ts +3 -0
- package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/index.d.ts.map +1 -0
- package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/index.js +18 -0
- package/packages/shared-components/dist/FormFields/FileUpload/FileNames.d.ts +3 -2
- package/packages/shared-components/dist/FormFields/FileUpload/FileNames.d.ts.map +1 -1
- package/packages/shared-components/dist/FormFields/FileUpload/FileNames.js +27 -2
- package/packages/shared-components/dist/FormFields/FileUpload/index.d.ts +1 -0
- package/packages/shared-components/dist/FormFields/FileUpload/index.d.ts.map +1 -1
- package/packages/shared-components/dist/FormFields/FileUpload/index.js +1 -0
- package/packages/shared-components/dist/Layouts/FilePreviewContainer.d.ts +8 -0
- package/packages/shared-components/dist/Layouts/FilePreviewContainer.d.ts.map +1 -0
- package/packages/shared-components/dist/Layouts/FilePreviewContainer.js +8 -0
- package/packages/shared-components/dist/Layouts/index.d.ts +1 -0
- package/packages/shared-components/dist/Layouts/index.d.ts.map +1 -1
- package/packages/shared-components/dist/Layouts/index.js +1 -0
- 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/download.d.ts +2 -0
- package/packages/shared-components/dist/utils/download.d.ts.map +1 -0
- package/packages/shared-components/dist/utils/download.js +13 -0
- package/packages/shared-components/dist/utils/file.d.ts +1 -0
- package/packages/shared-components/dist/utils/file.d.ts.map +1 -1
- package/packages/shared-components/dist/utils/file.js +5 -0
- package/packages/shared-components/dist/utils/hooks/useDialogActions.d.ts +15 -0
- package/packages/shared-components/dist/utils/hooks/useDialogActions.d.ts.map +1 -0
- package/packages/shared-components/dist/utils/hooks/useDialogActions.js +14 -0
- package/packages/shared-components/dist/utils/index.d.ts +3 -2
- package/packages/shared-components/dist/utils/index.d.ts.map +1 -1
- package/packages/shared-components/dist/utils/index.js +3 -2
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEnE,eAAO,MAAM,KAAK,GAAI,kCAKnB,UAAU,4CAiBZ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Badge = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const material_1 = require("@mui/material");
|
|
6
|
+
const Badge = ({ children, sx, color = "error", ...rest }) => {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Badge, { color: color, sx: {
|
|
8
|
+
padding: "0px",
|
|
9
|
+
zIndex: 1,
|
|
10
|
+
"& .MuiBadge-badge": {
|
|
11
|
+
right: 5,
|
|
12
|
+
},
|
|
13
|
+
...sx,
|
|
14
|
+
}, ...rest, children: children }));
|
|
15
|
+
};
|
|
16
|
+
exports.Badge = Badge;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Badge/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,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("./Badge"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterListV2.d.ts","sourceRoot":"","sources":["../../src/FilterList/FilterListV2.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FilterListV2.d.ts","sourceRoot":"","sources":["../../src/FilterList/FilterListV2.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAenD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAI1D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,WAAW,CAAC;IAC7B,OAAO,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACtE,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACxD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,WAAW,EACjB,eAAe,EAAE,cAAc,EAAE,GAChC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAiB7B;AAED,eAAO,MAAM,YAAY,GAAI,8EAO1B,iBAAiB,4CA0lBnB,CAAC"}
|
|
@@ -15,7 +15,10 @@ const icons_material_1 = require("@mui/icons-material");
|
|
|
15
15
|
const material_1 = require("@mui/material");
|
|
16
16
|
const icons_1 = require("@mui/x-date-pickers/icons");
|
|
17
17
|
const lodash_1 = require("lodash");
|
|
18
|
+
const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
|
|
18
19
|
const isEqual_1 = __importDefault(require("lodash/isEqual"));
|
|
20
|
+
const isNil_1 = __importDefault(require("lodash/isNil"));
|
|
21
|
+
const omitBy_1 = __importDefault(require("lodash/omitBy"));
|
|
19
22
|
const luxon_1 = require("luxon");
|
|
20
23
|
const react_1 = require("react");
|
|
21
24
|
const react_hook_form_1 = require("react-hook-form");
|
|
@@ -52,6 +55,7 @@ const FilterListV2 = ({ filterListItems, isDisabled = false, filterListData, onA
|
|
|
52
55
|
const [openFilterPopup, setOpenFilterPopup] = (0, react_1.useState)(false);
|
|
53
56
|
const [datePickerPopup, setDatePickerPopup] = (0, react_1.useState)(false);
|
|
54
57
|
const [currentFilter, setCurrentFilter] = (0, react_1.useState)(null);
|
|
58
|
+
const [expandedAccordions, setExpandedAccordions] = (0, react_1.useState)({});
|
|
55
59
|
const handleDateRange = (filter) => {
|
|
56
60
|
setCurrentFilter(filter);
|
|
57
61
|
setDatePickerPopup(true);
|
|
@@ -130,7 +134,7 @@ const FilterListV2 = ({ filterListItems, isDisabled = false, filterListData, onA
|
|
|
130
134
|
const onSubmit = (data) => {
|
|
131
135
|
setOpenFilterPopup(false);
|
|
132
136
|
setCurrentFilter(null);
|
|
133
|
-
const filteredData = formatFilterData(data, filterListItems);
|
|
137
|
+
const filteredData = (0, omitBy_1.default)(formatFilterData(data, filterListItems), (v) => (0, isNil_1.default)(v) || (0, isEmpty_1.default)(v));
|
|
134
138
|
onApply(filteredData, openFilterPopup, currentFilter?.key);
|
|
135
139
|
handleClose();
|
|
136
140
|
};
|
|
@@ -237,7 +241,8 @@ const FilterListV2 = ({ filterListItems, isDisabled = false, filterListData, onA
|
|
|
237
241
|
}, onKeyDown: (e) => {
|
|
238
242
|
if (e.key === "Enter") {
|
|
239
243
|
e.preventDefault();
|
|
240
|
-
if (!
|
|
244
|
+
if (!Object.values(expandedAccordions).some(Boolean) &&
|
|
245
|
+
!shouldFormSubmit) {
|
|
241
246
|
handleSubmit((data) => {
|
|
242
247
|
onSubmit(data);
|
|
243
248
|
})();
|
|
@@ -258,7 +263,10 @@ const FilterListV2 = ({ filterListItems, isDisabled = false, filterListData, onA
|
|
|
258
263
|
}, children: [(0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: "10px 30px" }, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", justifyContent: "space-between", width: "100%", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h6", children: "Filter" }), (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => {
|
|
259
264
|
reset();
|
|
260
265
|
handleClose();
|
|
261
|
-
}, children: (0, jsx_runtime_1.jsx)(icons_1.ClearIcon, {}) })] }) }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: { width: "100%" } })] }), (0, jsx_runtime_1.jsx)(material_1.Stack, { flexGrow: 1, sx: { overflowX: "hidden" }, children: filterListItems.map((filter) => filter.type === "switch" ? ((0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", width: "80%", sx: { padding: "10px 5px 10px 20px ", margin: "auto" }, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", children: filter.label }), (0, jsx_runtime_1.jsx)(Switch_1.Switch, { control: control, name: filter.key })] }, filter.key)) : ((0, jsx_runtime_1.jsxs)(material_1.Accordion, { defaultExpanded: !!filterListData?.[filter.key] || filter.required, disabled: filter.isDisabled,
|
|
266
|
+
}, children: (0, jsx_runtime_1.jsx)(icons_1.ClearIcon, {}) })] }) }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: { width: "100%" } })] }), (0, jsx_runtime_1.jsx)(material_1.Stack, { flexGrow: 1, sx: { overflowX: "hidden" }, children: filterListItems.map((filter) => filter.type === "switch" ? ((0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", width: "80%", sx: { padding: "10px 5px 10px 20px ", margin: "auto" }, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", children: filter.label }), (0, jsx_runtime_1.jsx)(Switch_1.Switch, { control: control, name: filter.key })] }, filter.key)) : ((0, jsx_runtime_1.jsxs)(material_1.Accordion, { defaultExpanded: !!filterListData?.[filter.key] || filter.required, disabled: filter.isDisabled, onChange: (_, isExpanded) => setExpandedAccordions((prev) => ({
|
|
267
|
+
...prev,
|
|
268
|
+
[filter.key]: isExpanded,
|
|
269
|
+
})), sx: {
|
|
262
270
|
"&.MuiAccordion-root.Mui-expanded": {
|
|
263
271
|
margin: "0 !important",
|
|
264
272
|
},
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type FilePreviewProps = {
|
|
2
|
+
fileName: string;
|
|
3
|
+
};
|
|
4
|
+
export declare const SUPPORTED_IMAGE_FORMATS: readonly [".png", ".jpg", ".jpeg"];
|
|
5
|
+
export declare const SUPPORTED_PDF_FORMATS: readonly [".pdf"];
|
|
6
|
+
export declare const SUPPORTED_DOC_FORMATS: readonly [".doc", ".docx"];
|
|
7
|
+
export declare const SUPPORTED_EXCEL_FORMATS: readonly [".xls", ".xlsx"];
|
|
8
|
+
export declare function isFileType(url: string, extensions: readonly string[]): boolean;
|
|
9
|
+
export declare const FilePreview: ({ fileName }: FilePreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=FilePreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilePreview.d.ts","sourceRoot":"","sources":["../../../../src/FormFields/FileUpload/Dialogs/FilePreview.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,uBAAuB,oCAAqC,CAAC;AAE1E,eAAO,MAAM,qBAAqB,mBAAoB,CAAC;AAEvD,eAAO,MAAM,qBAAqB,4BAA6B,CAAC;AAEhE,eAAO,MAAM,uBAAuB,4BAA6B,CAAC;AAElE,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,SAAS,MAAM,EAAE,GAC5B,OAAO,CAET;AAED,eAAO,MAAM,WAAW,GAAI,cAAc,gBAAgB,4CA0DzD,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.FilePreview = exports.SUPPORTED_EXCEL_FORMATS = exports.SUPPORTED_DOC_FORMATS = exports.SUPPORTED_PDF_FORMATS = exports.SUPPORTED_IMAGE_FORMATS = void 0;
|
|
7
|
+
exports.isFileType = isFileType;
|
|
8
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
|
+
// components/FilePreview.tsx
|
|
10
|
+
const material_1 = require("@mui/material");
|
|
11
|
+
const image_1 = __importDefault(require("next/image"));
|
|
12
|
+
const Layouts_1 = require("../../../Layouts");
|
|
13
|
+
const PadBox_1 = require("../../../PadBox");
|
|
14
|
+
const utils_1 = require("../../../utils");
|
|
15
|
+
exports.SUPPORTED_IMAGE_FORMATS = [".png", ".jpg", ".jpeg"];
|
|
16
|
+
exports.SUPPORTED_PDF_FORMATS = [".pdf"];
|
|
17
|
+
exports.SUPPORTED_DOC_FORMATS = [".doc", ".docx"];
|
|
18
|
+
exports.SUPPORTED_EXCEL_FORMATS = [".xls", ".xlsx"];
|
|
19
|
+
function isFileType(url, extensions) {
|
|
20
|
+
return extensions.some((ext) => url.toLowerCase().endsWith(ext));
|
|
21
|
+
}
|
|
22
|
+
const FilePreview = ({ fileName }) => {
|
|
23
|
+
const isValidUrl = (0, utils_1.isImageDomainValid)(fileName);
|
|
24
|
+
if (isFileType(fileName, exports.SUPPORTED_PDF_FORMATS)) {
|
|
25
|
+
return ((0, jsx_runtime_1.jsx)(Layouts_1.FilePreviewContainer, { children: (0, jsx_runtime_1.jsx)("iframe", { src: `${fileName}#toolbar=0`, style: { width: "100%", height: "100%" } }) }));
|
|
26
|
+
}
|
|
27
|
+
if (isFileType(fileName, exports.SUPPORTED_IMAGE_FORMATS) && isValidUrl) {
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)(Layouts_1.FilePreviewContainer, { height: "630px", children: (0, jsx_runtime_1.jsx)(image_1.default, { src: fileName, alt: "Attachment", width: 800, height: 0, style: {
|
|
29
|
+
width: "100%",
|
|
30
|
+
height: "100%",
|
|
31
|
+
objectFit: "contain",
|
|
32
|
+
display: "block",
|
|
33
|
+
} }) }));
|
|
34
|
+
}
|
|
35
|
+
if (isFileType(fileName, exports.SUPPORTED_DOC_FORMATS) ||
|
|
36
|
+
isFileType(fileName, exports.SUPPORTED_EXCEL_FORMATS)) {
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(Layouts_1.FilePreviewContainer, { children: (0, jsx_runtime_1.jsx)("iframe", { src: `https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(fileName)}`, style: { width: "100%", height: "100%" } }) }));
|
|
38
|
+
}
|
|
39
|
+
return ((0, jsx_runtime_1.jsx)(Layouts_1.FilePreviewContainer, { children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: "10px" }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", sx: { textAlign: "center" }, children: "File Preview Not Supported" }) }) }));
|
|
40
|
+
};
|
|
41
|
+
exports.FilePreview = FilePreview;
|
package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/ViewFilePreviewDialog.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type ViewFilePreviewDialogProps = {
|
|
2
|
+
open: boolean;
|
|
3
|
+
fileName: string;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const ViewFilePreviewDialog: ({ open, onClose, fileName, }: ViewFilePreviewDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=ViewFilePreviewDialog.d.ts.map
|
package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/ViewFilePreviewDialog.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewFilePreviewDialog.d.ts","sourceRoot":"","sources":["../../../../src/FormFields/FileUpload/Dialogs/ViewFilePreviewDialog.tsx"],"names":[],"mappings":"AAOA,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,8BAInC,0BAA0B,4CA6C5B,CAAC"}
|
package/packages/shared-components/dist/FormFields/FileUpload/Dialogs/ViewFilePreviewDialog.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ViewFilePreviewDialog = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const material_1 = require("@mui/material");
|
|
6
|
+
const Actions_1 = require("../../../Actions");
|
|
7
|
+
const Dialog_1 = require("../../../Dialog");
|
|
8
|
+
const PadBox_1 = require("../../../PadBox");
|
|
9
|
+
const download_1 = require("../../../utils/download");
|
|
10
|
+
const FilePreview_1 = require("./FilePreview");
|
|
11
|
+
const ViewFilePreviewDialog = ({ open, onClose, fileName, }) => {
|
|
12
|
+
const theme = (0, material_1.useTheme)();
|
|
13
|
+
const { butterflyBlue, iron } = theme.palette.app.color;
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)(Dialog_1.Dialog, { maxWidth: "lg", onClose: onClose, open: open, title: "View File Preview", children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
15
|
+
bgcolor: butterflyBlue[700],
|
|
16
|
+
borderRadius: "5px",
|
|
17
|
+
}, children: (0, jsx_runtime_1.jsx)(PadBox_1.PadBox, { padding: { padding: "20px" }, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
18
|
+
position: "relative",
|
|
19
|
+
backgroundColor: iron[600],
|
|
20
|
+
overflowY: "auto",
|
|
21
|
+
maxHeight: "650px",
|
|
22
|
+
boxShadow: "none",
|
|
23
|
+
}, children: [(0, jsx_runtime_1.jsx)(Actions_1.DownloadIconAction
|
|
24
|
+
// eslint-disable-next-line sonarjs/no-misused-promises
|
|
25
|
+
, {
|
|
26
|
+
// eslint-disable-next-line sonarjs/no-misused-promises
|
|
27
|
+
onClick: () => (0, download_1.downloadFile)(fileName, fileName), sx: {
|
|
28
|
+
position: "absolute",
|
|
29
|
+
top: 15,
|
|
30
|
+
right: 15,
|
|
31
|
+
zIndex: 10,
|
|
32
|
+
} }), (0, jsx_runtime_1.jsx)(FilePreview_1.FilePreview, { fileName: fileName })] }) }) }) }));
|
|
33
|
+
};
|
|
34
|
+
exports.ViewFilePreviewDialog = ViewFilePreviewDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/FormFields/FileUpload/Dialogs/index.tsx"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./FilePreview"), exports);
|
|
18
|
+
__exportStar(require("./ViewFilePreviewDialog"), exports);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
type FileNamesProps = {
|
|
2
|
-
|
|
2
|
+
fileNames: string[];
|
|
3
3
|
onDelete: (index: number) => void;
|
|
4
|
+
previewEnabled?: boolean;
|
|
4
5
|
};
|
|
5
|
-
export declare const FileNames: ({
|
|
6
|
+
export declare const FileNames: ({ fileNames, previewEnabled, onDelete, }: FileNamesProps) => import("react/jsx-runtime").JSX.Element[];
|
|
6
7
|
export {};
|
|
7
8
|
//# sourceMappingURL=FileNames.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileNames.d.ts","sourceRoot":"","sources":["../../../src/FormFields/FileUpload/FileNames.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileNames.d.ts","sourceRoot":"","sources":["../../../src/FormFields/FileUpload/FileNames.tsx"],"names":[],"mappings":"AAYA,KAAK,cAAc,GAAG;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,0CAIvB,cAAc,8CAsEhB,CAAC"}
|
|
@@ -8,10 +8,35 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
8
8
|
const icons_material_1 = require("@mui/icons-material");
|
|
9
9
|
const DeleteOutlineOutlined_1 = __importDefault(require("@mui/icons-material/DeleteOutlineOutlined"));
|
|
10
10
|
const material_1 = require("@mui/material");
|
|
11
|
+
const drop_1 = __importDefault(require("lodash/drop"));
|
|
12
|
+
const join_1 = __importDefault(require("lodash/join"));
|
|
13
|
+
const last_1 = __importDefault(require("lodash/last"));
|
|
14
|
+
const split_1 = __importDefault(require("lodash/split"));
|
|
15
|
+
const react_1 = require("react");
|
|
11
16
|
const uuid_1 = require("uuid");
|
|
12
|
-
const
|
|
17
|
+
const utils_1 = require("../../utils");
|
|
18
|
+
const ViewFilePreviewDialog_1 = require("./Dialogs/ViewFilePreviewDialog");
|
|
19
|
+
const FileNames = ({ fileNames, previewEnabled = false, onDelete, }) => {
|
|
20
|
+
const [selectedFile, setSelectedFile] = (0, react_1.useState)();
|
|
21
|
+
const { openedDialog, onDialogClose, onDialogOpen } = (0, utils_1.useDialogActions)();
|
|
22
|
+
const names = (0, react_1.useMemo)(() => {
|
|
23
|
+
if (fileNames && Array.isArray(fileNames)) {
|
|
24
|
+
return fileNames.map((url) => {
|
|
25
|
+
const imageName = (0, join_1.default)((0, drop_1.default)((0, split_1.default)((0, last_1.default)((0, split_1.default)(url, "/")), "_")), "_");
|
|
26
|
+
return imageName;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return [];
|
|
30
|
+
}, [fileNames]);
|
|
31
|
+
const handlePreviewClick = (name) => {
|
|
32
|
+
setSelectedFile(name);
|
|
33
|
+
onDialogOpen("viewAttachment");
|
|
34
|
+
};
|
|
35
|
+
const dialogRenderer = {
|
|
36
|
+
viewAttachment: selectedFile && ((0, jsx_runtime_1.jsx)(ViewFilePreviewDialog_1.ViewFilePreviewDialog, { open: openedDialog === "viewAttachment", onClose: onDialogClose, fileName: selectedFile })),
|
|
37
|
+
};
|
|
13
38
|
return names.map((name, index) => {
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", gap: "
|
|
39
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", gap: "5x", alignItems: "center", maxWidth: "80%", children: [(0, jsx_runtime_1.jsx)(icons_material_1.AttachFile, {}), (0, jsx_runtime_1.jsx)(material_1.Typography, { maxWidth: "100%", textOverflow: "clip", children: name })] }), (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", children: [previewEnabled && ((0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => fileNames[index] && handlePreviewClick(fileNames[index]), children: (0, jsx_runtime_1.jsx)(icons_material_1.VisibilityOutlined, {}) })), (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => onDelete(index), children: (0, jsx_runtime_1.jsx)(DeleteOutlineOutlined_1.default, {}) })] }), openedDialog && dialogRenderer[openedDialog]] }, (0, uuid_1.v4)()));
|
|
15
40
|
});
|
|
16
41
|
};
|
|
17
42
|
exports.FileNames = FileNames;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/FormFields/FileUpload/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/FormFields/FileUpload/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Dialogs"), exports);
|
|
17
18
|
__exportStar(require("./FileNames"), exports);
|
|
18
19
|
__exportStar(require("./FileUpload"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
type FilePreviewContainerProps = Readonly<{
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
height?: string | number;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function FilePreviewContainer({ children, height, }: FilePreviewContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=FilePreviewContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilePreviewContainer.d.ts","sourceRoot":"","sources":["../../src/Layouts/FilePreviewContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,yBAAyB,GAAG,QAAQ,CAAC;IACxC,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B,CAAC,CAAC;AAEH,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,MAAY,GACb,EAAE,yBAAyB,2CAM3B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FilePreviewContainer = FilePreviewContainer;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const material_1 = require("@mui/material");
|
|
6
|
+
function FilePreviewContainer({ children, height = 630, }) {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { display: "flex", justifyContent: "center", height: "100%" }, children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: "100%", height }, children: children }) }));
|
|
8
|
+
}
|
|
@@ -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"}
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,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,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,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,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,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC"}
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./Actions"), exports);
|
|
18
18
|
__exportStar(require("./AgGrid"), exports);
|
|
19
19
|
__exportStar(require("./AppBar"), exports);
|
|
20
|
+
__exportStar(require("./Badge"), exports);
|
|
20
21
|
__exportStar(require("./Breadcrumbs"), exports);
|
|
21
22
|
__exportStar(require("./Button"), exports);
|
|
22
23
|
__exportStar(require("./Card"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../src/utils/download.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,GAAU,KAAK,MAAM,EAAE,cAAc,MAAM,kBAUnE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.downloadFile = void 0;
|
|
4
|
+
const file_saver_1 = require("file-saver");
|
|
5
|
+
const downloadFile = async (url, baseFileName) => {
|
|
6
|
+
const response = await fetch(url);
|
|
7
|
+
if (!response.ok) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
const blob = await response.blob();
|
|
11
|
+
(0, file_saver_1.saveAs)(blob, baseFileName);
|
|
12
|
+
};
|
|
13
|
+
exports.downloadFile = downloadFile;
|
|
@@ -2,4 +2,5 @@ export type SupportedFileType = "image/png" | "image/jpeg" | "image/jpg" | "appl
|
|
|
2
2
|
export declare const SUPPORTED_FILE_TYPES: SupportedFileType[];
|
|
3
3
|
export declare const isFileSizeValid: (file: File, maxSizeMB: number) => boolean;
|
|
4
4
|
export declare const isFileTypeValid: (file: File, fileTypes: SupportedFileType[]) => boolean;
|
|
5
|
+
export declare function isImageDomainValid(url: string): boolean;
|
|
5
6
|
//# sourceMappingURL=file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/utils/file.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GACzB,WAAW,GACX,YAAY,GACZ,WAAW,GACX,iBAAiB,GACjB,iBAAiB,GACjB,oBAAoB,GACpB,8BAA8B,GAC9B,yEAAyE,GACzE,mEAAmE,GACnE,0BAA0B,CAAC;AAE/B,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,EAWnD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,MAAM,IAAI,EAAE,WAAW,MAAM,YAI5D,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,MAAM,IAAI,EAAE,WAAW,iBAAiB,EAAE,YAEzE,CAAC"}
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/utils/file.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GACzB,WAAW,GACX,YAAY,GACZ,WAAW,GACX,iBAAiB,GACjB,iBAAiB,GACjB,oBAAoB,GACpB,8BAA8B,GAC9B,yEAAyE,GACzE,mEAAmE,GACnE,0BAA0B,CAAC;AAE/B,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,EAWnD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,MAAM,IAAI,EAAE,WAAW,MAAM,YAI5D,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,MAAM,IAAI,EAAE,WAAW,iBAAiB,EAAE,YAEzE,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,WAI7C"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isFileTypeValid = exports.isFileSizeValid = exports.SUPPORTED_FILE_TYPES = void 0;
|
|
4
|
+
exports.isImageDomainValid = isImageDomainValid;
|
|
4
5
|
exports.SUPPORTED_FILE_TYPES = [
|
|
5
6
|
"image/png",
|
|
6
7
|
"image/jpeg",
|
|
@@ -22,3 +23,7 @@ const isFileTypeValid = (file, fileTypes) => {
|
|
|
22
23
|
return fileTypes.includes(file.type);
|
|
23
24
|
};
|
|
24
25
|
exports.isFileTypeValid = isFileTypeValid;
|
|
26
|
+
function isImageDomainValid(url) {
|
|
27
|
+
const parsedUrl = new URL(url);
|
|
28
|
+
return parsedUrl.hostname === "sixtify.s3.amazonaws.com";
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export type DialogTypes = "add" | "edit" | "delete" | "viewAttachment";
|
|
3
|
+
export type DialogRenderer = {
|
|
4
|
+
[key in DialogTypes]?: ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export type UseDialogActionsFns = {
|
|
7
|
+
onDialogOpen: (config: DialogTypes) => void;
|
|
8
|
+
onDialogClose: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function useDialogActions(): {
|
|
11
|
+
onDialogClose: () => void;
|
|
12
|
+
onDialogOpen: (dialogTypes: DialogTypes) => void;
|
|
13
|
+
openedDialog: DialogTypes | undefined;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=useDialogActions.d.ts.map
|
|
@@ -0,0 +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,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,gBAAgB,CAAC;AAEvE,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,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useDialogActions = useDialogActions;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
function useDialogActions() {
|
|
6
|
+
const [openedDialog, setOpenedDialog] = (0, react_1.useState)();
|
|
7
|
+
const onDialogOpen = (dialogTypes) => setOpenedDialog(dialogTypes);
|
|
8
|
+
const onDialogClose = () => setOpenedDialog(undefined);
|
|
9
|
+
return {
|
|
10
|
+
onDialogClose,
|
|
11
|
+
onDialogOpen,
|
|
12
|
+
openedDialog,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export * from "./theme/theme";
|
|
2
|
-
export * from "./theme/colorPaletteUI";
|
|
3
1
|
export * from "./colorVariant";
|
|
4
2
|
export * from "./date";
|
|
5
3
|
export * from "./file";
|
|
4
|
+
export * from "./hooks/useDialogActions";
|
|
5
|
+
export * from "./theme/colorPaletteUI";
|
|
6
|
+
export * from "./theme/theme";
|
|
6
7
|
export * from "./urlToNestedObject";
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,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,QAAQ,CAAC;AACvB,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
|
|
@@ -14,9 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./theme/theme"), exports);
|
|
18
|
-
__exportStar(require("./theme/colorPaletteUI"), exports);
|
|
19
17
|
__exportStar(require("./colorVariant"), exports);
|
|
20
18
|
__exportStar(require("./date"), exports);
|
|
21
19
|
__exportStar(require("./file"), exports);
|
|
20
|
+
__exportStar(require("./hooks/useDialogActions"), exports);
|
|
21
|
+
__exportStar(require("./theme/colorPaletteUI"), exports);
|
|
22
|
+
__exportStar(require("./theme/theme"), exports);
|
|
22
23
|
__exportStar(require("./urlToNestedObject"), exports);
|