@megafon/ui-core 9.0.0-alpha.1 → 9.0.0-alpha.10

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.
Files changed (248) hide show
  1. package/dist/es/components/Accordion/Accordion.d.ts +3 -1
  2. package/dist/es/components/Accordion/Accordion.js +2 -0
  3. package/dist/es/components/Avatar/Avatar.css +1 -1
  4. package/dist/es/components/Avatar/Avatar.d.ts +1 -1
  5. package/dist/es/components/Badges/InfoBadge/InfoBadge.css +1 -0
  6. package/dist/es/components/Badges/InfoBadge/InfoBadge.d.ts +52 -0
  7. package/dist/es/components/Badges/InfoBadge/InfoBadge.js +214 -0
  8. package/dist/es/components/Badges/PriceBadge/PriceBadge.d.ts +1 -0
  9. package/dist/es/components/Badges/PriceBadge/PriceBadge.js +29 -1
  10. package/dist/es/components/Badges/PromoBadge/PromoBadge.css +1 -1
  11. package/dist/es/components/Badges/PromoBadge/PromoBadge.d.ts +1 -11
  12. package/dist/es/components/Badges/PromoBadge/PromoBadge.js +6 -16
  13. package/dist/es/components/Banner/Banner.css +1 -1
  14. package/dist/es/components/Banner/Banner.d.ts +0 -7
  15. package/dist/es/components/Banner/Banner.js +16 -8
  16. package/dist/es/components/Buttons/Button/Button.css +1 -0
  17. package/dist/es/components/{Button → Buttons/Button}/Button.d.ts +1 -0
  18. package/dist/es/components/{Button → Buttons/Button}/Button.js +3 -2
  19. package/dist/es/components/Buttons/ButtonClose/ButtonClose.css +1 -0
  20. package/dist/es/components/Buttons/ButtonClose/ButtonClose.d.ts +34 -0
  21. package/dist/es/components/Buttons/ButtonClose/ButtonClose.js +70 -0
  22. package/dist/es/components/Carousel/Carousel.css +1 -1
  23. package/dist/es/components/Carousel/Carousel.d.ts +2 -0
  24. package/dist/es/components/Carousel/Carousel.js +7 -1
  25. package/dist/es/components/Chips/Chips/Chip.css +1 -1
  26. package/dist/es/components/Chips/Chips/Chip.d.ts +9 -1
  27. package/dist/es/components/Chips/Chips/Chip.js +8 -1
  28. package/dist/es/components/Chips/Chips/Chips.d.ts +12 -1
  29. package/dist/es/components/Chips/Chips/Chips.js +20 -6
  30. package/dist/es/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.css +1 -1
  31. package/dist/es/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.d.ts +12 -4
  32. package/dist/es/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.js +55 -47
  33. package/dist/es/components/Chips/Chips/components/ChipsScrollPanel/ChipsScrollPanel.d.ts +2 -1
  34. package/dist/es/components/Chips/Chips/components/ChipsScrollPanel/ChipsScrollPanel.js +2 -0
  35. package/dist/es/components/Chips/ChipsSuggest/ChipSuggest.css +1 -1
  36. package/dist/es/components/Chips/ChipsSuggest/ChipSuggest.d.ts +7 -0
  37. package/dist/es/components/Chips/ChipsSuggest/ChipSuggest.js +7 -0
  38. package/dist/es/components/Chips/ChipsSuggest/ChipsSuggest.d.ts +4 -2
  39. package/dist/es/components/Chips/ChipsSuggest/ChipsSuggest.js +3 -0
  40. package/dist/es/components/ContentView/ContentView.js +1 -1
  41. package/dist/es/components/Counter/Counter.css +1 -1
  42. package/dist/es/components/Counter/Counter.d.ts +2 -0
  43. package/dist/es/components/Counter/Counter.js +4 -1
  44. package/dist/es/components/Dropdown/Dropdown.css +1 -0
  45. package/dist/es/components/Dropdown/Dropdown.d.ts +66 -0
  46. package/dist/es/components/Dropdown/Dropdown.js +109 -0
  47. package/dist/es/components/ErrorLoad/ErrorLoad.d.ts +1 -1
  48. package/dist/es/components/ErrorLoad/ErrorLoad.js +1 -1
  49. package/dist/es/components/ListData/ListData.css +1 -1
  50. package/dist/es/components/ListData/ListData.d.ts +9 -1
  51. package/dist/es/components/ListData/ListData.js +8 -0
  52. package/dist/es/components/Modal/Modal.css +1 -1
  53. package/dist/es/components/Modal/Modal.d.ts +23 -9
  54. package/dist/es/components/Modal/Modal.js +34 -23
  55. package/dist/es/components/Modal/_ModalContent/ModalContent.css +1 -1
  56. package/dist/es/components/Modal/_ModalContent/ModalContent.js +24 -30
  57. package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.css +1 -1
  58. package/dist/es/components/Modal/_ModalMobile/ModalMobile.css +1 -0
  59. package/dist/es/components/Modal/{_ModalMobileBottom/ModalMobileBottom.d.ts → _ModalMobile/ModalMobile.d.ts} +6 -5
  60. package/dist/es/components/Modal/{_ModalMobileBottom/ModalMobileBottom.js → _ModalMobile/ModalMobile.js} +33 -8
  61. package/dist/es/components/Modal/mocks.js +0 -1
  62. package/dist/es/components/Modal/types.d.ts +1 -2
  63. package/dist/es/components/Notification/Notification.css +1 -1
  64. package/dist/es/components/Notification/Notification.d.ts +0 -11
  65. package/dist/es/components/Notification/Notification.js +8 -31
  66. package/dist/es/components/Pagination/Pagination.css +1 -1
  67. package/dist/es/components/Pagination/Pagination.d.ts +1 -3
  68. package/dist/es/components/Pagination/Pagination.js +4 -13
  69. package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.css +1 -1
  70. package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.d.ts +1 -2
  71. package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.js +0 -2
  72. package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.css +1 -1
  73. package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +1 -3
  74. package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.js +5 -16
  75. package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +1 -2
  76. package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +0 -2
  77. package/dist/es/components/Pagination/types.d.ts +1 -11
  78. package/dist/es/components/Pagination/types.js +1 -4
  79. package/dist/es/components/Pagination/usePagination.d.ts +2 -2
  80. package/dist/es/components/Pagination/usePagination.js +11 -29
  81. package/dist/es/components/Parameter/Parameter.css +1 -1
  82. package/dist/es/components/Parameter/Parameter.d.ts +0 -3
  83. package/dist/es/components/Parameter/Parameter.js +6 -7
  84. package/dist/es/components/Search/Search.css +1 -1
  85. package/dist/es/components/Search/Search.d.ts +0 -2
  86. package/dist/es/components/Search/Search.js +58 -61
  87. package/dist/es/components/Select/Select.css +1 -1
  88. package/dist/es/components/Select/Select.d.ts +11 -20
  89. package/dist/es/components/Select/Select.js +39 -87
  90. package/dist/es/components/Select/reducer/selectReducer.js +1 -1
  91. package/dist/es/components/Sliders/Slider/Slider.css +1 -1
  92. package/dist/es/components/Sliders/Slider/Slider.d.ts +12 -0
  93. package/dist/es/components/Sliders/Slider/Slider.js +26 -7
  94. package/dist/es/components/Sliders/SliderRange/SliderRange.d.ts +3 -0
  95. package/dist/es/components/Sliders/SliderRange/SliderRange.js +4 -1
  96. package/dist/es/components/Sliders/components/SliderScale/SliderScale.css +1 -1
  97. package/dist/es/components/Sliders/components/SliderScale/SliderScale.d.ts +6 -0
  98. package/dist/es/components/Sliders/components/SliderScale/SliderScale.js +8 -1
  99. package/dist/es/components/Sliders/helpers.d.ts +1 -0
  100. package/dist/es/components/Sliders/helpers.js +7 -0
  101. package/dist/es/components/Snackbar/Snackbar.css +1 -1
  102. package/dist/es/components/Snackbar/Snackbar.js +1 -1
  103. package/dist/es/components/Switcher/Switcher.css +1 -1
  104. package/dist/es/components/Switcher/Switcher.d.ts +5 -0
  105. package/dist/es/components/Switcher/Switcher.js +20 -9
  106. package/dist/es/components/TextField/TextField.css +1 -1
  107. package/dist/es/components/Tooltip/Tooltip.css +1 -1
  108. package/dist/es/components/Tooltip/Tooltip.d.ts +9 -0
  109. package/dist/es/components/Tooltip/Tooltip.js +17 -14
  110. package/dist/es/components/UploadForm/UploadField/UploadField.d.ts +1 -1
  111. package/dist/es/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.css +1 -1
  112. package/dist/es/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.d.ts +1 -1
  113. package/dist/es/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.js +21 -3
  114. package/dist/es/components/UploadForm/UploadFileItem/UploadFileItem.css +1 -1
  115. package/dist/es/components/UploadForm/UploadFileItem/UploadFileItem.d.ts +3 -1
  116. package/dist/es/components/UploadForm/UploadFileItem/UploadFileItem.js +6 -2
  117. package/dist/es/index.d.ts +5 -3
  118. package/dist/es/index.js +5 -3
  119. package/dist/lib/components/Accordion/Accordion.d.ts +3 -1
  120. package/dist/lib/components/Accordion/Accordion.js +2 -0
  121. package/dist/lib/components/Avatar/Avatar.css +1 -1
  122. package/dist/lib/components/Avatar/Avatar.d.ts +1 -1
  123. package/dist/lib/components/Badges/InfoBadge/InfoBadge.css +1 -0
  124. package/dist/lib/components/Badges/InfoBadge/InfoBadge.d.ts +52 -0
  125. package/dist/lib/components/Badges/InfoBadge/InfoBadge.js +223 -0
  126. package/dist/lib/components/Badges/PriceBadge/PriceBadge.d.ts +1 -0
  127. package/dist/lib/components/Badges/PriceBadge/PriceBadge.js +30 -1
  128. package/dist/lib/components/Badges/PromoBadge/PromoBadge.css +1 -1
  129. package/dist/lib/components/Badges/PromoBadge/PromoBadge.d.ts +1 -11
  130. package/dist/lib/components/Badges/PromoBadge/PromoBadge.js +7 -17
  131. package/dist/lib/components/Banner/Banner.css +1 -1
  132. package/dist/lib/components/Banner/Banner.d.ts +0 -7
  133. package/dist/lib/components/Banner/Banner.js +16 -8
  134. package/dist/lib/components/Buttons/Button/Button.css +1 -0
  135. package/dist/lib/components/{Button → Buttons/Button}/Button.d.ts +1 -0
  136. package/dist/lib/components/{Button → Buttons/Button}/Button.js +3 -2
  137. package/dist/lib/components/Buttons/ButtonClose/ButtonClose.css +1 -0
  138. package/dist/lib/components/Buttons/ButtonClose/ButtonClose.d.ts +34 -0
  139. package/dist/lib/components/Buttons/ButtonClose/ButtonClose.js +79 -0
  140. package/dist/lib/components/Carousel/Carousel.css +1 -1
  141. package/dist/lib/components/Carousel/Carousel.d.ts +2 -0
  142. package/dist/lib/components/Carousel/Carousel.js +7 -1
  143. package/dist/lib/components/Chips/Chips/Chip.css +1 -1
  144. package/dist/lib/components/Chips/Chips/Chip.d.ts +9 -1
  145. package/dist/lib/components/Chips/Chips/Chip.js +9 -2
  146. package/dist/lib/components/Chips/Chips/Chips.d.ts +12 -1
  147. package/dist/lib/components/Chips/Chips/Chips.js +20 -6
  148. package/dist/lib/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.css +1 -1
  149. package/dist/lib/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.d.ts +12 -4
  150. package/dist/lib/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.js +55 -47
  151. package/dist/lib/components/Chips/Chips/components/ChipsScrollPanel/ChipsScrollPanel.d.ts +2 -1
  152. package/dist/lib/components/Chips/Chips/components/ChipsScrollPanel/ChipsScrollPanel.js +2 -0
  153. package/dist/lib/components/Chips/ChipsSuggest/ChipSuggest.css +1 -1
  154. package/dist/lib/components/Chips/ChipsSuggest/ChipSuggest.d.ts +7 -0
  155. package/dist/lib/components/Chips/ChipsSuggest/ChipSuggest.js +8 -1
  156. package/dist/lib/components/Chips/ChipsSuggest/ChipsSuggest.d.ts +4 -2
  157. package/dist/lib/components/Chips/ChipsSuggest/ChipsSuggest.js +3 -0
  158. package/dist/lib/components/ContentView/ContentView.js +1 -1
  159. package/dist/lib/components/Counter/Counter.css +1 -1
  160. package/dist/lib/components/Counter/Counter.d.ts +2 -0
  161. package/dist/lib/components/Counter/Counter.js +4 -1
  162. package/dist/lib/components/Dropdown/Dropdown.css +1 -0
  163. package/dist/lib/components/Dropdown/Dropdown.d.ts +66 -0
  164. package/dist/lib/components/Dropdown/Dropdown.js +118 -0
  165. package/dist/lib/components/ErrorLoad/ErrorLoad.d.ts +1 -1
  166. package/dist/lib/components/ErrorLoad/ErrorLoad.js +1 -1
  167. package/dist/lib/components/ListData/ListData.css +1 -1
  168. package/dist/lib/components/ListData/ListData.d.ts +9 -1
  169. package/dist/lib/components/ListData/ListData.js +8 -0
  170. package/dist/lib/components/Modal/Modal.css +1 -1
  171. package/dist/lib/components/Modal/Modal.d.ts +23 -9
  172. package/dist/lib/components/Modal/Modal.js +35 -24
  173. package/dist/lib/components/Modal/_ModalContent/ModalContent.css +1 -1
  174. package/dist/lib/components/Modal/_ModalContent/ModalContent.js +24 -30
  175. package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.css +1 -1
  176. package/dist/lib/components/Modal/_ModalMobile/ModalMobile.css +1 -0
  177. package/dist/lib/components/Modal/{_ModalMobileBottom/ModalMobileBottom.d.ts → _ModalMobile/ModalMobile.d.ts} +6 -5
  178. package/dist/lib/components/Modal/{_ModalMobileBottom/ModalMobileBottom.js → _ModalMobile/ModalMobile.js} +32 -7
  179. package/dist/lib/components/Modal/mocks.js +0 -1
  180. package/dist/lib/components/Modal/types.d.ts +1 -2
  181. package/dist/lib/components/Notification/Notification.css +1 -1
  182. package/dist/lib/components/Notification/Notification.d.ts +0 -11
  183. package/dist/lib/components/Notification/Notification.js +7 -30
  184. package/dist/lib/components/Pagination/Pagination.css +1 -1
  185. package/dist/lib/components/Pagination/Pagination.d.ts +1 -3
  186. package/dist/lib/components/Pagination/Pagination.js +4 -13
  187. package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.css +1 -1
  188. package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.d.ts +1 -2
  189. package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.js +0 -2
  190. package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.css +1 -1
  191. package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +1 -3
  192. package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.js +5 -16
  193. package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +1 -2
  194. package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +0 -2
  195. package/dist/lib/components/Pagination/types.d.ts +1 -11
  196. package/dist/lib/components/Pagination/types.js +1 -6
  197. package/dist/lib/components/Pagination/usePagination.d.ts +2 -2
  198. package/dist/lib/components/Pagination/usePagination.js +11 -29
  199. package/dist/lib/components/Parameter/Parameter.css +1 -1
  200. package/dist/lib/components/Parameter/Parameter.d.ts +0 -3
  201. package/dist/lib/components/Parameter/Parameter.js +6 -7
  202. package/dist/lib/components/Search/Search.css +1 -1
  203. package/dist/lib/components/Search/Search.d.ts +0 -2
  204. package/dist/lib/components/Search/Search.js +58 -61
  205. package/dist/lib/components/Select/Select.css +1 -1
  206. package/dist/lib/components/Select/Select.d.ts +11 -20
  207. package/dist/lib/components/Select/Select.js +39 -87
  208. package/dist/lib/components/Select/reducer/selectReducer.js +1 -1
  209. package/dist/lib/components/Sliders/Slider/Slider.css +1 -1
  210. package/dist/lib/components/Sliders/Slider/Slider.d.ts +12 -0
  211. package/dist/lib/components/Sliders/Slider/Slider.js +25 -6
  212. package/dist/lib/components/Sliders/SliderRange/SliderRange.d.ts +3 -0
  213. package/dist/lib/components/Sliders/SliderRange/SliderRange.js +4 -1
  214. package/dist/lib/components/Sliders/components/SliderScale/SliderScale.css +1 -1
  215. package/dist/lib/components/Sliders/components/SliderScale/SliderScale.d.ts +6 -0
  216. package/dist/lib/components/Sliders/components/SliderScale/SliderScale.js +9 -2
  217. package/dist/lib/components/Sliders/helpers.d.ts +1 -0
  218. package/dist/lib/components/Sliders/helpers.js +8 -1
  219. package/dist/lib/components/Snackbar/Snackbar.css +1 -1
  220. package/dist/lib/components/Snackbar/Snackbar.js +1 -1
  221. package/dist/lib/components/Switcher/Switcher.css +1 -1
  222. package/dist/lib/components/Switcher/Switcher.d.ts +5 -0
  223. package/dist/lib/components/Switcher/Switcher.js +19 -8
  224. package/dist/lib/components/TextField/TextField.css +1 -1
  225. package/dist/lib/components/Tooltip/Tooltip.css +1 -1
  226. package/dist/lib/components/Tooltip/Tooltip.d.ts +9 -0
  227. package/dist/lib/components/Tooltip/Tooltip.js +18 -15
  228. package/dist/lib/components/UploadForm/UploadField/UploadField.d.ts +1 -1
  229. package/dist/lib/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.css +1 -1
  230. package/dist/lib/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.d.ts +1 -1
  231. package/dist/lib/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.js +21 -3
  232. package/dist/lib/components/UploadForm/UploadFileItem/UploadFileItem.css +1 -1
  233. package/dist/lib/components/UploadForm/UploadFileItem/UploadFileItem.d.ts +3 -1
  234. package/dist/lib/components/UploadForm/UploadFileItem/UploadFileItem.js +6 -2
  235. package/dist/lib/index.d.ts +5 -3
  236. package/dist/lib/index.js +25 -11
  237. package/package.json +3 -3
  238. package/styles/colors.css +14 -0
  239. package/dist/es/components/Button/Button.css +0 -1
  240. package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +0 -1
  241. package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +0 -1
  242. package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +0 -8
  243. package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +0 -56
  244. package/dist/lib/components/Button/Button.css +0 -1
  245. package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +0 -1
  246. package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +0 -1
  247. package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +0 -8
  248. package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +0 -65
