@megafon/ui-core 8.3.0 → 8.5.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.
Files changed (46) hide show
  1. package/dist/es/components/Banner/Banner.css +1 -1
  2. package/dist/es/components/Banner/Banner.d.ts +26 -0
  3. package/dist/es/components/Banner/Banner.js +25 -1
  4. package/dist/es/components/Banner/BannerDot.css +1 -1
  5. package/dist/es/components/Banner/BannerDot.d.ts +3 -0
  6. package/dist/es/components/Banner/BannerDot.js +23 -11
  7. package/dist/es/components/Chips/Chip.css +1 -1
  8. package/dist/es/components/Chips/Chip.d.ts +3 -0
  9. package/dist/es/components/Chips/Chip.js +4 -2
  10. package/dist/es/components/Chips/Chips.css +1 -1
  11. package/dist/es/components/Chips/Chips.d.ts +16 -2
  12. package/dist/es/components/Chips/Chips.js +62 -20
  13. package/dist/{lib/components/Chips/components → es/components/Chips/components/ChipsDropdown}/ChipsDropdown.d.ts +2 -2
  14. package/dist/es/components/Chips/components/{ChipsDropdown.js → ChipsDropdown/ChipsDropdown.js} +7 -4
  15. package/dist/es/components/Chips/components/ChipsScrollPanel/ChipsScrollPanel.css +1 -0
  16. package/dist/es/components/Chips/components/ChipsScrollPanel/ChipsScrollPanel.d.ts +11 -0
  17. package/dist/es/components/Chips/components/ChipsScrollPanel/ChipsScrollPanel.js +83 -0
  18. package/dist/es/components/Modal/_ModalContent/ModalContent.css +1 -1
  19. package/dist/es/components/Modal/_ModalContent/ModalContent.js +10 -2
  20. package/dist/es/index.d.ts +2 -1
  21. package/dist/es/index.js +2 -1
  22. package/dist/lib/components/Banner/Banner.css +1 -1
  23. package/dist/lib/components/Banner/Banner.d.ts +26 -0
  24. package/dist/lib/components/Banner/Banner.js +26 -2
  25. package/dist/lib/components/Banner/BannerDot.css +1 -1
  26. package/dist/lib/components/Banner/BannerDot.d.ts +3 -0
  27. package/dist/lib/components/Banner/BannerDot.js +23 -11
  28. package/dist/lib/components/Chips/Chip.css +1 -1
  29. package/dist/lib/components/Chips/Chip.d.ts +3 -0
  30. package/dist/lib/components/Chips/Chip.js +4 -2
  31. package/dist/lib/components/Chips/Chips.css +1 -1
  32. package/dist/lib/components/Chips/Chips.d.ts +16 -2
  33. package/dist/lib/components/Chips/Chips.js +61 -19
  34. package/dist/{es/components/Chips/components → lib/components/Chips/components/ChipsDropdown}/ChipsDropdown.d.ts +2 -2
  35. package/dist/lib/components/Chips/components/{ChipsDropdown.js → ChipsDropdown/ChipsDropdown.js} +7 -4
  36. package/dist/lib/components/Chips/components/ChipsScrollPanel/ChipsScrollPanel.css +1 -0
  37. package/dist/lib/components/Chips/components/ChipsScrollPanel/ChipsScrollPanel.d.ts +11 -0
  38. package/dist/lib/components/Chips/components/ChipsScrollPanel/ChipsScrollPanel.js +92 -0
  39. package/dist/lib/components/Modal/_ModalContent/ModalContent.css +1 -1
  40. package/dist/lib/components/Modal/_ModalContent/ModalContent.js +10 -2
  41. package/dist/lib/index.d.ts +2 -1
  42. package/dist/lib/index.js +8 -1
  43. package/package.json +3 -3
  44. package/styles/colors.css +5 -5
  45. /package/dist/es/components/Chips/components/{ChipsDropdown.css → ChipsDropdown/ChipsDropdown.css} +0 -0
  46. /package/dist/lib/components/Chips/components/{ChipsDropdown.css → ChipsDropdown/ChipsDropdown.css} +0 -0
