@dnanpm/styleguide 4.0.2 → 4.0.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.
|
@@ -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.4",
|
|
5
5
|
"main": "build/cjs/index.js",
|
|
6
6
|
"module": "build/es/index.js",
|
|
7
7
|
"jsnext:main": "build/es/index.js",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"prepublishOnly": "npm run clean && npm ci && npm run eslint:check && npm run format:check && npm run build",
|
|
32
32
|
"styleguide": "styleguidist server",
|
|
33
33
|
"styleguide:build": "styleguidist build",
|
|
34
|
+
"styleguide:build:public": "cross-env NODE_ENV=public styleguidist build",
|
|
34
35
|
"dev": "npm run styleguide",
|
|
35
36
|
"tar": "npm run clean && npm ci && npm run build && npm pack && mv dnanpm-styleguide*.tgz dnanpm-styleguide-snapshot.tgz",
|
|
36
37
|
"test": "cross-env jest --maxWorkers=2 --coverage",
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"@babel/preset-typescript": "^7.28.5",
|
|
51
52
|
"@dnanpm/icons": "^2.0.9",
|
|
52
53
|
"@eslint/eslintrc": "^3.3.3",
|
|
53
|
-
"@eslint/js": "^9.39.
|
|
54
|
+
"@eslint/js": "^9.39.2",
|
|
54
55
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
55
56
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
56
57
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
@@ -59,7 +60,7 @@
|
|
|
59
60
|
"@testing-library/react": "^16.3.0",
|
|
60
61
|
"@testing-library/user-event": "^14.5.2",
|
|
61
62
|
"@types/jest": "^30.0.0",
|
|
62
|
-
"@types/node": "^
|
|
63
|
+
"@types/node": "^25.0.1",
|
|
63
64
|
"@types/ramda": "^0.31.1",
|
|
64
65
|
"@types/react": "^18.3.11",
|
|
65
66
|
"@types/react-dom": "^18.3.1",
|
|
@@ -73,7 +74,7 @@
|
|
|
73
74
|
"eslint": "^9.39.1",
|
|
74
75
|
"eslint-config-prettier": "^10.1.8",
|
|
75
76
|
"eslint-plugin-import": "^2.32.0",
|
|
76
|
-
"eslint-plugin-jsdoc": "^61.4.
|
|
77
|
+
"eslint-plugin-jsdoc": "^61.4.2",
|
|
77
78
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
78
79
|
"eslint-plugin-react": "^7.37.5",
|
|
79
80
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
@@ -92,7 +93,7 @@
|
|
|
92
93
|
"rollup-plugin-import-css": "^4.1.2",
|
|
93
94
|
"style-loader": "^3.3.3",
|
|
94
95
|
"styled-components": "^6.1.19",
|
|
95
|
-
"ts-jest": "^29.
|
|
96
|
+
"ts-jest": "^29.4.6",
|
|
96
97
|
"ts-node": "^10.9.2",
|
|
97
98
|
"tslib": "^2.8.1",
|
|
98
99
|
"typescript": "^5.1.6",
|