@bytebrand/fe-ui-core 4.2.78 → 4.2.80

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.2.78",
3
+ "version": "4.2.80",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -19,10 +19,6 @@
19
19
  width: 1px;
20
20
  height: 100%
21
21
  background-color $grey-5f;
22
-
23
- [class^='OfferCheckboxGroup__labelContent']
24
- @media (min-width: 990px) and (max-width: 1073px)
25
- max-width: 230px
26
22
 
27
23
  .wrapConfigDetails
28
24
  box-sizing: border-box
@@ -73,6 +73,9 @@
73
73
  .labelContent
74
74
  flex: 1 1 auto
75
75
  color: $grey-3;
76
+ @media (min-width: 990px) and (max-width: 1112px)
77
+ max-width: 230px
78
+ padding-right: 10px !important;
76
79
 
77
80
  .icon
78
81
  display: block
@@ -117,4 +120,4 @@
117
120
  font-size: 12px;
118
121
 
119
122
  .hidePlus
120
- display: inline-block
123
+ display: inline-block
@@ -167,13 +167,14 @@
167
167
  [class*='MuiFormControlLabel-root']
168
168
  height: 20px
169
169
  min-height: 0
170
- margin-left:0
171
170
  .labelText
172
171
  font-size: 12px;
173
172
  font-weight: normal;
174
173
 
175
174
  [class*='labelContent']
176
175
  font-size: 12px
176
+ +media-phone-up()
177
+ padding-right: 62px;
177
178
 
178
179
 
179
180
  .checkBoxGroup
@@ -189,6 +190,3 @@
189
190
  margin: 0
190
191
  justify-content: space-between
191
192
  width: 100%
192
-
193
- [class*='MuiIconButton-root']
194
- padding:5px!important
@@ -33,6 +33,7 @@ const VehicleSliderForSRL: React.FC<IVehicleSliderForSRLProps> = ({
33
33
  }: IVehicleSliderForSRLProps) => {
34
34
  const [noImagesLoaded, setNoImagesLoaded] = React.useState<boolean>(false);
35
35
  const [activeSlide, setActiveSlide] = React.useState<number>(0);
36
+ const [entered, setEntered] = React.useState(false);
36
37
 
37
38
  const beforeChange = () => {
38
39
 
@@ -50,6 +51,13 @@ const VehicleSliderForSRL: React.FC<IVehicleSliderForSRLProps> = ({
50
51
  });
51
52
  };
52
53
 
54
+ const handleMouseEnter = () => {
55
+ if (!entered) {
56
+ setEntered(true);
57
+ beforeChange();
58
+ }
59
+ };
60
+
53
61
  const onHandleSlideChange = (index: number): void => {
54
62
  setActiveSlide(index);
55
63
  onSlideChange(index);
@@ -136,8 +144,8 @@ const VehicleSliderForSRL: React.FC<IVehicleSliderForSRLProps> = ({
136
144
  };
137
145
 
138
146
  return (
139
- <div className={styles.wrapper} onMouseEnter={beforeChange}>
140
- <Slider {...settings}>{renderSliderImages()}</Slider>
147
+ <div className={styles.wrapper} onMouseEnter={handleMouseEnter}>
148
+ <Slider {...settings} >{renderSliderImages()}</Slider>
141
149
  </div>
142
150
  );
143
151
  };