@megafon/ui-core 3.0.0-beta.7 → 3.0.0-beta.8
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/CHANGELOG.md +16 -0
- package/dist/es/components/Accordion/Accordion.css +1 -15
- package/dist/es/components/Accordion/Accordion.d.ts +0 -2
- package/dist/es/components/Accordion/Accordion.js +1 -6
- package/dist/lib/components/Accordion/Accordion.css +1 -15
- package/dist/lib/components/Accordion/Accordion.d.ts +0 -2
- package/dist/lib/components/Accordion/Accordion.js +1 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.0.0-beta.8](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@3.0.0-beta.7...@megafon/ui-core@3.0.0-beta.8) (2022-02-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **accordion:** remove prop hasVerticalPaddings ([4da8d8e](https://github.com/MegafonWebLab/megafon-ui/commit/4da8d8e7ee843be266749c4e4a8e35c678b9dc2e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* **accordion:** remove prop hasVerticalPaddings
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [3.0.0-beta.7](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@3.0.0-beta.6...@megafon/ui-core@3.0.0-beta.7) (2022-02-04)
|
|
7
23
|
|
|
8
24
|
|
|
@@ -40,25 +40,11 @@
|
|
|
40
40
|
.mfui-accordion__content-inner {
|
|
41
41
|
padding: 24px 16px;
|
|
42
42
|
}
|
|
43
|
-
@media screen and (min-width: 768px)
|
|
43
|
+
@media screen and (min-width: 768px) {
|
|
44
44
|
.mfui-accordion__content-inner {
|
|
45
45
|
padding: 24px;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
@media screen and (min-width: 1024px) and (max-width: 1279px) {
|
|
49
|
-
.mfui-accordion__content-inner {
|
|
50
|
-
padding: 24px 48px;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
@media screen and (min-width: 1280px) {
|
|
54
|
-
.mfui-accordion__content-inner {
|
|
55
|
-
padding: 24px 40px;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
.mfui-accordion__content-inner_v-padding {
|
|
59
|
-
padding-top: 24px;
|
|
60
|
-
padding-bottom: 24px;
|
|
61
|
-
}
|
|
62
48
|
.mfui-accordion__icon {
|
|
63
49
|
fill: var(--content);
|
|
64
50
|
}
|
|
@@ -7,8 +7,6 @@ export interface IAccordionProps {
|
|
|
7
7
|
title: string | React.ReactNode | React.ReactNode[];
|
|
8
8
|
/** Состояние открытости */
|
|
9
9
|
isOpened?: boolean;
|
|
10
|
-
/** Вертикальные отступы */
|
|
11
|
-
hasVerticalPaddings?: boolean;
|
|
12
10
|
/** Дополнительный класс для корневого элемента */
|
|
13
11
|
className?: string;
|
|
14
12
|
/** Дополнительные классы для корневого и внутренних элементов */
|
|
@@ -30,8 +30,6 @@ var Accordion = function Accordion(_ref) {
|
|
|
30
30
|
title = _ref.title,
|
|
31
31
|
_ref$isOpened = _ref.isOpened,
|
|
32
32
|
isOpened = _ref$isOpened === void 0 ? false : _ref$isOpened,
|
|
33
|
-
_ref$hasVerticalPaddi = _ref.hasVerticalPaddings,
|
|
34
|
-
hasVerticalPaddings = _ref$hasVerticalPaddi === void 0 ? false : _ref$hasVerticalPaddi,
|
|
35
33
|
className = _ref.className,
|
|
36
34
|
_ref$classes = _ref.classes;
|
|
37
35
|
_ref$classes = _ref$classes === void 0 ? {} : _ref$classes;
|
|
@@ -79,9 +77,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
79
77
|
})
|
|
80
78
|
}, isOpenedState ? /*#__PURE__*/React.createElement(ArrowUp, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.arrowUp)) : /*#__PURE__*/React.createElement(ArrowDown, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.arrowDown)))), /*#__PURE__*/React.createElement(Collapse, _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.collapse), {
|
|
81
79
|
className: cn('content', collapsePropsClasses),
|
|
82
|
-
classNameContainer: cn('content-inner',
|
|
83
|
-
'v-padding': hasVerticalPaddings
|
|
84
|
-
}),
|
|
80
|
+
classNameContainer: cn('content-inner'),
|
|
85
81
|
isOpened: isOpenedState
|
|
86
82
|
}), children));
|
|
87
83
|
};
|
|
@@ -92,7 +88,6 @@ Accordion.propTypes = {
|
|
|
92
88
|
}), PropTypes.any])]),
|
|
93
89
|
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.arrayOf(PropTypes.node)]).isRequired,
|
|
94
90
|
isOpened: PropTypes.bool,
|
|
95
|
-
hasVerticalPaddings: PropTypes.bool,
|
|
96
91
|
className: PropTypes.string,
|
|
97
92
|
classes: PropTypes.shape({
|
|
98
93
|
openedClass: PropTypes.string,
|
|
@@ -40,25 +40,11 @@
|
|
|
40
40
|
.mfui-accordion__content-inner {
|
|
41
41
|
padding: 24px 16px;
|
|
42
42
|
}
|
|
43
|
-
@media screen and (min-width: 768px)
|
|
43
|
+
@media screen and (min-width: 768px) {
|
|
44
44
|
.mfui-accordion__content-inner {
|
|
45
45
|
padding: 24px;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
@media screen and (min-width: 1024px) and (max-width: 1279px) {
|
|
49
|
-
.mfui-accordion__content-inner {
|
|
50
|
-
padding: 24px 48px;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
@media screen and (min-width: 1280px) {
|
|
54
|
-
.mfui-accordion__content-inner {
|
|
55
|
-
padding: 24px 40px;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
.mfui-accordion__content-inner_v-padding {
|
|
59
|
-
padding-top: 24px;
|
|
60
|
-
padding-bottom: 24px;
|
|
61
|
-
}
|
|
62
48
|
.mfui-accordion__icon {
|
|
63
49
|
fill: var(--content);
|
|
64
50
|
}
|
|
@@ -7,8 +7,6 @@ export interface IAccordionProps {
|
|
|
7
7
|
title: string | React.ReactNode | React.ReactNode[];
|
|
8
8
|
/** Состояние открытости */
|
|
9
9
|
isOpened?: boolean;
|
|
10
|
-
/** Вертикальные отступы */
|
|
11
|
-
hasVerticalPaddings?: boolean;
|
|
12
10
|
/** Дополнительный класс для корневого элемента */
|
|
13
11
|
className?: string;
|
|
14
12
|
/** Дополнительные классы для корневого и внутренних элементов */
|
|
@@ -50,8 +50,6 @@ var Accordion = function Accordion(_ref) {
|
|
|
50
50
|
title = _ref.title,
|
|
51
51
|
_ref$isOpened = _ref.isOpened,
|
|
52
52
|
isOpened = _ref$isOpened === void 0 ? false : _ref$isOpened,
|
|
53
|
-
_ref$hasVerticalPaddi = _ref.hasVerticalPaddings,
|
|
54
|
-
hasVerticalPaddings = _ref$hasVerticalPaddi === void 0 ? false : _ref$hasVerticalPaddi,
|
|
55
53
|
className = _ref.className,
|
|
56
54
|
_ref$classes = _ref.classes;
|
|
57
55
|
_ref$classes = _ref$classes === void 0 ? {} : _ref$classes;
|
|
@@ -99,9 +97,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
99
97
|
})
|
|
100
98
|
}, isOpenedState ? /*#__PURE__*/React.createElement(ArrowUp, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.arrowUp)) : /*#__PURE__*/React.createElement(ArrowDown, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.arrowDown)))), /*#__PURE__*/React.createElement(_Collapse["default"], (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.collapse), {
|
|
101
99
|
className: cn('content', collapsePropsClasses),
|
|
102
|
-
classNameContainer: cn('content-inner',
|
|
103
|
-
'v-padding': hasVerticalPaddings
|
|
104
|
-
}),
|
|
100
|
+
classNameContainer: cn('content-inner'),
|
|
105
101
|
isOpened: isOpenedState
|
|
106
102
|
}), children));
|
|
107
103
|
};
|
|
@@ -112,7 +108,6 @@ Accordion.propTypes = {
|
|
|
112
108
|
}), PropTypes.any])]),
|
|
113
109
|
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node, PropTypes.arrayOf(PropTypes.node)]).isRequired,
|
|
114
110
|
isOpened: PropTypes.bool,
|
|
115
|
-
hasVerticalPaddings: PropTypes.bool,
|
|
116
111
|
className: PropTypes.string,
|
|
117
112
|
classes: PropTypes.shape({
|
|
118
113
|
openedClass: PropTypes.string,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@megafon/ui-core",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.8",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"styles"
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"react-popper": "^2.2.3",
|
|
98
98
|
"swiper": "^6.5.6"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "714e9fc30f06de292a9bc09a9e6d3df3e9aebc9c"
|
|
101
101
|
}
|