@m4l/components 0.0.58 → 0.0.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.
|
@@ -33,7 +33,9 @@ const WrapperApplyedFilters = styled("div")(({
|
|
|
33
33
|
theme
|
|
34
34
|
}) => ({
|
|
35
35
|
width: "100%",
|
|
36
|
-
|
|
36
|
+
margin: theme.spacing(0, 1.5),
|
|
37
|
+
paddingLeft: theme.spacing(1.5),
|
|
38
|
+
borderLeft: `1px solid ${theme.palette.divider}`
|
|
37
39
|
}));
|
|
38
40
|
const ContainerApplyedFilters = styled("div")(({
|
|
39
41
|
theme
|
|
@@ -42,7 +44,7 @@ const ContainerApplyedFilters = styled("div")(({
|
|
|
42
44
|
display: "flex",
|
|
43
45
|
justifyContent: "flex-start",
|
|
44
46
|
alignItems: "center",
|
|
45
|
-
height:
|
|
47
|
+
height: "auto",
|
|
46
48
|
gap: theme.spacing(1.5)
|
|
47
49
|
}));
|
|
48
50
|
const STRING_OPERATORS = ["c", "nc"];
|
|
@@ -1043,8 +1045,9 @@ const WrapperApplyedFilter = styled("div")(({
|
|
|
1043
1045
|
display: "flex",
|
|
1044
1046
|
justifyContent: "center",
|
|
1045
1047
|
alignItems: "center",
|
|
1046
|
-
height:
|
|
1047
|
-
|
|
1048
|
+
height: "100%",
|
|
1049
|
+
minHeight: theme.spacing(3),
|
|
1050
|
+
padding: theme.spacing(0, 1),
|
|
1048
1051
|
backgroundColor: theme.palette.action.disabledBackground,
|
|
1049
1052
|
borderRadius: theme.spacing(1),
|
|
1050
1053
|
"&.waf_no_setted": {
|
|
@@ -1059,7 +1062,7 @@ const AplyedFilterStyled = styled("div")(({
|
|
|
1059
1062
|
justifyContent: "center",
|
|
1060
1063
|
alignItems: "center",
|
|
1061
1064
|
width: "auto",
|
|
1062
|
-
height:
|
|
1065
|
+
height: "100%",
|
|
1063
1066
|
marginRight: theme.spacing(1),
|
|
1064
1067
|
marginLeft: theme.spacing(1),
|
|
1065
1068
|
whiteSpace: "nowrap"
|
|
@@ -1156,6 +1159,7 @@ function ApplyedFilters() {
|
|
|
1156
1159
|
});
|
|
1157
1160
|
}
|
|
1158
1161
|
return /* @__PURE__ */ jsx(WrapperApplyedFilters, {
|
|
1162
|
+
className: "WrapperApplyedFilters",
|
|
1159
1163
|
children: /* @__PURE__ */ jsx(ScrollBar, {
|
|
1160
1164
|
children: /* @__PURE__ */ jsx(ContainerApplyedFilters, {
|
|
1161
1165
|
id: "WrapperApplyedFilters",
|
|
@@ -1178,11 +1182,8 @@ const SKTClearFilters = styled$1("div")(({
|
|
|
1178
1182
|
const WrapperClearFilters = styled$1("div")(({
|
|
1179
1183
|
theme
|
|
1180
1184
|
}) => ({
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
marginLeft: theme.spacing(1.5),
|
|
1184
|
-
borderLeft: `1px solid ${theme.palette.divider}`
|
|
1185
|
-
}
|
|
1185
|
+
paddingLeft: theme.spacing(0.5),
|
|
1186
|
+
borderLeft: `1px solid ${theme.palette.divider}`
|
|
1186
1187
|
}));
|
|
1187
1188
|
const ClearFilters = () => {
|
|
1188
1189
|
const {
|
|
@@ -1223,7 +1224,12 @@ const SKTWrapperFilterButton = styled("div")(({
|
|
|
1223
1224
|
height: theme.spacing(3.75),
|
|
1224
1225
|
background: alpha(theme.palette.primary.main, 0.3)
|
|
1225
1226
|
}));
|
|
1226
|
-
const WrapperFilterButton = styled("div")((
|
|
1227
|
+
const WrapperFilterButton = styled("div")(({
|
|
1228
|
+
theme
|
|
1229
|
+
}) => ({
|
|
1230
|
+
paddingRight: theme.spacing(0.75),
|
|
1231
|
+
marginRight: theme.spacing(0.75),
|
|
1232
|
+
borderRight: `1px solid ${theme.palette.divider}`,
|
|
1227
1233
|
"&.isDirty": {
|
|
1228
1234
|
animationName: "dirtyEffect",
|
|
1229
1235
|
animationDuration: "1s",
|
|
@@ -1293,11 +1299,7 @@ const WrapperInputFilter = styled("div")(({
|
|
|
1293
1299
|
justifyContent: "center",
|
|
1294
1300
|
alignItems: "center",
|
|
1295
1301
|
width: "100%",
|
|
1296
|
-
height: theme.spacing(3
|
|
1297
|
-
marginLeft: theme.spacing(1.5),
|
|
1298
|
-
padding: theme.spacing(0, 1.5),
|
|
1299
|
-
borderRight: `1px solid ${theme.palette.divider}`,
|
|
1300
|
-
borderLeft: `1px solid ${theme.palette.divider}`,
|
|
1302
|
+
height: theme.spacing(3),
|
|
1301
1303
|
[theme.breakpoints.up("sm")]: {
|
|
1302
1304
|
width: theme.spacing(25)
|
|
1303
1305
|
}
|
|
@@ -1309,7 +1311,6 @@ const StyledInputFilter = styled("input")(({
|
|
|
1309
1311
|
justifyContent: "center",
|
|
1310
1312
|
alignItems: "center",
|
|
1311
1313
|
minWidth: theme.spacing(3.75),
|
|
1312
|
-
height: theme.spacing(3.75),
|
|
1313
1314
|
width: "100%",
|
|
1314
1315
|
"&": {
|
|
1315
1316
|
outline: "none",
|
|
@@ -1552,7 +1553,7 @@ const WrapperFilter = styled("div", {
|
|
|
1552
1553
|
justifyContent: "flex-start",
|
|
1553
1554
|
height: "auto",
|
|
1554
1555
|
width: "100%",
|
|
1555
|
-
padding: theme.spacing(
|
|
1556
|
+
padding: theme.spacing(0.5),
|
|
1556
1557
|
borderRadius: theme.spacing(1),
|
|
1557
1558
|
border: inEdition ? `1px solid ${theme.palette.primary.main}` : `1px solid ${theme.palette.divider}`
|
|
1558
1559
|
}));
|
|
@@ -1569,10 +1570,15 @@ const WrapperFilterMobile = styled("div", {
|
|
|
1569
1570
|
minWidth: theme.spacing(25),
|
|
1570
1571
|
height: "auto",
|
|
1571
1572
|
width: "100%",
|
|
1572
|
-
padding: theme.spacing(
|
|
1573
|
+
padding: theme.spacing(0.5),
|
|
1573
1574
|
borderRadius: theme.spacing(1),
|
|
1574
1575
|
border: inEdition ? `1px solid ${theme.palette.primary.main}` : `1px solid ${theme.palette.divider}`,
|
|
1575
|
-
gap: theme.spacing(
|
|
1576
|
+
gap: theme.spacing(0.75),
|
|
1577
|
+
"& .WrapperApplyedFilters": {
|
|
1578
|
+
margin: "0px",
|
|
1579
|
+
padding: "0px",
|
|
1580
|
+
border: "0px"
|
|
1581
|
+
}
|
|
1576
1582
|
}));
|
|
1577
1583
|
const ContainerFistRow = styled("div")(() => ({
|
|
1578
1584
|
width: "100%",
|
|
@@ -1591,7 +1597,7 @@ const DynamicFilter = (props) => {
|
|
|
1591
1597
|
children: ({
|
|
1592
1598
|
inEdition
|
|
1593
1599
|
}) => isDesktop ? /* @__PURE__ */ jsxs(WrapperFilter, {
|
|
1594
|
-
id: "
|
|
1600
|
+
id: "WrapperFilter",
|
|
1595
1601
|
inEdition,
|
|
1596
1602
|
children: [/* @__PURE__ */ jsx(FilterButton, {}), /* @__PURE__ */ jsx(InputFilter, {}), /* @__PURE__ */ jsx(ApplyedFilters, {}), /* @__PURE__ */ jsx(PopupEditFilter, {}), /* @__PURE__ */ jsx(ClearFilters, {})]
|
|
1597
1603
|
}) : /* @__PURE__ */ jsxs(WrapperFilterMobile, {
|
|
@@ -9,7 +9,8 @@ const MaskIcon = styled("div", {
|
|
|
9
9
|
width: props.width === void 0 ? "20px" : props.width,
|
|
10
10
|
height: props.height === void 0 ? "20px" : props.height,
|
|
11
11
|
backgroundColor: props.bgColor,
|
|
12
|
-
mask: `url('data:image/svg+xml;base64,${props.src}')
|
|
12
|
+
mask: `url('data:image/svg+xml;base64,${props.src}')`,
|
|
13
|
+
WebkitMask: `url('data:image/svg+xml;base64,${props.src}')`
|
|
13
14
|
}));
|
|
14
15
|
const WrapperPlaceHolder = styled("div", {
|
|
15
16
|
shouldForwardProp: (props) => props !== "widht" && props !== "height"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.59",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"format": "npm run prettier:fix && npm run lint:fix"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@m4l/graphics": "^0.0.
|
|
17
|
+
"@m4l/graphics": "^0.0.38",
|
|
18
18
|
"react": "^17.0.0 || 18.x",
|
|
19
19
|
"react-dom": "^18.0.0",
|
|
20
20
|
"react-draggable": "^4.4.5",
|