componentes-sinco 1.2.6 → 1.2.7
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/dist/index.cjs +14 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +62 -78
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3035,7 +3035,7 @@ var SCDateRange = ({
|
|
|
3035
3035
|
setState
|
|
3036
3036
|
}) => {
|
|
3037
3037
|
import_x_license.LicenseInfo.setLicenseKey(
|
|
3038
|
-
"
|
|
3038
|
+
"aa892a011e4c240f3cdaf811ecfff54fTz0xMjkyODQsRT0xODEwNDI1NTk5MDAwLFM9cHJvLExNPWFubnVhbCxQVj1RMy0yMDI0LEtWPTI="
|
|
3039
3039
|
);
|
|
3040
3040
|
const isStartEmpty = required && !state[0];
|
|
3041
3041
|
const isEndEmpty = required && !state[1];
|
|
@@ -3350,6 +3350,7 @@ function SCDrawer({
|
|
|
3350
3350
|
chipFilters,
|
|
3351
3351
|
heightDrawer = 456,
|
|
3352
3352
|
filterSideCard,
|
|
3353
|
+
type = "Drawer",
|
|
3353
3354
|
onChipDelete
|
|
3354
3355
|
}) {
|
|
3355
3356
|
const drawerBleeding = heightDrawer;
|
|
@@ -3416,26 +3417,26 @@ function SCDrawer({
|
|
|
3416
3417
|
onToggle: toggleDrawer(true)
|
|
3417
3418
|
}
|
|
3418
3419
|
)
|
|
3419
|
-
),
|
|
3420
|
+
), type != "Swipeable" ? /* @__PURE__ */ import_react24.default.createElement(
|
|
3420
3421
|
import_material18.Drawer,
|
|
3421
3422
|
{
|
|
3422
3423
|
open: drawerOpen,
|
|
3423
|
-
onClose:
|
|
3424
|
+
onClose: type == "Sidecar" ? void 0 : toggleDrawer(false),
|
|
3424
3425
|
anchor: anchor != null ? anchor : "left",
|
|
3425
3426
|
sx: {
|
|
3426
3427
|
"& .MuiDrawer-paper": {
|
|
3427
|
-
width:
|
|
3428
|
+
width: type == "Sidecar" ? "100%" : width != null ? width : "450px",
|
|
3428
3429
|
boxSizing: "border-box",
|
|
3429
3430
|
borderRadius: anchor !== "right" ? "0px 4px 4px 0px" : "4px 0px 0px 4px",
|
|
3430
|
-
boxShadow:
|
|
3431
|
+
boxShadow: type == "Sidecar" ? "none !important" : "0px 8px 10px -5px rgba(24, 39, 75, 0.2), 0px 16px 24px 2px rgba(24, 39, 75, 0.14), 0px 6px 30px 5px rgba(24, 39, 75, 0.12)"
|
|
3431
3432
|
},
|
|
3432
3433
|
"&.MuiDrawer-root": {
|
|
3433
|
-
boxShadow:
|
|
3434
|
+
boxShadow: type == "Sidecar" ? "none !important" : "0px 3px 1px -2px rgba(24, 39, 75, 0.20),0px 2px 2px 0px rgba(24, 39, 75, 0.14),0px 1px 5px 0px rgba(24, 39, 75, 0.12)"
|
|
3434
3435
|
}
|
|
3435
3436
|
},
|
|
3436
3437
|
ModalProps: {
|
|
3437
3438
|
keepMounted: true,
|
|
3438
|
-
disablePortal:
|
|
3439
|
+
disablePortal: type == "Sidecar" ? true : false,
|
|
3439
3440
|
slotProps: {
|
|
3440
3441
|
root: {
|
|
3441
3442
|
style: {
|
|
@@ -4573,36 +4574,19 @@ var PageHeader = ({
|
|
|
4573
4574
|
var import_react43 = __toESM(require("react"), 1);
|
|
4574
4575
|
var import_material29 = require("@mui/material");
|
|
4575
4576
|
var import_ExpandMore = __toESM(require("@mui/icons-material/ExpandMore"), 1);
|
|
4576
|
-
var import_ExpandLess = __toESM(require("@mui/icons-material/ExpandLess"), 1);
|
|
4577
4577
|
var SCAccordion = ({
|
|
4578
4578
|
title,
|
|
4579
4579
|
actions,
|
|
4580
4580
|
children
|
|
4581
4581
|
}) => {
|
|
4582
4582
|
const [open, setOpen] = (0, import_react43.useState)(false);
|
|
4583
|
-
return /* @__PURE__ */ import_react43.default.createElement(
|
|
4584
|
-
import_material29.
|
|
4583
|
+
return /* @__PURE__ */ import_react43.default.createElement(import_react43.default.Fragment, null, /* @__PURE__ */ import_react43.default.createElement(import_material29.Accordion, null, /* @__PURE__ */ import_react43.default.createElement(
|
|
4584
|
+
import_material29.AccordionSummary,
|
|
4585
4585
|
{
|
|
4586
|
-
|
|
4587
|
-
sx: {
|
|
4588
|
-
background: "white",
|
|
4589
|
-
boxShadow: "0px 2px 4px 0px #18274B33",
|
|
4590
|
-
padding: "0px 2px 0px 2px"
|
|
4591
|
-
}
|
|
4586
|
+
expandIcon: /* @__PURE__ */ import_react43.default.createElement(import_ExpandMore.default, { fontSize: "small", color: "action" })
|
|
4592
4587
|
},
|
|
4593
|
-
/* @__PURE__ */ import_react43.default.createElement(
|
|
4594
|
-
|
|
4595
|
-
{
|
|
4596
|
-
container: true,
|
|
4597
|
-
sx: { alignItems: "center", padding: "12px 16px 12px 16px", cursor: "pointer" },
|
|
4598
|
-
justifyContent: "space-between",
|
|
4599
|
-
onClick: () => setOpen((prev) => !prev)
|
|
4600
|
-
},
|
|
4601
|
-
/* @__PURE__ */ import_react43.default.createElement(import_material29.Grid, { sx: { textAlign: "left" } }, /* @__PURE__ */ import_react43.default.createElement(import_material29.Typography, { noWrap: true, variant: "subtitle1", align: "left", color: "text.primary" }, title)),
|
|
4602
|
-
/* @__PURE__ */ import_react43.default.createElement(import_material29.Grid, null, /* @__PURE__ */ import_react43.default.createElement(import_material29.Grid, { container: true, justifyContent: "flex-end", alignItems: "center", gap: 1 }, actions, /* @__PURE__ */ import_react43.default.createElement(import_material29.Grid, { color: "#3975ac", sx: { textAlign: "right" } }, open ? /* @__PURE__ */ import_react43.default.createElement(import_ExpandLess.default, { fontSize: "small", color: "action" }) : /* @__PURE__ */ import_react43.default.createElement(import_ExpandMore.default, { fontSize: "small", color: "action" }))))
|
|
4603
|
-
),
|
|
4604
|
-
open && /* @__PURE__ */ import_react43.default.createElement(import_material29.Grid, { container: true, padding: "12px" }, children)
|
|
4605
|
-
);
|
|
4588
|
+
/* @__PURE__ */ import_react43.default.createElement(import_material29.Box, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%" } }, typeof title === "string" ? /* @__PURE__ */ import_react43.default.createElement(import_material29.Typography, { noWrap: true, variant: "body1", color: "text.primary" }, title) : title, actions)
|
|
4589
|
+
), /* @__PURE__ */ import_react43.default.createElement(import_material29.AccordionDetails, { sx: { padding: "12px" } }, children)));
|
|
4606
4590
|
};
|
|
4607
4591
|
|
|
4608
4592
|
// src/Components/SCActivityCalendar.tsx
|
|
@@ -6131,7 +6115,7 @@ var SCTime = ({
|
|
|
6131
6115
|
error = false
|
|
6132
6116
|
}) => {
|
|
6133
6117
|
import_x_license3.LicenseInfo.setLicenseKey(
|
|
6134
|
-
"
|
|
6118
|
+
"aa892a011e4c240f3cdaf811ecfff54fTz0xMjkyODQsRT0xODEwNDI1NTk5MDAwLFM9cHJvLExNPWFubnVhbCxQVj1RMy0yMDI0LEtWPTI="
|
|
6135
6119
|
);
|
|
6136
6120
|
const isTimeEmpty = required && !state;
|
|
6137
6121
|
const hasError = isTimeEmpty || error;
|