@@ -1 +1 @@
1
- h1,h2,h3,h4,h5{margin:0}.mfui-modal-content__background{background-color:rgba(0,0,0,.8);bottom:0;left:0;position:fixed;right:0;top:0}.mfui-modal-content__container-wrap{-webkit-animation:show-popup .3s ease-out;animation:show-popup .3s ease-out;position:relative;width:100%}@media screen and (min-width:768px){.mfui-modal-content__container-wrap{-webkit-transition:height .1s;transition:height .1s;width:740px}}.mfui-modal-content__container-inner{background-color:var(--background);font-family:inherit;width:100%}.mfui-modal-content__header{position:relative}.mfui-modal-content__header_shadow{-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-modal-content__header-main{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-height:52px}@media screen and (min-width:768px){.mfui-modal-content__header-main{min-height:64px}}.mfui-modal-content__header-button{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;top:12px;z-index:2;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background:transparent;border:none;cursor:pointer;height:32px;justify-content:center;outline:none;width:32px}@media screen and (min-width:768px){.mfui-modal-content__header-button{height:40px;width:40px}}.mfui-modal-content__header-button_back{left:16px}.mfui-modal-content__header-button_close{right:16px}.mfui-modal-content__header-button_shadow{background:var(--base);border-radius:50%;-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-modal-content__header-button svg{fill:var(--content)}.mfui-modal-content__title-area{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 48px;padding:12px}@media screen and (min-width:768px){.mfui-modal-content__title-area{margin:0 56px;padding:16px}}.mfui-modal-content__title{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px;text-align:center}@media screen and (min-width:1280px){.mfui-modal-content__title{font-size:20px;line-height:28px}}@media screen and (min-width:768px){.mfui-modal-content__title{font-size:20px;font-weight:500;letter-spacing:.5px;line-height:28px}}.mfui-modal-content__header-additional{-webkit-box-sizing:border-box;box-sizing:border-box;padding:8px 16px;text-align:center}@media screen and (min-width:768px){.mfui-modal-content__header-additional{padding-left:32px;padding-right:32px}}.mfui-modal-content__container-body{-webkit-box-sizing:border-box;box-sizing:border-box;padding-bottom:24px;padding-right:6px}@media screen and (min-width:768px){.mfui-modal-content__container-body{padding-bottom:32px;padding-right:12px}}.mfui-modal-content__children{-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:16px;padding-right:4px;padding-top:24px}@media screen and (min-width:768px){.mfui-modal-content__children{padding-left:32px;padding-right:14px}}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__container-body{padding-top:24px}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__children{padding-top:0}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__header{margin-bottom:24px;margin-left:-16px;margin-right:-16px}@media screen and (min-width:768px){.mfui-modal-content__container-wrap_static-header .mfui-modal-content__header{margin-left:-32px;margin-right:-32px}}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__header-main{min-height:40px}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__header-button{top:0}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__title-area{padding-bottom:4px;padding-top:4px}.mfui-modal-content__container-wrap_hide-header .mfui-modal-content__container-body{padding-top:24px}.mfui-modal-content__container-wrap_hide-header .mfui-modal-content__children{padding-top:0}.mfui-modal-content__container-wrap_sticky-footer .mfui-modal-content__container-body{padding-bottom:0}.mfui-modal-content__container-wrap_sticky-footer .mfui-modal-content__footer{padding-left:16px;padding-right:16px}@media screen and (min-width:768px){.mfui-modal-content__container-wrap_sticky-footer .mfui-modal-content__footer{padding-left:32px;padding-right:32px}}.mfui-modal-content__container-wrap_sticky-footer .mfui-modal-content__footer_shadow{-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-modal-content__container-wrap_out-side-buttons .mfui-modal-content__container-body{padding-top:24px}.mfui-modal-content__container-wrap_native-scroll .mfui-modal-content__children,.mfui-modal-content__container-wrap_native-scroll .mfui-modal-content__container-body{padding:0}.mfui-modal-content__container-wrap_transition-end{-webkit-animation:hide-popup .2s ease-in;animation:hide-popup .2s ease-in}@-webkit-keyframes show-popup{0%{-webkit-transform:scale(95%);transform:scale(95%);-webkit-transform-origin:top;transform-origin:top}to{-webkit-transform:scale(100%);transform:scale(100%)}}@keyframes show-popup{0%{-webkit-transform:scale(95%);transform:scale(95%);-webkit-transform-origin:top;transform-origin:top}to{-webkit-transform:scale(100%);transform:scale(100%)}}@-webkit-keyframes hide-popup{0%{-webkit-transform:scale(100%);transform:scale(100%)}to{-webkit-transform:scale(95%);transform:scale(95%)}}@keyframes hide-popup{0%{-webkit-transform:scale(100%);transform:scale(100%)}to{-webkit-transform:scale(95%);transform:scale(95%)}}
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-modal-content__background{background-color:rgba(0,0,0,.8);bottom:0;left:0;position:fixed;right:0;top:0}.mfui-modal-content__container-wrap{-webkit-animation:show-popup .3s ease-out;animation:show-popup .3s ease-out;position:relative;width:100%}@media screen and (min-width:768px){.mfui-modal-content__container-wrap{-webkit-transition:height .1s;transition:height .1s;width:740px}}.mfui-modal-content__container-inner{background-color:var(--background);font-family:inherit;width:100%}.mfui-modal-content__header{position:relative}.mfui-modal-content__header_shadow{-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-modal-content__header-main{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-height:52px}@media screen and (min-width:768px){.mfui-modal-content__header-main{min-height:64px}}.mfui-modal-content__header-button{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;top:12px;z-index:2;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background:transparent;border:none;cursor:pointer;height:32px;justify-content:center;outline:none;width:32px}@media screen and (min-width:768px){.mfui-modal-content__header-button{height:40px;width:40px}}.mfui-modal-content__header-button_back{left:16px}.mfui-modal-content__header-button_close{right:16px}.mfui-modal-content__header-button_shadow{background:var(--base);border-radius:50%;-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-modal-content__header-icon{height:32px;min-width:32px;width:32px;fill:var(--content)}@media screen and (min-width:768px){.mfui-modal-content__header-icon{height:40px;min-width:40px;width:40px}}.mfui-modal-content__title-area{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 48px;padding:12px}@media screen and (min-width:768px){.mfui-modal-content__title-area{margin:0 56px;padding:16px}}.mfui-modal-content__title{font-size:18px;font-weight:500;letter-spacing:.5px;line-height:24px;text-align:center}@media screen and (min-width:1280px){.mfui-modal-content__title{font-size:20px;line-height:28px}}@media screen and (min-width:768px){.mfui-modal-content__title{font-size:20px;font-weight:500;letter-spacing:.5px;line-height:28px}}.mfui-modal-content__header-additional{-webkit-box-sizing:border-box;box-sizing:border-box;padding:8px 16px;text-align:center}@media screen and (min-width:768px){.mfui-modal-content__header-additional{padding-left:32px;padding-right:32px}}.mfui-modal-content__container-body{-webkit-box-sizing:border-box;box-sizing:border-box;padding-bottom:24px;padding-right:6px}@media screen and (min-width:768px){.mfui-modal-content__container-body{padding-bottom:32px;padding-right:12px}}.mfui-modal-content__children{-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:16px;padding-right:4px;padding-top:24px}@media screen and (min-width:768px){.mfui-modal-content__children{padding-left:32px;padding-right:14px}}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__container-body{padding-top:24px}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__children{padding-top:0}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__header{margin-bottom:24px;margin-left:-16px;margin-right:-16px}@media screen and (min-width:768px){.mfui-modal-content__container-wrap_static-header .mfui-modal-content__header{margin-left:-32px;margin-right:-32px}}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__header-main{min-height:40px}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__header-button{top:0}.mfui-modal-content__container-wrap_static-header .mfui-modal-content__title-area{padding-bottom:4px;padding-top:4px}.mfui-modal-content__container-wrap_hide-header .mfui-modal-content__container-body{padding-top:24px}.mfui-modal-content__container-wrap_hide-header .mfui-modal-content__children{padding-top:0}.mfui-modal-content__container-wrap_sticky-footer .mfui-modal-content__container-body{padding-bottom:0}.mfui-modal-content__container-wrap_sticky-footer .mfui-modal-content__footer{padding-left:16px;padding-right:16px}@media screen and (min-width:768px){.mfui-modal-content__container-wrap_sticky-footer .mfui-modal-content__footer{padding-left:32px;padding-right:32px}}.mfui-modal-content__container-wrap_sticky-footer .mfui-modal-content__footer_shadow{-webkit-box-shadow:0 2px 12px rgba(0,0,0,.1);box-shadow:0 2px 12px rgba(0,0,0,.1)}.mfui-modal-content__container-wrap_out-side-buttons .mfui-modal-content__container-body{padding-top:24px}.mfui-modal-content__container-wrap_native-scroll .mfui-modal-content__children,.mfui-modal-content__container-wrap_native-scroll .mfui-modal-content__container-body{padding:0}.mfui-modal-content__container-wrap_transition-end{-webkit-animation:hide-popup .2s ease-in;animation:hide-popup .2s ease-in}@-webkit-keyframes show-popup{0%{-webkit-transform:scale(95%);transform:scale(95%);-webkit-transform-origin:top;transform-origin:top}to{-webkit-transform:scale(100%);transform:scale(100%)}}@keyframes show-popup{0%{-webkit-transform:scale(95%);transform:scale(95%);-webkit-transform-origin:top;transform-origin:top}to{-webkit-transform:scale(100%);transform:scale(100%)}}@-webkit-keyframes hide-popup{0%{-webkit-transform:scale(100%);transform:scale(100%)}to{-webkit-transform:scale(95%);transform:scale(95%)}}@keyframes hide-popup{0%{-webkit-transform:scale(100%);transform:scale(100%)}to{-webkit-transform:scale(95%);transform:scale(95%)}}
@@ -106,7 +106,11 @@ var ModalContent = function ModalContent(_ref) {
106
106
  }, classes === null || classes === void 0 ? void 0 : classes.headerBackButton),
107
107
  type: "button",
108
108
  onClick: onBackButtonClick
109
- }), isSmallIcon ? /*#__PURE__*/React.createElement(ArrowLeft24, null) : /*#__PURE__*/React.createElement(ArrowLeft32, null));
109
+ }), isSmallIcon ? /*#__PURE__*/React.createElement(ArrowLeft24, {
110
+ className: cn('header-icon')
111
+ }) : /*#__PURE__*/React.createElement(ArrowLeft32, {
112
+ className: cn('header-icon')
113
+ }));
110
114
  var renderCloseButton = /*#__PURE__*/React.createElement("button", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.headerCloseButton), {
111
115
  className: cn('header-button', {
112
116
  close: true,
@@ -114,7 +118,11 @@ var ModalContent = function ModalContent(_ref) {
114
118
  }, classes === null || classes === void 0 ? void 0 : classes.headerCloseButton),
115
119
  type: "button",
116
120
  onClick: onPopupClose
117
- }), isSmallIcon ? /*#__PURE__*/React.createElement(Cancel24, null) : /*#__PURE__*/React.createElement(Cancel32, null));
121
+ }), isSmallIcon ? /*#__PURE__*/React.createElement(Cancel24, {
122
+ className: cn('header-icon')
123
+ }) : /*#__PURE__*/React.createElement(Cancel32, {
124
+ className: cn('header-icon')
125
+ }));
118
126
  var renderHeader = /*#__PURE__*/React.createElement("div", {
119
127
  className: cn('header', {
120
128
  shadow: showHeaderShadow
@@ -10,7 +10,8 @@ export { default as Checkbox } from './components/Checkbox/Checkbox';
10
10
  export { default as checkBreakpointsPropTypes } from './components/Carousel/checkBreakpointsPropTypes';
11
11
  export { default as Chip } from './components/Chips/Chip';
12
12
  export { default as Chips } from './components/Chips/Chips';
13
- export { default as ChipsDropdown } from './components/Chips/components/ChipsDropdown';
13
+ export { default as ChipsDropdown } from './components/Chips/components/ChipsDropdown/ChipsDropdown';
14
+ export { default as ChipsScrollPanel } from './components/Chips/components/ChipsScrollPanel/ChipsScrollPanel';
14
15
  export { default as Collapse } from './components/_Collapse/Collapse';
15
16
  export { default as ContentArea } from './components/ContentArea/ContentArea';
16
17
  export { default as ContentView } from './components/ContentView/ContentView';
package/dist/lib/index.js CHANGED
@@ -75,6 +75,12 @@ Object.defineProperty(exports, "ChipsDropdown", {
75
75
  return _ChipsDropdown["default"];
76
76
  }
77
77
  });
78
+ Object.defineProperty(exports, "ChipsScrollPanel", {
79
+ enumerable: true,
80
+ get: function get() {
81
+ return _ChipsScrollPanel["default"];
82
+ }
83
+ });
78
84
  Object.defineProperty(exports, "Collapse", {
79
85
  enumerable: true,
80
86
  get: function get() {
@@ -513,7 +519,8 @@ var _Checkbox = _interopRequireDefault(require("./components/Checkbox/Checkbox")
513
519
  var _checkBreakpointsPropTypes = _interopRequireDefault(require("./components/Carousel/checkBreakpointsPropTypes"));
514
520
  var _Chip = _interopRequireDefault(require("./components/Chips/Chip"));
515
521
  var _Chips = _interopRequireDefault(require("./components/Chips/Chips"));
516
- var _ChipsDropdown = _interopRequireDefault(require("./components/Chips/components/ChipsDropdown"));
522
+ var _ChipsDropdown = _interopRequireDefault(require("./components/Chips/components/ChipsDropdown/ChipsDropdown"));
523
+ var _ChipsScrollPanel = _interopRequireDefault(require("./components/Chips/components/ChipsScrollPanel/ChipsScrollPanel"));
517
524
  var _Collapse = _interopRequireDefault(require("./components/_Collapse/Collapse"));
518
525
  var _ContentArea = _interopRequireDefault(require("./components/ContentArea/ContentArea"));
519
526
  var _ContentView = _interopRequireDefault(require("./components/ContentView/ContentView"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megafon/ui-core",
3
- "version": "8.3.0",
3
+ "version": "8.5.0",
4
4
  "files": [
5
5
  "dist",
6
6
  "styles"
@@ -50,7 +50,7 @@
50
50
  "@babel/preset-env": "^7.8.6",
51
51
  "@babel/preset-react": "^7.8.3",
52
52
  "@babel/preset-typescript": "^7.8.3",
53
- "@megafon/ui-icons": "^3.9.2",
53
+ "@megafon/ui-icons": "^3.9.3",
54
54
  "@svgr/core": "^2.4.1",
55
55
  "@testing-library/jest-dom": "^6.5.0",
56
56
  "@testing-library/react": "^16.0.1",
@@ -104,5 +104,5 @@
104
104
  "simplebar-react": "^3.2.5",
105
105
  "swiper": "^11.1.1"
106
106
  },
107
- "gitHead": "3a9673d8ac34a1c09c4dbb829fd29f2833b4029d"
107
+ "gitHead": "84114b7863b09c9cfb5e39388a7e6584f83cb3d2"
108
108
  }
package/styles/colors.css CHANGED
@@ -64,8 +64,8 @@
64
64
  /* Soft */
65
65
  --brandGreen80: #0CDC78;
66
66
  --brandGreen20: #DDFFEC;
67
- --brandPurple80: #AA67C1;
68
- --brandPurple20: #FFEEFF;
67
+ --brandPurple80: #A367C1;
68
+ --brandPurple20: #F2E5FF;
69
69
  --night80: #4B83BB;
70
70
  --night20: #D2E0EE;
71
71
  --sky80: #63C7FF;
@@ -75,7 +75,7 @@
75
75
  --lime80: #CAFF60;
76
76
  --lime20: #E7FFB7;
77
77
  --berry80: #BB7BFF;
78
- --berry20: #CAFF60;
78
+ --berry20: #EEDEFF;
79
79
  --137C80: #FFB945;
80
80
  --137C20: #FFEDD1;
81
81
  --fury80: #F8505D;
@@ -103,8 +103,8 @@
103
103
  --buttonHoverGreen: #10E272;
104
104
  --buttonHoverPurple: #A500BF;
105
105
  --buttonHoverGrey: #D6D6D6;
106
- --buttonHoverGreenSoft: #B6FFDA;
107
- --buttonHoverPurpleSoft: #FFD9FF;
106
+ --buttonHoverGreenSoft: #355A46;
107
+ --buttonHoverPurpleSoft: #492B50;
108
108
  --buttonDown: #404D46;
109
109
  --overlay: #000000CC;
110
110
  --gradientGreen1: linear-gradient(270deg, #AAFF00 0%, #00B956 50%);