@megafon/ui-core 4.0.0-beta.10 → 4.0.0-beta.11

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 CHANGED
@@ -3,6 +3,18 @@
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
+ # [4.0.0-beta.11](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@4.0.0-beta.10...@megafon/ui-core@4.0.0-beta.11) (2022-07-27)
7
+
8
+
9
+ ### Features
10
+
11
+ * **search:** changed dropdown list item height ([25ceb63](https://github.com/MegafonWebLab/megafon-ui/commit/25ceb633cdc9922e2a93af919c742b1db82f2f57))
12
+ * **select:** fixed label position with empty string value and minor style changes ([f436d5c](https://github.com/MegafonWebLab/megafon-ui/commit/f436d5c65f0aa874d12cd8d1540698644d57a3db))
13
+
14
+
15
+
16
+
17
+
6
18
  # [4.0.0-beta.10](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@4.0.0-beta.9...@megafon/ui-core@4.0.0-beta.10) (2022-07-15)
7
19
 
8
20
 
@@ -224,7 +224,7 @@
224
224
  }
225
225
  .mfui-search__list-item {
226
226
  font-family: inherit;
227
- padding: 8px 32px;
227
+ padding: 12px 32px;
228
228
  border-radius: 16px;
229
229
  background-color: var(--base);
230
230
  cursor: pointer;
@@ -50,11 +50,13 @@
50
50
  background-color: var(--base);
51
51
  outline: none;
52
52
  cursor: pointer;
53
+ -webkit-transition: border-color 0.3s;
54
+ transition: border-color 0.3s;
53
55
  }
54
56
  .mfui-select__control:after {
55
57
  content: '';
56
58
  position: absolute;
57
- top: 53%;
59
+ top: 50%;
58
60
  right: 27px;
59
61
  display: block;
60
62
  border-top: 6px solid;
@@ -62,9 +64,11 @@
62
64
  border-bottom: none;
63
65
  border-left: 5px solid transparent;
64
66
  color: var(--brandGreen);
65
- -webkit-transform: translateY(-50%);
66
- transform: translateY(-50%);
67
67
  cursor: pointer;
68
+ -webkit-transition: -webkit-transform 0.6s;
69
+ transition: -webkit-transform 0.6s;
70
+ transition: transform 0.6s;
71
+ transition: transform 0.6s, -webkit-transform 0.6s;
68
72
  }
69
73
  .mfui-select__combobox {
70
74
  font-size: 15px;
@@ -115,7 +119,7 @@
115
119
  -ms-flex-align: center;
116
120
  align-items: center;
117
121
  }
118
- .mfui-select__title-inner_placeholder .mfui-select__title-value {
122
+ .mfui-select__title-inner_hide-value .mfui-select__title-value {
119
123
  color: var(--spbSky3);
120
124
  }
121
125
  .mfui-select__title-inner {
@@ -129,6 +133,8 @@
129
133
  -webkit-box-align: center;
130
134
  -ms-flex-align: center;
131
135
  align-items: center;
136
+ -webkit-box-sizing: border-box;
137
+ box-sizing: border-box;
132
138
  height: 100%;
133
139
  padding: 0 45px 0 16px;
134
140
  overflow: hidden;
@@ -183,7 +189,7 @@
183
189
  }
184
190
  .mfui-select__list-item {
185
191
  font-family: inherit;
186
- padding: 8px 32px;
192
+ padding: 12px 32px;
187
193
  border-radius: 16px;
188
194
  background-color: var(--base);
189
195
  cursor: pointer;
@@ -291,19 +297,19 @@
291
297
  transition: opacity 0.2s;
292
298
  }
293
299
  .mfui-select_open .mfui-select__label,
294
- .mfui-select__title-inner:not(.mfui-select__title-inner_placeholder) .mfui-select__label {
300
+ .mfui-select__title-inner:not(.mfui-select__title-inner_hide-value) .mfui-select__label {
295
301
  -webkit-transform: scale(0.8) translate(-12%, -75%);
296
302
  transform: scale(0.8) translate(-12%, -75%);
297
303
  -webkit-transition-duration: 0.2s, 0.01s;
298
304
  transition-duration: 0.2s, 0.01s;
299
305
  }
300
- .mfui-select__combobox:not(.mfui-select__combobox_placeholder) + .mfui-select__label {
306
+ .mfui-select__combobox:not(.mfui-select__combobox_hide-value) + .mfui-select__label {
301
307
  -webkit-transform: scale(0.8) translate(-12.5%, -75%);
302
308
  transform: scale(0.8) translate(-12.5%, -75%);
303
309
  -webkit-transition-duration: 0.2s, 0.01s;
304
310
  transition-duration: 0.2s, 0.01s;
305
311
  }
306
- .mfui-select__control_labeled .mfui-select__title-inner_placeholder .mfui-select__title-value {
312
+ .mfui-select__control_labeled .mfui-select__title-inner_hide-value .mfui-select__title-value {
307
313
  color: var(--spbSky3);
308
314
  -webkit-transition: opacity 0.2s;
309
315
  transition: opacity 0.2s;
@@ -326,8 +332,8 @@
326
332
  z-index: 100;
327
333
  }
328
334
  .mfui-select_open .mfui-select__control:after {
329
- border-top: none;
330
- border-bottom: 6px solid;
335
+ -webkit-transform: rotate(-180deg);
336
+ transform: rotate(-180deg);
331
337
  }
332
338
  .mfui-select_open .mfui-select__list {
333
339
  display: block;
@@ -341,7 +347,7 @@
341
347
  .mfui-select_open .mfui-select__control {
342
348
  border-color: var(--content);
343
349
  }
344
- .mfui-select_open .mfui-select__title-inner_placeholder .mfui-select__title-value {
350
+ .mfui-select_open .mfui-select__title-inner_hide-value .mfui-select__title-value {
345
351
  opacity: 1;
346
352
  }
347
353
  .mfui-select_valid .mfui-select__control {
@@ -350,7 +350,7 @@ var Select = function Select(_ref) {
350
350
  onClick: handleSelectClick
351
351
  }), /*#__PURE__*/React.createElement("div", {
352
352
  className: cn('title-inner', {
353
- placeholder: currentValue === undefined
353
+ 'hide-value': !currentValue
354
354
  }, [classes === null || classes === void 0 ? void 0 : classes.titleInner])
355
355
  }, /*#__PURE__*/React.createElement("div", {
356
356
  className: cn('title-value')
@@ -360,7 +360,7 @@ var Select = function Select(_ref) {
360
360
  var renderCombobox = function renderCombobox() {
361
361
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("input", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.input), {
362
362
  className: cn('combobox', {
363
- placeholder: inputValue === undefined
363
+ 'hide-value': !inputValue
364
364
  }),
365
365
  onFocus: handleComboboxFocus,
366
366
  onChange: handleChangeCombobox,
@@ -224,7 +224,7 @@
224
224
  }
225
225
  .mfui-search__list-item {
226
226
  font-family: inherit;
227
- padding: 8px 32px;
227
+ padding: 12px 32px;
228
228
  border-radius: 16px;
229
229
  background-color: var(--base);
230
230
  cursor: pointer;
@@ -50,11 +50,13 @@
50
50
  background-color: var(--base);
51
51
  outline: none;
52
52
  cursor: pointer;
53
+ -webkit-transition: border-color 0.3s;
54
+ transition: border-color 0.3s;
53
55
  }
54
56
  .mfui-select__control:after {
55
57
  content: '';
56
58
  position: absolute;
57
- top: 53%;
59
+ top: 50%;
58
60
  right: 27px;
59
61
  display: block;
60
62
  border-top: 6px solid;
@@ -62,9 +64,11 @@
62
64
  border-bottom: none;
63
65
  border-left: 5px solid transparent;
64
66
  color: var(--brandGreen);
65
- -webkit-transform: translateY(-50%);
66
- transform: translateY(-50%);
67
67
  cursor: pointer;
68
+ -webkit-transition: -webkit-transform 0.6s;
69
+ transition: -webkit-transform 0.6s;
70
+ transition: transform 0.6s;
71
+ transition: transform 0.6s, -webkit-transform 0.6s;
68
72
  }
69
73
  .mfui-select__combobox {
70
74
  font-size: 15px;
@@ -115,7 +119,7 @@
115
119
  -ms-flex-align: center;
116
120
  align-items: center;
117
121
  }
118
- .mfui-select__title-inner_placeholder .mfui-select__title-value {
122
+ .mfui-select__title-inner_hide-value .mfui-select__title-value {
119
123
  color: var(--spbSky3);
120
124
  }
121
125
  .mfui-select__title-inner {
@@ -129,6 +133,8 @@
129
133
  -webkit-box-align: center;
130
134
  -ms-flex-align: center;
131
135
  align-items: center;
136
+ -webkit-box-sizing: border-box;
137
+ box-sizing: border-box;
132
138
  height: 100%;
133
139
  padding: 0 45px 0 16px;
134
140
  overflow: hidden;
@@ -183,7 +189,7 @@
183
189
  }
184
190
  .mfui-select__list-item {
185
191
  font-family: inherit;
186
- padding: 8px 32px;
192
+ padding: 12px 32px;
187
193
  border-radius: 16px;
188
194
  background-color: var(--base);
189
195
  cursor: pointer;
@@ -291,19 +297,19 @@
291
297
  transition: opacity 0.2s;
292
298
  }
293
299
  .mfui-select_open .mfui-select__label,
294
- .mfui-select__title-inner:not(.mfui-select__title-inner_placeholder) .mfui-select__label {
300
+ .mfui-select__title-inner:not(.mfui-select__title-inner_hide-value) .mfui-select__label {
295
301
  -webkit-transform: scale(0.8) translate(-12%, -75%);
296
302
  transform: scale(0.8) translate(-12%, -75%);
297
303
  -webkit-transition-duration: 0.2s, 0.01s;
298
304
  transition-duration: 0.2s, 0.01s;
299
305
  }
300
- .mfui-select__combobox:not(.mfui-select__combobox_placeholder) + .mfui-select__label {
306
+ .mfui-select__combobox:not(.mfui-select__combobox_hide-value) + .mfui-select__label {
301
307
  -webkit-transform: scale(0.8) translate(-12.5%, -75%);
302
308
  transform: scale(0.8) translate(-12.5%, -75%);
303
309
  -webkit-transition-duration: 0.2s, 0.01s;
304
310
  transition-duration: 0.2s, 0.01s;
305
311
  }
306
- .mfui-select__control_labeled .mfui-select__title-inner_placeholder .mfui-select__title-value {
312
+ .mfui-select__control_labeled .mfui-select__title-inner_hide-value .mfui-select__title-value {
307
313
  color: var(--spbSky3);
308
314
  -webkit-transition: opacity 0.2s;
309
315
  transition: opacity 0.2s;
@@ -326,8 +332,8 @@
326
332
  z-index: 100;
327
333
  }
328
334
  .mfui-select_open .mfui-select__control:after {
329
- border-top: none;
330
- border-bottom: 6px solid;
335
+ -webkit-transform: rotate(-180deg);
336
+ transform: rotate(-180deg);
331
337
  }
332
338
  .mfui-select_open .mfui-select__list {
333
339
  display: block;
@@ -341,7 +347,7 @@
341
347
  .mfui-select_open .mfui-select__control {
342
348
  border-color: var(--content);
343
349
  }
344
- .mfui-select_open .mfui-select__title-inner_placeholder .mfui-select__title-value {
350
+ .mfui-select_open .mfui-select__title-inner_hide-value .mfui-select__title-value {
345
351
  opacity: 1;
346
352
  }
347
353
  .mfui-select_valid .mfui-select__control {
@@ -384,7 +384,7 @@ var Select = function Select(_ref) {
384
384
  onClick: handleSelectClick
385
385
  }), /*#__PURE__*/React.createElement("div", {
386
386
  className: cn('title-inner', {
387
- placeholder: currentValue === undefined
387
+ 'hide-value': !currentValue
388
388
  }, [classes === null || classes === void 0 ? void 0 : classes.titleInner])
389
389
  }, /*#__PURE__*/React.createElement("div", {
390
390
  className: cn('title-value')
@@ -394,7 +394,7 @@ var Select = function Select(_ref) {
394
394
  var renderCombobox = function renderCombobox() {
395
395
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("input", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.input), {
396
396
  className: cn('combobox', {
397
- placeholder: inputValue === undefined
397
+ 'hide-value': !inputValue
398
398
  }),
399
399
  onFocus: handleComboboxFocus,
400
400
  onChange: handleChangeCombobox,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megafon/ui-core",
3
- "version": "4.0.0-beta.10",
3
+ "version": "4.0.0-beta.11",
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": "75acee9cdcd3587e1456557bea652554d134c30d"
100
+ "gitHead": "d2ab3895bb362d32ec75864fdc04431c53a09df9"
101
101
  }