@megafon/ui-core 6.2.1 → 6.4.0
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 +28 -4
- package/dist/es/components/Accordion/Accordion.css +14 -14
- package/dist/es/components/Accordion/Accordion.js +1 -1
- package/dist/es/components/Avatar/Avatar.css +9 -9
- package/dist/es/components/Avatar/Avatar.js +1 -1
- package/dist/es/components/Badges/components/CounterBadge/CounterBadge.css +10 -10
- package/dist/es/components/Badges/components/CounterBadge/CounterBadge.js +1 -1
- package/dist/es/components/Badges/components/NotificationBadge/NotificationBadge.css +9 -9
- package/dist/es/components/Badges/components/NotificationBadge/NotificationBadge.js +1 -1
- package/dist/es/components/Badges/components/PriceBadge/PriceBadge.css +29 -29
- package/dist/es/components/Badges/components/PriceBadge/PriceBadge.js +1 -1
- package/dist/es/components/Badges/components/PromoBadge/PromoBadge.css +16 -16
- package/dist/es/components/Badges/components/PromoBadge/PromoBadge.js +1 -1
- package/dist/es/components/Badges/components/TimerBadge/Timer/Timer.js +1 -1
- package/dist/es/components/Badges/components/TimerBadge/TimerBadge.css +9 -9
- package/dist/es/components/Badges/components/TimerBadge/TimerBadge.js +1 -1
- package/dist/es/components/Banner/Banner.css +41 -41
- package/dist/es/components/Banner/Banner.js +1 -1
- package/dist/es/components/Banner/BannerDot.css +8 -8
- package/dist/es/components/Banner/BannerDot.js +1 -1
- package/dist/es/components/Button/Button.css +263 -263
- package/dist/es/components/Button/Button.js +1 -1
- package/dist/es/components/Calendar/Calendar.css +5 -5
- package/dist/es/components/Calendar/Calendar.js +1 -1
- package/dist/es/components/Calendar/components/Day/Day.css +59 -59
- package/dist/es/components/Calendar/components/Day/Day.js +1 -1
- package/dist/es/components/Calendar/components/Month/Month.css +14 -14
- package/dist/es/components/Calendar/components/Month/Month.js +1 -1
- package/dist/es/components/Caption/Caption.css +15 -15
- package/dist/es/components/Caption/Caption.js +1 -1
- package/dist/es/components/Carousel/Carousel.css +38 -38
- package/dist/es/components/Carousel/Carousel.js +1 -1
- package/dist/es/components/Checkbox/Checkbox.css +35 -35
- package/dist/es/components/Checkbox/Checkbox.js +1 -1
- package/dist/es/components/Chips/Chip.css +33 -33
- package/dist/es/components/Chips/Chip.js +1 -1
- package/dist/es/components/Chips/Chips.css +3 -3
- package/dist/es/components/Chips/Chips.js +1 -1
- package/dist/es/components/Chips/components/ChipsDropdown.css +12 -12
- package/dist/es/components/Chips/components/ChipsDropdown.js +1 -1
- package/dist/es/components/Collapse/Collapse.css +1 -1
- package/dist/es/components/Collapse/Collapse.js +1 -1
- package/dist/es/components/ContentArea/ContentArea.css +25 -25
- package/dist/es/components/ContentArea/ContentArea.js +1 -1
- package/dist/es/components/ContentView/ContentView.css +19 -19
- package/dist/es/components/ContentView/ContentView.js +1 -1
- package/dist/es/components/Counter/Counter.css +13 -13
- package/dist/es/components/Counter/Counter.js +1 -1
- package/dist/es/components/Grid/Grid.css +22 -22
- package/dist/es/components/Grid/Grid.js +1 -1
- package/dist/es/components/Grid/GridColumn.css +691 -691
- package/dist/es/components/Grid/GridColumn.js +1 -1
- package/dist/es/components/Header/Header.css +29 -29
- package/dist/es/components/Header/Header.js +1 -1
- package/dist/es/components/List/List.css +17 -17
- package/dist/es/components/List/List.js +1 -1
- package/dist/es/components/List/ListItem.css +2 -2
- package/dist/es/components/List/ListItem.js +1 -1
- package/dist/es/components/ListData/ListData.css +25 -25
- package/dist/es/components/ListData/ListData.js +1 -1
- package/dist/es/components/ListData/ListDataGroup.css +2 -2
- package/dist/es/components/ListData/ListDataGroup.js +1 -1
- package/dist/es/components/ListData/components/ListDataSortable.css +14 -14
- package/dist/es/components/ListData/components/ListDataSortable.js +1 -1
- package/dist/es/components/Logo/Logo.css +12 -12
- package/dist/es/components/Logo/Logo.js +1 -1
- package/dist/es/components/NavArrow/NavArrow.css +13 -13
- package/dist/es/components/NavArrow/NavArrow.js +1 -1
- package/dist/es/components/Notification/Notification.css +71 -71
- package/dist/es/components/Notification/Notification.js +1 -1
- package/dist/es/components/Pagination/Pagination.css +1 -1
- package/dist/es/components/Pagination/Pagination.js +1 -1
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.css +12 -12
- package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.js +1 -1
- package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.css +2 -2
- package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.js +1 -1
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +3 -3
- package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +1 -1
- package/dist/es/components/Paragraph/Paragraph.css +13 -13
- package/dist/es/components/Paragraph/Paragraph.js +1 -1
- package/dist/es/components/Preloader/Preloader.css +34 -34
- package/dist/es/components/Preloader/Preloader.js +1 -1
- package/dist/es/components/RadioButton/RadioButton.css +24 -24
- package/dist/es/components/RadioButton/RadioButton.js +1 -1
- package/dist/es/components/Row/Row.css +41 -41
- package/dist/es/components/Row/Row.js +1 -1
- package/dist/es/components/Search/Search.css +72 -72
- package/dist/es/components/Search/Search.d.ts +2 -0
- package/dist/es/components/Search/Search.js +7 -2
- package/dist/es/components/Select/Select.css +60 -60
- package/dist/es/components/Select/Select.js +1 -1
- package/dist/es/components/Selector/Selector.css +29 -29
- package/dist/es/components/Selector/Selector.js +1 -1
- package/dist/es/components/Sliders/Slider/Slider.css +16 -16
- package/dist/es/components/Sliders/Slider/Slider.js +1 -1
- package/dist/es/components/Sliders/SliderRange/SliderRange.css +24 -24
- package/dist/es/components/Sliders/SliderRange/SliderRange.js +1 -1
- package/dist/es/components/Sliders/SliderRatio/SliderRatio.css +26 -26
- package/dist/es/components/Sliders/SliderRatio/SliderRatio.js +1 -1
- package/dist/es/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.css +15 -15
- package/dist/es/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.js +1 -1
- package/dist/es/components/Sliders/components/SliderScale/SliderScale.css +3 -3
- package/dist/es/components/Sliders/components/SliderScale/SliderScale.js +1 -1
- package/dist/es/components/Snackbar/Snackbar.css +26 -26
- package/dist/es/components/Snackbar/Snackbar.js +1 -1
- package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.css +5 -5
- package/dist/es/components/Snackbar/SnackbarTimer/SnackbarTimer.js +1 -1
- package/dist/es/components/Switcher/Switcher.css +27 -27
- package/dist/es/components/Switcher/Switcher.js +1 -1
- package/dist/es/components/Tabs/Tabs.css +57 -57
- package/dist/es/components/Tabs/Tabs.js +1 -1
- package/dist/es/components/TextField/TextField.css +78 -78
- package/dist/es/components/TextField/TextField.js +1 -1
- package/dist/es/components/TextLink/TextLink.css +15 -15
- package/dist/es/components/TextLink/TextLink.js +1 -1
- package/dist/es/components/Tile/Tile.css +14 -14
- package/dist/es/components/Tile/Tile.js +1 -1
- package/dist/es/components/Tooltip/Tooltip.css +123 -123
- package/dist/es/components/Tooltip/Tooltip.d.ts +2 -0
- package/dist/es/components/Tooltip/Tooltip.js +9 -5
- package/dist/lib/components/Accordion/Accordion.css +14 -14
- package/dist/lib/components/Accordion/Accordion.js +1 -1
- package/dist/lib/components/Avatar/Avatar.css +9 -9
- package/dist/lib/components/Avatar/Avatar.js +1 -1
- package/dist/lib/components/Badges/components/CounterBadge/CounterBadge.css +10 -10
- package/dist/lib/components/Badges/components/CounterBadge/CounterBadge.js +1 -1
- package/dist/lib/components/Badges/components/NotificationBadge/NotificationBadge.css +9 -9
- package/dist/lib/components/Badges/components/NotificationBadge/NotificationBadge.js +1 -1
- package/dist/lib/components/Badges/components/PriceBadge/PriceBadge.css +29 -29
- package/dist/lib/components/Badges/components/PriceBadge/PriceBadge.js +1 -1
- package/dist/lib/components/Badges/components/PromoBadge/PromoBadge.css +16 -16
- package/dist/lib/components/Badges/components/PromoBadge/PromoBadge.js +1 -1
- package/dist/lib/components/Badges/components/TimerBadge/Timer/Timer.js +1 -1
- package/dist/lib/components/Badges/components/TimerBadge/TimerBadge.css +9 -9
- package/dist/lib/components/Badges/components/TimerBadge/TimerBadge.js +1 -1
- package/dist/lib/components/Banner/Banner.css +41 -41
- package/dist/lib/components/Banner/Banner.js +1 -1
- package/dist/lib/components/Banner/BannerDot.css +8 -8
- package/dist/lib/components/Banner/BannerDot.js +1 -1
- package/dist/lib/components/Button/Button.css +263 -263
- package/dist/lib/components/Button/Button.js +1 -1
- package/dist/lib/components/Calendar/Calendar.css +5 -5
- package/dist/lib/components/Calendar/Calendar.js +1 -1
- package/dist/lib/components/Calendar/components/Day/Day.css +59 -59
- package/dist/lib/components/Calendar/components/Day/Day.js +1 -1
- package/dist/lib/components/Calendar/components/Month/Month.css +14 -14
- package/dist/lib/components/Calendar/components/Month/Month.js +1 -1
- package/dist/lib/components/Caption/Caption.css +15 -15
- package/dist/lib/components/Caption/Caption.js +1 -1
- package/dist/lib/components/Carousel/Carousel.css +38 -38
- package/dist/lib/components/Carousel/Carousel.js +1 -1
- package/dist/lib/components/Checkbox/Checkbox.css +35 -35
- package/dist/lib/components/Checkbox/Checkbox.js +1 -1
- package/dist/lib/components/Chips/Chip.css +33 -33
- package/dist/lib/components/Chips/Chip.js +1 -1
- package/dist/lib/components/Chips/Chips.css +3 -3
- package/dist/lib/components/Chips/Chips.js +1 -1
- package/dist/lib/components/Chips/components/ChipsDropdown.css +12 -12
- package/dist/lib/components/Chips/components/ChipsDropdown.js +1 -1
- package/dist/lib/components/Collapse/Collapse.css +1 -1
- package/dist/lib/components/Collapse/Collapse.js +1 -1
- package/dist/lib/components/ContentArea/ContentArea.css +25 -25
- package/dist/lib/components/ContentArea/ContentArea.js +1 -1
- package/dist/lib/components/ContentView/ContentView.css +19 -19
- package/dist/lib/components/ContentView/ContentView.js +1 -1
- package/dist/lib/components/Counter/Counter.css +13 -13
- package/dist/lib/components/Counter/Counter.js +1 -1
- package/dist/lib/components/Grid/Grid.css +22 -22
- package/dist/lib/components/Grid/Grid.js +1 -1
- package/dist/lib/components/Grid/GridColumn.css +691 -691
- package/dist/lib/components/Grid/GridColumn.js +1 -1
- package/dist/lib/components/Header/Header.css +29 -29
- package/dist/lib/components/Header/Header.js +1 -1
- package/dist/lib/components/List/List.css +17 -17
- package/dist/lib/components/List/List.js +1 -1
- package/dist/lib/components/List/ListItem.css +2 -2
- package/dist/lib/components/List/ListItem.js +1 -1
- package/dist/lib/components/ListData/ListData.css +25 -25
- package/dist/lib/components/ListData/ListData.js +1 -1
- package/dist/lib/components/ListData/ListDataGroup.css +2 -2
- package/dist/lib/components/ListData/ListDataGroup.js +1 -1
- package/dist/lib/components/ListData/components/ListDataSortable.css +14 -14
- package/dist/lib/components/ListData/components/ListDataSortable.js +1 -1
- package/dist/lib/components/Logo/Logo.css +12 -12
- package/dist/lib/components/Logo/Logo.js +1 -1
- package/dist/lib/components/NavArrow/NavArrow.css +13 -13
- package/dist/lib/components/NavArrow/NavArrow.js +1 -1
- package/dist/lib/components/Notification/Notification.css +71 -71
- package/dist/lib/components/Notification/Notification.js +1 -1
- package/dist/lib/components/Pagination/Pagination.css +1 -1
- package/dist/lib/components/Pagination/Pagination.js +1 -1
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.css +12 -12
- package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.js +1 -1
- package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.css +2 -2
- package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.js +1 -1
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.css +3 -3
- package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +1 -1
- package/dist/lib/components/Paragraph/Paragraph.css +13 -13
- package/dist/lib/components/Paragraph/Paragraph.js +1 -1
- package/dist/lib/components/Preloader/Preloader.css +34 -34
- package/dist/lib/components/Preloader/Preloader.js +1 -1
- package/dist/lib/components/RadioButton/RadioButton.css +24 -24
- package/dist/lib/components/RadioButton/RadioButton.js +1 -1
- package/dist/lib/components/Row/Row.css +41 -41
- package/dist/lib/components/Row/Row.js +1 -1
- package/dist/lib/components/Search/Search.css +72 -72
- package/dist/lib/components/Search/Search.d.ts +2 -0
- package/dist/lib/components/Search/Search.js +7 -2
- package/dist/lib/components/Select/Select.css +60 -60
- package/dist/lib/components/Select/Select.js +1 -1
- package/dist/lib/components/Selector/Selector.css +29 -29
- package/dist/lib/components/Selector/Selector.js +1 -1
- package/dist/lib/components/Sliders/Slider/Slider.css +16 -16
- package/dist/lib/components/Sliders/Slider/Slider.js +1 -1
- package/dist/lib/components/Sliders/SliderRange/SliderRange.css +24 -24
- package/dist/lib/components/Sliders/SliderRange/SliderRange.js +1 -1
- package/dist/lib/components/Sliders/SliderRatio/SliderRatio.css +26 -26
- package/dist/lib/components/Sliders/SliderRatio/SliderRatio.js +1 -1
- package/dist/lib/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.css +15 -15
- package/dist/lib/components/Sliders/components/SliderDisplayValue/SliderDisplayValue.js +1 -1
- package/dist/lib/components/Sliders/components/SliderScale/SliderScale.css +3 -3
- package/dist/lib/components/Sliders/components/SliderScale/SliderScale.js +1 -1
- package/dist/lib/components/Snackbar/Snackbar.css +26 -26
- package/dist/lib/components/Snackbar/Snackbar.js +1 -1
- package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.css +5 -5
- package/dist/lib/components/Snackbar/SnackbarTimer/SnackbarTimer.js +1 -1
- package/dist/lib/components/Switcher/Switcher.css +27 -27
- package/dist/lib/components/Switcher/Switcher.js +1 -1
- package/dist/lib/components/Tabs/Tabs.css +57 -57
- package/dist/lib/components/Tabs/Tabs.js +1 -1
- package/dist/lib/components/TextField/TextField.css +78 -78
- package/dist/lib/components/TextField/TextField.js +1 -1
- package/dist/lib/components/TextLink/TextLink.css +15 -15
- package/dist/lib/components/TextLink/TextLink.js +1 -1
- package/dist/lib/components/Tile/Tile.css +14 -14
- package/dist/lib/components/Tile/Tile.js +1 -1
- package/dist/lib/components/Tooltip/Tooltip.css +123 -123
- package/dist/lib/components/Tooltip/Tooltip.d.ts +2 -0
- package/dist/lib/components/Tooltip/Tooltip.js +9 -5
- package/package.json +3 -3
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
opacity: 1;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
.mfui-search {
|
|
25
|
+
.mfui-v6-search {
|
|
26
26
|
position: relative;
|
|
27
27
|
z-index: auto;
|
|
28
28
|
-webkit-box-sizing: border-box;
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
font-size: 15px;
|
|
34
34
|
line-height: 24px;
|
|
35
35
|
}
|
|
36
|
-
.mfui-search__require-mark {
|
|
36
|
+
.mfui-v6-search__require-mark {
|
|
37
37
|
margin-left: 1px;
|
|
38
38
|
color: var(--fury);
|
|
39
39
|
font-size: 20px;
|
|
40
40
|
line-height: 0;
|
|
41
41
|
}
|
|
42
|
-
.mfui-search__control {
|
|
42
|
+
.mfui-v6-search__control {
|
|
43
43
|
position: relative;
|
|
44
44
|
z-index: 1;
|
|
45
45
|
display: -webkit-box;
|
|
@@ -58,61 +58,61 @@
|
|
|
58
58
|
-ms-user-select: none;
|
|
59
59
|
user-select: none;
|
|
60
60
|
}
|
|
61
|
-
.mfui-search__field_labeled::-webkit-input-placeholder {
|
|
61
|
+
.mfui-v6-search__field_labeled::-webkit-input-placeholder {
|
|
62
62
|
color: var(--spbSky3);
|
|
63
63
|
opacity: 0;
|
|
64
64
|
-webkit-transition: opacity 0.2s;
|
|
65
65
|
transition: opacity 0.2s;
|
|
66
66
|
}
|
|
67
|
-
.mfui-search__field_labeled::-moz-placeholder {
|
|
67
|
+
.mfui-v6-search__field_labeled::-moz-placeholder {
|
|
68
68
|
color: var(--spbSky3);
|
|
69
69
|
opacity: 0;
|
|
70
70
|
-webkit-transition: opacity 0.2s;
|
|
71
71
|
transition: opacity 0.2s;
|
|
72
72
|
}
|
|
73
|
-
.mfui-search__field_labeled:-moz-placeholder {
|
|
73
|
+
.mfui-v6-search__field_labeled:-moz-placeholder {
|
|
74
74
|
color: var(--spbSky3);
|
|
75
75
|
opacity: 0;
|
|
76
76
|
-webkit-transition: opacity 0.2s;
|
|
77
77
|
transition: opacity 0.2s;
|
|
78
78
|
}
|
|
79
|
-
.mfui-search__field_labeled:-ms-input-placeholder {
|
|
79
|
+
.mfui-v6-search__field_labeled:-ms-input-placeholder {
|
|
80
80
|
color: var(--spbSky3);
|
|
81
81
|
opacity: 0;
|
|
82
82
|
-webkit-transition: opacity 0.2s;
|
|
83
83
|
transition: opacity 0.2s;
|
|
84
84
|
}
|
|
85
|
-
.mfui-search__field_labeled::-ms-input-placeholder {
|
|
85
|
+
.mfui-v6-search__field_labeled::-ms-input-placeholder {
|
|
86
86
|
color: var(--spbSky3);
|
|
87
87
|
opacity: 0;
|
|
88
88
|
-webkit-transition: opacity 0.2s;
|
|
89
89
|
transition: opacity 0.2s;
|
|
90
90
|
}
|
|
91
|
-
.mfui-search__field_labeled::placeholder {
|
|
91
|
+
.mfui-v6-search__field_labeled::placeholder {
|
|
92
92
|
color: var(--spbSky3);
|
|
93
93
|
opacity: 0;
|
|
94
94
|
-webkit-transition: opacity 0.2s;
|
|
95
95
|
transition: opacity 0.2s;
|
|
96
96
|
}
|
|
97
|
-
.mfui-search__field:focus::-webkit-input-placeholder {
|
|
97
|
+
.mfui-v6-search__field:focus::-webkit-input-placeholder {
|
|
98
98
|
opacity: 1;
|
|
99
99
|
}
|
|
100
|
-
.mfui-search__field:focus::-moz-placeholder {
|
|
100
|
+
.mfui-v6-search__field:focus::-moz-placeholder {
|
|
101
101
|
opacity: 1;
|
|
102
102
|
}
|
|
103
|
-
.mfui-search__field:focus:-moz-placeholder {
|
|
103
|
+
.mfui-v6-search__field:focus:-moz-placeholder {
|
|
104
104
|
opacity: 1;
|
|
105
105
|
}
|
|
106
|
-
.mfui-search__field:focus:-ms-input-placeholder {
|
|
106
|
+
.mfui-v6-search__field:focus:-ms-input-placeholder {
|
|
107
107
|
opacity: 1;
|
|
108
108
|
}
|
|
109
|
-
.mfui-search__field:focus::-ms-input-placeholder {
|
|
109
|
+
.mfui-v6-search__field:focus::-ms-input-placeholder {
|
|
110
110
|
opacity: 1;
|
|
111
111
|
}
|
|
112
|
-
.mfui-search__field:focus::placeholder {
|
|
112
|
+
.mfui-v6-search__field:focus::placeholder {
|
|
113
113
|
opacity: 1;
|
|
114
114
|
}
|
|
115
|
-
.mfui-search__field {
|
|
115
|
+
.mfui-v6-search__field {
|
|
116
116
|
position: relative;
|
|
117
117
|
z-index: 1;
|
|
118
118
|
display: block;
|
|
@@ -143,11 +143,11 @@
|
|
|
143
143
|
caret-color: var(--brandGreen);
|
|
144
144
|
}
|
|
145
145
|
@media screen and (max-width: 767px) {
|
|
146
|
-
.mfui-search__field {
|
|
146
|
+
.mfui-v6-search__field {
|
|
147
147
|
width: 90%;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
.mfui-search__label {
|
|
150
|
+
.mfui-v6-search__label {
|
|
151
151
|
position: absolute;
|
|
152
152
|
z-index: 1;
|
|
153
153
|
display: block;
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
font-size: 15px;
|
|
161
161
|
line-height: 24px;
|
|
162
162
|
}
|
|
163
|
-
.mfui-search__list {
|
|
163
|
+
.mfui-v6-search__list {
|
|
164
164
|
position: absolute;
|
|
165
165
|
top: calc(100% + 1px);
|
|
166
166
|
right: -1px;
|
|
@@ -172,8 +172,8 @@
|
|
|
172
172
|
-webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
173
173
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
174
174
|
}
|
|
175
|
-
.mfui-search__clear,
|
|
176
|
-
.mfui-search__submit-button {
|
|
175
|
+
.mfui-v6-search__clear,
|
|
176
|
+
.mfui-v6-search__submit-button {
|
|
177
177
|
display: -webkit-box;
|
|
178
178
|
display: -ms-flexbox;
|
|
179
179
|
display: flex;
|
|
@@ -190,14 +190,14 @@
|
|
|
190
190
|
background-color: transparent;
|
|
191
191
|
cursor: pointer;
|
|
192
192
|
}
|
|
193
|
-
.mfui-search__list-inner {
|
|
193
|
+
.mfui-v6-search__list-inner {
|
|
194
194
|
-webkit-box-sizing: border-box;
|
|
195
195
|
box-sizing: border-box;
|
|
196
196
|
max-height: 368px;
|
|
197
197
|
padding: 16px;
|
|
198
198
|
overflow-y: auto;
|
|
199
199
|
}
|
|
200
|
-
.mfui-search__list-item {
|
|
200
|
+
.mfui-v6-search__list-item {
|
|
201
201
|
font-family: inherit;
|
|
202
202
|
padding-top: 12px;
|
|
203
203
|
padding-bottom: 12px;
|
|
@@ -205,15 +205,15 @@
|
|
|
205
205
|
background-color: var(--base);
|
|
206
206
|
cursor: pointer;
|
|
207
207
|
}
|
|
208
|
-
.mfui-search__list-item_paddings_large {
|
|
208
|
+
.mfui-v6-search__list-item_paddings_large {
|
|
209
209
|
padding-right: 32px;
|
|
210
210
|
padding-left: 32px;
|
|
211
211
|
}
|
|
212
|
-
.mfui-search__list-item_paddings_small {
|
|
212
|
+
.mfui-v6-search__list-item_paddings_small {
|
|
213
213
|
padding-right: 12px;
|
|
214
214
|
padding-left: 12px;
|
|
215
215
|
}
|
|
216
|
-
.mfui-search__popular-item {
|
|
216
|
+
.mfui-v6-search__popular-item {
|
|
217
217
|
display: -webkit-box;
|
|
218
218
|
display: -ms-flexbox;
|
|
219
219
|
display: flex;
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
background-color: var(--base);
|
|
229
229
|
cursor: pointer;
|
|
230
230
|
}
|
|
231
|
-
.mfui-search__popular-icon {
|
|
231
|
+
.mfui-v6-search__popular-icon {
|
|
232
232
|
display: -webkit-box;
|
|
233
233
|
display: -ms-flexbox;
|
|
234
234
|
display: flex;
|
|
@@ -244,12 +244,12 @@
|
|
|
244
244
|
height: 32px;
|
|
245
245
|
margin-right: 16px;
|
|
246
246
|
}
|
|
247
|
-
.mfui-search__list-item_active,
|
|
248
|
-
.mfui-search__popular-item_active {
|
|
247
|
+
.mfui-v6-search__list-item_active,
|
|
248
|
+
.mfui-v6-search__popular-item_active {
|
|
249
249
|
background-color: var(--spbSky0);
|
|
250
250
|
}
|
|
251
|
-
.mfui-search__item-title,
|
|
252
|
-
.mfui-search__popular-item-title {
|
|
251
|
+
.mfui-v6-search__item-title,
|
|
252
|
+
.mfui-v6-search__popular-item-title {
|
|
253
253
|
position: relative;
|
|
254
254
|
-webkit-box-flex: 1;
|
|
255
255
|
-ms-flex-positive: 1;
|
|
@@ -257,8 +257,8 @@
|
|
|
257
257
|
overflow: hidden;
|
|
258
258
|
white-space: nowrap;
|
|
259
259
|
}
|
|
260
|
-
.mfui-search__item-title:after,
|
|
261
|
-
.mfui-search__popular-item-title:after {
|
|
260
|
+
.mfui-v6-search__item-title:after,
|
|
261
|
+
.mfui-v6-search__popular-item-title:after {
|
|
262
262
|
content: '';
|
|
263
263
|
position: absolute;
|
|
264
264
|
top: 0;
|
|
@@ -271,29 +271,29 @@
|
|
|
271
271
|
mask-image: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(var(--spbSky0)));
|
|
272
272
|
mask-image: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, var(--spbSky0) 100%);
|
|
273
273
|
}
|
|
274
|
-
.mfui-search__list-item_active .mfui-search__item-title:after,
|
|
275
|
-
.mfui-search__popular-item_active .mfui-search__popular-item-title:after {
|
|
274
|
+
.mfui-v6-search__list-item_active .mfui-v6-search__item-title:after,
|
|
275
|
+
.mfui-v6-search__popular-item_active .mfui-v6-search__popular-item-title:after {
|
|
276
276
|
background: var(--spbSky0);
|
|
277
277
|
-webkit-mask-image: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(var(--spbSky0)));
|
|
278
278
|
-webkit-mask-image: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, var(--spbSky0) 100%);
|
|
279
279
|
mask-image: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(var(--spbSky0)));
|
|
280
280
|
mask-image: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, var(--spbSky0) 100%);
|
|
281
281
|
}
|
|
282
|
-
.mfui-search__highlighted-fragment {
|
|
282
|
+
.mfui-v6-search__highlighted-fragment {
|
|
283
283
|
font-weight: bold;
|
|
284
284
|
}
|
|
285
|
-
.mfui-search__notice {
|
|
285
|
+
.mfui-v6-search__notice {
|
|
286
286
|
margin-top: 4px;
|
|
287
287
|
font-size: 12px;
|
|
288
288
|
line-height: 16px;
|
|
289
289
|
}
|
|
290
|
-
.mfui-search__notice_error {
|
|
290
|
+
.mfui-v6-search__notice_error {
|
|
291
291
|
color: var(--fury);
|
|
292
292
|
}
|
|
293
|
-
.mfui-search__notice_success {
|
|
293
|
+
.mfui-v6-search__notice_success {
|
|
294
294
|
color: var(--brandGreen);
|
|
295
295
|
}
|
|
296
|
-
.mfui-search__icons {
|
|
296
|
+
.mfui-v6-search__icons {
|
|
297
297
|
display: -webkit-box;
|
|
298
298
|
display: -ms-flexbox;
|
|
299
299
|
display: flex;
|
|
@@ -302,27 +302,27 @@
|
|
|
302
302
|
align-items: center;
|
|
303
303
|
height: 100%;
|
|
304
304
|
}
|
|
305
|
-
.mfui-search__list_not-found {
|
|
305
|
+
.mfui-v6-search__list_not-found {
|
|
306
306
|
cursor: default;
|
|
307
307
|
}
|
|
308
|
-
.mfui-search__not-found-text {
|
|
308
|
+
.mfui-v6-search__not-found-text {
|
|
309
309
|
font-family: inherit;
|
|
310
310
|
padding: 12px 32px;
|
|
311
311
|
color: var(--spbSky3);
|
|
312
312
|
background-color: var(--base);
|
|
313
313
|
}
|
|
314
|
-
.mfui-search__not-found-text_show-popular {
|
|
314
|
+
.mfui-v6-search__not-found-text_show-popular {
|
|
315
315
|
padding: 0 0 16px 0;
|
|
316
316
|
border-bottom: 1px solid var(--spbSky2);
|
|
317
317
|
}
|
|
318
|
-
.mfui-search__popular-title {
|
|
318
|
+
.mfui-v6-search__popular-title {
|
|
319
319
|
padding-top: 16px;
|
|
320
320
|
padding-bottom: 8px;
|
|
321
321
|
}
|
|
322
|
-
.mfui-search_open {
|
|
322
|
+
.mfui-v6-search_open {
|
|
323
323
|
z-index: 12;
|
|
324
324
|
}
|
|
325
|
-
.mfui-search_open .mfui-search__list {
|
|
325
|
+
.mfui-v6-search_open .mfui-v6-search__list {
|
|
326
326
|
display: block;
|
|
327
327
|
-webkit-animation-name: listAppear;
|
|
328
328
|
animation-name: listAppear;
|
|
@@ -331,44 +331,44 @@
|
|
|
331
331
|
-webkit-animation-timing-function: ease-in-out;
|
|
332
332
|
animation-timing-function: ease-in-out;
|
|
333
333
|
}
|
|
334
|
-
.mfui-search_type_textfield .mfui-search__control {
|
|
334
|
+
.mfui-v6-search_type_textfield .mfui-v6-search__control {
|
|
335
335
|
height: 60px;
|
|
336
336
|
padding: 0 16px 0 16px;
|
|
337
337
|
border-color: var(--spbSky2);
|
|
338
338
|
border-radius: 12px;
|
|
339
339
|
background-color: var(--base);
|
|
340
340
|
}
|
|
341
|
-
.mfui-search_type_textfield .mfui-search__control:hover {
|
|
341
|
+
.mfui-v6-search_type_textfield .mfui-v6-search__control:hover {
|
|
342
342
|
border-color: var(--content);
|
|
343
343
|
}
|
|
344
|
-
.mfui-search_type_textfield .mfui-search__label {
|
|
344
|
+
.mfui-v6-search_type_textfield .mfui-v6-search__label {
|
|
345
345
|
top: 17px;
|
|
346
346
|
}
|
|
347
|
-
.mfui-search_type_textfield .mfui-search__field_filled + .mfui-search__label,
|
|
348
|
-
.mfui-search_type_textfield .mfui-search__field:focus + .mfui-search__label {
|
|
347
|
+
.mfui-v6-search_type_textfield .mfui-v6-search__field_filled + .mfui-v6-search__label,
|
|
348
|
+
.mfui-v6-search_type_textfield .mfui-v6-search__field:focus + .mfui-v6-search__label {
|
|
349
349
|
-webkit-transform: scale(0.8) translate(-12.5%, -75%);
|
|
350
350
|
transform: scale(0.8) translate(-12.5%, -75%);
|
|
351
351
|
}
|
|
352
|
-
.mfui-search_type_textfield .mfui-search__field_labeled {
|
|
352
|
+
.mfui-v6-search_type_textfield .mfui-v6-search__field_labeled {
|
|
353
353
|
padding-top: 22px;
|
|
354
354
|
}
|
|
355
|
-
.mfui-search_type_textfield .mfui-search__submit-icon {
|
|
355
|
+
.mfui-v6-search_type_textfield .mfui-v6-search__submit-icon {
|
|
356
356
|
width: 32px;
|
|
357
357
|
height: 32px;
|
|
358
358
|
fill: var(--content);
|
|
359
359
|
}
|
|
360
|
-
.mfui-search_type_textfield.mfui-search_disabled .mfui-search__control {
|
|
360
|
+
.mfui-v6-search_type_textfield.mfui-v6-search_disabled .mfui-v6-search__control {
|
|
361
361
|
border-color: var(--spbSky1);
|
|
362
362
|
background-color: var(--spbSky1);
|
|
363
363
|
}
|
|
364
|
-
.mfui-search_type_textfield.mfui-search_disabled .mfui-search__submit-icon {
|
|
364
|
+
.mfui-v6-search_type_textfield.mfui-v6-search_disabled .mfui-v6-search__submit-icon {
|
|
365
365
|
opacity: 0.5;
|
|
366
366
|
-webkit-user-select: none;
|
|
367
367
|
-moz-user-select: none;
|
|
368
368
|
-ms-user-select: none;
|
|
369
369
|
user-select: none;
|
|
370
370
|
}
|
|
371
|
-
.mfui-search_type_compact .mfui-search__control {
|
|
371
|
+
.mfui-v6-search_type_compact .mfui-v6-search__control {
|
|
372
372
|
height: 40px;
|
|
373
373
|
padding: 0 12px;
|
|
374
374
|
border-color: var(--spbSky0);
|
|
@@ -377,29 +377,29 @@
|
|
|
377
377
|
-webkit-transition: background-color, border-color 0.3s;
|
|
378
378
|
transition: background-color, border-color 0.3s;
|
|
379
379
|
}
|
|
380
|
-
.mfui-search_type_compact .mfui-search__control:hover {
|
|
380
|
+
.mfui-v6-search_type_compact .mfui-v6-search__control:hover {
|
|
381
381
|
background-color: var(--spbSky1);
|
|
382
382
|
}
|
|
383
|
-
.mfui-search_type_compact .mfui-search__field {
|
|
383
|
+
.mfui-v6-search_type_compact .mfui-v6-search__field {
|
|
384
384
|
height: 100%;
|
|
385
385
|
padding: 8px 0 8px 12px;
|
|
386
386
|
}
|
|
387
|
-
.mfui-search_type_compact .mfui-search__label {
|
|
387
|
+
.mfui-v6-search_type_compact .mfui-v6-search__label {
|
|
388
388
|
top: 50%;
|
|
389
389
|
left: 44px;
|
|
390
390
|
-webkit-transform: translateY(-50%);
|
|
391
391
|
transform: translateY(-50%);
|
|
392
392
|
}
|
|
393
|
-
.mfui-search_type_compact .mfui-search__field_filled + .mfui-search__label,
|
|
394
|
-
.mfui-search_type_compact .mfui-search__field:focus + .mfui-search__label {
|
|
393
|
+
.mfui-v6-search_type_compact .mfui-v6-search__field_filled + .mfui-v6-search__label,
|
|
394
|
+
.mfui-v6-search_type_compact .mfui-v6-search__field:focus + .mfui-v6-search__label {
|
|
395
395
|
opacity: 0;
|
|
396
396
|
}
|
|
397
|
-
.mfui-search_type_compact .mfui-search__submit-icon {
|
|
397
|
+
.mfui-v6-search_type_compact .mfui-v6-search__submit-icon {
|
|
398
398
|
width: 20px;
|
|
399
399
|
height: 20px;
|
|
400
400
|
fill: var(--spbSky3);
|
|
401
401
|
}
|
|
402
|
-
.mfui-search_type_compact .mfui-search__clear {
|
|
402
|
+
.mfui-v6-search_type_compact .mfui-v6-search__clear {
|
|
403
403
|
display: -webkit-box;
|
|
404
404
|
display: -ms-flexbox;
|
|
405
405
|
display: flex;
|
|
@@ -417,37 +417,37 @@
|
|
|
417
417
|
background-color: transparent;
|
|
418
418
|
cursor: pointer;
|
|
419
419
|
}
|
|
420
|
-
.mfui-search_type_compact .mfui-search__clear-icon {
|
|
420
|
+
.mfui-v6-search_type_compact .mfui-v6-search__clear-icon {
|
|
421
421
|
width: 24px;
|
|
422
422
|
height: 24px;
|
|
423
423
|
fill: var(--spbSky3);
|
|
424
424
|
}
|
|
425
|
-
.mfui-search_type_compact .mfui-search__clear-icon:hover {
|
|
425
|
+
.mfui-v6-search_type_compact .mfui-v6-search__clear-icon:hover {
|
|
426
426
|
fill: var(--content);
|
|
427
427
|
}
|
|
428
|
-
.mfui-search_type_compact .mfui-search__clear-icon:active {
|
|
428
|
+
.mfui-v6-search_type_compact .mfui-v6-search__clear-icon:active {
|
|
429
429
|
fill: var(--buttonDown);
|
|
430
430
|
}
|
|
431
|
-
.mfui-search_type_compact.mfui-search_open .mfui-search__control {
|
|
431
|
+
.mfui-v6-search_type_compact.mfui-v6-search_open .mfui-v6-search__control {
|
|
432
432
|
background-color: var(--spbSky1);
|
|
433
433
|
}
|
|
434
|
-
.mfui-search_type_compact.mfui-search_open .mfui-search__submit-icon {
|
|
434
|
+
.mfui-v6-search_type_compact.mfui-v6-search_open .mfui-v6-search__submit-icon {
|
|
435
435
|
fill: var(--content);
|
|
436
436
|
}
|
|
437
|
-
.mfui-search_disabled .mfui-search__control {
|
|
437
|
+
.mfui-v6-search_disabled .mfui-v6-search__control {
|
|
438
438
|
cursor: default;
|
|
439
439
|
pointer-events: none;
|
|
440
440
|
}
|
|
441
|
-
.mfui-search_disabled .mfui-search__submit-icon {
|
|
441
|
+
.mfui-v6-search_disabled .mfui-v6-search__submit-icon {
|
|
442
442
|
opacity: 0.5;
|
|
443
443
|
-webkit-user-select: none;
|
|
444
444
|
-moz-user-select: none;
|
|
445
445
|
-ms-user-select: none;
|
|
446
446
|
user-select: none;
|
|
447
447
|
}
|
|
448
|
-
.mfui-search_error .mfui-search__control {
|
|
448
|
+
.mfui-v6-search_error .mfui-v6-search__control {
|
|
449
449
|
border-color: var(--fury);
|
|
450
450
|
}
|
|
451
|
-
.mfui-search_success .mfui-search__control {
|
|
451
|
+
.mfui-v6-search_success .mfui-v6-search__control {
|
|
452
452
|
border-color: var(--brandGreen);
|
|
453
453
|
}
|
|
@@ -89,6 +89,8 @@ export interface ISearchProps {
|
|
|
89
89
|
popularItems?: PopularItem[];
|
|
90
90
|
/** Заголовок перед популярными элементами */
|
|
91
91
|
popularTitle?: string;
|
|
92
|
+
/** Ссылка на элемент списка с результатами */
|
|
93
|
+
listRef?: React.Ref<HTMLDivElement>;
|
|
92
94
|
/** Обработчик изменения поля */
|
|
93
95
|
onChange?: (value: string) => void;
|
|
94
96
|
/** Обработчик нажатия на enter */
|
|
@@ -84,7 +84,7 @@ var SearchItemsPaddings = {
|
|
|
84
84
|
LARGE: 'large'
|
|
85
85
|
};
|
|
86
86
|
exports.SearchItemsPaddings = SearchItemsPaddings;
|
|
87
|
-
var cn = (0, _uiHelpers.cnCreate)('mfui-search');
|
|
87
|
+
var cn = (0, _uiHelpers.cnCreate)('mfui-v6-search');
|
|
88
88
|
|
|
89
89
|
var Search = function Search(_ref) {
|
|
90
90
|
var dataAttrs = _ref.dataAttrs,
|
|
@@ -113,6 +113,7 @@ var Search = function Search(_ref) {
|
|
|
113
113
|
_ref$popularItems = _ref.popularItems,
|
|
114
114
|
popularItems = _ref$popularItems === void 0 ? [] : _ref$popularItems,
|
|
115
115
|
popularTitle = _ref.popularTitle,
|
|
116
|
+
listRef = _ref.listRef,
|
|
116
117
|
onChange = _ref.onChange,
|
|
117
118
|
onSubmit = _ref.onSubmit,
|
|
118
119
|
onBlur = _ref.onBlur,
|
|
@@ -388,7 +389,8 @@ var Search = function Search(_ref) {
|
|
|
388
389
|
|
|
389
390
|
var renderList = function renderList() {
|
|
390
391
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
391
|
-
className: cn('list')
|
|
392
|
+
className: cn('list'),
|
|
393
|
+
ref: listRef
|
|
392
394
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
393
395
|
className: cn('list-inner')
|
|
394
396
|
}, items.map(function (_ref2, i) {
|
|
@@ -550,6 +552,9 @@ Search.propTypes = {
|
|
|
550
552
|
icon: PropTypes.element
|
|
551
553
|
}).isRequired),
|
|
552
554
|
popularTitle: PropTypes.string,
|
|
555
|
+
listRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
|
|
556
|
+
current: PropTypes.elementType
|
|
557
|
+
}), PropTypes.any])]),
|
|
553
558
|
onChange: PropTypes.func,
|
|
554
559
|
onSubmit: PropTypes.func,
|
|
555
560
|
onBlur: PropTypes.func,
|