@prom-ui/core 0.0.142 → 0.1.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 (278) hide show
  1. package/Avatar/cjs/index.development.js +4 -10
  2. package/Avatar/cjs/index.development.v2.js +4 -10
  3. package/Avatar/cjs/index.production.js +1 -1
  4. package/Avatar/cjs/index.production.v2.js +1 -1
  5. package/Avatar/index.d.ts +1 -1
  6. package/Avatar/package.json +1 -1
  7. package/Backdrop/cjs/index.development.js +111 -0
  8. package/Backdrop/cjs/index.development.v2.js +111 -0
  9. package/Backdrop/cjs/index.production.js +1 -0
  10. package/Backdrop/cjs/index.production.v2.js +1 -0
  11. package/Backdrop/cjs/style.development.css +1 -0
  12. package/Backdrop/cjs/style.development.v2.css +1 -0
  13. package/Backdrop/cjs/style.production.css +1 -0
  14. package/Backdrop/cjs/style.production.v2.css +1 -0
  15. package/Backdrop/index.d.ts +25 -0
  16. package/Backdrop/index.js +7 -0
  17. package/Backdrop/index.v2.js +7 -0
  18. package/Backdrop/package.json +13 -0
  19. package/Body/cjs/index.development.js +0 -2
  20. package/Body/cjs/index.development.v2.js +0 -2
  21. package/Body/cjs/index.production.js +1 -1
  22. package/Body/cjs/index.production.v2.js +1 -1
  23. package/Body/package.json +1 -1
  24. package/BodyProvider/cjs/index.development.js +3 -6
  25. package/BodyProvider/cjs/index.development.v2.js +3 -6
  26. package/BodyProvider/cjs/index.production.js +1 -1
  27. package/BodyProvider/cjs/index.production.v2.js +1 -1
  28. package/BodyProvider/index.d.ts +1 -1
  29. package/BodyProvider/package.json +1 -1
  30. package/Box/cjs/index.development.js +0 -2
  31. package/Box/cjs/index.development.v2.js +0 -2
  32. package/Box/cjs/index.production.js +1 -1
  33. package/Box/cjs/index.production.v2.js +1 -1
  34. package/Box/cjs/style.development.css +1 -1
  35. package/Box/cjs/style.development.v2.css +1 -1
  36. package/Box/cjs/style.production.css +1 -1
  37. package/Box/cjs/style.production.v2.css +1 -1
  38. package/Box/package.json +1 -1
  39. package/Button/cjs/index.development.js +4 -7
  40. package/Button/cjs/index.development.v2.js +4 -7
  41. package/Button/cjs/index.production.js +1 -1
  42. package/Button/cjs/index.production.v2.js +1 -1
  43. package/Button/cjs/style.development.css +1 -1
  44. package/Button/cjs/style.development.v2.css +1 -1
  45. package/Button/cjs/style.production.css +1 -1
  46. package/Button/cjs/style.production.v2.css +1 -1
  47. package/Button/index.d.ts +1 -1
  48. package/Button/package.json +1 -1
  49. package/ButtonPageUp/cjs/index.development.js +3 -6
  50. package/ButtonPageUp/cjs/index.development.v2.js +3 -6
  51. package/ButtonPageUp/cjs/index.production.js +1 -1
  52. package/ButtonPageUp/cjs/index.production.v2.js +1 -1
  53. package/ButtonPageUp/index.d.ts +1 -1
  54. package/ButtonPageUp/package.json +1 -1
  55. package/Checkbox/cjs/index.development.js +5 -11
  56. package/Checkbox/cjs/index.development.v2.js +5 -11
  57. package/Checkbox/cjs/index.production.js +1 -1
  58. package/Checkbox/cjs/index.production.v2.js +1 -1
  59. package/Checkbox/index.d.ts +1 -1
  60. package/Checkbox/package.json +1 -1
  61. package/Flex/cjs/index.development.js +0 -2
  62. package/Flex/cjs/index.development.v2.js +0 -2
  63. package/Flex/cjs/index.production.js +1 -1
  64. package/Flex/cjs/index.production.v2.js +1 -1
  65. package/Flex/package.json +1 -1
  66. package/Grid/cjs/index.development.js +0 -2
  67. package/Grid/cjs/index.development.v2.js +0 -2
  68. package/Grid/cjs/index.production.js +1 -1
  69. package/Grid/cjs/index.production.v2.js +1 -1
  70. package/Grid/package.json +1 -1
  71. package/Icon/cjs/index.development.js +3 -6
  72. package/Icon/cjs/index.development.v2.js +3 -6
  73. package/Icon/cjs/index.production.js +1 -1
  74. package/Icon/cjs/index.production.v2.js +1 -1
  75. package/Icon/index.d.ts +1 -1
  76. package/Icon/package.json +1 -1
  77. package/Image/cjs/index.development.js +0 -2
  78. package/Image/cjs/index.development.v2.js +0 -2
  79. package/Image/cjs/index.production.js +1 -1
  80. package/Image/cjs/index.production.v2.js +1 -1
  81. package/Image/package.json +1 -1
  82. package/ImageEmoji/cjs/index.development.js +3 -6
  83. package/ImageEmoji/cjs/index.development.v2.js +3 -6
  84. package/ImageEmoji/cjs/index.production.js +1 -1
  85. package/ImageEmoji/cjs/index.production.v2.js +1 -1
  86. package/ImageEmoji/index.d.ts +1 -1
  87. package/ImageEmoji/package.json +1 -1
  88. package/Input/cjs/index.development.js +3 -6
  89. package/Input/cjs/index.development.v2.js +3 -6
  90. package/Input/cjs/index.production.js +1 -1
  91. package/Input/cjs/index.production.v2.js +1 -1
  92. package/Input/index.d.ts +1 -1
  93. package/Input/package.json +1 -1
  94. package/InputField/addons/AfterClearValue.d.ts +1 -1
  95. package/InputField/addons/AfterTogglePassword.d.ts +1 -1
  96. package/InputField/addons/ErrorText.d.ts +1 -1
  97. package/InputField/cjs/index.development.js +3 -6
  98. package/InputField/cjs/index.development.v2.js +3 -6
  99. package/InputField/cjs/index.production.js +1 -1
  100. package/InputField/cjs/index.production.v2.js +1 -1
  101. package/InputField/index.d.ts +1 -1
  102. package/InputField/package.json +1 -1
  103. package/KeyPress/cjs/index.development.js +3 -6
  104. package/KeyPress/cjs/index.development.v2.js +3 -6
  105. package/KeyPress/cjs/index.production.js +1 -1
  106. package/KeyPress/cjs/index.production.v2.js +1 -1
  107. package/KeyPress/index.d.ts +1 -1
  108. package/KeyPress/package.json +1 -1
  109. package/Line/cjs/index.development.js +0 -2
  110. package/Line/cjs/index.development.v2.js +0 -2
  111. package/Line/cjs/index.production.js +1 -1
  112. package/Line/cjs/index.production.v2.js +1 -1
  113. package/Line/package.json +1 -1
  114. package/Link/cjs/index.development.js +0 -2
  115. package/Link/cjs/index.development.v2.js +0 -2
  116. package/Link/cjs/index.production.js +1 -1
  117. package/Link/cjs/index.production.v2.js +1 -1
  118. package/Link/cjs/style.development.css +1 -1
  119. package/Link/cjs/style.development.v2.css +1 -1
  120. package/Link/cjs/style.production.css +1 -1
  121. package/Link/cjs/style.production.v2.css +1 -1
  122. package/Link/package.json +1 -1
  123. package/List/cjs/index.development.js +0 -2
  124. package/List/cjs/index.development.v2.js +0 -2
  125. package/List/cjs/index.production.js +1 -1
  126. package/List/cjs/index.production.v2.js +1 -1
  127. package/List/package.json +1 -1
  128. package/Media/breakpoints.d.ts +1 -1
  129. package/Media/cjs/index.development.js +3 -10
  130. package/Media/cjs/index.development.v2.js +3 -10
  131. package/Media/cjs/index.production.js +1 -1
  132. package/Media/cjs/index.production.v2.js +1 -1
  133. package/Media/context.d.ts +1 -1
  134. package/Media/index.d.ts +1 -1
  135. package/Media/package.json +1 -1
  136. package/Media/useMedia.d.ts +1 -1
  137. package/OutsideClick/cjs/index.development.js +3 -6
  138. package/OutsideClick/cjs/index.development.v2.js +3 -6
  139. package/OutsideClick/cjs/index.production.js +1 -1
  140. package/OutsideClick/cjs/index.production.v2.js +1 -1
  141. package/OutsideClick/index.d.ts +1 -1
  142. package/OutsideClick/package.json +1 -1
  143. package/Overlay/cjs/index.development.js +60 -84
  144. package/Overlay/cjs/index.development.v2.js +60 -84
  145. package/Overlay/cjs/index.production.js +1 -1
  146. package/Overlay/cjs/index.production.v2.js +1 -1
  147. package/Overlay/cjs/style.development.css +1 -1
  148. package/Overlay/cjs/style.development.v2.css +1 -1
  149. package/Overlay/cjs/style.production.css +1 -1
  150. package/Overlay/cjs/style.production.v2.css +1 -1
  151. package/Overlay/components/OverlayHeader.d.ts +11 -0
  152. package/Overlay/{SwipeClose.d.ts → components/SwipeClose.d.ts} +1 -1
  153. package/Overlay/{TouchScrollable.d.ts → components/TouchScrollable.d.ts} +1 -1
  154. package/Overlay/index.d.ts +6 -2
  155. package/Overlay/package.json +2 -2
  156. package/Overlay/utils.d.ts +8 -8
  157. package/Picture/cjs/index.development.js +0 -2
  158. package/Picture/cjs/index.development.v2.js +0 -2
  159. package/Picture/cjs/index.production.js +1 -1
  160. package/Picture/cjs/index.production.v2.js +1 -1
  161. package/Picture/package.json +1 -1
  162. package/PortableOverlay/cjs/index.development.js +5 -11
  163. package/PortableOverlay/cjs/index.development.v2.js +5 -11
  164. package/PortableOverlay/cjs/index.production.js +1 -1
  165. package/PortableOverlay/cjs/index.production.v2.js +1 -1
  166. package/PortableOverlay/cjs/style.development.css +1 -1
  167. package/PortableOverlay/cjs/style.development.v2.css +1 -1
  168. package/PortableOverlay/cjs/style.production.css +1 -1
  169. package/PortableOverlay/cjs/style.production.v2.css +1 -1
  170. package/PortableOverlay/index.d.ts +1 -1
  171. package/PortableOverlay/package.json +1 -1
  172. package/Portal/cjs/index.development.js +3 -6
  173. package/Portal/cjs/index.development.v2.js +3 -6
  174. package/Portal/cjs/index.production.js +1 -1
  175. package/Portal/cjs/index.production.v2.js +1 -1
  176. package/Portal/index.d.ts +1 -1
  177. package/Portal/package.json +1 -1
  178. package/QRCode/cjs/index.development.js +3 -6
  179. package/QRCode/cjs/index.development.v2.js +3 -6
  180. package/QRCode/cjs/index.production.js +1 -1
  181. package/QRCode/cjs/index.production.v2.js +1 -1
  182. package/QRCode/index.d.ts +1 -1
  183. package/QRCode/package.json +1 -1
  184. package/Rating/cjs/index.development.js +3 -6
  185. package/Rating/cjs/index.development.v2.js +3 -6
  186. package/Rating/cjs/index.production.js +1 -1
  187. package/Rating/cjs/index.production.v2.js +1 -1
  188. package/Rating/index.d.ts +1 -1
  189. package/Rating/package.json +1 -1
  190. package/SafeQuery/cjs/index.development.js +14 -20
  191. package/SafeQuery/cjs/index.development.v2.js +14 -20
  192. package/SafeQuery/cjs/index.production.js +1 -1
  193. package/SafeQuery/cjs/index.production.v2.js +1 -1
  194. package/SafeQuery/components/Error.d.ts +1 -1
  195. package/SafeQuery/index.d.ts +1 -1
  196. package/SafeQuery/package.json +1 -1
  197. package/Scroll/cjs/index.development.js +3 -6
  198. package/Scroll/cjs/index.development.v2.js +3 -6
  199. package/Scroll/cjs/index.production.js +1 -1
  200. package/Scroll/cjs/index.production.v2.js +1 -1
  201. package/Scroll/cjs/style.development.css +1 -1
  202. package/Scroll/cjs/style.development.v2.css +1 -1
  203. package/Scroll/cjs/style.production.css +1 -1
  204. package/Scroll/cjs/style.production.v2.css +1 -1
  205. package/Scroll/index.d.ts +2 -2
  206. package/Scroll/package.json +1 -1
  207. package/ScrollControls/ScrollControlsButton.d.ts +1 -1
  208. package/ScrollControls/cjs/index.development.js +11 -18
  209. package/ScrollControls/cjs/index.development.v2.js +11 -18
  210. package/ScrollControls/cjs/index.production.js +1 -1
  211. package/ScrollControls/cjs/index.production.v2.js +1 -1
  212. package/ScrollControls/index.d.ts +1 -1
  213. package/ScrollControls/package.json +1 -1
  214. package/SideOverlay/blocks.d.ts +1 -1
  215. package/SideOverlay/cjs/index.development.js +5 -12
  216. package/SideOverlay/cjs/index.development.v2.js +5 -12
  217. package/SideOverlay/cjs/index.production.js +1 -1
  218. package/SideOverlay/cjs/index.production.v2.js +1 -1
  219. package/SideOverlay/index.d.ts +1 -1
  220. package/SideOverlay/package.json +1 -1
  221. package/SideOverlay/utils.d.ts +3 -3
  222. package/SimpleSlider/cjs/index.development.js +6 -13
  223. package/SimpleSlider/cjs/index.development.v2.js +6 -13
  224. package/SimpleSlider/cjs/index.production.js +1 -1
  225. package/SimpleSlider/cjs/index.production.v2.js +1 -1
  226. package/SimpleSlider/index.d.ts +1 -1
  227. package/SimpleSlider/package.json +1 -1
  228. package/SimpleSlider/useAutoPlay.d.ts +1 -1
  229. package/SimpleSlider/utils.d.ts +2 -2
  230. package/Skeleton/cjs/index.development.js +3 -6
  231. package/Skeleton/cjs/index.development.v2.js +3 -6
  232. package/Skeleton/cjs/index.production.js +1 -1
  233. package/Skeleton/cjs/index.production.v2.js +1 -1
  234. package/Skeleton/cjs/style.development.css +1 -1
  235. package/Skeleton/cjs/style.development.v2.css +1 -1
  236. package/Skeleton/cjs/style.production.css +1 -1
  237. package/Skeleton/cjs/style.production.v2.css +1 -1
  238. package/Skeleton/index.d.ts +1 -1
  239. package/Skeleton/package.json +1 -1
  240. package/Spinner/cjs/index.development.js +3 -6
  241. package/Spinner/cjs/index.development.v2.js +3 -6
  242. package/Spinner/cjs/index.production.js +1 -1
  243. package/Spinner/cjs/index.production.v2.js +1 -1
  244. package/Spinner/cjs/style.development.css +1 -1
  245. package/Spinner/cjs/style.development.v2.css +1 -1
  246. package/Spinner/cjs/style.production.css +1 -1
  247. package/Spinner/cjs/style.production.v2.css +1 -1
  248. package/Spinner/index.d.ts +1 -1
  249. package/Spinner/package.json +1 -1
  250. package/Text/cjs/index.development.js +0 -2
  251. package/Text/cjs/index.development.v2.js +0 -2
  252. package/Text/cjs/index.production.js +1 -1
  253. package/Text/cjs/index.production.v2.js +1 -1
  254. package/Text/package.json +1 -1
  255. package/TextEmoji/cjs/index.development.js +3 -6
  256. package/TextEmoji/cjs/index.development.v2.js +3 -6
  257. package/TextEmoji/cjs/index.production.js +1 -1
  258. package/TextEmoji/cjs/index.production.v2.js +1 -1
  259. package/TextEmoji/index.d.ts +1 -1
  260. package/TextEmoji/package.json +1 -1
  261. package/Tooltip/cjs/index.development.js +5 -11
  262. package/Tooltip/cjs/index.development.v2.js +5 -11
  263. package/Tooltip/cjs/index.production.js +1 -1
  264. package/Tooltip/cjs/index.production.v2.js +1 -1
  265. package/Tooltip/index.d.ts +4 -4
  266. package/Tooltip/package.json +1 -1
  267. package/Tumbler/cjs/index.development.js +5 -11
  268. package/Tumbler/cjs/index.development.v2.js +5 -11
  269. package/Tumbler/cjs/index.production.js +1 -1
  270. package/Tumbler/cjs/index.production.v2.js +1 -1
  271. package/Tumbler/index.d.ts +1 -1
  272. package/Tumbler/package.json +1 -1
  273. package/base/colors-dark.css +11 -11
  274. package/base/colors.css +57 -57
  275. package/base/reset.css +1 -1
  276. package/base/typography.css +8 -8
  277. package/package.json +71 -68
  278. package/Overlay/blocks.d.ts +0 -28
