@hh.ru/magritte-ui-placeholder 11.1.21 → 11.1.23
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/Placeholder.js +1 -1
- package/index.css +9 -9
- package/package.json +6 -6
package/Placeholder.js
CHANGED
|
@@ -7,7 +7,7 @@ import { getContainerStyles } from './utils.js';
|
|
|
7
7
|
import { VSpacing } from '@hh.ru/magritte-ui-spacing';
|
|
8
8
|
import { Title } from '@hh.ru/magritte-ui-title';
|
|
9
9
|
|
|
10
|
-
var styles = {"placeholder":"magritte-placeholder___8EHpb_11-1-
|
|
10
|
+
var styles = {"placeholder":"magritte-placeholder___8EHpb_11-1-23","vertical-align-top":"magritte-vertical-align-top___nmf-X_11-1-23","verticalAlignTop":"magritte-vertical-align-top___nmf-X_11-1-23","vertical-align-center":"magritte-vertical-align-center___-QB1n_11-1-23","verticalAlignCenter":"magritte-vertical-align-center___-QB1n_11-1-23","vertical-align-bottom":"magritte-vertical-align-bottom___l9O6B_11-1-23","verticalAlignBottom":"magritte-vertical-align-bottom___l9O6B_11-1-23","title-container":"magritte-title-container___dki9b_11-1-23","titleContainer":"magritte-title-container___dki9b_11-1-23","image-container":"magritte-image-container___n7AQh_11-1-23","imageContainer":"magritte-image-container___n7AQh_11-1-23","content":"magritte-content___J6qIa_11-1-23","placeholder-image":"magritte-placeholder-image___bMcah_11-1-23","placeholderImage":"magritte-placeholder-image___bMcah_11-1-23","placeholder-image_hidden":"magritte-placeholder-image_hidden___5fOaL_11-1-23","placeholderImageHidden":"magritte-placeholder-image_hidden___5fOaL_11-1-23"};
|
|
11
11
|
|
|
12
12
|
const PLACEHOLDER_IMAGE_HEIGHT = 200;
|
|
13
13
|
const Placeholder = ({ title, titleProps, description, children, buttons, maxWidth, minHeight, gapTop = 24, gapBottom = 24, paddingTop, paddingBottom, 'data-qa': dataQa, verticalAlign = 'center', }) => {
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.magritte-placeholder___8EHpb_11-1-
|
|
1
|
+
.magritte-placeholder___8EHpb_11-1-23{
|
|
2
2
|
display:flex;
|
|
3
3
|
flex-direction:column;
|
|
4
4
|
flex:1;
|
|
@@ -6,33 +6,33 @@
|
|
|
6
6
|
height:inherit;
|
|
7
7
|
box-sizing:border-box;
|
|
8
8
|
}
|
|
9
|
-
.magritte-vertical-align-top___nmf-X_11-1-
|
|
9
|
+
.magritte-vertical-align-top___nmf-X_11-1-23{
|
|
10
10
|
justify-content:flex-start;
|
|
11
11
|
}
|
|
12
|
-
.magritte-vertical-align-center___-QB1n_11-1-
|
|
12
|
+
.magritte-vertical-align-center___-QB1n_11-1-23{
|
|
13
13
|
justify-content:center;
|
|
14
14
|
}
|
|
15
|
-
.magritte-vertical-align-bottom___l9O6B_11-1-
|
|
15
|
+
.magritte-vertical-align-bottom___l9O6B_11-1-23{
|
|
16
16
|
justify-content:flex-end;
|
|
17
17
|
}
|
|
18
|
-
.magritte-title-container___dki9b_11-1-
|
|
18
|
+
.magritte-title-container___dki9b_11-1-23{
|
|
19
19
|
padding:0 12px;
|
|
20
20
|
}
|
|
21
|
-
.magritte-image-container___n7AQh_11-1-
|
|
21
|
+
.magritte-image-container___n7AQh_11-1-23{
|
|
22
22
|
display:flex;
|
|
23
23
|
align-content:center;
|
|
24
24
|
justify-content:center;
|
|
25
25
|
min-height:0;
|
|
26
26
|
}
|
|
27
|
-
.magritte-content___J6qIa_11-1-
|
|
27
|
+
.magritte-content___J6qIa_11-1-23{
|
|
28
28
|
display:flex;
|
|
29
29
|
justify-content:center;
|
|
30
30
|
}
|
|
31
|
-
.magritte-placeholder-image___bMcah_11-1-
|
|
31
|
+
.magritte-placeholder-image___bMcah_11-1-23{
|
|
32
32
|
max-width:100%;
|
|
33
33
|
max-height:100%;
|
|
34
34
|
object-fit:contain;
|
|
35
35
|
}
|
|
36
|
-
.magritte-placeholder-image_hidden___5fOaL_11-1-
|
|
36
|
+
.magritte-placeholder-image_hidden___5fOaL_11-1-23{
|
|
37
37
|
visibility:hidden;
|
|
38
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-placeholder",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.23",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"watch": "yarn root:watch $(pwd)"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@hh.ru/magritte-design-tokens": "24.7.
|
|
22
|
+
"@hh.ru/magritte-design-tokens": "24.7.1",
|
|
23
23
|
"@hh.ru/magritte-ui-breakpoint": "6.1.1",
|
|
24
|
-
"@hh.ru/magritte-ui-button-stack": "4.0.
|
|
24
|
+
"@hh.ru/magritte-ui-button-stack": "4.0.12",
|
|
25
25
|
"@hh.ru/magritte-ui-mock-component": "1.1.7",
|
|
26
|
-
"@hh.ru/magritte-ui-spacing": "2.1.
|
|
27
|
-
"@hh.ru/magritte-ui-title": "8.
|
|
26
|
+
"@hh.ru/magritte-ui-spacing": "2.1.20",
|
|
27
|
+
"@hh.ru/magritte-ui-title": "8.2.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"classnames": ">=2.3.2",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "9f10e45677eb8f50f47c766674fb072a4dc88dc0"
|
|
37
37
|
}
|