@dnanpm/styleguide 4.0.2 → 4.0.3
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.
|
@@ -44,6 +44,7 @@ const ButtonCardWrapper = styledComponents.styled.button `
|
|
|
44
44
|
`;
|
|
45
45
|
const StyledBox = styledComponents.styled(Box.default) `
|
|
46
46
|
display: flex;
|
|
47
|
+
text-align: left;
|
|
47
48
|
gap: ${({ size }) => (size === 'small' ? '0.313rem' : '1rem')};
|
|
48
49
|
border: 1px solid ${theme.default.color.line.L03};
|
|
49
50
|
padding: ${({ size }) => (size === 'small' ? '0.625rem' : '1rem')};
|
|
@@ -65,18 +66,17 @@ const TextContentWrapper = styledComponents.styled.div `
|
|
|
65
66
|
min-width: 0;
|
|
66
67
|
`;
|
|
67
68
|
const TextContent = styledComponents.styled.div `
|
|
68
|
-
|
|
69
|
-
align-items: flex-start;
|
|
70
|
-
flex-direction: column;
|
|
71
|
-
min-width: 0;
|
|
69
|
+
flex: 1 1 auto;
|
|
72
70
|
`;
|
|
73
71
|
const Title = styledComponents.styled.div `
|
|
74
72
|
font-size: ${theme.default.fontSize.default};
|
|
75
73
|
line-height: ${theme.default.lineHeight.default};
|
|
76
74
|
font-weight: ${theme.default.fontWeight.bold};
|
|
77
|
-
|
|
75
|
+
display: -webkit-box;
|
|
76
|
+
-webkit-box-orient: vertical;
|
|
77
|
+
-webkit-line-clamp: 2;
|
|
78
78
|
overflow: hidden;
|
|
79
|
-
|
|
79
|
+
word-break: break-word;
|
|
80
80
|
max-width: 100%;
|
|
81
81
|
|
|
82
82
|
${({ size }) => size === 'small' &&
|
|
@@ -84,6 +84,7 @@ const Title = styledComponents.styled.div `
|
|
|
84
84
|
font-size: ${theme.default.fontSize.s};
|
|
85
85
|
line-height: ${theme.default.lineHeight.s};
|
|
86
86
|
font-weight: ${theme.default.fontWeight.medium};
|
|
87
|
+
-webkit-line-clamp: 1;
|
|
87
88
|
`}
|
|
88
89
|
|
|
89
90
|
${({ size }) => size === 'large' &&
|
|
@@ -96,9 +97,11 @@ const Subtitle = styledComponents.styled.div `
|
|
|
96
97
|
font-size: ${theme.default.fontSize.s};
|
|
97
98
|
line-height: ${theme.default.lineHeight.s};
|
|
98
99
|
font-weight: ${theme.default.fontWeight.medium};
|
|
99
|
-
|
|
100
|
+
display: -webkit-box;
|
|
101
|
+
-webkit-box-orient: vertical;
|
|
102
|
+
-webkit-line-clamp: 2;
|
|
100
103
|
overflow: hidden;
|
|
101
|
-
|
|
104
|
+
word-break: break-word;
|
|
102
105
|
max-width: 100%;
|
|
103
106
|
|
|
104
107
|
${({ size }) => size === 'small' &&
|
|
@@ -36,6 +36,7 @@ const ButtonCardWrapper = styled.button `
|
|
|
36
36
|
`;
|
|
37
37
|
const StyledBox = styled(Box) `
|
|
38
38
|
display: flex;
|
|
39
|
+
text-align: left;
|
|
39
40
|
gap: ${({ size }) => (size === 'small' ? '0.313rem' : '1rem')};
|
|
40
41
|
border: 1px solid ${theme.color.line.L03};
|
|
41
42
|
padding: ${({ size }) => (size === 'small' ? '0.625rem' : '1rem')};
|
|
@@ -57,18 +58,17 @@ const TextContentWrapper = styled.div `
|
|
|
57
58
|
min-width: 0;
|
|
58
59
|
`;
|
|
59
60
|
const TextContent = styled.div `
|
|
60
|
-
|
|
61
|
-
align-items: flex-start;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
min-width: 0;
|
|
61
|
+
flex: 1 1 auto;
|
|
64
62
|
`;
|
|
65
63
|
const Title = styled.div `
|
|
66
64
|
font-size: ${theme.fontSize.default};
|
|
67
65
|
line-height: ${theme.lineHeight.default};
|
|
68
66
|
font-weight: ${theme.fontWeight.bold};
|
|
69
|
-
|
|
67
|
+
display: -webkit-box;
|
|
68
|
+
-webkit-box-orient: vertical;
|
|
69
|
+
-webkit-line-clamp: 2;
|
|
70
70
|
overflow: hidden;
|
|
71
|
-
|
|
71
|
+
word-break: break-word;
|
|
72
72
|
max-width: 100%;
|
|
73
73
|
|
|
74
74
|
${({ size }) => size === 'small' &&
|
|
@@ -76,6 +76,7 @@ const Title = styled.div `
|
|
|
76
76
|
font-size: ${theme.fontSize.s};
|
|
77
77
|
line-height: ${theme.lineHeight.s};
|
|
78
78
|
font-weight: ${theme.fontWeight.medium};
|
|
79
|
+
-webkit-line-clamp: 1;
|
|
79
80
|
`}
|
|
80
81
|
|
|
81
82
|
${({ size }) => size === 'large' &&
|
|
@@ -88,9 +89,11 @@ const Subtitle = styled.div `
|
|
|
88
89
|
font-size: ${theme.fontSize.s};
|
|
89
90
|
line-height: ${theme.lineHeight.s};
|
|
90
91
|
font-weight: ${theme.fontWeight.medium};
|
|
91
|
-
|
|
92
|
+
display: -webkit-box;
|
|
93
|
+
-webkit-box-orient: vertical;
|
|
94
|
+
-webkit-line-clamp: 2;
|
|
92
95
|
overflow: hidden;
|
|
93
|
-
|
|
96
|
+
word-break: break-word;
|
|
94
97
|
max-width: 100%;
|
|
95
98
|
|
|
96
99
|
${({ size }) => size === 'small' &&
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dnanpm/styleguide",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "v4.0.
|
|
4
|
+
"version": "v4.0.3",
|
|
5
5
|
"main": "build/cjs/index.js",
|
|
6
6
|
"module": "build/es/index.js",
|
|
7
7
|
"jsnext:main": "build/es/index.js",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"eslint": "^9.39.1",
|
|
74
74
|
"eslint-config-prettier": "^10.1.8",
|
|
75
75
|
"eslint-plugin-import": "^2.32.0",
|
|
76
|
-
"eslint-plugin-jsdoc": "^61.4.
|
|
76
|
+
"eslint-plugin-jsdoc": "^61.4.2",
|
|
77
77
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
78
78
|
"eslint-plugin-react": "^7.37.5",
|
|
79
79
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"rollup-plugin-import-css": "^4.1.2",
|
|
93
93
|
"style-loader": "^3.3.3",
|
|
94
94
|
"styled-components": "^6.1.19",
|
|
95
|
-
"ts-jest": "^29.
|
|
95
|
+
"ts-jest": "^29.4.6",
|
|
96
96
|
"ts-node": "^10.9.2",
|
|
97
97
|
"tslib": "^2.8.1",
|
|
98
98
|
"typescript": "^5.1.6",
|