@@ -6,7 +6,7 @@ export declare const SCREEN_BREAKPOINTS: {
6
6
  wide: number;
7
7
  huge: number;
8
8
  };
9
- export declare type tSCREEN_BREAKPOINTS = keyof typeof SCREEN_BREAKPOINTS;
9
+ export type tSCREEN_BREAKPOINTS = keyof typeof SCREEN_BREAKPOINTS;
10
10
  export declare const SCREEN_BREAKPOINTS_PROXY: {
11
11
  small: number;
12
12
  medium: number;
@@ -1,16 +1,9 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var reactResponsive = require('react-responsive');
6
4
  var React = require('react');
7
5
  var PropTypes = require('prop-types');
8
6
 
9
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
-
11
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
12
- var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
13
-
14
7
  var MIN_SCREEN_WIDTH = 1;
15
8
  var SCREEN_BREAKPOINTS = {
16
9
  small: 480,
@@ -60,7 +53,7 @@ var MediaProvider = function (_a) {
60
53
  setValue(undefined);
61
54
  }
62
55
  }, []);
63
- return React__default["default"].createElement(reactResponsive.Context.Provider, {
56
+ return React.createElement(reactResponsive.Context.Provider, {
64
57
  value: value
65
58
  }, children);
66
59
  };
@@ -68,9 +61,9 @@ var MediaProvider = function (_a) {
68
61
  // resetOnMount: false,
69
62
  // };
70
63
  MediaProvider.propTypes = {
71
- resetOnMount: PropTypes__default["default"].bool,
64
+ resetOnMount: PropTypes.bool,
72
65
  // children: PropTypes.node.isRequired,
73
- width: PropTypes__default["default"].oneOf(['small', 'medium', 'large', 'wide', 'huge'])
66
+ width: PropTypes.oneOf(['small', 'medium', 'large', 'wide', 'huge'])
74
67
  };
75
68
 
76
69
  var Media = function (_a) {
@@ -1,16 +1,9 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var reactResponsive = require('react-responsive');
6
4
  var React = require('react');
7
5
  var PropTypes = require('prop-types');
8
6
 
9
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
-
11
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
12
- var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
13
-
14
7
  var MIN_SCREEN_WIDTH = 1;
15
8
  var SCREEN_BREAKPOINTS = {
16
9
  small: 480,
@@ -60,7 +53,7 @@ var MediaProvider = function (_a) {
60
53
  setValue(undefined);
61
54
  }
62
55
  }, []);
63
- return React__default["default"].createElement(reactResponsive.Context.Provider, {
56
+ return React.createElement(reactResponsive.Context.Provider, {
64
57
  value: value
65
58
  }, children);
66
59
  };
@@ -68,9 +61,9 @@ var MediaProvider = function (_a) {
68
61
  // resetOnMount: false,
69
62
  // };
70
63
  MediaProvider.propTypes = {
71
- resetOnMount: PropTypes__default["default"].bool,
64
+ resetOnMount: PropTypes.bool,
72
65
  // children: PropTypes.node.isRequired,
73
- width: PropTypes__default["default"].oneOf(['small', 'medium', 'large', 'wide', 'huge'])
66
+ width: PropTypes.oneOf(['small', 'medium', 'large', 'wide', 'huge'])
74
67
  };
75
68
 
76
69
  var Media = function (_a) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react-responsive"),t=require("react"),r=require("prop-types");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=i(t),o=i(r),u={small:480,medium:768,large:960,wide:1200,huge:1400},d=new Proxy(u,{get:function(e,t){if(!e.hasOwnProperty(t)){var r=JSON.stringify(Object.keys(e));throw new Error('Media received unknown width "'.concat(t,'". You should use one of ').concat(r))}return e[t]}}),a=function(e){return"production"!==process.env.NODE_ENV?d[e]:u[e]},s=function(t){var r=t.minWidth,i=t.maxWidth;return e.useMediaQuery({minWidth:r?a(r):1,maxWidth:i?a(i)-1:void 0})},c=function(r){var i=r.resetOnMount,o=void 0!==i&&i,u=r.width,d=r.children,s=t.useState({width:u?a(u):1}),c=s[0],l=s[1];return t.useEffect((function(){o&&l(void 0)}),[]),n.default.createElement(e.Context.Provider,{value:c},d)};c.propTypes={resetOnMount:o.default.bool,width:o.default.oneOf(["small","medium","large","wide","huge"])};exports.Media=function(e){var t=e.minWidth,r=e.maxWidth,i=e.children;return s({minWidth:t,maxWidth:r})?i:null},exports.MediaProvider=c,exports.useMedia=s;
1
+ "use strict";var e=require("react-responsive"),r=require("react"),t=require("prop-types"),i={small:480,medium:768,large:960,wide:1200,huge:1400},n=new Proxy(i,{get:function(e,r){if(!e.hasOwnProperty(r)){var t=JSON.stringify(Object.keys(e));throw new Error('Media received unknown width "'.concat(r,'". You should use one of ').concat(t))}return e[r]}}),o=function(e){return"production"!==process.env.NODE_ENV?n[e]:i[e]},u=function(r){var t=r.minWidth,i=r.maxWidth;return e.useMediaQuery({minWidth:t?o(t):1,maxWidth:i?o(i)-1:void 0})},d=function(t){var i=t.resetOnMount,n=void 0!==i&&i,u=t.width,d=t.children,a=r.useState({width:u?o(u):1}),s=a[0],c=a[1];return r.useEffect((function(){n&&c(void 0)}),[]),r.createElement(e.Context.Provider,{value:s},d)};d.propTypes={resetOnMount:t.bool,width:t.oneOf(["small","medium","large","wide","huge"])};exports.Media=function(e){var r=e.minWidth,t=e.maxWidth,i=e.children;return u({minWidth:r,maxWidth:t})?i:null},exports.MediaProvider=d,exports.useMedia=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react-responsive"),t=require("react"),r=require("prop-types");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=i(t),o=i(r),u={small:480,medium:768,large:960,wide:1200,huge:1400},d=new Proxy(u,{get:function(e,t){if(!e.hasOwnProperty(t)){var r=JSON.stringify(Object.keys(e));throw new Error('Media received unknown width "'.concat(t,'". You should use one of ').concat(r))}return e[t]}}),a=function(e){return"production"!==process.env.NODE_ENV?d[e]:u[e]},s=function(t){var r=t.minWidth,i=t.maxWidth;return e.useMediaQuery({minWidth:r?a(r):1,maxWidth:i?a(i)-1:void 0})},c=function(r){var i=r.resetOnMount,o=void 0!==i&&i,u=r.width,d=r.children,s=t.useState({width:u?a(u):1}),c=s[0],l=s[1];return t.useEffect((function(){o&&l(void 0)}),[]),n.default.createElement(e.Context.Provider,{value:c},d)};c.propTypes={resetOnMount:o.default.bool,width:o.default.oneOf(["small","medium","large","wide","huge"])};exports.Media=function(e){var t=e.minWidth,r=e.maxWidth,i=e.children;return s({minWidth:t,maxWidth:r})?i:null},exports.MediaProvider=c,exports.useMedia=s;
1
+ "use strict";var e=require("react-responsive"),r=require("react"),t=require("prop-types"),i={small:480,medium:768,large:960,wide:1200,huge:1400},n=new Proxy(i,{get:function(e,r){if(!e.hasOwnProperty(r)){var t=JSON.stringify(Object.keys(e));throw new Error('Media received unknown width "'.concat(r,'". You should use one of ').concat(t))}return e[r]}}),o=function(e){return"production"!==process.env.NODE_ENV?n[e]:i[e]},u=function(r){var t=r.minWidth,i=r.maxWidth;return e.useMediaQuery({minWidth:t?o(t):1,maxWidth:i?o(i)-1:void 0})},d=function(t){var i=t.resetOnMount,n=void 0!==i&&i,u=t.width,d=t.children,a=r.useState({width:u?o(u):1}),s=a[0],c=a[1];return r.useEffect((function(){n&&c(void 0)}),[]),r.createElement(e.Context.Provider,{value:s},d)};d.propTypes={resetOnMount:t.bool,width:t.oneOf(["small","medium","large","wide","huge"])};exports.Media=function(e){var r=e.minWidth,t=e.maxWidth,i=e.children;return u({minWidth:r,maxWidth:t})?i:null},exports.MediaProvider=d,exports.useMedia=u;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { tSCREEN_BREAKPOINTS } from './breakpoints';
3
- export declare type MediaProviderProps = {
3
+ export type MediaProviderProps = {
4
4
  children?: React.ReactNode;
5
5
  resetOnMount?: boolean;
6
6
  width?: tSCREEN_BREAKPOINTS;
package/Media/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { tSCREEN_BREAKPOINTS } from './breakpoints';
3
3
  import { useMedia } from './useMedia';
4
4
  import { MediaProvider } from './context';
5
- export declare type MediaProps = {
5
+ export type MediaProps = {
6
6
  minWidth?: tSCREEN_BREAKPOINTS;
7
7
  maxWidth?: tSCREEN_BREAKPOINTS;
8
8
  /** React children */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prom-ui/core/Media",
3
- "version": "0.0.142",
3
+ "version": "0.1.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -1,5 +1,5 @@
1
1
  import { tSCREEN_BREAKPOINTS } from './breakpoints';
2
- declare type tUseMedia = (arg: {
2
+ type tUseMedia = (arg: {
3
3
  minWidth?: tSCREEN_BREAKPOINTS;
4
4
  maxWidth?: tSCREEN_BREAKPOINTS;
5
5
  }) => boolean;
@@ -1,12 +1,9 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var React = require('react');
6
4
  var useOutsideClick = require('@prom-ui/hooks/useOutsideClick');
7
5
 
8
- function _interopNamespace(e) {
9
- if (e && e.__esModule) return e;
6
+ function _interopNamespaceDefault(e) {
10
7
  var n = Object.create(null);
11
8
  if (e) {
12
9
  Object.keys(e).forEach(function (k) {
@@ -19,11 +16,11 @@ function _interopNamespace(e) {
19
16
  }
20
17
  });
21
18
  }
22
- n["default"] = e;
19
+ n.default = e;
23
20
  return Object.freeze(n);
24
21
  }
25
22
 
26
- var React__namespace = /*#__PURE__*/_interopNamespace(React);
23
+ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
27
24
 
28
25
  /******************************************************************************
29
26
  Copyright (c) Microsoft Corporation.
@@ -1,12 +1,9 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var React = require('react');
6
4
  var useOutsideClick = require('@prom-ui/hooks/useOutsideClick');
7
5
 
8
- function _interopNamespace(e) {
9
- if (e && e.__esModule) return e;
6
+ function _interopNamespaceDefault(e) {
10
7
  var n = Object.create(null);
11
8
  if (e) {
12
9
  Object.keys(e).forEach(function (k) {
@@ -19,11 +16,11 @@ function _interopNamespace(e) {
19
16
  }
20
17
  });
21
18
  }
22
- n["default"] = e;
19
+ n.default = e;
23
20
  return Object.freeze(n);
24
21
  }
25
22
 
26
- var React__namespace = /*#__PURE__*/_interopNamespace(React);
23
+ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
27
24
 
28
25
  /******************************************************************************
29
26
  Copyright (c) Microsoft Corporation.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("@prom-ui/hooks/useOutsideClick");function t(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var n=t(e),i=function(){return i=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},i.apply(this,arguments)};exports.OutsideClick=function(e){var t=e.children,o=e.isActive,c=void 0===o||o,u=e.onClick,l=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t}(e,["children","isActive","onClick"]),a=r.useOutsideClick(u)[0];return c?n.createElement("div",i({},l,{ref:a}),t):n.createElement("div",null,t)};
1
+ "use strict";var e=require("react"),t=require("@prom-ui/hooks/useOutsideClick");function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=r(e),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};exports.OutsideClick=function(e){var r=e.children,c=e.isActive,o=void 0===c||c,l=e.onClick,u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(e,["children","isActive","onClick"]),a=t.useOutsideClick(l)[0];return o?n.createElement("div",i({},u,{ref:a}),r):n.createElement("div",null,r)};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("@prom-ui/hooks/useOutsideClick");function t(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var n=t(e),i=function(){return i=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},i.apply(this,arguments)};exports.OutsideClick=function(e){var t=e.children,o=e.isActive,c=void 0===o||o,u=e.onClick,l=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t}(e,["children","isActive","onClick"]),a=r.useOutsideClick(u)[0];return c?n.createElement("div",i({},l,{ref:a}),t):n.createElement("div",null,t)};
1
+ "use strict";var e=require("react"),t=require("@prom-ui/hooks/useOutsideClick");function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=r(e),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};exports.OutsideClick=function(e){var r=e.children,c=e.isActive,o=void 0===c||c,l=e.onClick,u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(e,["children","isActive","onClick"]),a=t.useOutsideClick(l)[0];return o?n.createElement("div",i({},u,{ref:a}),r):n.createElement("div",null,r)};
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type OutsideClickProps = {
2
+ type OutsideClickProps = {
3
3
  /** React children */
4
4
  children?: React.ReactNode;
5
5
  /** Если передать `false` компонент перестанет работать */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prom-ui/core/OutsideClick",
3
- "version": "0.0.142",
3
+ "version": "0.1.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -1,14 +1,13 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var React = require('react');
6
4
  var ScrollLock = require('react-scrolllock');
5
+ var reactTransitionGroup = require('react-transition-group');
6
+ var classNames = require('classnames');
7
+ var Backdrop = require('@prom-ui/core/Backdrop');
7
8
  var KeyPress = require('@prom-ui/core/KeyPress');
8
9
  var Portal = require('@prom-ui/core/Portal');
9
10
  var Media = require('@prom-ui/core/Media');
10
- var evokit = require('evokit');
11
- var reactTransitionGroup = require('react-transition-group');
12
11
  var Button = require('@prom-ui/core/Button');
13
12
  var Icon = require('@prom-ui/core/Icon');
14
13
  var Text = require('@prom-ui/core/Text');
@@ -18,10 +17,7 @@ var ArrowBack = require('@prom-ui/icons/ArrowBack');
18
17
  var utils = require('react-scrolllock/dist/utils');
19
18
  var Swipe = require('react-easy-swipe');
20
19
 
21
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
22
-
23
- function _interopNamespace(e) {
24
- if (e && e.__esModule) return e;
20
+ function _interopNamespaceDefault(e) {
25
21
  var n = Object.create(null);
26
22
  if (e) {
27
23
  Object.keys(e).forEach(function (k) {
@@ -34,14 +30,11 @@ function _interopNamespace(e) {
34
30
  }
35
31
  });
36
32
  }
37
- n["default"] = e;
33
+ n.default = e;
38
34
  return Object.freeze(n);
39
35
  }
40
36
 
41
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
42
- var React__namespace = /*#__PURE__*/_interopNamespace(React);
43
- var ScrollLock__default = /*#__PURE__*/_interopDefaultLegacy(ScrollLock);
44
- var Swipe__default = /*#__PURE__*/_interopDefaultLegacy(Swipe);
37
+ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
45
38
 
46
39
  /******************************************************************************
47
40
  Copyright (c) Microsoft Corporation.
@@ -88,33 +81,6 @@ function __makeTemplateObject(cooked, raw) {
88
81
 
89
82
  var css = {"root":"Overlay__root___v0oYp","backdrop":"Overlay__backdrop___RvRWz","popup":"Overlay__popup___elIqJ","popup_placement_top":"Overlay__popup_placement_top___Llv4b","popup_placement_bottom":"Overlay__popup_placement_bottom___DJyNc","popup_placement_right":"Overlay__popup_placement_right___4DX3c","popup_placement_left":"Overlay__popup_placement_left___OwkR7","content":"Overlay__content___5qQ0k","header":"Overlay__header___LIk9z","header__grid":"Overlay__header__grid___SShy4","header__item":"Overlay__header__item___9fUzS","header__title":"Overlay__header__title___Vuilz Overlay__header__item___9fUzS","header__action":"Overlay__header__action___c-A8d Overlay__header__item___9fUzS","header__actionButton":"Overlay__header__actionButton___yYG24","header__actionIcon":"Overlay__header__actionIcon___La2ok","footer":"Overlay__footer___3Ca-G","enter":"Overlay__enter___OjeZp","exit":"Overlay__exit___HiHMU","enterActive":"Overlay__enterActive___Ne-Vn","exitActive":"Overlay__exitActive___6f7f1"};
90
83
 
91
- var BLOCKS_PRESET = {
92
- css: css,
93
- b: ''
94
- };
95
- var Root = evokit.createBlock('div', 'root', [], BLOCKS_PRESET);
96
- var Backdrop = evokit.createBlock('div', 'backdrop', [], BLOCKS_PRESET);
97
- var Popup = evokit.createBlock('div', 'popup', ['placement'], BLOCKS_PRESET);
98
- var OverlayContent = evokit.createBlock('div', 'content', [], BLOCKS_PRESET);
99
- var Animate = function (_a) {
100
- var _b = _a.open,
101
- open = _b === void 0 ? false : _b,
102
- children = _a.children,
103
- _c = _a.enabled,
104
- enabled = _c === void 0 ? true : _c,
105
- onEnter = _a.onEnter,
106
- onEntered = _a.onEntered,
107
- onExited = _a.onExited;
108
- return React__default["default"].createElement(reactTransitionGroup.CSSTransition, {
109
- in: open,
110
- timeout: enabled ? 225 : 0,
111
- classNames: css,
112
- unmountOnExit: true,
113
- onEnter: onEnter,
114
- onEntered: onEntered,
115
- onExited: onExited
116
- }, children);
117
- };
118
84
  var OverlayHeader = function (_a) {
119
85
  var isShowPrevButton = _a.isShowPrevButton,
120
86
  isShowCloseButton = _a.isShowCloseButton,
@@ -123,65 +89,46 @@ var OverlayHeader = function (_a) {
123
89
  onClose = _a.onClose,
124
90
  onPrev = _a.onPrev;
125
91
  var t = BodyProvider.useBodyLocale().t;
126
- return React__default["default"].createElement("div", {
92
+ return React.createElement("header", {
127
93
  className: css.header
128
- }, typeof children !== 'undefined' ? children : React__default["default"].createElement("div", {
94
+ }, typeof children !== 'undefined' ? children : React.createElement("div", {
129
95
  className: css.header__grid
130
- }, React__default["default"].createElement("div", {
96
+ }, React.createElement("div", {
131
97
  className: css.header__action
132
- }, isShowPrevButton && React__default["default"].createElement(Button.Button, {
98
+ }, isShowPrevButton && React.createElement(Button.Button, {
133
99
  className: css.header__actionButton,
134
100
  "button-theme": 'black-inherit',
135
101
  type: 'button',
136
102
  onClick: onPrev,
137
103
  "aria-label": t(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\u041D\u0430\u0437\u0430\u0434"], ["\u041D\u0430\u0437\u0430\u0434"]))),
138
104
  "data-qaid": 'prev'
139
- }, React__default["default"].createElement(Icon.Icon, {
105
+ }, React.createElement(Icon.Icon, {
140
106
  "icon-as": ArrowBack.ArrowBack,
141
107
  className: css.header__actionIcon
142
- }))), React__default["default"].createElement("div", {
108
+ }))), React.createElement("div", {
143
109
  className: css.header__title
144
- }, typeof title === 'string' ? React__default["default"].createElement(Text.Text, {
110
+ }, typeof title === 'string' ? React.createElement(Text.Text, {
145
111
  "text-align": 'center',
146
112
  "text-size": 'h4',
147
113
  "text-wrap": 'ellipsis',
148
114
  "text-weight": 'bold',
149
115
  "data-qaid": 'title'
150
- }, title) : title), React__default["default"].createElement("div", {
116
+ }, title) : title), React.createElement("div", {
151
117
  className: css.header__action
152
- }, isShowCloseButton && onClose && React__default["default"].createElement(Button.Button, {
118
+ }, isShowCloseButton && onClose && React.createElement(Button.Button, {
153
119
  className: css.header__actionButton,
154
120
  "button-theme": 'black-inherit',
155
121
  type: 'button',
156
122
  onClick: onClose,
157
123
  "aria-label": t(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\u0417\u0430\u043A\u0440\u044B\u0442\u044C"], ["\u0417\u0430\u043A\u0440\u044B\u0442\u044C"]))),
158
124
  "data-qaid": 'close'
159
- }, React__default["default"].createElement(Icon.Icon, {
125
+ }, React.createElement(Icon.Icon, {
160
126
  "icon-as": Close.Close,
161
127
  className: css.header__actionIcon
162
128
  })))));
163
129
  };
164
- var OverlayFooter = function (_a) {
165
- var children = _a.children;
166
- return React__default["default"].createElement("div", {
167
- className: css.footer
168
- }, children);
169
- };
170
130
  var templateObject_1, templateObject_2;
171
131
 
172
- var getPopupStyle = function (placement, size, maxSize) {
173
- if (['top', 'bottom'].includes(placement)) {
174
- return {
175
- height: size,
176
- maxHeight: maxSize
177
- };
178
- }
179
- return {
180
- width: size,
181
- maxWidth: maxSize
182
- };
183
- };
184
-
185
132
  // FORK FROM https://github.com/jossmac/react-scrolllock/blob/master/src/TouchScrollable.js
186
133
  var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
187
134
  /* @ts-ignore */
@@ -295,7 +242,7 @@ var SwipeClose = function (_a) {
295
242
  });
296
243
  setStyle(contentRef.current, {
297
244
  'pointer-events': "none",
298
- 'overflow': 'hidden'
245
+ overflow: 'hidden'
299
246
  });
300
247
  }
301
248
  };
@@ -307,7 +254,7 @@ var SwipeClose = function (_a) {
307
254
  });
308
255
  setStyle(contentRef.current, {
309
256
  'pointer-events': null,
310
- 'overflow': null
257
+ overflow: null
311
258
  });
312
259
  setTimeout(function () {
313
260
  setStyle(rootRef.current, {
@@ -323,13 +270,30 @@ var SwipeClose = function (_a) {
323
270
  isAllowSwipe.current = null;
324
271
  isAllowClose.current = false;
325
272
  };
326
- return React__namespace.createElement(Swipe__default["default"], {
273
+ return React__namespace.createElement(Swipe, {
327
274
  onSwipeMove: onSwipeMove,
328
275
  onSwipeEnd: onSwipeEnd
329
276
  }, children);
330
277
  };
331
278
 
279
+ var getPopupStyle = function (placement, size, maxSize) {
280
+ if (['top', 'bottom'].includes(placement)) {
281
+ return {
282
+ height: size,
283
+ maxHeight: maxSize
284
+ };
285
+ }
286
+ return {
287
+ width: size,
288
+ maxWidth: maxSize
289
+ };
290
+ };
291
+
332
292
  var DEFAULT_SIZE = 400;
293
+ /**
294
+ * Компонент используется для создания оверлея (накладывающегося слоя) на верху содержимого.
295
+ * Он может использоваться, например, для создания модальных окон, выпадающих списков и других элементов интерфейса.
296
+ */
333
297
  var Overlay = function (_a) {
334
298
  var children = _a.children,
335
299
  onClose = _a.onClose,
@@ -391,12 +355,19 @@ var Overlay = function (_a) {
391
355
  if (placement === 'adaptive') {
392
356
  currentPlacement = isMinWidthMedium ? 'right' : 'bottom';
393
357
  }
394
- return React__namespace.createElement(Animate, {
395
- open: isOpen,
358
+ return React__namespace.createElement(React__namespace.Fragment, null, React__namespace.createElement(Backdrop.Backdrop, {
359
+ isOpen: isOpen,
360
+ isAnimated: isAnimated,
361
+ zIndex: zIndex - 1,
362
+ isRenderPortal: isRenderPortal
363
+ }), React__namespace.createElement(reactTransitionGroup.CSSTransition, {
364
+ in: isOpen,
365
+ timeout: isAnimated ? 225 : 0,
366
+ classNames: css,
367
+ unmountOnExit: true,
396
368
  onEnter: onOpen,
397
369
  onEntered: onOpened,
398
- onExited: onClosed,
399
- enabled: isAnimated
370
+ onExited: onClosed
400
371
  }, React__namespace.createElement(Portal.Portal, {
401
372
  isActive: isRenderPortal
402
373
  }, React__namespace.createElement(SwipeClose, {
@@ -405,27 +376,29 @@ var Overlay = function (_a) {
405
376
  contentRef: currentContentRef,
406
377
  placement: currentPlacement,
407
378
  onClose: onClose
408
- }, React__namespace.createElement(Root, __assign({
379
+ }, React__namespace.createElement("div", __assign({
380
+ className: css.root,
409
381
  role: 'presentation',
410
382
  style: {
411
383
  zIndex: zIndex
412
384
  }
413
- }, props), React__namespace.createElement(ScrollLock__default["default"], {
385
+ }, props), React__namespace.createElement(ScrollLock, {
414
386
  isActive: isScrollLock
415
387
  }), React__namespace.createElement(KeyPress.KeyPress, {
416
388
  isActive: isCloseOnEscape,
417
389
  code: 'Escape',
418
390
  onKeyDown: onClose
419
- }), React__namespace.createElement(Backdrop, {
391
+ }), React__namespace.createElement("div", {
392
+ className: css.backdrop,
420
393
  "aria-hidden": true,
421
394
  onClick: function (e) {
422
395
  if (isCloseOutsideClick && onClose) {
423
396
  onClose(e);
424
397
  }
425
398
  }
426
- }), React__namespace.createElement(Popup, {
399
+ }), React__namespace.createElement("div", {
427
400
  ref: popupRef,
428
- "popup-placement": currentPlacement,
401
+ className: classNames(css.popup, css["popup_placement_".concat(currentPlacement)]),
429
402
  "aria-modal": true,
430
403
  role: 'dialog',
431
404
  style: getPopupStyle(currentPlacement, currentSize, maxSize),
@@ -436,15 +409,18 @@ var Overlay = function (_a) {
436
409
  onClose: onClose,
437
410
  onPrev: onPrev,
438
411
  title: title
439
- }, header), React__namespace.createElement(OverlayFooter, null, footer), React__namespace.createElement(TouchScrollable, {
412
+ }, header), React__namespace.createElement("footer", {
413
+ className: css.footer
414
+ }, footer), React__namespace.createElement(TouchScrollable, {
440
415
  isActive: isScrollLockTouch,
441
416
  scrollRef: currentContentRef
442
- }, React__namespace.createElement(OverlayContent, {
417
+ }, React__namespace.createElement("div", {
418
+ className: css.content,
443
419
  ref: currentContentRef,
444
420
  style: {
445
421
  padding: padding
446
422
  }
447
- }, children)))))));
423
+ }, children))))))));
448
424
  };
449
425
 
450
426
  exports.Overlay = Overlay;