sevago-library 1.1.2 → 1.1.4
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/CHANGELOG.md +12 -0
- package/README.md +1 -112
- package/dist/index.cjs.js +67 -27
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +67 -27
- package/dist/index.esm.js.map +1 -1
- package/dist/src/common/const/other.const.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1375,10 +1375,12 @@ const OPACITY = {
|
|
|
1375
1375
|
0: "00"
|
|
1376
1376
|
};
|
|
1377
1377
|
const PAGE_TAKE_DEFAULT = { page: 1, take: 10 };
|
|
1378
|
+
const TABLET_MEDIA = "@media (min-width: 768px) and (max-width: 1366px)";
|
|
1378
1379
|
const other_const = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1379
1380
|
__proto__: null,
|
|
1380
1381
|
OPACITY,
|
|
1381
|
-
PAGE_TAKE_DEFAULT
|
|
1382
|
+
PAGE_TAKE_DEFAULT,
|
|
1383
|
+
TABLET_MEDIA
|
|
1382
1384
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1383
1385
|
const ANIMATION_TIME = 300;
|
|
1384
1386
|
const SCALE_VALUE = "scale(1.05)";
|
|
@@ -39632,7 +39634,7 @@ const getFocusedListItemIndex = (listElement) => {
|
|
|
39632
39634
|
return children.indexOf(getActiveElement(listElement));
|
|
39633
39635
|
};
|
|
39634
39636
|
const DEFAULT_DESKTOP_MODE_MEDIA_QUERY = "@media (pointer: fine)";
|
|
39635
|
-
function mergeSx(...sxProps) {
|
|
39637
|
+
function mergeSx$1(...sxProps) {
|
|
39636
39638
|
return sxProps.reduce((acc, sxProp) => {
|
|
39637
39639
|
if (Array.isArray(sxProp)) {
|
|
39638
39640
|
acc.push(...sxProp);
|
|
@@ -67749,7 +67751,7 @@ const MobileDateTimePicker = /* @__PURE__ */ React.forwardRef(function MobileDat
|
|
|
67749
67751
|
hidden: false
|
|
67750
67752
|
}, (_c = defaultizedProps.slotProps) == null ? void 0 : _c.tabs),
|
|
67751
67753
|
layout: _extends({}, (_d = defaultizedProps.slotProps) == null ? void 0 : _d.layout, {
|
|
67752
|
-
sx: mergeSx([{
|
|
67754
|
+
sx: mergeSx$1([{
|
|
67753
67755
|
[`& .${multiSectionDigitalClockClasses.root}`]: {
|
|
67754
67756
|
width: DIALOG_WIDTH
|
|
67755
67757
|
},
|
|
@@ -74135,6 +74137,34 @@ const ButtonUploadFileElement = ({
|
|
|
74135
74137
|
/* @__PURE__ */ jsx("input", { type: "file", accept, hidden: true, multiple, ref: fileInputRef, onChange: change })
|
|
74136
74138
|
] });
|
|
74137
74139
|
};
|
|
74140
|
+
const mergeSx = (...items) => {
|
|
74141
|
+
return items.flatMap((item) => {
|
|
74142
|
+
if (!item) return [];
|
|
74143
|
+
return Array.isArray(item) ? item : [item];
|
|
74144
|
+
});
|
|
74145
|
+
};
|
|
74146
|
+
const buttonRootSx = {
|
|
74147
|
+
minWidth: 100,
|
|
74148
|
+
textTransform: "none",
|
|
74149
|
+
borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
|
|
74150
|
+
width: "fit-content",
|
|
74151
|
+
[TABLET_MEDIA]: {
|
|
74152
|
+
minWidth: 120,
|
|
74153
|
+
minHeight: 44,
|
|
74154
|
+
px: 2.5,
|
|
74155
|
+
py: 1,
|
|
74156
|
+
"& .MuiButton-startIcon .material-symbols-rounded, & .MuiButton-endIcon .material-symbols-rounded": {
|
|
74157
|
+
fontSize: 22
|
|
74158
|
+
}
|
|
74159
|
+
}
|
|
74160
|
+
};
|
|
74161
|
+
const buttonContentSx = {
|
|
74162
|
+
...TYPOGRAPHY.textSm.regular,
|
|
74163
|
+
whiteSpace: "nowrap",
|
|
74164
|
+
[TABLET_MEDIA]: {
|
|
74165
|
+
...TYPOGRAPHY.textMd.medium
|
|
74166
|
+
}
|
|
74167
|
+
};
|
|
74138
74168
|
const ButtonElement = ({
|
|
74139
74169
|
content,
|
|
74140
74170
|
loading = false,
|
|
@@ -74143,7 +74173,6 @@ const ButtonElement = ({
|
|
|
74143
74173
|
variant = "contained",
|
|
74144
74174
|
sx,
|
|
74145
74175
|
disabled = false,
|
|
74146
|
-
permission,
|
|
74147
74176
|
...rest
|
|
74148
74177
|
}) => {
|
|
74149
74178
|
const { palette } = useTheme$4();
|
|
@@ -74154,13 +74183,7 @@ const ButtonElement = ({
|
|
|
74154
74183
|
variant,
|
|
74155
74184
|
startIcon: !loading && startIcon ? typeof startIcon === "string" ? /* @__PURE__ */ jsx(IconElement, { icon: startIcon, sx: { cursor: "pointer" } }) : startIcon : void 0,
|
|
74156
74185
|
endIcon: !loading && endIcon ? typeof endIcon === "string" ? /* @__PURE__ */ jsx(IconElement, { icon: endIcon, sx: { cursor: "pointer" } }) : endIcon : void 0,
|
|
74157
|
-
sx:
|
|
74158
|
-
minWidth: 100,
|
|
74159
|
-
textTransform: "none",
|
|
74160
|
-
borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
|
|
74161
|
-
width: "fit-content",
|
|
74162
|
-
...sx
|
|
74163
|
-
},
|
|
74186
|
+
sx: mergeSx(buttonRootSx, sx),
|
|
74164
74187
|
disabled,
|
|
74165
74188
|
children: loading ? /* @__PURE__ */ jsx(
|
|
74166
74189
|
LoadingComponent,
|
|
@@ -74169,7 +74192,7 @@ const ButtonElement = ({
|
|
|
74169
74192
|
size: "small",
|
|
74170
74193
|
sx: { minHeight: "24.5px" }
|
|
74171
74194
|
}
|
|
74172
|
-
) : /* @__PURE__ */ jsx(Typography$1, { sx:
|
|
74195
|
+
) : /* @__PURE__ */ jsx(Typography$1, { sx: buttonContentSx, children: content })
|
|
74173
74196
|
}
|
|
74174
74197
|
);
|
|
74175
74198
|
};
|
|
@@ -74274,6 +74297,31 @@ const getButtonColor = (button, position) => {
|
|
|
74274
74297
|
...buttonProps
|
|
74275
74298
|
};
|
|
74276
74299
|
};
|
|
74300
|
+
const dialogTitleTextSx = {
|
|
74301
|
+
fontSize: "16px",
|
|
74302
|
+
[TABLET_MEDIA]: {
|
|
74303
|
+
fontSize: "18px",
|
|
74304
|
+
lineHeight: "26px"
|
|
74305
|
+
}
|
|
74306
|
+
};
|
|
74307
|
+
const dialogTitleIconSx = {
|
|
74308
|
+
[TABLET_MEDIA]: {
|
|
74309
|
+
fontSize: 22
|
|
74310
|
+
}
|
|
74311
|
+
};
|
|
74312
|
+
const dialogCloseButtonSx = {
|
|
74313
|
+
[TABLET_MEDIA]: {
|
|
74314
|
+
width: 44,
|
|
74315
|
+
height: 44,
|
|
74316
|
+
padding: 1.25
|
|
74317
|
+
}
|
|
74318
|
+
};
|
|
74319
|
+
const dialogCloseIconSx = {
|
|
74320
|
+
fontSize: 20,
|
|
74321
|
+
[TABLET_MEDIA]: {
|
|
74322
|
+
fontSize: 24
|
|
74323
|
+
}
|
|
74324
|
+
};
|
|
74277
74325
|
const DialogElement = ({
|
|
74278
74326
|
iconLabel = "",
|
|
74279
74327
|
label,
|
|
@@ -74343,10 +74391,11 @@ const DialogElement = ({
|
|
|
74343
74391
|
icon: iconLabel,
|
|
74344
74392
|
content: label.toLowerCase(),
|
|
74345
74393
|
size: "medium",
|
|
74346
|
-
|
|
74394
|
+
sxIcon: dialogTitleIconSx,
|
|
74395
|
+
sxText: { ...dialogTitleTextSx, ...sxTitle }
|
|
74347
74396
|
}
|
|
74348
74397
|
),
|
|
74349
|
-
closeButton && /* @__PURE__ */ jsx(IconButton$1, { onClick: () => onClose == null ? void 0 : onClose({}, "escapeKeyDown"), children: /* @__PURE__ */ jsx(IconElement, { icon: "close", sx:
|
|
74398
|
+
closeButton && /* @__PURE__ */ jsx(IconButton$1, { onClick: () => onClose == null ? void 0 : onClose({}, "escapeKeyDown"), sx: dialogCloseButtonSx, children: /* @__PURE__ */ jsx(IconElement, { icon: "close", sx: dialogCloseIconSx }) })
|
|
74350
74399
|
] }),
|
|
74351
74400
|
nodeLabel
|
|
74352
74401
|
]
|
|
@@ -74394,15 +74443,7 @@ const DialogElement = ({
|
|
|
74394
74443
|
/* @__PURE__ */ jsxs(StackRow, { sx: { flex: 1, justifyContent: "flex-end" }, children: [
|
|
74395
74444
|
styledButtonLeft && /* @__PURE__ */ jsx(ButtonElement, { ...styledButtonLeft, fullWidth }),
|
|
74396
74445
|
styledButtonCenter && /* @__PURE__ */ jsx(ButtonElement, { ...styledButtonCenter, fullWidth }),
|
|
74397
|
-
styledButtonRight && /* @__PURE__ */ jsx(
|
|
74398
|
-
ButtonElement,
|
|
74399
|
-
{
|
|
74400
|
-
...styledButtonRight,
|
|
74401
|
-
fullWidth,
|
|
74402
|
-
loading: styledButtonRight.loading,
|
|
74403
|
-
sx: { bgcolor: styledButtonRight.color }
|
|
74404
|
-
}
|
|
74405
|
-
)
|
|
74446
|
+
styledButtonRight && /* @__PURE__ */ jsx(ButtonElement, { ...styledButtonRight, fullWidth, loading: styledButtonRight.loading })
|
|
74406
74447
|
] })
|
|
74407
74448
|
] }) })
|
|
74408
74449
|
}
|
|
@@ -77478,7 +77519,6 @@ const AppsSidebar = ({
|
|
|
77478
77519
|
onClickApp
|
|
77479
77520
|
}) => {
|
|
77480
77521
|
if (!isOpen) return null;
|
|
77481
|
-
const theme = useTheme();
|
|
77482
77522
|
const appsGroupObj = Object.keys(APP_OBJ).reduce(
|
|
77483
77523
|
(r2, key) => {
|
|
77484
77524
|
if (blacklist.includes(key)) return r2;
|
|
@@ -77516,7 +77556,7 @@ const AppsSidebar = ({
|
|
|
77516
77556
|
left: position === "left" ? 0 : "auto",
|
|
77517
77557
|
right: position === "right" ? 0 : "auto",
|
|
77518
77558
|
height: "100%",
|
|
77519
|
-
backgroundColor:
|
|
77559
|
+
backgroundColor: BACKGROUND[50],
|
|
77520
77560
|
zIndex: 100,
|
|
77521
77561
|
padding: PADDING_GAP_LAYOUT,
|
|
77522
77562
|
overflowY: "auto"
|
|
@@ -77536,8 +77576,8 @@ const AppsSidebar = ({
|
|
|
77536
77576
|
iconRadius: 5.5,
|
|
77537
77577
|
titleVariant: "body1",
|
|
77538
77578
|
captionVariant: "caption",
|
|
77539
|
-
titleColor:
|
|
77540
|
-
captionColor:
|
|
77579
|
+
titleColor: GRAY[500],
|
|
77580
|
+
captionColor: GRAY[500],
|
|
77541
77581
|
onClickApp,
|
|
77542
77582
|
showPagination: false
|
|
77543
77583
|
}
|