forstok-ui-lib 8.3.23 → 8.4.1
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.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/stylesheets/shares.styles.ts +14 -0
- package/src/components/error/styles.ts +13 -12
package/package.json
CHANGED
|
@@ -667,6 +667,20 @@ const getTableItemWrapperModFunc = ({
|
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
`;
|
|
670
|
+
} else if ($mode === "quotation") {
|
|
671
|
+
style += `
|
|
672
|
+
${TableItemColumn} {
|
|
673
|
+
grid-template-columns: auto minmax(100px, 300px) var(--qty-pd20-big) repeat(3, var(--price-pd20));
|
|
674
|
+
> div {
|
|
675
|
+
&:last-child,
|
|
676
|
+
&:nth-last-child(2),
|
|
677
|
+
&:nth-last-child(3),
|
|
678
|
+
&:nth-last-child(4) {
|
|
679
|
+
text-align: right;
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
`;
|
|
670
684
|
} else if ($mode === "picklist") {
|
|
671
685
|
style += `
|
|
672
686
|
${TableItemColumn} {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
import { multiElipsis } from
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { multiElipsis } from "../../assets/stylesheets/bases.styles";
|
|
3
3
|
|
|
4
4
|
const getErrorModifiedStyle = ({ $mode }: { $mode?: string }) => {
|
|
5
|
-
let style =
|
|
6
|
-
if ($mode ===
|
|
5
|
+
let style = ``;
|
|
6
|
+
if ($mode === "api")
|
|
7
7
|
style += `
|
|
8
8
|
color: var(--mt-clr);
|
|
9
9
|
width: auto;
|
|
10
10
|
padding: .5em .5em;
|
|
11
11
|
margin: 10px;
|
|
12
12
|
font-weight: 400;
|
|
13
|
-
|
|
14
|
-
else if ($mode ===
|
|
13
|
+
`;
|
|
14
|
+
else if ($mode === "table")
|
|
15
15
|
style += `
|
|
16
16
|
font-size: 12.5px;
|
|
17
17
|
> i {
|
|
18
18
|
top: 1.5px;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
else if ($mode ===
|
|
20
|
+
`;
|
|
21
|
+
else if ($mode === "list")
|
|
22
22
|
style += `
|
|
23
23
|
ul {
|
|
24
24
|
margin: 0;
|
|
@@ -28,9 +28,9 @@ const getErrorModifiedStyle = ({ $mode }: { $mode?: string }) => {
|
|
|
28
28
|
font-size: 12.5px;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
return style
|
|
33
|
-
}
|
|
31
|
+
`;
|
|
32
|
+
return style;
|
|
33
|
+
};
|
|
34
34
|
|
|
35
35
|
export const ErrorContainer = styled.div<{ $mode?: string }>`
|
|
36
36
|
display: inline-grid !important;
|
|
@@ -49,10 +49,11 @@ export const ErrorContainer = styled.div<{ $mode?: string }>`
|
|
|
49
49
|
position: relative;
|
|
50
50
|
padding-left: 14px;
|
|
51
51
|
${multiElipsis}
|
|
52
|
+
word-break: break-word;
|
|
52
53
|
> i {
|
|
53
54
|
position: absolute;
|
|
54
55
|
top: 1px;
|
|
55
56
|
left: 0;
|
|
56
57
|
}
|
|
57
58
|
${getErrorModifiedStyle}
|
|
58
|
-
|
|
59
|
+
`;
|