@@ -6,8 +6,10 @@ export interface IAccordionProps {
6
6
  rootRef?: React.Ref<HTMLDivElement>;
7
7
  /** Заголовок */
8
8
  title: string | React.ReactNode | React.ReactNode[];
9
- /** Заголовок */
9
+ /** Тег заголовка (определяет базовый тег и стили) */
10
10
  titleTag?: IHeaderProps['as'];
11
+ /** Тег заголовка для семантической разметки (переопределение тега без изменения стилей) */
12
+ titleTagName?: IHeaderProps['tag'];
11
13
  /** Состояние открытости */
12
14
  isOpened?: boolean;
13
15
  /** Включить микроразметку */
@@ -20,6 +20,7 @@ var Accordion = function Accordion(_ref) {
20
20
  title = _ref.title,
21
21
  _ref$titleTag = _ref.titleTag,
22
22
  titleTag = _ref$titleTag === void 0 ? 'h5' : _ref$titleTag,
23
+ titleTagName = _ref.titleTagName,
23
24
  _ref$isOpened = _ref.isOpened,
24
25
  isOpened = _ref$isOpened === void 0 ? false : _ref$isOpened,
25
26
  _ref$hasMicrodata = _ref.hasMicrodata,
@@ -81,6 +82,7 @@ var Accordion = function Accordion(_ref) {
81
82
  itemProp: 'name'
82
83
  }), /*#__PURE__*/React.createElement(Header, {
83
84
  as: titleTag,
85
+ tag: titleTagName,
84
86
  dataAttrs: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.header,
85
87
  className: titlePropsClasses
86
88
  }, title), /*#__PURE__*/React.createElement("div", {
@@ -1 +1 @@
1
- h1,h2,h3,h4,h5{margin:0}.mfui-9-avatar{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;position:relative;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:15px;font-weight:500;height:40px;justify-content:center;overflow:hidden;width:40px}.mfui-9-avatar__text{display:block}.mfui-9-avatar__image{background-color:var(--base);height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.mfui-9-avatar__placeholder{opacity:.3}.mfui-9-avatar_color_green{background-color:var(--brandGreen20);color:var(--brandGreen)}.mfui-9-avatar_color_green .mfui-9-avatar__placeholder{fill:var(--brandGreen)}.mfui-9-avatar_color_gray{background-color:var(--spbSky0);color:var(--spbSky3)}.mfui-9-avatar_color_gray .mfui-9-avatar__placeholder{fill:var(--spbSky3)}.mfui-9-avatar_color_white{background-color:var(--stcWhite);color:var(--spbSky3)}.mfui-9-avatar_color_white .mfui-9-avatar__placeholder{fill:var(--spbSky3)}.mfui-9-avatar_size_auto{font-size:inherit;height:100%;width:100%}.mfui-9-avatar_default{display:block}.mfui-9-avatar_default svg{margin:auto}
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-9-avatar{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;position:relative;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;border-radius:12px;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:15px;font-weight:500;height:40px;justify-content:center;overflow:hidden;width:40px}.mfui-9-avatar__text{display:block}.mfui-9-avatar__image{background-color:var(--base);height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.mfui-9-avatar__placeholder{opacity:.3}.mfui-9-avatar_color_green{background-color:var(--brandGreen20);color:var(--brandGreen)}.mfui-9-avatar_color_green .mfui-9-avatar__placeholder{fill:var(--brandGreen)}.mfui-9-avatar_color_gray{background-color:var(--spbSky0);color:var(--spbSky3)}.mfui-9-avatar_color_gray .mfui-9-avatar__placeholder{fill:var(--spbSky3)}.mfui-9-avatar_color_white{background-color:var(--stcWhite);color:var(--spbSky3)}.mfui-9-avatar_color_white .mfui-9-avatar__placeholder{fill:var(--spbSky3)}.mfui-9-avatar_size_auto{font-size:inherit;height:100%;width:100%}.mfui-9-avatar_size_small{font-size:12px;height:32px;width:32px}.mfui-9-avatar_default{display:block}.mfui-9-avatar_default svg{margin:auto}
@@ -10,7 +10,7 @@ export interface IAvatarProps {
10
10
  /** Цвет заливки */
11
11
  color?: 'green' | 'gray' | 'white';
12
12
  /** Размер (по умолчанию 40х40 пикселей). */
13
- size?: 'default' | 'auto';
13
+ size?: 'default' | 'auto' | 'small';
14
14
  /** Дополнительный класс корневого элемента */
15
15
  className?: string;
16
16
  /** Дополнительные data атрибуты к внутренним элементам */
@@ -0,0 +1 @@
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-9-info-badge{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;line-height:18px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:8px;font-weight:400;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:2px 8px 2px 2px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}@media screen and (min-width:1024px){.mfui-9-info-badge_adaptive{border-radius:12px;font-size:15px;line-height:24px;min-height:32px;padding:4px 8px 4px 4px}}.mfui-9-info-badge_theme_grey{background-color:var(--spbSky0)}.mfui-9-info-badge_theme_grey .mfui-9-info-badge__text{color:var(--spbSky3)}.mfui-9-info-badge_theme_grey .mfui-9-info-badge__icon{fill:var(--spbSky3)}.mfui-9-info-badge_theme_orange{background-color:var(--137C20)}.mfui-9-info-badge_theme_orange .mfui-9-info-badge__text{color:var(--137C)}.mfui-9-info-badge_theme_orange .mfui-9-info-badge__icon{fill:var(--137C)}.mfui-9-info-badge_theme_green{background-color:var(--brandGreen20)}.mfui-9-info-badge_theme_green .mfui-9-info-badge__text{color:var(--brandGreen)}.mfui-9-info-badge_theme_green .mfui-9-info-badge__icon{fill:var(--brandGreen)}.mfui-9-info-badge_theme_purple{background-color:var(--brandPurple80)}.mfui-9-info-badge_theme_purple .mfui-9-info-badge__text{color:var(--stcWhite)}.mfui-9-info-badge_theme_purple .mfui-9-info-badge__icon{fill:var(--stcWhite)}.mfui-9-info-badge_theme_red{background-color:var(--fury20)}.mfui-9-info-badge_theme_red .mfui-9-info-badge__text{color:var(--fury)}.mfui-9-info-badge_theme_red .mfui-9-info-badge__icon{fill:var(--fury)}.mfui-9-info-badge_theme_light{background-color:var(--stcWhite20)}.mfui-9-info-badge_theme_dark{background-color:var(--stcBlack20)}.mfui-9-info-badge_theme_dark .mfui-9-info-badge__text,.mfui-9-info-badge_theme_light .mfui-9-info-badge__text{color:var(--stcWhite)}.mfui-9-info-badge_theme_dark .mfui-9-info-badge__icon,.mfui-9-info-badge_theme_light .mfui-9-info-badge__icon{fill:var(--stcWhite)}.mfui-9-info-badge_theme_white-gray,.mfui-9-info-badge_theme_white-green,.mfui-9-info-badge_theme_white-orange,.mfui-9-info-badge_theme_white-red{background-color:var(--base)}.mfui-9-info-badge_theme_white-green .mfui-9-info-badge__text{color:var(--brandGreen)}.mfui-9-info-badge_theme_white-green .mfui-9-info-badge__icon{fill:var(--brandGreen)}.mfui-9-info-badge_theme_white-orange .mfui-9-info-badge__text{color:var(--137C)}.mfui-9-info-badge_theme_white-orange .mfui-9-info-badge__icon{fill:var(--137C)}.mfui-9-info-badge_theme_white-gray .mfui-9-info-badge__text{color:var(--spbSky3)}.mfui-9-info-badge_theme_white-gray .mfui-9-info-badge__icon{fill:var(--spbSky3)}.mfui-9-info-badge_theme_white-red .mfui-9-info-badge__text{color:var(--fury)}.mfui-9-info-badge_theme_white-red .mfui-9-info-badge__icon{fill:var(--fury)}.mfui-9-info-badge_size_big{border-radius:16px;font-size:15px;font-weight:500;line-height:18px;padding:12px 12px 12px 4px}.mfui-9-info-badge__text{font-family:inherit;margin-left:2px}.mfui-9-info-badge__icon-container{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-9-info-badge__icon{height:20px;min-width:20px;width:20px}.mfui-9-info-badge_size_big .mfui-9-info-badge__icon{height:32px;min-width:32px;width:32px}.mfui-9-info-badge_size_big .mfui-9-info-badge__sub-title{font-size:12px;font-weight:400;line-height:18px;margin-top:2px}
@@ -0,0 +1,52 @@
1
+ import * as React from 'react';
2
+ import './InfoBadge.scss';
3
+ export declare const InfoBadgeTheme: {
4
+ readonly RED: "red";
5
+ readonly GREY: "grey";
6
+ readonly GREEN: "green";
7
+ readonly ORANGE: "orange";
8
+ readonly LIGHT: "light";
9
+ readonly DARK: "dark";
10
+ readonly PURPLE: "purple";
11
+ readonly WHITE_GREEN: "white-green";
12
+ readonly WHITE_ORANGE: "white-orange";
13
+ readonly WHITE_GRAY: "white-gray";
14
+ readonly WHITE_RED: "white-red";
15
+ };
16
+ export declare const InfoBadgeIcon: {
17
+ readonly TIMER: "timer";
18
+ readonly PRICE: "price";
19
+ readonly CHECK: "check";
20
+ readonly ATTENTION: "attention";
21
+ readonly INFO: "info";
22
+ readonly PROFILE: "profile";
23
+ readonly BAN: "ban";
24
+ };
25
+ export declare const InfoBadgeSize: {
26
+ readonly SMALL: "small";
27
+ readonly BIG: "big";
28
+ };
29
+ type InfoBadgeThemeType = (typeof InfoBadgeTheme)[keyof typeof InfoBadgeTheme];
30
+ type InfoBadgeIconType = (typeof InfoBadgeIcon)[keyof typeof InfoBadgeIcon];
31
+ type InfoBadgeSizeType = (typeof InfoBadgeSize)[keyof typeof InfoBadgeSize];
32
+ export interface IInfoBadgeProps {
33
+ /** Адаптивный режим */
34
+ isAdaptive?: boolean;
35
+ /** Тип иконки */
36
+ iconType?: InfoBadgeIconType;
37
+ /** Цветовая тема */
38
+ theme?: InfoBadgeThemeType;
39
+ /** Дополнительный класс корневого элемента */
40
+ className?: string;
41
+ /** Размер бейджа */
42
+ size?: InfoBadgeSizeType;
43
+ /** Дополнительный текст (только для size="big") */
44
+ subTitle?: string;
45
+ /** Дополнительные data-атрибуты к внутренним элементам */
46
+ dataAttrs?: {
47
+ root?: Record<string, string>;
48
+ };
49
+ children: JSX.Element[] | Element[] | JSX.Element | Element | string;
50
+ }
51
+ declare const InfoBadge: React.FC<IInfoBadgeProps>;
52
+ export default InfoBadge;
@@ -0,0 +1,214 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import * as React from 'react';
3
+ import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
4
+ import "./InfoBadge.css";
5
+ var ProfileIcon = function ProfileIcon(props) {
6
+ return /*#__PURE__*/React.createElement("svg", _extends({
7
+ viewBox: "0 0 20 20"
8
+ }, props), /*#__PURE__*/React.createElement("path", {
9
+ d: "M5.22 18h9.55L16 13.47A8.28 8.28 0 0010 11a8.302 8.302 0 00-6 2.5L5.22 18zM14 6a4 4 0 10-8 0 4 4 0 008 0z"
10
+ }));
11
+ };
12
+ var ProfileIconBig = function ProfileIconBig(props) {
13
+ return /*#__PURE__*/React.createElement("svg", _extends({
14
+ viewBox: "0 0 32 32"
15
+ }, props), /*#__PURE__*/React.createElement("path", {
16
+ d: "M23 28l2-7.43-.32-.31A12.67 12.67 0 0016 17a12.68 12.68 0 00-8.68 3.27l-.32.3L9 28h14zM10 9a6 6 0 1012 0 6 6 0 00-12 0z"
17
+ }));
18
+ };
19
+ var AttentionIcon = function AttentionIcon(props) {
20
+ return /*#__PURE__*/React.createElement("svg", _extends({
21
+ viewBox: "0 0 20 20"
22
+ }, props), /*#__PURE__*/React.createElement("path", {
23
+ d: "M10 2c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8zm0 13c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7s-.1-.5-.3-.7c-.2-.2-.5-.3-.7-.3s-.5.1-.7.3c-.2.2-.3.4-.3.7s.1.5.3.7.5.3.7.3zM9 5v6h2V5H9z"
24
+ }));
25
+ };
26
+ var BanIcon = function BanIcon(props) {
27
+ return /*#__PURE__*/React.createElement("svg", _extends({
28
+ viewBox: "0 0 20 20"
29
+ }, props), /*#__PURE__*/React.createElement("path", {
30
+ d: "M12.172 13.056a3.75 3.75 0 01-5.229-5.228l5.229 5.228zM10 6.25a3.75 3.75 0 013.056 5.922L7.827 6.943A3.733 3.733 0 0110 6.25z"
31
+ }), /*#__PURE__*/React.createElement("path", {
32
+ fillRule: "evenodd",
33
+ clipRule: "evenodd",
34
+ d: "M10 2a8 8 0 110 16 8 8 0 010-16zm0 3a5 5 0 100 10 5 5 0 000-10z"
35
+ }));
36
+ };
37
+ var CheckIcon = function CheckIcon(props) {
38
+ return /*#__PURE__*/React.createElement("svg", _extends({
39
+ viewBox: "0 0 20 20"
40
+ }, props), /*#__PURE__*/React.createElement("path", {
41
+ fillRule: "evenodd",
42
+ clipRule: "evenodd",
43
+ d: "M10 18a8 8 0 100-16 8 8 0 000 16zM7.295 9.467l1.77 1.77 3.66-5.22 1.31.918-4.745 6.79-3.126-3.127 1.131-1.13z"
44
+ }));
45
+ };
46
+ var InfoIcon = function InfoIcon(props) {
47
+ return /*#__PURE__*/React.createElement("svg", _extends({
48
+ viewBox: "0 0 20 20"
49
+ }, props), /*#__PURE__*/React.createElement("path", {
50
+ d: "M10 2c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8zm0 5c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1zm1 8V9H9v6h2z"
51
+ }));
52
+ };
53
+ var PriceIcon = function PriceIcon(props) {
54
+ return /*#__PURE__*/React.createElement("svg", _extends({
55
+ viewBox: "0 0 20 20"
56
+ }, props), /*#__PURE__*/React.createElement("path", {
57
+ fillRule: "evenodd",
58
+ clipRule: "evenodd",
59
+ d: "M10 18a8 8 0 100-16 8 8 0 000 16zM7.75 5.75H11a2.75 2.75 0 010 5.5H9.25V12h3v1.5h-3v1.75h-1.5V13.5h-1V12h1v-.75h-1v-1.5h1v-4zM11 7.25H9.25v2.5H11a1.25 1.25 0 000-2.5z"
60
+ }));
61
+ };
62
+ var TimerIcon = function TimerIcon(props) {
63
+ return /*#__PURE__*/React.createElement("svg", _extends({
64
+ viewBox: "0 0 20 20"
65
+ }, props), /*#__PURE__*/React.createElement("path", {
66
+ fillRule: "evenodd",
67
+ clipRule: "evenodd",
68
+ d: "M10 18a8 8 0 100-16 8 8 0 000 16zm1-8.414V5H9v5.414l3 3L13.414 12 11 9.586z"
69
+ }));
70
+ };
71
+ var AttentionIconBig = function AttentionIconBig(props) {
72
+ return /*#__PURE__*/React.createElement("svg", _extends({
73
+ viewBox: "0 0 32 32"
74
+ }, props), /*#__PURE__*/React.createElement("path", {
75
+ d: "M16 4C9.4 4 4 9.4 4 16s5.4 12 12 12 12-5.4 12-12S22.6 4 16 4zm1 18h-2v-2h2v2zm0-4h-2v-8h2v8z"
76
+ }));
77
+ };
78
+ var BanIconBig = function BanIconBig(props) {
79
+ return /*#__PURE__*/React.createElement("svg", _extends({
80
+ viewBox: "0 0 32 32"
81
+ }, props), /*#__PURE__*/React.createElement("path", {
82
+ d: "M19.475 20.89a6 6 0 01-8.365-8.365l8.365 8.365zM16 10a6 6 0 014.89 9.475l-8.366-8.366A5.972 5.972 0 0116 10z"
83
+ }), /*#__PURE__*/React.createElement("path", {
84
+ fillRule: "evenodd",
85
+ clipRule: "evenodd",
86
+ d: "M16 4c6.627 0 12 5.373 12 12s-5.373 12-12 12S4 22.627 4 16 9.373 4 16 4zm0 4a8 8 0 100 16 8 8 0 000-16z"
87
+ }));
88
+ };
89
+ var CheckIconBig = function CheckIconBig(props) {
90
+ return /*#__PURE__*/React.createElement("svg", _extends({
91
+ viewBox: "0 0 32 32"
92
+ }, props), /*#__PURE__*/React.createElement("path", {
93
+ fillRule: "evenodd",
94
+ clipRule: "evenodd",
95
+ d: "M16 28c6.627 0 12-5.373 12-12S22.627 4 16 4 4 9.373 4 16s5.373 12 12 12zm-1.306-10.016l6.32-7.672 1.486 1.37s-7.538 9.186-7.7 9.193c-.136 0-4.488-4.484-4.488-4.484l1.438-1.425 2.944 3.018z"
96
+ }));
97
+ };
98
+ var InfoIconBig = function InfoIconBig(props) {
99
+ return /*#__PURE__*/React.createElement("svg", _extends({
100
+ viewBox: "0 0 32 32"
101
+ }, props), /*#__PURE__*/React.createElement("path", {
102
+ d: "M16 4C9.4 4 4 9.4 4 16s5.4 12 12 12 12-5.4 12-12S22.6 4 16 4zm1 18h-2v-8h2v8zm0-10h-2v-2h2v2z"
103
+ }));
104
+ };
105
+ var PriceIconBig = function PriceIconBig(props) {
106
+ return /*#__PURE__*/React.createElement("svg", _extends({
107
+ viewBox: "0 0 32 32"
108
+ }, props), /*#__PURE__*/React.createElement("path", {
109
+ fillRule: "evenodd",
110
+ clipRule: "evenodd",
111
+ d: "M16 28c6.627 0 12-5.373 12-12S22.627 4 16 4 4 9.373 4 16s5.373 12 12 12zm-5-7v-2h2v-2h-2v-2h2V9h4a4 4 0 110 8h-2v2h4v2h-4v2h-2v-2h-2zm7.414-9.414A2 2 0 0017 11h-2v4h2a2 2 0 001.414-3.414z"
112
+ }));
113
+ };
114
+ var TimerIconBig = function TimerIconBig(props) {
115
+ return /*#__PURE__*/React.createElement("svg", _extends({
116
+ viewBox: "0 0 32 32"
117
+ }, props), /*#__PURE__*/React.createElement("path", {
118
+ fillRule: "evenodd",
119
+ clipRule: "evenodd",
120
+ d: "M16 28c6.627 0 12-5.373 12-12S22.627 4 16 4 4 9.373 4 16s5.373 12 12 12zm1-12.414V9h-2v7.414l4 4L20.414 19 17 15.586z"
121
+ }));
122
+ };
123
+ export var InfoBadgeTheme = {
124
+ RED: 'red',
125
+ GREY: 'grey',
126
+ GREEN: 'green',
127
+ ORANGE: 'orange',
128
+ LIGHT: 'light',
129
+ DARK: 'dark',
130
+ PURPLE: 'purple',
131
+ WHITE_GREEN: 'white-green',
132
+ WHITE_ORANGE: 'white-orange',
133
+ WHITE_GRAY: 'white-gray',
134
+ WHITE_RED: 'white-red'
135
+ };
136
+ export var InfoBadgeIcon = {
137
+ TIMER: 'timer',
138
+ PRICE: 'price',
139
+ CHECK: 'check',
140
+ ATTENTION: 'attention',
141
+ INFO: 'info',
142
+ PROFILE: 'profile',
143
+ BAN: 'ban'
144
+ };
145
+ export var InfoBadgeSize = {
146
+ SMALL: 'small',
147
+ BIG: 'big'
148
+ };
149
+ var getInfoBadgeIcon = function getInfoBadgeIcon(iconType, size) {
150
+ var isBigIcon = size === InfoBadgeSize.BIG;
151
+ switch (true) {
152
+ case iconType === InfoBadgeIcon.TIMER && isBigIcon:
153
+ return TimerIconBig;
154
+ case iconType === InfoBadgeIcon.PRICE && isBigIcon:
155
+ return PriceIconBig;
156
+ case iconType === InfoBadgeIcon.CHECK && isBigIcon:
157
+ return CheckIconBig;
158
+ case iconType === InfoBadgeIcon.ATTENTION && isBigIcon:
159
+ return AttentionIconBig;
160
+ case iconType === InfoBadgeIcon.INFO && isBigIcon:
161
+ return InfoIconBig;
162
+ case iconType === InfoBadgeIcon.PROFILE && isBigIcon:
163
+ return ProfileIconBig;
164
+ case iconType === InfoBadgeIcon.BAN && isBigIcon:
165
+ return BanIconBig;
166
+ case iconType === InfoBadgeIcon.PRICE:
167
+ return PriceIcon;
168
+ case iconType === InfoBadgeIcon.CHECK:
169
+ return CheckIcon;
170
+ case iconType === InfoBadgeIcon.ATTENTION:
171
+ return AttentionIcon;
172
+ case iconType === InfoBadgeIcon.INFO:
173
+ return InfoIcon;
174
+ case iconType === InfoBadgeIcon.PROFILE:
175
+ return ProfileIcon;
176
+ case iconType === InfoBadgeIcon.BAN:
177
+ return BanIcon;
178
+ default:
179
+ return TimerIcon;
180
+ }
181
+ };
182
+ var cn = cnCreate('mfui-9-info-badge');
183
+ var InfoBadge = function InfoBadge(_ref) {
184
+ var _ref$iconType = _ref.iconType,
185
+ iconType = _ref$iconType === void 0 ? 'timer' : _ref$iconType,
186
+ _ref$isAdaptive = _ref.isAdaptive,
187
+ isAdaptive = _ref$isAdaptive === void 0 ? false : _ref$isAdaptive,
188
+ _ref$theme = _ref.theme,
189
+ theme = _ref$theme === void 0 ? 'grey' : _ref$theme,
190
+ _ref$size = _ref.size,
191
+ size = _ref$size === void 0 ? 'small' : _ref$size,
192
+ subTitle = _ref.subTitle,
193
+ className = _ref.className,
194
+ dataAttrs = _ref.dataAttrs,
195
+ children = _ref.children;
196
+ var Icon = getInfoBadgeIcon(iconType, size);
197
+ var showSubTitle = size === 'big' && !!subTitle;
198
+ return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
199
+ className: cn({
200
+ theme: theme,
201
+ adaptive: isAdaptive,
202
+ size: size
203
+ }, className)
204
+ }), /*#__PURE__*/React.createElement("div", {
205
+ className: cn('icon-container')
206
+ }, /*#__PURE__*/React.createElement(Icon, {
207
+ className: cn('icon')
208
+ })), /*#__PURE__*/React.createElement("div", {
209
+ className: cn('text')
210
+ }, /*#__PURE__*/React.createElement("div", null, children), showSubTitle && /*#__PURE__*/React.createElement("div", {
211
+ className: cn('sub-title')
212
+ }, subTitle)));
213
+ };
214
+ export default InfoBadge;
@@ -16,6 +16,7 @@ export declare const PriceBadgeIcon: {
16
16
  readonly ATTENTION: "attention";
17
17
  readonly INFO: "info";
18
18
  readonly PROFILE: "profile";
19
+ readonly BAN: "ban";
19
20
  };
20
21
  export declare const PriseBadgeSize: {
21
22
  readonly SMALL: "small";
@@ -1,4 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ // TODO удалить папку с компонентом после релиза UI-219 и заменить в компоненте PromoCard PriceBadge на InfoBadge
2
3
  import * as React from 'react';
3
4
  import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
4
5
  import "./PriceBadge.css";
@@ -23,6 +24,17 @@ var AttentionIcon = function AttentionIcon(props) {
23
24
  d: "M10 2c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8zm0 13c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7s-.1-.5-.3-.7c-.2-.2-.5-.3-.7-.3s-.5.1-.7.3c-.2.2-.3.4-.3.7s.1.5.3.7.5.3.7.3zM9 5v6h2V5H9z"
24
25
  }));
25
26
  };
27
+ var BanIcon = function BanIcon(props) {
28
+ return /*#__PURE__*/React.createElement("svg", _extends({
29
+ viewBox: "0 0 20 20"
30
+ }, props), /*#__PURE__*/React.createElement("path", {
31
+ d: "M12.172 13.056a3.75 3.75 0 01-5.229-5.228l5.229 5.228zM10 6.25a3.75 3.75 0 013.056 5.922L7.827 6.943A3.733 3.733 0 0110 6.25z"
32
+ }), /*#__PURE__*/React.createElement("path", {
33
+ fillRule: "evenodd",
34
+ clipRule: "evenodd",
35
+ d: "M10 2a8 8 0 110 16 8 8 0 010-16zm0 3a5 5 0 100 10 5 5 0 000-10z"
36
+ }));
37
+ };
26
38
  var CheckIcon = function CheckIcon(props) {
27
39
  return /*#__PURE__*/React.createElement("svg", _extends({
28
40
  viewBox: "0 0 20 20"
@@ -64,6 +76,17 @@ var AttentionIconBig = function AttentionIconBig(props) {
64
76
  d: "M16 4C9.4 4 4 9.4 4 16s5.4 12 12 12 12-5.4 12-12S22.6 4 16 4zm1 18h-2v-2h2v2zm0-4h-2v-8h2v8z"
65
77
  }));
66
78
  };
79
+ var BanIconBig = function BanIconBig(props) {
80
+ return /*#__PURE__*/React.createElement("svg", _extends({
81
+ viewBox: "0 0 32 32"
82
+ }, props), /*#__PURE__*/React.createElement("path", {
83
+ d: "M19.475 20.89a6 6 0 01-8.365-8.365l8.365 8.365zM16 10a6 6 0 014.89 9.475l-8.366-8.366A5.972 5.972 0 0116 10z"
84
+ }), /*#__PURE__*/React.createElement("path", {
85
+ fillRule: "evenodd",
86
+ clipRule: "evenodd",
87
+ d: "M16 4c6.627 0 12 5.373 12 12s-5.373 12-12 12S4 22.627 4 16 9.373 4 16 4zm0 4a8 8 0 100 16 8 8 0 000-16z"
88
+ }));
89
+ };
67
90
  var CheckIconBig = function CheckIconBig(props) {
68
91
  return /*#__PURE__*/React.createElement("svg", _extends({
69
92
  viewBox: "0 0 32 32"
@@ -113,7 +136,8 @@ export var PriceBadgeIcon = {
113
136
  CHECK: 'check',
114
137
  ATTENTION: 'attention',
115
138
  INFO: 'info',
116
- PROFILE: 'profile'
139
+ PROFILE: 'profile',
140
+ BAN: 'ban'
117
141
  };
118
142
  export var PriseBadgeSize = {
119
143
  SMALL: 'small',
@@ -134,6 +158,8 @@ var getPriceBadgeIcon = function getPriceBadgeIcon(iconType, size) {
134
158
  return InfoIconBig;
135
159
  case iconType === PriceBadgeIcon.PROFILE && isBigIcon:
136
160
  return ProfileIconBig;
161
+ case iconType === PriceBadgeIcon.BAN && isBigIcon:
162
+ return BanIconBig;
137
163
  case iconType === PriceBadgeIcon.PRICE:
138
164
  return PriceIcon;
139
165
  case iconType === PriceBadgeIcon.CHECK:
@@ -144,6 +170,8 @@ var getPriceBadgeIcon = function getPriceBadgeIcon(iconType, size) {
144
170
  return InfoIcon;
145
171
  case iconType === PriceBadgeIcon.PROFILE:
146
172
  return ProfileIcon;
173
+ case iconType === PriceBadgeIcon.BAN:
174
+ return BanIcon;
147
175
  default:
148
176
  return TimerIcon;
149
177
  }
@@ -1 +1 @@
1
- h1,h2,h3,h4,h5{margin:0}.mfui-9-promo-badge{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:8px;color:var(--stcWhite);padding:4px 12px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.mfui-9-promo-badge_color_berry{background-color:var(--berry)}.mfui-9-promo-badge_color_brand-purple-20{background-color:var(--brandPurple20);color:var(--brandPurple)}.mfui-9-promo-badge_color_brand-purple{background-color:var(--brandPurple)}.mfui-9-promo-badge_color_night{background-color:var(--night)}.mfui-9-promo-badge_color_sky{background-color:var(--sky)}.mfui-9-promo-badge_color_flamingo{background-color:var(--flamingo)}.mfui-9-promo-badge_color_gradient-purple{background:var(--gradientPurple1);color:var(--stcWhite)}.mfui-9-promo-badge_size_small{border-radius:8px;height:18px;padding:0 8px}.mfui-9-promo-badge__text{font-family:inherit;font-size:12px;font-weight:500;line-height:18px}
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-9-promo-badge{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:8px;color:var(--stcWhite);padding:4px 12px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.mfui-9-promo-badge_color_berry{background-color:var(--berry)}.mfui-9-promo-badge_color_brand-purple-20{background-color:var(--brandPurple20);color:var(--brandPurple)}.mfui-9-promo-badge_color_brand-purple{background-color:var(--brandPurple)}.mfui-9-promo-badge_color_night{background-color:var(--night)}.mfui-9-promo-badge_color_sky{background-color:var(--sky)}.mfui-9-promo-badge_color_flamingo{background-color:var(--flamingo)}.mfui-9-promo-badge_color_gradient-purple{background:var(--gradientPurple1);color:var(--stcWhite)}.mfui-9-promo-badge_color_gray{background:var(--spbSky1);color:var(--content)}.mfui-9-promo-badge_size_small{border-radius:8px;height:18px;padding:0 8px}.mfui-9-promo-badge__text{font-family:inherit;font-size:12px;font-weight:500;line-height:18px}
@@ -8,6 +8,7 @@ export declare const PromoBadgeColors: {
8
8
  readonly SKY: "sky";
9
9
  readonly FLAMINGO: "flamingo";
10
10
  readonly GRADIENT_PURPLE: "gradient-purple";
11
+ readonly GRAY: "gray";
11
12
  };
12
13
  type PromoBadgeColorsType = (typeof PromoBadgeColors)[keyof typeof PromoBadgeColors];
13
14
  export declare const PromoBadgeSize: {
@@ -15,22 +16,11 @@ export declare const PromoBadgeSize: {
15
16
  readonly MEDIUM: "medium";
16
17
  };
17
18
  type PromoBadgeSizeType = (typeof PromoBadgeSize)[keyof typeof PromoBadgeSize];
18
- export declare const PromoBadgeTypes: {
19
- readonly HIT: "hit";
20
- readonly NEW: "new";
21
- readonly VIP: "vip";
22
- readonly POPULAR: "popular";
23
- readonly USER_CHOICE: "user-choice";
24
- readonly INTERESTS: "interests";
25
- };
26
- type PromoBadgeTypesType = (typeof PromoBadgeTypes)[keyof typeof PromoBadgeTypes];
27
19
  export interface IPromoBadgeProps {
28
20
  /** Цвет промо-бэйджа */
29
21
  color?: PromoBadgeColorsType;
30
22
  /** Размер промо-бэйджа */
31
23
  size?: PromoBadgeSizeType;
32
- /** DEPRECATED Тип промо-бэйджа (Используйте проп `color`) */
33
- type?: PromoBadgeTypesType;
34
24
  /** Дополнительный класс корневого элемента */
35
25
  className?: string;
36
26
  /** Дополнительные data-атрибуты к внутренним элементам */
@@ -9,36 +9,26 @@ export var PromoBadgeColors = {
9
9
  NIGHT: 'night',
10
10
  SKY: 'sky',
11
11
  FLAMINGO: 'flamingo',
12
- GRADIENT_PURPLE: 'gradient-purple'
12
+ GRADIENT_PURPLE: 'gradient-purple',
13
+ GRAY: 'gray'
13
14
  };
14
15
  export var PromoBadgeSize = {
15
16
  SMALL: 'small',
16
17
  MEDIUM: 'medium'
17
18
  };
18
- // DEPRECATED
19
- export var PromoBadgeTypes = {
20
- HIT: 'hit',
21
- NEW: 'new',
22
- VIP: 'vip',
23
- POPULAR: 'popular',
24
- USER_CHOICE: 'user-choice',
25
- INTERESTS: 'interests'
26
- };
27
19
  var cn = cnCreate('mfui-9-promo-badge');
28
20
  var PromoBadge = function PromoBadge(_ref) {
29
- var color = _ref.color,
21
+ var _ref$color = _ref.color,
22
+ color = _ref$color === void 0 ? PromoBadgeColors.SKY : _ref$color,
30
23
  _ref$size = _ref.size,
31
- size = _ref$size === void 0 ? 'medium' : _ref$size,
32
- _ref$type = _ref.type,
33
- type = _ref$type === void 0 ? PromoBadgeTypes.HIT : _ref$type,
24
+ size = _ref$size === void 0 ? PromoBadgeSize.MEDIUM : _ref$size,
34
25
  className = _ref.className,
35
26
  children = _ref.children,
36
27
  dataAttrs = _ref.dataAttrs;
37
28
  return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
38
29
  className: cn({
39
30
  color: color,
40
- size: size,
41
- type: color ? undefined : type
31
+ size: size
42
32
  }, className)
43
33
  }), /*#__PURE__*/React.createElement("span", {
44
34
  className: cn('text')
@@ -1 +1 @@
1
- h1,h2,h3,h4,h5{margin:0}.mfui-9-banner{position:relative}.mfui-9-banner .swiper-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-9-banner .mfui-9-banner__swiper-container{position:relative}.mfui-9-banner__swiper{overflow:hidden}.mfui-9-banner__slide{-ms-flex-negative:0;flex-shrink:0;height:500px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-banner__slide{height:420px}}@media screen and (min-width:1280px){.mfui-9-banner__slide{height:400px}}.mfui-9-banner__slide-content{border-right:1px solid transparent;margin-right:-1px}@media screen and (max-width:1023px){.mfui-9-banner__slide-content{height:100%}}.mfui-9-banner_auto-height .mfui-9-banner__slide{height:auto}.mfui-9-banner .mfui-9-banner__arrow{position:absolute;top:50%;-webkit-transition:scale .2s linear;transition:scale .2s linear;translate:0 -50%;z-index:10}@media screen and (max-width:767px){.mfui-9-banner .mfui-9-banner__arrow{display:none}}@media screen and (max-width:1023px){.mfui-9-banner .mfui-9-banner__arrow_theme_white{display:none}}.mfui-9-banner .mfui-9-banner__arrow_prev{left:12px}@media screen and (max-width:767px){.mfui-9-banner .mfui-9-banner__arrow_prev{left:8px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-banner .mfui-9-banner__arrow_prev{left:16px}}@media screen and (min-width:1280px){.mfui-9-banner .mfui-9-banner__arrow_prev{left:20px}}.mfui-9-banner .mfui-9-banner__arrow_next{right:12px}@media screen and (max-width:767px){.mfui-9-banner .mfui-9-banner__arrow_next{right:8px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-banner .mfui-9-banner__arrow_next{right:16px}}@media screen and (min-width:1280px){.mfui-9-banner .mfui-9-banner__arrow_next{right:20px}}.mfui-9-banner .mfui-9-banner__arrow_prev.mfui-9-banner__arrow_theme_white{left:0;translate:-50% -50%}.mfui-9-banner .mfui-9-banner__arrow_next.mfui-9-banner__arrow_theme_white{right:0;translate:50% -50%}.mfui-9-banner_no-touch .mfui-9-banner__arrow_theme_white:hover{scale:1.25}.mfui-9-banner_no-touch .mfui-9-banner__arrow_theme_white:active{scale:1.125}.mfui-9-banner__pagination{display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px;left:50%;z-index:10;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-sizing:border-box;box-sizing:border-box;justify-content:center;margin-top:32px}.mfui-9-banner__pagination_position_top-in{left:0;margin-top:0;padding:0 24px;position:absolute;top:16px;width:100%}@media screen and (min-width:1280px){.mfui-9-banner__pagination_position_top-in{padding:0 80px}}.mfui-9-banner__pagination_type_flat{gap:4px}@media screen and (min-width:1280px){.mfui-9-banner__pagination_type_flat{gap:10px}}.mfui-9-banner__pagination_align_left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.mfui-9-banner__pagination_bottom-offset{bottom:60px;left:50%;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:10}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-banner__pagination_bottom-offset{bottom:89px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-banner__pagination_bottom-offset{bottom:90px}}@media screen and (min-width:1280px) and (max-width:1439px){.mfui-9-banner__pagination_bottom-offset{bottom:65px}}@media screen and (min-width:1440px){.mfui-9-banner__pagination_bottom-offset{bottom:72px}}.mfui-9-banner_margin-top{margin-top:24px}.mfui-9-banner_radius_rounded .mfui-9-banner__swiper{border-radius:24px}@media screen and (max-width:767px){.mfui-9-banner_show-next-slide .mfui-9-banner__swiper{border-radius:0;margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:32px}.mfui-9-banner_show-next-slide .mfui-9-banner__slide-content{border-right:none;margin-right:0}.mfui-9-banner_show-next-slide.mfui-9-banner_radius_rounded .mfui-9-banner__slide-content{border-radius:24px}}.mfui-9-banner_background-color_green .mfui-9-banner__swiper{background-color:var(--brandGreen)}.mfui-9-banner_background-color_purple .mfui-9-banner__swiper{background-color:var(--brandPurple)}.mfui-9-banner_background-color_gradient .mfui-9-banner__swiper{background:-webkit-gradient(linear,right top,left top,from(#ada6ba),to(#f6f2f9));background:linear-gradient(270deg,#ada6ba,#f6f2f9)}.mfui-9-banner_background-color_light .mfui-9-banner__swiper{background-color:#f6f2f9}.mfui-9-banner_background-color_spbSky0 .mfui-9-banner__swiper{background-color:var(--spbSky0)}
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-9-banner{position:relative}.mfui-9-banner .swiper-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-9-banner .mfui-9-banner__swiper-container{position:relative}.mfui-9-banner__swiper{overflow:hidden}.mfui-9-banner__slide{-ms-flex-negative:0;flex-shrink:0;height:500px}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-banner__slide{height:420px}}@media screen and (min-width:1280px){.mfui-9-banner__slide{height:400px}}.mfui-9-banner__slide-content{border-right:1px solid transparent;margin-right:-1px}@media screen and (max-width:1023px){.mfui-9-banner__slide-content{height:100%}}.mfui-9-banner_auto-height .mfui-9-banner__slide{height:auto}.mfui-9-banner .mfui-9-banner__arrow{position:absolute;top:50%;-webkit-transition:scale .2s linear;transition:scale .2s linear;translate:0 -50%;z-index:10}@media screen and (max-width:767px){.mfui-9-banner .mfui-9-banner__arrow{display:none}}@media screen and (max-width:1023px){.mfui-9-banner .mfui-9-banner__arrow_theme_white{display:none}}.mfui-9-banner .mfui-9-banner__arrow_prev{left:12px}@media screen and (max-width:767px){.mfui-9-banner .mfui-9-banner__arrow_prev{left:8px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-banner .mfui-9-banner__arrow_prev{left:16px}}@media screen and (min-width:1280px){.mfui-9-banner .mfui-9-banner__arrow_prev{left:20px}}.mfui-9-banner .mfui-9-banner__arrow_next{right:12px}@media screen and (max-width:767px){.mfui-9-banner .mfui-9-banner__arrow_next{right:8px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-banner .mfui-9-banner__arrow_next{right:16px}}@media screen and (min-width:1280px){.mfui-9-banner .mfui-9-banner__arrow_next{right:20px}}.mfui-9-banner .mfui-9-banner__arrow_prev.mfui-9-banner__arrow_theme_white{left:0;translate:-50% -50%}.mfui-9-banner .mfui-9-banner__arrow_next.mfui-9-banner__arrow_theme_white{right:0;translate:50% -50%}.mfui-9-banner_no-touch .mfui-9-banner__arrow_theme_white:hover{scale:1.25}.mfui-9-banner_no-touch .mfui-9-banner__arrow_theme_white:active{scale:1.125}.mfui-9-banner__pagination{display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px;left:50%;z-index:10;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-sizing:border-box;box-sizing:border-box;justify-content:center;margin-top:32px}.mfui-9-banner__pagination_position_top-in{left:0;margin-top:0;padding:0 24px;position:absolute;top:16px;width:100%}@media screen and (min-width:1280px){.mfui-9-banner__pagination_position_top-in{padding:0 80px}}.mfui-9-banner__pagination_type_flat{gap:4px}@media screen and (min-width:1280px){.mfui-9-banner__pagination_type_flat{gap:10px}}.mfui-9-banner__pagination_bottom-offset{bottom:60px;left:50%;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:10}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-banner__pagination_bottom-offset{bottom:89px}}@media screen and (min-width:1024px) and (max-width:1279px){.mfui-9-banner__pagination_bottom-offset{bottom:90px}}@media screen and (min-width:1280px) and (max-width:1439px){.mfui-9-banner__pagination_bottom-offset{bottom:65px}}@media screen and (min-width:1440px){.mfui-9-banner__pagination_bottom-offset{bottom:72px}}.mfui-9-banner_margin-top{margin-top:24px}.mfui-9-banner_radius_rounded .mfui-9-banner__swiper{border-radius:24px}@media screen and (max-width:767px){.mfui-9-banner_show-next-slide .mfui-9-banner__swiper{border-radius:0;margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:32px}.mfui-9-banner_show-next-slide .mfui-9-banner__slide-content{border-right:none;margin-right:0}.mfui-9-banner_show-next-slide.mfui-9-banner_radius_rounded .mfui-9-banner__slide-content{border-radius:24px}}.mfui-9-banner_background-color_green .mfui-9-banner__swiper{background-color:var(--brandGreen)}.mfui-9-banner_background-color_purple .mfui-9-banner__swiper{background-color:var(--brandPurple)}.mfui-9-banner_background-color_gradient .mfui-9-banner__swiper{background:-webkit-gradient(linear,right top,left top,from(#ada6ba),to(#f6f2f9));background:linear-gradient(270deg,#ada6ba,#f6f2f9)}.mfui-9-banner_background-color_light .mfui-9-banner__swiper{background-color:#f6f2f9}.mfui-9-banner_background-color_spbSky0 .mfui-9-banner__swiper{background-color:var(--spbSky0)}
@@ -36,7 +36,6 @@ export declare const PaginationPositionType: {
36
36
  readonly BOTTOM_OUT: "bottom-out";
37
37
  readonly TOP_IN: "top-in";
38
38
  };
39
- type PaginationPositionType = (typeof PaginationPositionType)[keyof typeof PaginationPositionType];
40
39
  export interface IBannerProps {
41
40
  /** Сss класс для внешнего контейнера */
42
41
  className?: string;
@@ -63,14 +62,8 @@ export interface IBannerProps {
63
62
  dotSvg?: Record<string, string>;
64
63
  dotInner?: Record<string, string>;
65
64
  };
66
- /** Выравнивание блока пагинации */
67
- paginationAlign?: 'center' | 'left';
68
- /** Цветовая тема пагинации */
69
- paginationTheme?: PaginationThemeType;
70
65
  /** Тип кнопок пагинации */
71
66
  paginationType?: PaginationType;
72
- /** Расположение пагинации */
73
- paginationPosition?: PaginationPositionType;
74
67
  /** Предполагается использование с наезжанием на баннер следующего за баннером элемента */
75
68
  withPaginationBottomOffset?: boolean;
76
69
  /** Автоматическая прокрутка */
@@ -22,7 +22,7 @@ try {
22
22
  Autoplay = Modules.Autoplay;
23
23
  } catch (e) {
24
24
  // eslint-disable-next-line no-console
25
- console.warn("\n WARNING: megafon/ui-core is using the latest version of swiper. \n For more information about server-side rendering\n please check the Banner component documentation at:\n https://ui.megafon.ru/components/banner\n ");
25
+ console.warn("\n WARNING: megafon/ui-core is using the latest version of swiper.\n For more information about server-side rendering\n please check the Banner component documentation at:\n https://ui.megafon.ru/components/banner\n ");
26
26
  }
27
27
  export var BackgroundColor = {
28
28
  TRANSPARENT: 'transparent',
@@ -59,10 +59,7 @@ var Banner = function Banner(_ref) {
59
59
  _ref$classes = _ref.classes,
60
60
  classes = _ref$classes === void 0 ? {} : _ref$classes,
61
61
  dataAttrs = _ref.dataAttrs,
62
- paginationAlign = _ref.paginationAlign,
63
- paginationTheme = _ref.paginationTheme,
64
62
  paginationType = _ref.paginationType,
65
- paginationPosition = _ref.paginationPosition,
66
63
  _ref$withPaginationBo = _ref.withPaginationBottomOffset,
67
64
  withPaginationBottomOffset = _ref$withPaginationBo === void 0 ? false : _ref$withPaginationBo,
68
65
  _ref$autoPlay = _ref.autoPlay,
@@ -73,8 +70,7 @@ var Banner = function Banner(_ref) {
73
70
  loop = _ref$loop === void 0 ? false : _ref$loop,
74
71
  _ref$pauseOnHover = _ref.pauseOnHover,
75
72
  pauseOnHover = _ref$pauseOnHover === void 0 ? false : _ref$pauseOnHover,
76
- _ref$backgroundColor = _ref.backgroundColor,
77
- backgroundColor = _ref$backgroundColor === void 0 ? BackgroundColor.TRANSPARENT : _ref$backgroundColor,
73
+ backgroundColor = _ref.backgroundColor,
78
74
  _ref$radius = _ref.radius,
79
75
  radius = _ref$radius === void 0 ? Radius.ROUNDED : _ref$radius,
80
76
  _ref$arrowTheme = _ref.arrowTheme,
@@ -130,6 +126,19 @@ var Banner = function Banner(_ref) {
130
126
  var dotTimerDelay = delay / 1000;
131
127
  var arrowSize = arrowTheme === ArrowTheme.WHITE ? ArrowSize.LARGE : ArrowSize.MIDDLE;
132
128
  var rootRef = React.useRef(null);
129
+ var paginationPosition = paginationType === PaginationButtonType.FLAT ? PaginationPositionType.TOP_IN : PaginationPositionType.BOTTOM_OUT;
130
+ var getPaginationTheme = function getPaginationTheme() {
131
+ switch (backgroundColor) {
132
+ case BackgroundColor.GREEN:
133
+ case BackgroundColor.PURPLE:
134
+ return PaginationTheme.LIGHT;
135
+ case BackgroundColor.LIGHT:
136
+ case BackgroundColor.GRADIENT:
137
+ return PaginationTheme.DARK;
138
+ default:
139
+ return PaginationTheme.DEFAULT;
140
+ }
141
+ };
133
142
  var increaseAutoplayDelay = React.useCallback(function (_ref2) {
134
143
  var params = _ref2.params,
135
144
  autoplay = _ref2.autoplay;
@@ -249,7 +258,6 @@ var Banner = function Banner(_ref) {
249
258
  var renderPagination = /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.pagination), {
250
259
  className: cn('pagination', {
251
260
  type: paginationType,
252
- align: paginationAlign,
253
261
  position: paginationPosition,
254
262
  'bottom-offset': withPaginationBottomOffset
255
263
  }, [classes.pagination])
@@ -267,7 +275,7 @@ var Banner = function Banner(_ref) {
267
275
  showTimer: showDotTimer,
268
276
  timerDelay: dotTimerDelay,
269
277
  type: paginationType,
270
- theme: paginationTheme,
278
+ theme: getPaginationTheme(),
271
279
  onClick: handleDotClick
272
280
  });
273
281
  }));