@doyourjob/gravity-ui-page-constructor-addons 2.1.14 → 2.1.16

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.
@@ -18,13 +18,21 @@ unpredictable css rules order in build */
18
18
  }
19
19
  .pc-addons-header-stripe__content {
20
20
  position: relative;
21
- padding: 0 32px;
22
21
  display: flex;
23
22
  overflow: hidden;
24
23
  align-items: center;
25
24
  height: 56px;
26
25
  }
27
26
 
27
+ .pc-addons-header-stripe__content_with-close {
28
+ padding: 0 32px;
29
+ }
30
+
31
+ .pc-addons-header-stripe__content_with-close .pc-addons-header-stripe__item {
32
+ width: calc(100% - 64px);
33
+ max-width: calc(100% - 64px);
34
+ }
35
+
28
36
  @media (min-width: 769px) {
29
37
  .pc-addons-header-stripe__content {
30
38
  height: 36px;
@@ -88,7 +96,6 @@ unpredictable css rules order in build */
88
96
  display: flex;
89
97
  align-items: center;
90
98
  justify-content: center;
91
- color: var(--g-color-text-brand-contrast);
92
99
  background: transparent;
93
100
  cursor: pointer;
94
101
  }
@@ -56,7 +56,7 @@ const HeaderStripe = ({ duration = 8000, items, textColor, background, backgroun
56
56
  return (react_1.default.createElement("div", { className: b('root', { 'only-desktop': onlyDesktop }), style: rootStyle },
57
57
  react_1.default.createElement(gravity_ui_page_constructor_1.Grid, null,
58
58
  react_1.default.createElement(gravity_ui_page_constructor_1.Col, null,
59
- react_1.default.createElement("div", { className: b('content') },
59
+ react_1.default.createElement("div", { className: b('content', { 'with-close': Boolean(onClose) }) },
60
60
  filteredItems.map((item, index) => {
61
61
  const isActive = index === activeIndex;
62
62
  const isPrev = filteredItems.length > 1 &&
@@ -18,13 +18,21 @@ unpredictable css rules order in build */
18
18
  }
19
19
  .pc-addons-header-stripe__content {
20
20
  position: relative;
21
- padding: 0 32px;
22
21
  display: flex;
23
22
  overflow: hidden;
24
23
  align-items: center;
25
24
  height: 56px;
26
25
  }
27
26
 
27
+ .pc-addons-header-stripe__content_with-close {
28
+ padding: 0 32px;
29
+ }
30
+
31
+ .pc-addons-header-stripe__content_with-close .pc-addons-header-stripe__item {
32
+ width: calc(100% - 64px);
33
+ max-width: calc(100% - 64px);
34
+ }
35
+
28
36
  @media (min-width: 769px) {
29
37
  .pc-addons-header-stripe__content {
30
38
  height: 36px;
@@ -88,7 +96,6 @@ unpredictable css rules order in build */
88
96
  display: flex;
89
97
  align-items: center;
90
98
  justify-content: center;
91
- color: var(--g-color-text-brand-contrast);
92
99
  background: transparent;
93
100
  cursor: pointer;
94
101
  }
@@ -53,7 +53,7 @@ export const HeaderStripe = ({ duration = 8000, items, textColor, background, ba
53
53
  return (React.createElement("div", { className: b('root', { 'only-desktop': onlyDesktop }), style: rootStyle },
54
54
  React.createElement(Grid, null,
55
55
  React.createElement(Col, null,
56
- React.createElement("div", { className: b('content') },
56
+ React.createElement("div", { className: b('content', { 'with-close': Boolean(onClose) }) },
57
57
  filteredItems.map((item, index) => {
58
58
  const isActive = index === activeIndex;
59
59
  const isPrev = filteredItems.length > 1 &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doyourjob/gravity-ui-page-constructor-addons",
3
- "version": "2.1.14",
3
+ "version": "2.1.16",
4
4
  "description": "Components and plugins for @doyourjob/gravity-ui-page-constructor",
5
5
  "license": "MIT",
6
6
  "repository": {