@startlibs/components 1.0.0-alpha-8e → 1.0.0-alpha-8b.3

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 (2) hide show
  1. package/lib/index.js +284 -745
  2. package/package.json +4 -3
package/lib/index.js CHANGED
@@ -18,32 +18,30 @@ var _createClass = _interopDefault(require('@babel/runtime/helpers/createClass')
18
18
  var _possibleConstructorReturn = _interopDefault(require('@babel/runtime/helpers/possibleConstructorReturn'));
19
19
  var _getPrototypeOf = _interopDefault(require('@babel/runtime/helpers/getPrototypeOf'));
20
20
  var _inherits = _interopDefault(require('@babel/runtime/helpers/inherits'));
21
- var reactRouterDom = require('react-router-dom');
21
+ var router = require('@reach/router');
22
+ var _assign = _interopDefault(require('lodash/fp/assign'));
22
23
  var core = require('@startlibs/core');
23
24
  var _slicedToArray = _interopDefault(require('@babel/runtime/helpers/slicedToArray'));
24
- var _assign = _interopDefault(require('lodash/fp/assign'));
25
25
  var _get = _interopDefault(require('lodash/fp/get'));
26
26
  var _objectSpread = _interopDefault(require('@babel/runtime/helpers/objectSpread'));
27
27
  var _uniqueId = _interopDefault(require('lodash/fp/uniqueId'));
28
28
  var _max = _interopDefault(require('lodash/fp/max'));
29
29
  var _identity = _interopDefault(require('lodash/fp/identity'));
30
30
  var _isString = _interopDefault(require('lodash/fp/isString'));
31
- var _without = _interopDefault(require('lodash/fp/without'));
32
31
  var _toConsumableArray = _interopDefault(require('@babel/runtime/helpers/toConsumableArray'));
33
32
  var _isObject = _interopDefault(require('lodash/fp/isObject'));
34
- require('@startlibs/components');
35
33
  var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
36
- var _isFunction = _interopDefault(require('lodash/fp/isFunction'));
37
34
  var _assertThisInitialized = _interopDefault(require('@babel/runtime/helpers/assertThisInitialized'));
38
35
  var _set = _interopDefault(require('lodash/fp/set'));
39
36
  var _pullAt = _interopDefault(require('lodash/fp/pullAt'));
40
37
  var _map = _interopDefault(require('lodash/fp/map'));
41
38
  var ReactDOM = _interopDefault(require('react-dom'));
39
+ var reactHotLoader = require('react-hot-loader');
40
+ var _isFunction = _interopDefault(require('lodash/fp/isFunction'));
42
41
  var reactIs = require('react-is');
43
42
  var mitt = _interopDefault(require('mitt'));
44
- require('lodash/fp');
45
43
  var _typeof = _interopDefault(require('@babel/runtime/helpers/typeof'));
46
- var createEmotion = _interopDefault(require('create-emotion'));
44
+ var _without = _interopDefault(require('lodash/fp/without'));
47
45
 
48
46
  var IconComponent =
49
47
  /*#__PURE__*/
@@ -113,20 +111,19 @@ var Icon = styled__default(styled.withTheme(IconComponent)).withConfig({
113
111
  displayName: "Icon",
114
112
  componentId: "wsq54u-0"
115
113
  })(["font-family:'", "' !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;", ""], function (props) {
116
- var _props$theme;
117
-
118
- return (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.iconFont;
114
+ return props.theme.iconFont;
119
115
  }, function (props) {
120
116
  return props.clickable && "\n cursor: pointer;\n &:hover {\n opacity: 0.85;\n }\n ";
121
117
  });
122
118
 
123
- var Link = reactRouterDom.Link;
119
+ // import {Link as RouterLink} from 'react-router-dom'
120
+ var Link = router.Link;
124
121
 
125
122
  var Loading = styled__default.div.withConfig({
126
123
  displayName: "Loading",
127
124
  componentId: "sc-5t5spc-0"
128
- })(["z-index:1;", " border-style:solid;border-radius:50%;flex-shrink:0;width:", "px;height:", "px;border-width:", "px;animation:spin 0.6s linear infinite;", " @keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"], function (props) {
129
- return props.white ? styled.css(["border-color:rgba(255,255,255,0.4);border-top-color:", ";"], props.color || 'rgba(255,255,255,0.9)') : styled.css(["border-color:rgba(0,0,0,0.1);border-color:", ";border-top-color:", ";"], props.color ? polished.transparentize(0.85, props.color) : polished.transparentize(0.85, utils.getColor("main")(props)), props.color || utils.getColor("main"));
125
+ })(["z-index:1;", " border-style:solid;border-radius:50%;flex-shrink:0;width:", "px;height:", "px;border-width:", "px;animation:spin 1s linear infinite;", " @keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"], function (props) {
126
+ return props.white ? "\n border-color: rgba(255,255,255,0.4);\n border-top-color: ".concat(props.color || 'rgba(255,255,255,0.9)', ";\n ") : "\n border-color: rgba(0,0,0,0.1);\n border-top-color: ".concat(props.color || props.theme.colors.main, ";\n ");
130
127
  }, function (props) {
131
128
  return props.size || 26;
132
129
  }, function (props) {
@@ -182,7 +179,6 @@ var Button = styled__default(React__default.forwardRef(function (_ref, ref) {
182
179
  alpha = _ref.alpha,
183
180
  success = _ref.success,
184
181
  alert = _ref.alert,
185
- warning = _ref.warning,
186
182
  highlight = _ref.highlight,
187
183
  light = _ref.light,
188
184
  hover = _ref.hover,
@@ -196,7 +192,6 @@ var Button = styled__default(React__default.forwardRef(function (_ref, ref) {
196
192
  dashed = _ref.dashed,
197
193
  textOnly = _ref.textOnly,
198
194
  isLoading = _ref.isLoading,
199
- isLoadingIcon = _ref.isLoadingIcon,
200
195
  dark = _ref.dark,
201
196
  _ref$innerAs = _ref.innerAs,
202
197
  Wrapper = _ref$innerAs === void 0 ? 'button' : _ref$innerAs,
@@ -211,7 +206,7 @@ var Button = styled__default(React__default.forwardRef(function (_ref, ref) {
211
206
  concealed = _ref.concealed,
212
207
  concealedModule = _ref.concealedModule,
213
208
  buttonRef = _ref.buttonRef,
214
- props = _objectWithoutProperties(_ref, ["type", "locked", "color", "alpha", "success", "alert", "warning", "highlight", "light", "hover", "white", "icon", "onlyIcon", "small", "withDropdown", "onlyDropdown", "outline", "dashed", "textOnly", "isLoading", "isLoadingIcon", "dark", "innerAs", "className", "children", "rounded", "tabIndex", "focused", "noFocus", "colorSet", "concealed", "concealedModule", "buttonRef"]);
209
+ props = _objectWithoutProperties(_ref, ["type", "locked", "color", "alpha", "success", "alert", "highlight", "light", "hover", "white", "icon", "onlyIcon", "small", "withDropdown", "onlyDropdown", "outline", "dashed", "textOnly", "isLoading", "dark", "innerAs", "className", "children", "rounded", "tabIndex", "focused", "noFocus", "colorSet", "concealed", "concealedModule", "buttonRef"]);
215
210
 
216
211
  return React__default.createElement(Wrapper, _extends({
217
212
  ref: ref || buttonRef,
@@ -220,16 +215,12 @@ var Button = styled__default(React__default.forwardRef(function (_ref, ref) {
220
215
  type: Wrapper === 'button' ? type : ''
221
216
  }, props), icon && React__default.createElement(Icon, {
222
217
  icon: icon
223
- }), isLoadingIcon && React__default.createElement(Loading, {
224
- white: !light && !outline && !dashed && !white,
225
- size: small ? '10' : '18',
226
- borderWidth: small ? '2' : '3'
227
218
  }), (withDropdown || onlyDropdown) && !locked && React__default.createElement(DropdownIcon, {
228
219
  icon: "arrow-down"
229
220
  }), locked && React__default.createElement(LockIcon, {
230
221
  icon: "lock"
231
222
  }), children, isLoading && React__default.createElement(Loading, {
232
- white: !light && !outline && !dashed && !white,
223
+ white: !outline || !dashed || !white,
233
224
  absolute: true,
234
225
  size: small && '16',
235
226
  borderWidth: small && '3'
@@ -237,7 +228,7 @@ var Button = styled__default(React__default.forwardRef(function (_ref, ref) {
237
228
  })).withConfig({
238
229
  displayName: "Button",
239
230
  componentId: "qe54pl-1"
240
- })(["vertical-align:top;border:0;font-size:12px;border-radius:", ";background:", ";color:white;min-width:8rem;font-weight:500;display:inline-block;line-height:16px;text-align:center;padding:10px 1.25rem;outline:none;cursor:pointer;position:relative;text-decoration:none;user-select:none;flex-shrink:0;:hover{background:", ";}:active{background:", ";}", " ", " + .styled-button{margin-left:1rem;}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], function (props) {
231
+ })(["vertical-align:top;border:0;font-size:12px;border-radius:", ";background:", ";color:white;min-width:8rem;font-weight:500;display:inline-block;line-height:16px;text-align:center;padding:10px 1.25rem;outline:none;cursor:pointer;position:relative;text-decoration:none;user-select:none;flex-shrink:0;:hover{background:", ";}:active{background:", ";}", " ", " + .styled-button{margin-left:1rem;}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], function (props) {
241
232
  return props.rounded ? '100px' : '6px';
242
233
  }, utils.getColor, function (props) {
243
234
  return polished.darken(0.05, utils.getColor(props, true));
@@ -249,20 +240,12 @@ var Button = styled__default(React__default.forwardRef(function (_ref, ref) {
249
240
  return !props.noFocus && !props.isLoading && styled.css([":focus{", "}", ""], focus, function (props) {
250
241
  return props.focused && focus;
251
242
  });
252
- }, function (props) {
253
- return props.hasErrors && styled.css([":after{content:'';pointer-events:none;position:absolute;top:-4px;right:-4px;left:-4px;bottom:-4px;border-radius:", ";border:3px solid ", ";}"], function (props) {
254
- return props.rounded ? '100px' : '9px';
255
- }, function (props) {
256
- return polished.transparentize(0.7, utils.getColor("alert")(props));
257
- });
258
243
  }, function (props) {
259
244
  return props.icon && styled.css(["display:inline-flex;align-items:center;justify-content:center;min-width:3rem;min-height:3rem;", "{font-size:23px;margin-right:8px;margin-left:-4px;pointer-events:none;line-height:0;}"], Icon);
260
245
  }, function (props) {
261
246
  return props.onlyIcon && styled.css(["padding:0;", "{margin:0;}"], Icon);
262
247
  }, function (props) {
263
248
  return props.small && styled.css(["font-size:12px;padding:4px 1rem;min-width:2rem;min-height:2rem;", " ", ""], props.icon && styled.css(["", "{font-size:18px;margin-right:5px;margin-left:-5px;line-height:0.9;}"], Icon), props.onlyIcon && styled.css(["padding:0;", "{margin:0;}"], Icon));
264
- }, function (props) {
265
- return props.big && styled.css(["font-size:14px;padding:13px 1.75rem;min-height:42px;"]);
266
249
  }, function (props) {
267
250
  return props.withDropdown && styled.css(["padding-right:2.25rem;text-align:left;"]);
268
251
  }, function (props) {
@@ -273,24 +256,6 @@ var Button = styled__default(React__default.forwardRef(function (_ref, ref) {
273
256
  }, function (props) {
274
257
  return polished.darken(0.08, utils.getColor('bluishGray')(props));
275
258
  });
276
- }, function (props) {
277
- return props.lightAlert && styled.css(["background:", ";color:", ";:hover{background:", ";}:active{background:", ";}"], function (props) {
278
- return polished.transparentize(0.88, utils.getColor("alert")(props));
279
- }, utils.getColor('alert'), function (props) {
280
- return polished.transparentize(0.85, utils.getColor("alert")(props));
281
- }, function (props) {
282
- return polished.transparentize(0.82, utils.getColor("alert")(props));
283
- });
284
- }, function (props) {
285
- return props.lightWarning && styled.css(["background:", ";color:", ";:hover{background:", ";}:active{background:", ";}"], function (props) {
286
- return polished.transparentize(0.84, polished.darken(0.05, utils.getColor('warning')(props)));
287
- }, function (props) {
288
- return polished.darken(0.05, utils.getColor('warning')(props));
289
- }, function (props) {
290
- return polished.transparentize(0.78, polished.darken(0.05, utils.getColor('warning')(props)));
291
- }, function (props) {
292
- return polished.transparentize(0.76, polished.darken(0.05, utils.getColor('warning')(props)));
293
- });
294
259
  }, function (props) {
295
260
  return (props.outline || props.dashed || props.textOnly) && styled.css(["color:", ";background:none;", ",", "{color:", ";}:before{content:'';border:1px ", " ", ";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:", ";pointer-events:none;}:hover{background-color:rgba(0,0,0,0.05);}:active{background-color:rgba(0,0,0,0.08);}:focus{:before{box-shadow:0 0 0 2px rgba(0,0,0,0.1);", "}:after{content:none;}}"], props.white ? 'white' : props.highlight ? utils.getColor('main') : 'rgba(0,0,0,0.6)', Icon, DropdownIcon, props.white ? 'white' : props.highlight ? utils.getColor('main') : 'rgba(0,0,0,0.5)', props.outline ? 'solid' : props.dashed ? 'dashed' : '', props.white ? 'white' : props.highlight ? utils.getColor('main') : 'rgba(0,0,0,0.35)', props.rounded ? '100px' : '6px', props.textOnly && 'content: none;');
296
261
  }, function (props) {
@@ -299,8 +264,6 @@ var Button = styled__default(React__default.forwardRef(function (_ref, ref) {
299
264
  return props.white && !props.outline && !props.dashed && styled.css(["color:", ";background:#FFFFFF;:hover{background:", ";}:active{background:", ";}"], utils.getColor('main'), polished.darken(0.05, '#FFFFFF'), polished.darken(0.08, '#FFFFFF'));
300
265
  }, function (props) {
301
266
  return props.isLoading && styled.css(["color:transparent !important;pointer-events:none;", "{visibility:hidden;}"], Icon);
302
- }, function (props) {
303
- return props.isLoadingIcon && styled.css(["pointer-events:none;", "{visibility:hidden;}", "{left:10px;position:absolute;}"], Icon, Loading);
304
267
  }, utils.media.mobile(_templateObject2(), function (props) {
305
268
  return !props.small && !props.onlyIcon && styled.css(["padding:13px 1.5rem;font-size:13px;"]);
306
269
  }, function (props) {
@@ -327,29 +290,13 @@ Button.Link = function (props) {
327
290
  }));
328
291
  };
329
292
 
330
- var OnClickLoadingButton = function OnClickLoadingButton(_ref) {
331
- var _onClick = _ref.onClick,
332
- children = _ref.children,
333
- props = _objectWithoutProperties(_ref, ["onClick", "children"]);
334
-
335
- var loading = core.useToggle();
336
- return React__default.createElement(Button, _extends({
337
- isLoading: loading.isOpen
338
- }, props, {
339
- onClick: function onClick(e) {
340
- return loading.wait(_onClick(e));
341
- }
342
- }), children);
343
- };
344
-
345
293
  var TextButton = styled__default(function (_ref) {
346
294
  var className = _ref.className,
347
295
  isLoading = _ref.isLoading,
348
- alert = _ref.alert,
349
296
  children = _ref.children,
350
297
  _ref$innerAs = _ref.innerAs,
351
298
  Wrapper = _ref$innerAs === void 0 ? 'div' : _ref$innerAs,
352
- props = _objectWithoutProperties(_ref, ["className", "isLoading", "alert", "children", "innerAs"]);
299
+ props = _objectWithoutProperties(_ref, ["className", "isLoading", "children", "innerAs"]);
353
300
 
354
301
  return React__default.createElement(Wrapper, _extends({
355
302
  className: className
@@ -360,10 +307,8 @@ var TextButton = styled__default(function (_ref) {
360
307
  }).withConfig({
361
308
  displayName: "TextButton",
362
309
  componentId: "sc-1eydmhc-0"
363
- })(["display:inline-block;font-weight:500;font-size:13px;color:", ";cursor:pointer;text-decoration:none;:hover,:active{color:", ";}", "{display:inline-block;margin-left:0.25rem;vertical-align:-3px;}", " & ~ &{margin-left:1rem;}"], function (props) {
364
- return props.alert ? utils.getColor('alert') : utils.getColor('main');
365
- }, function (props) {
366
- return props.alert ? polished.darken(0.1, utils.getColor("alert")(props)) : polished.darken(0.1, utils.getColor("main")(props));
310
+ })(["display:inline-block;font-weight:500;font-size:13px;color:", ";cursor:pointer;text-decoration:none;:hover,:active{color:", ";}", "{display:inline-block;margin-left:0.25rem;vertical-align:-3px;}", ""], utils.getColor('main'), function (props) {
311
+ return polished.darken(0.1, utils.getColor("main")(props));
367
312
  }, Loading, function (props) {
368
313
  return props.nowrap && "\n white-space: nowrap;\n ";
369
314
  });
@@ -431,12 +376,10 @@ function (_React$Component) {
431
376
  error = e.toString();
432
377
  }
433
378
 
434
- if (!/bot|spider|crawl/i.test(window.navigator.userAgent)) {
435
- utils.postFetcher("/log/errorBoundary", {
436
- error: error,
437
- info: info
438
- });
439
- }
379
+ utils.postFetcher("/log/errorBoundary", {
380
+ error: error,
381
+ info: info
382
+ });
440
383
  }
441
384
  }, {
442
385
  key: "render",
@@ -744,10 +687,9 @@ var hasClientRectChanged = function hasClientRectChanged(oldSnap, newSnap) {
744
687
 
745
688
  var getClientRectAnimation = function getClientRectAnimation(oldSnap, newSnap) {
746
689
  var _ref5 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
747
- skipTransform = _ref5.skipTransform,
748
- smallJumpFix = _ref5.smallJumpFix;
690
+ skipTransform = _ref5.skipTransform;
749
691
 
750
- if (oldSnap && newSnap && hasClientRectChanged(oldSnap, newSnap)) {
692
+ if (hasClientRectChanged(oldSnap, newSnap)) {
751
693
  var _oldSnap$parentStyle, _newSnap$parentStyle, _oldSnap$parentStyle2, _newSnap$parentStyle2;
752
694
 
753
695
  var node = newSnap.domNode;
@@ -770,17 +712,17 @@ var getClientRectAnimation = function getClientRectAnimation(oldSnap, newSnap) {
770
712
  paddingBottom = _window$getComputedSt4.paddingBottom;
771
713
 
772
714
  finalPadding = 'padding-bottom:' + paddingBottom + ';';
773
- heightFix = "padding-bottom: ".concat(sumWithPx(deltaHeight, paddingBottom) + (smallJumpFix || 0), ";");
715
+ heightFix = "padding-bottom: ".concat(sumWithPx(deltaHeight, paddingBottom));
774
716
  }
775
717
 
776
- var overflowFix = scrollHeight > clientHeight || scrollWidth > clientWidth ? "overflow: hidden;" : "";
718
+ var overflowFix = scrollHeight > clientHeight || scrollWidth > clientWidth ? "overflow: hidden" : "";
777
719
  var transform = (left !== 0 || top !== 0) && !skipTransform ? "transform: translate(".concat(left, "px,").concat(top, "px);") : '';
778
720
  var parentPaddingTopDelta = (parseInt((_oldSnap$parentStyle = oldSnap.parentStyle) === null || _oldSnap$parentStyle === void 0 ? void 0 : _oldSnap$parentStyle.paddingTop) || 0) - (parseInt((_newSnap$parentStyle = newSnap.parentStyle) === null || _newSnap$parentStyle === void 0 ? void 0 : _newSnap$parentStyle.paddingTop) || 0);
779
721
  var parentPaddingBottomDelta = (parseInt((_oldSnap$parentStyle2 = oldSnap.parentStyle) === null || _oldSnap$parentStyle2 === void 0 ? void 0 : _oldSnap$parentStyle2.paddingBottom) || 0) - (parseInt((_newSnap$parentStyle2 = newSnap.parentStyle) === null || _newSnap$parentStyle2 === void 0 ? void 0 : _newSnap$parentStyle2.paddingBottom) || 0);
780
722
  var oldMarginTop = (parseInt(oldSnap.marginTop) || 0) + parentPaddingTopDelta;
781
723
  var oldMarginBottom = (parseInt(oldSnap.marginBottom) || 0) + parentPaddingBottomDelta;
782
724
  var oldTransform = node.style.transform;
783
- return [utils.oneWayAnimation("\n ".concat(transform, "\n ").concat(heightFix, "\n ").concat(overflowFix, "\n margin-top: ").concat(oldMarginTop, "px;\n margin-bottom: ").concat(oldMarginBottom, "px;\n width: ").concat(oldSnap.width, "px;\n height: ").concat(Math.max(0, oldSnap.height + (smallJumpFix || 0)), "px;\n "), "\n ".concat(finalPadding, "\n ").concat(oldTransform ? "transform:".concat(oldTransform, ";") : '', "\n ").concat(overflowFix, "\n margin-top:").concat(parseInt(newSnap.marginTop) || 0, "px;\n margin-bottom:").concat(parseInt(newSnap.marginBottom) || 0, "px;\n width: ").concat(newSnap.width, "px;\n height: ").concat(Math.max(0, newSnap.height + (smallJumpFix || 0)), "px;\n "))];
725
+ return [utils.oneWayAnimation("\n ".concat(transform, "\n ").concat(heightFix, "\n ").concat(overflowFix, "\n margin-top: ").concat(oldMarginTop, "px;\n margin-bottom: ").concat(oldMarginBottom, "px;\n width: ").concat(oldSnap.width, "px;\n height: ").concat(oldSnap.height, "px;\n "), "\n ".concat(finalPadding, "\n ").concat(oldTransform ? "transform:".concat(oldTransform) : '', "\n ").concat(overflowFix, "\n margin-top:").concat(newSnap.marginTop || 0, "px;\n margin-bottom:").concat(newSnap.marginBottom || 0, "px;\n width: ").concat(newSnap.width, "px;\n height: ").concat(newSnap.height, "px;\n "))];
784
726
  } else {
785
727
  return [];
786
728
  }
@@ -1341,11 +1283,7 @@ var fixPosition = function fixPosition(query, fn) {
1341
1283
  };
1342
1284
 
1343
1285
  var openLayers = 0;
1344
- var fakedScrollTop = 0;
1345
- var isFakeScrolled = function isFakeScrolled() {
1346
- return openLayers > 0 && fakedScrollTop > 0;
1347
- };
1348
- var removeWindowScroll = function removeWindowScroll(opening, keepDisabledScroll) {
1286
+ var removeWindowScroll = function removeWindowScroll(opening) {
1349
1287
  if (opening) {
1350
1288
  openLayers = Math.max(openLayers + 1, 1);
1351
1289
 
@@ -1363,11 +1301,6 @@ var removeWindowScroll = function removeWindowScroll(opening, keepDisabledScroll
1363
1301
  var finishReset = function finishReset(marginRight, scrollTop) {
1364
1302
  // body.style.paddingRight = marginRight + 'px'
1365
1303
  window.scroll(window.scrollLeft || window.scrollX || 0, scrollTop);
1366
-
1367
- if (keepDisabledScroll) {
1368
- return;
1369
- }
1370
-
1371
1304
  fixPosition('.navbar,.JS-fix-dialog-scroll', function (n) {
1372
1305
  if (opening) {
1373
1306
  var _window$getComputedSt = window.getComputedStyle(n),
@@ -1399,29 +1332,15 @@ var removeWindowScroll = function removeWindowScroll(opening, keepDisabledScroll
1399
1332
 
1400
1333
  if (opening) {
1401
1334
  var scrollTop = window.pageYOffset;
1402
- fakedScrollTop = scrollTop;
1403
-
1404
- if (keepDisabledScroll) {
1405
- body.style.overflowY = 'scroll';
1406
- } else {
1407
- body.style.overflow = 'hidden';
1408
- }
1409
-
1335
+ body.style.overflow = 'hidden';
1410
1336
  var marginRight = body.offsetWidth - bodyWidth;
1411
1337
  body.style.position = 'fixed';
1412
1338
  body.style.top = -scrollTop + "px";
1413
1339
  body.style.left = '0';
1414
-
1415
- if (!keepDisabledScroll) {
1416
- body.style.right = marginRight + 'px';
1417
- } else {
1418
- body.style.right = '0';
1419
- }
1420
-
1340
+ body.style.right = marginRight + 'px';
1421
1341
  finishReset(marginRight, scrollTop);
1422
1342
  } else {
1423
- fakedScrollTop = 0; // setTimeout(() => {
1424
-
1343
+ // setTimeout(() => {
1425
1344
  var _scrollTop = parseInt(body.style.top);
1426
1345
 
1427
1346
  body.style.overflow = '';
@@ -1601,9 +1520,9 @@ var DialogContainer = React.forwardRef(function (_ref, forwardedRef) {
1601
1520
  };
1602
1521
 
1603
1522
  var checkKey = function checkKey(e) {
1604
- var _e$target, _e$target$className, _e$target2;
1523
+ var _e$target, _e$target$className;
1605
1524
 
1606
- if (!isTop() || skipKeys || ((_e$target = e.target) === null || _e$target === void 0 ? void 0 : (_e$target$className = _e$target.className) === null || _e$target$className === void 0 ? void 0 : _e$target$className.indexOf("JS-dialog-skip-evts")) >= 0 || ((_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.closest(".JS-dialog-skip-evts"))) return;
1525
+ if (!isTop() || skipKeys || ((_e$target = e.target) === null || _e$target === void 0 ? void 0 : (_e$target$className = _e$target.className) === null || _e$target$className === void 0 ? void 0 : _e$target$className.indexOf("JS-dialog-skip-evts")) >= 0) return;
1607
1526
 
1608
1527
  if (modal.current && e.shiftKey && e.keyCode === 9 && modal.current.querySelector('[tabindex]') === document.activeElement) {
1609
1528
  e.preventDefault();
@@ -1798,7 +1717,7 @@ var fixDoubledLastMarginBottom = function fixDoubledLastMarginBottom(children) {
1798
1717
  return processChild(children, 0);
1799
1718
  }
1800
1719
 
1801
- while ((!children[last] || children[last] && children[last].type && children[last].type.displayName === "Errors") && last > 0) {
1720
+ while (!children[last] || children[last] && children[last].type && children[last].type.displayName === "Errors") {
1802
1721
  last--;
1803
1722
  }
1804
1723
 
@@ -1890,192 +1809,8 @@ var LoadingDiv = function LoadingDiv(_ref2) {
1890
1809
  }, children) : children);
1891
1810
  };
1892
1811
 
1893
- var TOP_TRIGGER = function TOP_TRIGGER(posInfo, refInfo) {
1894
- // Started sticking.
1895
- if (posInfo.bottom < refInfo.top) {
1896
- return true;
1897
- } // Stopped sticking.
1898
-
1899
-
1900
- if (posInfo.bottom >= refInfo.top && posInfo.bottom < refInfo.bottom) {
1901
- return false;
1902
- }
1903
- };
1904
-
1905
- var BOTTOM_TRIGGER = function BOTTOM_TRIGGER(posInfo, refInfo) {
1906
- // Started sticking.
1907
- if (posInfo.top > refInfo.bottom) {
1908
- return true;
1909
- }
1910
-
1911
- if (posInfo.top <= refInfo.bottom && posInfo.top > refInfo.top) {
1912
- return false;
1913
- }
1914
- };
1915
-
1916
- var SentinelStyle = styled__default.div.withConfig({
1917
- displayName: "willUseIsSticky__SentinelStyle",
1918
- componentId: "sc-1nsyca-0"
1919
- })(["position:absolute;visibility:hidden;height:1px;width:1px;", ""], function (props) {
1920
- return props.addCss;
1921
- });
1922
- var willUseIsSticky = function willUseIsSticky() {
1923
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1924
-
1925
- var _willUseSharedCallbac = core.willUseSharedCallback(),
1926
- _willUseSharedCallbac2 = _slicedToArray(_willUseSharedCallbac, 2),
1927
- useRegister = _willUseSharedCallbac2[0],
1928
- onChange = _willUseSharedCallbac2[1];
1929
-
1930
- var _willUseSharedState = core.willUseSharedState(),
1931
- _willUseSharedState2 = _slicedToArray(_willUseSharedState, 3),
1932
- useSharedIsSticky = _willUseSharedState2[0],
1933
- setSharedIsSticky = _willUseSharedState2[2];
1934
-
1935
- var createObserver = function createObserver(root) {
1936
- return window.IntersectionObserver ? new window.IntersectionObserver(function (records, observer) {
1937
- var _iteratorNormalCompletion = true;
1938
- var _didIteratorError = false;
1939
- var _iteratorError = undefined;
1940
-
1941
- try {
1942
- for (var _iterator = records[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
1943
- var record = _step.value;
1944
- var targetInfo = record.boundingClientRect;
1945
- var rootBoundsInfo = record.rootBounds;
1946
-
1947
- if (!rootBoundsInfo) {
1948
- return;
1949
- }
1950
-
1951
- onChange(targetInfo, rootBoundsInfo, record.target, record.isIntersecting);
1952
- }
1953
- } catch (err) {
1954
- _didIteratorError = true;
1955
- _iteratorError = err;
1956
- } finally {
1957
- try {
1958
- if (!_iteratorNormalCompletion && _iterator.return != null) {
1959
- _iterator.return();
1960
- }
1961
- } finally {
1962
- if (_didIteratorError) {
1963
- throw _iteratorError;
1964
- }
1965
- }
1966
- }
1967
- }, _objectSpread({
1968
- root: root
1969
- }, options)) : {
1970
- observe: _identity,
1971
- unobserve: _identity
1972
- };
1973
- };
1974
-
1975
- var observerMap = new Map();
1976
-
1977
- var getObserver = function getObserver() {
1978
- var root = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
1979
- var result = observerMap.get(root);
1980
-
1981
- if (result) {
1982
- return result;
1983
- }
1984
-
1985
- var observer = createObserver(root);
1986
- observerMap.set(root, observer);
1987
- return observer;
1988
- };
1989
-
1990
- var activeObserved = [];
1991
-
1992
- var resetObservers = function resetObservers() {
1993
- var root = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
1994
- var observer = getObserver(root);
1995
- activeObserved.forEach(function (observed) {
1996
- observer.unobserve(observed);
1997
- observer.observe(observed);
1998
- });
1999
- };
2000
-
2001
- var WithIsSticky = React__default.forwardRef(function (_ref, ref) {
2002
- var className = _ref.className,
2003
- id = _ref.id,
2004
- css = _ref.css,
2005
- children = _ref.children,
2006
- bottom = _ref.bottom,
2007
- root = _ref.root,
2008
- intersection = _ref.intersection,
2009
- onChange = _ref.onChange;
2010
- var ensuredRef = core.useEnsureRef(ref);
2011
-
2012
- var _useState = React.useState(false),
2013
- _useState2 = _slicedToArray(_useState, 2),
2014
- isSticky = _useState2[0],
2015
- setIsSticky = _useState2[1];
2016
-
2017
- useRegister(function (posInfo, refInfo, target, isIntersecting) {
2018
- if (ensuredRef.current === target) {
2019
- var value = intersection ? isIntersecting : bottom ? BOTTOM_TRIGGER(posInfo, refInfo) : TOP_TRIGGER(posInfo, refInfo);
2020
-
2021
- if (value !== undefined) {
2022
- setIsSticky(value);
2023
- utils.callIfFunction(onChange, value);
2024
-
2025
- if (!id) {
2026
- setSharedIsSticky(value);
2027
- } else if (value) {
2028
- setSharedIsSticky(id);
2029
- }
2030
- }
2031
- }
2032
- });
2033
- React.useEffect(function () {
2034
- setIsSticky(false);
2035
- getObserver(utils.callIfFunction(root)).observe(ensuredRef.current);
2036
- activeObserved = activeObserved.concat(ensuredRef.current);
2037
- return function () {
2038
- // observer.unobserve(ref.current)
2039
- activeObserved = _without([ensuredRef.current], activeObserved);
2040
- };
2041
- }, []);
2042
-
2043
- var renderSentinel = function renderSentinel() {
2044
- var css = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
2045
- return React__default.createElement(SentinelStyle, {
2046
- addCss: css,
2047
- className: className,
2048
- ref: ensuredRef
2049
- });
2050
- };
2051
-
2052
- return children ? children(renderSentinel, isSticky) : renderSentinel(css);
2053
- });
2054
- return [WithIsSticky, useSharedIsSticky, resetObservers];
2055
- };
2056
-
2057
- function _templateObject10() {
2058
- var data = _taggedTemplateLiteral(["\n padding: 1.5rem 1.5rem 1.5rem;\n max-width: 100%;\n ", ";\n "]);
2059
-
2060
- _templateObject10 = function _templateObject10() {
2061
- return data;
2062
- };
2063
-
2064
- return data;
2065
- }
2066
-
2067
- function _templateObject9() {
2068
- var data = _taggedTemplateLiteral(["\n padding: 1.5rem 1.5rem 0;\n margin: -1.5rem;\n "]);
2069
-
2070
- _templateObject9 = function _templateObject9() {
2071
- return data;
2072
- };
2073
-
2074
- return data;
2075
- }
2076
-
2077
1812
  function _templateObject8() {
2078
- var data = _taggedTemplateLiteral(["\n padding: 1.5rem;\n margin: -1.5rem;\n "]);
1813
+ var data = _taggedTemplateLiteral(["\n padding: 1.5rem 1.5rem 1.5rem;\n max-width: 100%;\n ", ";\n "]);
2079
1814
 
2080
1815
  _templateObject8 = function _templateObject8() {
2081
1816
  return data;
@@ -2085,7 +1820,7 @@ function _templateObject8() {
2085
1820
  }
2086
1821
 
2087
1822
  function _templateObject7() {
2088
- var data = _taggedTemplateLiteral(["\n ", " {\n min-width: unset;\n padding-left: 1rem;\n padding-right: 1rem;\n }\n "]);
1823
+ var data = _taggedTemplateLiteral(["\n padding: 1.5rem 1.5rem 0;\n margin: -1.5rem;\n "]);
2089
1824
 
2090
1825
  _templateObject7 = function _templateObject7() {
2091
1826
  return data;
@@ -2095,7 +1830,7 @@ function _templateObject7() {
2095
1830
  }
2096
1831
 
2097
1832
  function _templateObject6() {
2098
- var data = _taggedTemplateLiteral(["\n bottom: -0.5rem;\n padding: 0.75rem 1.5rem;\n margin-bottom: -0.75rem;\n margin-left: -1.5rem;\n margin-right: -1.5rem;\n "]);
1833
+ var data = _taggedTemplateLiteral(["\n padding: 1.5rem;\n margin: -1.5rem;\n "]);
2099
1834
 
2100
1835
  _templateObject6 = function _templateObject6() {
2101
1836
  return data;
@@ -2105,7 +1840,7 @@ function _templateObject6() {
2105
1840
  }
2106
1841
 
2107
1842
  function _templateObject5() {
2108
- var data = _taggedTemplateLiteral(["\n bottom: -3rem;\n margin-left: -2rem;\n margin-right: -2rem;\n margin-bottom: -1rem;\n padding: 1rem 2rem;\n "]);
1843
+ var data = _taggedTemplateLiteral(["\n ", " {\n min-width: unset;\n padding-left: 1rem;\n padding-right: 1rem;\n }\n "]);
2109
1844
 
2110
1845
  _templateObject5 = function _templateObject5() {
2111
1846
  return data;
@@ -2176,25 +1911,19 @@ var DialogContent = styled__default(function (props) {
2176
1911
  }).withConfig({
2177
1912
  displayName: "Dialog__DialogContent",
2178
1913
  componentId: "gai4ey-3"
2179
- })(["outline:none;width:100%;position:relative;min-height:5rem;", " ", " p{font-size:14px;}"], function (props) {
1914
+ })(["outline:none;width:100%;position:relative;min-height:5rem;", " ", " p{font-size:13px;}.expired-date{font-size:12px;color:", ";}"], function (props) {
2180
1915
  return props.icon && styled.css(["padding-right:8rem;min-height:6rem;"]);
2181
1916
  }, function (props) {
2182
1917
  return props.illustration && styled.css(["padding-right:15rem;", ""], utils.media.mobile(_templateObject3$1()));
2183
- });
1918
+ }, utils.getColor('alert'));
2184
1919
  var DialogTitle = styled__default.h2.withConfig({
2185
1920
  displayName: "Dialog__DialogTitle",
2186
1921
  componentId: "gai4ey-4"
2187
- })(["margin-bottom:1rem;padding-bottom:1rem;", " ", ""], function (props) {
2188
- return props.fixTitleMargin && "\n padding-bottom: 0;\n ";
2189
- }, utils.media.mobile(_templateObject4()));
1922
+ })(["margin-bottom:1rem;padding-bottom:1rem;", ""], utils.media.mobile(_templateObject4()));
2190
1923
  var DialogFooter = styled__default.div.withConfig({
2191
1924
  displayName: "Dialog__DialogFooter",
2192
1925
  componentId: "gai4ey-5"
2193
- })(["display:block;padding-top:1rem;margin-top:1rem;align-items:stretch;text-align:right;", " ", ""], function (props) {
2194
- return props.sticky && styled.css(["position:sticky;background:white;width:inherit;z-index:50;", " ", " ", ""], utils.media.desktop(_templateObject5()), utils.media.mobile(_templateObject6()), function (props) {
2195
- return props.isSticky && "\n box-shadow: 0 0px 2px 0 rgba(0,0,0,0.1), 0 0px 5px 1px rgba(0,0,0,0.15);\n ";
2196
- });
2197
- }, utils.media.max(370)(_templateObject7(), Button));
1926
+ })(["width:100%;display:block;padding-top:1rem;margin-top:1rem;align-items:stretch;text-align:right;", ""], utils.media.max(370)(_templateObject5(), Button));
2198
1927
  var FooterAuxiliaryContainer = styled__default.div.withConfig({
2199
1928
  displayName: "Dialog__FooterAuxiliaryContainer",
2200
1929
  componentId: "gai4ey-6"
@@ -2203,17 +1932,15 @@ var FooterAuxiliaryContainer = styled__default.div.withConfig({
2203
1932
  var DialogContentWrapper = styled__default(LoadingDiv).withConfig({
2204
1933
  displayName: "Dialog__DialogContentWrapper",
2205
1934
  componentId: "gai4ey-7"
2206
- })(["padding:2rem;margin:-2rem;", ""], utils.media.mobile(_templateObject8()));
1935
+ })(["padding:2rem;margin:-2rem;", ""], utils.media.mobile(_templateObject6()));
2207
1936
  var DialogAlwaysVisibleDiv = styled__default.div.withConfig({
2208
1937
  displayName: "Dialog__DialogAlwaysVisibleDiv",
2209
1938
  componentId: "gai4ey-8"
2210
- })(["padding:2rem 2rem 0;margin:-2rem;", ""], utils.media.mobile(_templateObject9())); // END
1939
+ })(["padding:2rem 2rem 0;margin:-2rem;", ""], utils.media.mobile(_templateObject7())); // END
2211
1940
 
2212
1941
  var Dialog = styled__default(React__default.forwardRef(function (_ref, outerRef) {
2213
1942
  var className = _ref.className,
2214
1943
  skipWrap = _ref.skipWrap,
2215
- stickyFooter = _ref.stickyFooter,
2216
- fixTitleMargin = _ref.fixTitleMargin,
2217
1944
  skipCloseIcon = _ref.skipCloseIcon,
2218
1945
  isLoading = _ref.isLoading,
2219
1946
  footer = _ref.footer,
@@ -2225,21 +1952,15 @@ var Dialog = styled__default(React__default.forwardRef(function (_ref, outerRef)
2225
1952
  auxiliarActions = _ref.auxiliarActions,
2226
1953
  _ref$container = _ref.container,
2227
1954
  container = _ref$container === void 0 ? true : _ref$container,
2228
- props = _objectWithoutProperties(_ref, ["className", "skipWrap", "stickyFooter", "fixTitleMargin", "skipCloseIcon", "isLoading", "footer", "Content", "children", "title", "illustration", "icon", "auxiliarActions", "container"]);
1955
+ props = _objectWithoutProperties(_ref, ["className", "skipWrap", "skipCloseIcon", "isLoading", "footer", "Content", "children", "title", "illustration", "icon", "auxiliarActions", "container"]);
2229
1956
 
2230
1957
  var ref = core.useEnsureRef(outerRef);
2231
1958
 
2232
- var _willUseIsSticky = willUseIsSticky(),
2233
- _willUseIsSticky2 = _slicedToArray(_willUseIsSticky, 1),
2234
- WithIsSticky = _willUseIsSticky2[0];
2235
-
2236
1959
  var alwaysVisible = function alwaysVisible(confirmCloseDialog) {
2237
1960
  return React__default.createElement(React__default.Fragment, null, props.closeDialog && !skipCloseIcon && React__default.createElement(CloseIcon, {
2238
1961
  className: "JS-dialog-close",
2239
1962
  onClick: confirmCloseDialog
2240
- }), title && React__default.createElement(DialogTitle, {
2241
- fixTitleMargin: true
2242
- }, utils.callIfFunction(title)));
1963
+ }), title && React__default.createElement(DialogTitle, null, utils.callIfFunction(title)));
2243
1964
  };
2244
1965
 
2245
1966
  var content = React__default.createElement(React__default.Fragment, null, Content && React__default.createElement(DialogContent, {
@@ -2248,14 +1969,7 @@ var Dialog = styled__default(React__default.forwardRef(function (_ref, outerRef)
2248
1969
  }, utils.callIfFunction(Content)), !Content && children && React__default.createElement(DialogContent, {
2249
1970
  icon: icon,
2250
1971
  illustration: illustration
2251
- }, utils.callIfFunction(children)), Content && children && utils.callIfFunction(children), footer && React__default.createElement(WithIsSticky, {
2252
- bottom: true
2253
- }, function (sentinel, isSticky) {
2254
- return React__default.createElement(React__default.Fragment, null, React__default.createElement(DialogFooter, {
2255
- isSticky: isSticky,
2256
- sticky: stickyFooter
2257
- }, auxiliarActions && React__default.createElement(FooterAuxiliaryContainer, null, utils.callIfFunction(auxiliarActions)), utils.callIfFunction(footer)), sentinel());
2258
- }));
1972
+ }, utils.callIfFunction(children)), Content && children && utils.callIfFunction(children), footer && React__default.createElement(DialogFooter, null, auxiliarActions && React__default.createElement(FooterAuxiliaryContainer, null, utils.callIfFunction(auxiliarActions)), utils.callIfFunction(footer)));
2259
1973
 
2260
1974
  var dialog = function dialog(confirmCloseDialog) {
2261
1975
  return React__default.createElement("div", {
@@ -2277,7 +1991,7 @@ var Dialog = styled__default(React__default.forwardRef(function (_ref, outerRef)
2277
1991
  })).withConfig({
2278
1992
  displayName: "Dialog",
2279
1993
  componentId: "gai4ey-9"
2280
- })(["@supports (position:sticky){will-change:transform,opacity;&.JS-wc-off{will-change:auto;}}border-radius:12px;padding:2rem;background-color:white;width:100%;max-width:45rem;margin:auto;position:relative;align-self:baseline;display:block;> h3:first-child{margin-top:0.5rem;}p{line-height:140%;}", " ", " ", ""], utils.media.mobile(_templateObject10(), function (props) {
1994
+ })(["@supports (position:sticky){will-change:transform,opacity;&.JS-wc-off{will-change:auto;}}border-radius:12px;padding:2rem;background-color:white;width:100%;max-width:45rem;margin:auto;position:relative;align-self:baseline;display:block;> h3:first-child{margin-top:0.5rem;}p{line-height:140%;}", " ", " ", ""], utils.media.mobile(_templateObject8(), function (props) {
2281
1995
  return props.fullscreenOnMobile && "\n border-radius: 0;\n min-height: 100%;\n ";
2282
1996
  }), function (props) {
2283
1997
  return props.closeDialog && styled.css(["", "{padding-right:2rem;}"], DialogTitle);
@@ -2319,7 +2033,7 @@ var DialogErrorContent = function DialogErrorContent(_ref4) {
2319
2033
  return React__default.createElement(Dialog, {
2320
2034
  as: "div"
2321
2035
  }, closeDialog && React__default.createElement(CloseIcon, {
2322
- onClick: closeDialog
2036
+ onClick: confirmCloseDialog
2323
2037
  }), title && React__default.createElement(DialogTitle, null, title), React__default.createElement(DialogContent, {
2324
2038
  icon: "warning"
2325
2039
  }, content), React__default.createElement(DialogFooter, null, React__default.createElement(Button, {
@@ -2359,58 +2073,29 @@ var useDialogWithToggle = function useDialogWithToggle(dialog) {
2359
2073
 
2360
2074
  var WarningDialog = styled__default(function (_ref) {
2361
2075
  var content = _ref.content,
2362
- footer = _ref.footer,
2363
- withX = _ref.withX,
2364
2076
  closeDialog = _ref.closeDialog,
2365
- leftButton = _ref.leftButton,
2366
- additionalContent = _ref.additionalContent,
2367
- title = _ref.title,
2368
- rightButton = _ref.rightButton,
2369
2077
  className = _ref.className,
2370
- color = _ref.color,
2371
2078
  _ref$icon = _ref.icon,
2372
2079
  icon = _ref$icon === void 0 ? "warning" : _ref$icon,
2373
2080
  _ref$confirmLabel = _ref.confirmLabel,
2374
- confirmLabel = _ref$confirmLabel === void 0 ? "Entendi" : _ref$confirmLabel,
2375
- noActions = _ref.noActions,
2376
- children = _ref.children;
2081
+ confirmLabel = _ref$confirmLabel === void 0 ? "Entendi" : _ref$confirmLabel;
2377
2082
  return React__default.createElement(Dialog, {
2378
- className: className,
2379
- closeDialog: withX && closeDialog
2380
- }, _isString(icon) ? React__default.createElement(WarningDialogIcon, {
2083
+ className: className
2084
+ }, React__default.createElement(MainIcon, {
2381
2085
  icon: icon
2382
- }) : icon, title && React__default.createElement(WarningDialogTitle, {
2383
- color: color || icon
2384
- }, title), content && React__default.createElement(Content, {
2385
- noTitle: !title,
2386
- noActions: noActions
2387
- }, content), additionalContent, utils.callIfFunction(leftButton, closeDialog), confirmLabel !== false && React__default.createElement(Button, {
2086
+ }), React__default.createElement("p", null, content), React__default.createElement(Button, {
2388
2087
  highlight: true,
2389
2088
  onClick: closeDialog
2390
- }, confirmLabel), utils.callIfFunction(rightButton, closeDialog), utils.callIfFunction(footer, closeDialog), children);
2089
+ }, confirmLabel));
2391
2090
  }).withConfig({
2392
2091
  displayName: "WarningDialog",
2393
2092
  componentId: "sc-1jw779e-0"
2394
- })(["text-align:center;max-width:36rem;padding:2.5rem;", "{margin:0.5rem !important;}"], Button);
2395
- var WarningDialogTitle = styled__default.h3.withConfig({
2396
- displayName: "WarningDialog__WarningDialogTitle",
2093
+ })(["text-align:center;max-width:36rem;padding:2.5rem;p{font-size:16px;font-weight:500;max-width:27rem;margin:0 auto 2rem;}"]);
2094
+ var MainIcon = styled__default(Icon).withConfig({
2095
+ displayName: "WarningDialog__MainIcon",
2397
2096
  componentId: "sc-1jw779e-1"
2398
- })(["color:", ";font-weight:500;font-size:20px;"], function (props) {
2399
- return props.color === 'warning' ? utils.getColor('alert') : props.color === 'success' ? utils.getColor('success') : props.color === 'due-date' ? utils.getColor('warning') : utils.getColor('main');
2400
- });
2401
- var Content = styled__default.div.withConfig({
2402
- displayName: "WarningDialog__Content",
2403
- componentId: "sc-1jw779e-2"
2404
- })(["font-size:15px;max-width:27rem;margin:0 auto;line-height:130%;", " ", ""], function (props) {
2405
- return !props.noActions && "\n margin: 0 auto 1.5rem;\n ";
2406
- }, function (props) {
2407
- return props.noTitle && "\n font-weight: 500;\n font-size: 16px;\n ";
2408
- });
2409
- var WarningDialogIcon = styled__default(Icon).withConfig({
2410
- displayName: "WarningDialog__WarningDialogIcon",
2411
- componentId: "sc-1jw779e-3"
2412
2097
  })(["color:", ";font-size:46px;display:block;margin-bottom:1.25rem;"], function (props) {
2413
- return props.icon === 'warning' ? utils.getColor('alert') : props.icon === 'success' ? utils.getColor('success') : props.icon === 'due-date' ? utils.getColor('warning') : utils.getColor('main');
2098
+ return props.icon === 'warning' ? utils.getColor('alert') : props.icon === 'success' ? utils.getColor('success') : utils.getColor('main');
2414
2099
  });
2415
2100
  var useWarningDialog = function useWarningDialog() {
2416
2101
  return useDialogWithToggle(function (toggle) {
@@ -2455,7 +2140,7 @@ var NotificationContainer = styled__default.div.withConfig({
2455
2140
  var Notification = styled__default.div.withConfig({
2456
2141
  displayName: "Notifications__Notification",
2457
2142
  componentId: "naxsn6-1"
2458
- })(["padding:1rem 4.5rem 1rem 1.5rem;font-size:14px;font-weight:500;border-radius:10px;color:white;text-align:left;background:", ";box-shadow:0 2px 0px 0px rgba(0,0,0,0.1);min-width:12rem;min-height:48px;display:inline-flex;align-items:center;position:relative;top:1rem;", "{color:white;display:inline-block;background-color:rgba(0,0,0,0.1);font-size:18px;width:24px;height:24px;text-align:center;line-height:24px;border-radius:50%;cursor:pointer;position:absolute;top:50%;transform:translateY(-50%);right:1rem;&:hover{background-color:rgba(0,0,0,0.2);}}"], function (props) {
2143
+ })(["padding:1rem 3.5rem 1rem 1rem;border-radius:5px;color:white;text-align:left;line-height:20px;background:", ";box-shadow:0 2px 0px 0px rgba(0,0,0,0.25);min-width:12rem;min-height:44px;display:inline-block;position:relative;top:1rem;", "{color:white;display:inline-block;background-color:rgba(0,0,0,0.2);font-size:14px;width:20px;height:20px;text-align:center;line-height:20px;border-radius:50%;cursor:pointer;position:absolute;top:1rem;right:1rem;&:hover{background-color:rgba(0,0,0,0.3);}}"], function (props) {
2459
2144
  return utils.getColor(props.type)(props);
2460
2145
  }, Icon);
2461
2146
 
@@ -2518,106 +2203,6 @@ var FlipNotification = function FlipNotification(props) {
2518
2203
  }, props)));
2519
2204
  };
2520
2205
 
2521
- function _templateObject$5() {
2522
- var data = _taggedTemplateLiteral(["\n display: none;\n "]);
2523
-
2524
- _templateObject$5 = function _templateObject() {
2525
- return data;
2526
- };
2527
-
2528
- return data;
2529
- }
2530
-
2531
- var _willUseSharedState$2 = core.willUseSharedState([]),
2532
- _willUseSharedState2$2 = _slicedToArray(_willUseSharedState$2, 3),
2533
- useNotifications = _willUseSharedState2$2[0],
2534
- setNotifications = _willUseSharedState2$2[2];
2535
-
2536
- var openPersistentNotification = function openPersistentNotification(notification) {
2537
- var newNotification = _objectSpread({
2538
- priority: 0,
2539
- type: "success"
2540
- }, _isObject(notification) ? notification : {
2541
- content: notification
2542
- });
2543
-
2544
- setNotifications(function (list) {
2545
- var nextIndex = list.findIndex(function (n) {
2546
- return n.priority < newNotification.priority;
2547
- });
2548
- return nextIndex < 0 ? _toConsumableArray(list).concat([newNotification]) : _toConsumableArray(list.slice(0, nextIndex)).concat([newNotification], _toConsumableArray(list.slice(nextIndex)));
2549
- });
2550
- return function () {
2551
- return setNotifications(_without([newNotification]));
2552
- };
2553
- };
2554
- var animation$1 = utils.oneWayAnimation('opacity:0; transform:translateY(-20px)', 'opacity:1;transform:translate(0)');
2555
- var NotificationContainer$1 = styled__default.div.withConfig({
2556
- displayName: "PersistentNotifications__NotificationContainer",
2557
- componentId: "sc-1t7i0dh-0"
2558
- })(["position:fixed;top:0;height:0;right:0;z-index:20;"]);
2559
- var Notification$1 = styled__default.div.withConfig({
2560
- displayName: "PersistentNotifications__Notification",
2561
- componentId: "sc-1t7i0dh-1"
2562
- })(["background:", ";position:relative;border-radius:7px;"], function (props) {
2563
- return polished.transparentize(0.9, utils.getColor(props.type)(props));
2564
- });
2565
- var NotificationWrapper = styled__default.div.withConfig({
2566
- displayName: "PersistentNotifications__NotificationWrapper",
2567
- componentId: "sc-1t7i0dh-2"
2568
- })(["background:white;margin-top:", ";margin-right:0.75rem;margin-left:0.75rem;padding:5px;border-radius:10px;box-shadow:0 0 10px 0 rgba(0,0,0,0.1),0 1px 2px 1px rgba(0,0,0,0.15);max-width:364px;", ""], function (props) {
2569
- return props.marginTop || "4.75rem";
2570
- }, utils.printerMedia(_templateObject$5()));
2571
-
2572
- var _willUseSharedState3 = core.willUseSharedState(false),
2573
- _willUseSharedState4 = _slicedToArray(_willUseSharedState3, 3),
2574
- useIsHiddenPersistentNotifications = _willUseSharedState4[0],
2575
- hidePersistentNotifications = _willUseSharedState4[2];
2576
- var PersistentNotifications = function PersistentNotifications() {
2577
- var _useNotifications = useNotifications(),
2578
- _useNotifications2 = _slicedToArray(_useNotifications, 2),
2579
- notifications = _useNotifications2[0],
2580
- setNotifications = _useNotifications2[1];
2581
-
2582
- var _useIsHiddenPersisten = useIsHiddenPersistentNotifications(),
2583
- _useIsHiddenPersisten2 = _slicedToArray(_useIsHiddenPersisten, 1),
2584
- isHidden = _useIsHiddenPersisten2[0];
2585
-
2586
- if (!notifications.length || isHidden) {
2587
- return null;
2588
- }
2589
-
2590
- var closeMessage = function closeMessage() {
2591
- return setNotifications(function (list) {
2592
- return list.slice(1);
2593
- });
2594
- };
2595
-
2596
- var _notifications$ = notifications[0],
2597
- content = _notifications$.content,
2598
- type = _notifications$.type,
2599
- marginTop = _notifications$.marginTop;
2600
- return React__default.createElement(core.Fill, {
2601
- name: "PersistentNotifications"
2602
- }, React__default.createElement(FlipNotification$1, {
2603
- type: type,
2604
- marginTop: marginTop
2605
- }, utils.callIfFunction(content, closeMessage)));
2606
- };
2607
-
2608
- var FlipNotification$1 = function FlipNotification(props) {
2609
- var ref = React.useRef();
2610
- useFlipAnimation(ref, animation$1);
2611
- return React__default.createElement(NotificationContainer$1, {
2612
- className: "JS-fix-dialog-scroll",
2613
- ref: ref
2614
- }, React__default.createElement(NotificationWrapper, {
2615
- marginTop: props.marginTop
2616
- }, React__default.createElement(Notification$1, _extends({
2617
- id: "js-share-notification"
2618
- }, props))));
2619
- };
2620
-
2621
2206
  var Placeholder = styled__default.span.withConfig({
2622
2207
  displayName: "usePositioning__Placeholder",
2623
2208
  componentId: "sc-1m4912o-0"
@@ -2723,9 +2308,7 @@ var usePositioning = function usePositioning(element, _ref, arrowRefOpt) {
2723
2308
  keepWidth = _ref$keepWidth === void 0 ? true : _ref$keepWidth,
2724
2309
  _ref$boundMargin = _ref.boundMargin,
2725
2310
  boundMargin = _ref$boundMargin === void 0 ? 6 : _ref$boundMargin,
2726
- respectBounds = _ref.respectBounds,
2727
- respectOffsetScroll = _ref.respectOffsetScroll,
2728
- on = _ref.on;
2311
+ respectBounds = _ref.respectBounds;
2729
2312
  var placeholder = React.useRef();
2730
2313
  var arrowRef = core.useEnsureRef(arrowRefOpt);
2731
2314
 
@@ -2750,8 +2333,14 @@ var usePositioning = function usePositioning(element, _ref, arrowRefOpt) {
2750
2333
  return;
2751
2334
  }
2752
2335
 
2753
- var usingLayer = respectOffsetScroll || useLayers && getDialogLayersSize() > 0;
2754
- var scrollOwner = usingLayer ? _isFunction(respectOffsetScroll) ? respectOffsetScroll(element.current.offsetParent) : utils.getClosestOffsetScroll(element.current.offsetParent) : {
2336
+ if (keepWidth) {
2337
+ element.current.style.width = '';
2338
+ } else {
2339
+ element.current.style.maxWidth = '';
2340
+ }
2341
+
2342
+ var usingLayer = useLayers && getDialogLayersSize() > 0;
2343
+ var scrollOwner = usingLayer ? utils.getClosestOffsetScroll(element.current.offsetParent) : {
2755
2344
  scrollTop: window.pageYOffset,
2756
2345
  scrollLeft: window.pageXOffset // console.log({scrollOwner,scrollTop:scrollOwner.scrollTop,pageYOffset:window.pageYOffset})
2757
2346
 
@@ -2759,24 +2348,9 @@ var usePositioning = function usePositioning(element, _ref, arrowRefOpt) {
2759
2348
  var scrollY = !isNaN(scrollOwner.scrollTop) ? scrollOwner.scrollTop : window.pageYOffset;
2760
2349
  var scrollX = !isNaN(scrollOwner.scrollLeft) ? scrollOwner.scrollLeft : window.pageXOffset;
2761
2350
 
2762
- var getRespectOffsetScrollTopLeft = function getRespectOffsetScrollTopLeft() {
2763
- var _placeholder$current$ = placeholder.current.getBoundingClientRect(),
2764
- top = _placeholder$current$.top,
2765
- left = _placeholder$current$.left;
2766
-
2767
- var _scrollOwner$getBound = scrollOwner.getBoundingClientRect(),
2768
- scrollOwnerTop = _scrollOwner$getBound.top,
2769
- scrollOwnerLeft = _scrollOwner$getBound.left;
2770
-
2771
- return {
2772
- top: top - scrollOwnerTop,
2773
- left: left - scrollOwnerLeft
2774
- };
2775
- };
2776
-
2777
- var _ref2 = respectOffsetScroll ? getRespectOffsetScrollTopLeft() : placeholder.current.getBoundingClientRect(),
2778
- leftPlusBorder = _ref2.left,
2779
- topPlusBorder = _ref2.top;
2351
+ var _placeholder$current$ = placeholder.current.getBoundingClientRect(),
2352
+ leftPlusBorder = _placeholder$current$.left,
2353
+ topPlusBorder = _placeholder$current$.top;
2780
2354
 
2781
2355
  var _window$getComputedSt = window.getComputedStyle(placeholder.current.offsetParent),
2782
2356
  borderLeftWidth = _window$getComputedSt.borderLeftWidth,
@@ -2843,10 +2417,10 @@ var usePositioning = function usePositioning(element, _ref, arrowRefOpt) {
2843
2417
  var arrowOnVerticalSide = arrowSide === 'left' || arrowSide === 'right';
2844
2418
  var arrowSize = arrowElement ? arrowElement.getBoundingClientRect()[arrowOnVerticalSide ? 'height' : 'width'] : ARROW_DEFAULT_SIZE * Math.sqrt(2);
2845
2419
 
2846
- var _ref3 = arrowOnVerticalSide ? processArrow(ARROW_KEY_POSITIONS[arrow] || arrow, arrowSize, arrowOnVerticalSide, parentOffsetHeight, popupOffsetHeight, processedTop - top, flippedV) : processArrow(ARROW_KEY_POSITIONS[arrow] || arrow, arrowSize, arrowOnVerticalSide, parentOffsetWidth, popupOffsetWidth, processedLeft - left, flippedV),
2847
- _ref4 = _slicedToArray(_ref3, 2),
2848
- arrowOffset = _ref4[0],
2849
- popupArrowOffset = _ref4[1];
2420
+ var _ref2 = arrowOnVerticalSide ? processArrow(ARROW_KEY_POSITIONS[arrow] || arrow, arrowSize, arrowOnVerticalSide, parentOffsetHeight, popupOffsetHeight, processedTop - top, flippedV) : processArrow(ARROW_KEY_POSITIONS[arrow] || arrow, arrowSize, arrowOnVerticalSide, parentOffsetWidth, popupOffsetWidth, processedLeft - left, flippedV),
2421
+ _ref3 = _slicedToArray(_ref2, 2),
2422
+ arrowOffset = _ref3[0],
2423
+ popupArrowOffset = _ref3[1];
2850
2424
 
2851
2425
  var maxHeight = window.innerHeight - (POSITIONING_BOUNDS.top + POSITIONING_BOUNDS.bottom) - (respectBounds ? boundMargin * 2 : 0);
2852
2426
  var maxWidth = window.innerWidth - (POSITIONING_BOUNDS.left + POSITIONING_BOUNDS.right) - (respectBounds ? boundMargin * 2 : 0);
@@ -2896,13 +2470,11 @@ var usePositioning = function usePositioning(element, _ref, arrowRefOpt) {
2896
2470
  }
2897
2471
  };
2898
2472
 
2899
- React.useLayoutEffect(setPosition, [on]);
2473
+ React.useLayoutEffect(setPosition, []);
2900
2474
  React.useEffect(function () {
2901
2475
  window.addEventListener('portalReposition', setPosition);
2902
2476
  window.addEventListener('stepResize', setPosition);
2903
- window.addEventListener('scroll', setPosition, {
2904
- passive: true
2905
- });
2477
+ window.addEventListener('scroll', setPosition);
2906
2478
  return function () {
2907
2479
  window.removeEventListener('portalReposition', setPosition);
2908
2480
  window.removeEventListener('stepResize', setPosition);
@@ -3013,8 +2585,6 @@ function (_React$Component) {
3013
2585
  _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FlipList)).call.apply(_getPrototypeOf2, [this].concat(args)));
3014
2586
 
3015
2587
  _this.play = function (oldSnap, newSnap) {
3016
- var _newSnap$parent;
3017
-
3018
2588
  var _this$props = _this.props,
3019
2589
  animation = _this$props.animation,
3020
2590
  insertAnimation = _this$props.insertAnimation,
@@ -3059,18 +2629,14 @@ function (_React$Component) {
3059
2629
  }
3060
2630
 
3061
2631
  var rectAnimation = getClientRectAnimation(oldSnap.parent, newSnap.parent, {
3062
- skipTransform: true,
3063
- smallJumpFix: _this.props.smallJumpFix
2632
+ skipTransform: true
3064
2633
  });
3065
-
3066
- if ((_newSnap$parent = newSnap.parent) === null || _newSnap$parent === void 0 ? void 0 : _newSnap$parent.domNode) {
3067
- var endEffect = utils.callIfFunction(effect, newSnap.parent.domNode, {
3068
- newSnap: newSnap,
3069
- oldSnap: oldSnap
3070
- });
3071
- utils.callIfFunction(onStartAnimation);
3072
- morph(newSnap.parent.domNode, formatAnimation(rectAnimation, timing), endEffect || onEndAnimation);
3073
- }
2634
+ var endEffect = utils.callIfFunction(effect, newSnap.parent.domNode, {
2635
+ newSnap: newSnap,
2636
+ oldSnap: oldSnap
2637
+ });
2638
+ utils.callIfFunction(onStartAnimation);
2639
+ morph(newSnap.parent.domNode, formatAnimation(rectAnimation, timing), endEffect || onEndAnimation);
3074
2640
  };
3075
2641
 
3076
2642
  _this.reinsertSnap = function (item, scrollDelta, allChildren) {
@@ -3356,7 +2922,7 @@ function (_React$Component2) {
3356
2922
 
3357
2923
  _this2.addProps = function (children, eventHandlers, activeIndex, extraProps) {
3358
2924
  return children.map(function (c, index) {
3359
- return c.type === DraggableItem ? React__default.cloneElement(c, {
2925
+ return reactHotLoader.areComponentsEqual(c.type, DraggableItem) ? React__default.cloneElement(c, {
3360
2926
  isDragging: activeIndex === index,
3361
2927
  dragIndex: index,
3362
2928
  droppable: _assertThisInitialized(_assertThisInitialized(_this2)),
@@ -4299,7 +3865,7 @@ var recentlyClosed = false;
4299
3865
  var openRef = {
4300
3866
  current: null
4301
3867
  };
4302
- var Tooltip = function Tooltip(_ref) {
3868
+ var Tooltip = React__default.forwardRef(function (_ref, ref) {
4303
3869
  var children = _ref.children,
4304
3870
  _ref$delay = _ref.delay,
4305
3871
  delay = _ref$delay === void 0 ? 400 : _ref$delay,
@@ -4356,9 +3922,10 @@ var Tooltip = function Tooltip(_ref) {
4356
3922
  animationOptions: {
4357
3923
  ref: openRef
4358
3924
  },
3925
+ ref: ref,
4359
3926
  top: !(rest.bottom || rest.left || rest.right || rest.at || rest.my)
4360
3927
  }, rest), content), children);
4361
- };
3928
+ });
4362
3929
 
4363
3930
  function _templateObject4$1() {
4364
3931
  var data = _taggedTemplateLiteral(["\n font-size: 13px;\n position: absolute;\n right: 0;\n top: 50%;\n transform: translateY(-50%);\n width: 3rem;\n text-align: center;\n"]);
@@ -4390,10 +3957,10 @@ function _templateObject2$4() {
4390
3957
  return data;
4391
3958
  }
4392
3959
 
4393
- function _templateObject$6() {
3960
+ function _templateObject$5() {
4394
3961
  var data = _taggedTemplateLiteral(["\n font-size: 14px;\n & > * {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n ", ", .icon {\n font-size: 25px;\n }\n "]);
4395
3962
 
4396
- _templateObject$6 = function _templateObject() {
3963
+ _templateObject$5 = function _templateObject() {
4397
3964
  return data;
4398
3965
  };
4399
3966
 
@@ -4405,17 +3972,10 @@ var slideUpOnTop = utils.oneWayAnimation('transform: translateY(10px); pointer-e
4405
3972
  var slideRight = utils.oneWayAnimation('transform: translateX(-10px)', 'transform: none;');
4406
3973
  var slideLeftOnLeft = utils.oneWayAnimation('transform: translateX(10px); pointer-events: none', 'transform: translateX(0px); pointer-events: none');
4407
3974
  var popupAnimation = utils.animationTiming('0.2s ease-out');
4408
-
4409
- var areComponentsEqual = function areComponentsEqual(a, b) {
4410
- return a === b;
4411
- };
4412
-
4413
3975
  var ListItem = styled__default.li.withConfig({
4414
3976
  displayName: "ContextMenu__ListItem",
4415
3977
  componentId: "sc-13y1vvt-0"
4416
- })(["position:relative;font-size:13px;& > *{padding:11px 1.5rem 11px 3.5rem;display:block;}", " ", ",.icon{font-size:23px;position:absolute;padding-left:0.25rem;left:0;top:50%;transform:translateY(-50%);width:3.5rem;text-align:center;}", " & > a{color:inherit;font-weight:inherit;text-decoration:inherit;}& > a,& > label{cursor:pointer;}", " ", " input[type=\"radio\"]{display:none;}", " ", " ", " ", ""], function (props) {
4417
- return props.hasSubmenu && "\n & > * {\n padding-right: 3rem;\n }\n ";
4418
- }, Icon, utils.media.mobile(_templateObject$6(), Icon), utils.ifProp('hover', styled.css(["& > a,& > label{background:", ";color:", ";color:", ";}"], function (props) {
3978
+ })(["position:relative;font-size:13px;& > *{padding:11px 1.5rem 11px 3.5rem;display:block;}", ",.icon{font-size:23px;position:absolute;padding-left:0.25rem;left:0;top:50%;transform:translateY(-50%);width:3.5rem;text-align:center;}", " & > a{color:inherit;font-weight:inherit;text-decoration:inherit;}& > a,& > label{cursor:pointer;}", " ", " input[type=\"radio\"]{display:none;}", " ", " ", " ", ""], Icon, utils.media.mobile(_templateObject$5(), Icon), utils.ifProp('hover', styled.css(["& > a,& > label{background:", ";color:", ";color:", ";}"], function (props) {
4419
3979
  return polished.lighten(0.53, utils.getColor("main")(props));
4420
3980
  }, utils.getColor('main'), function (props) {
4421
3981
  return polished.darken(0.03, utils.getColor("main")(props));
@@ -4578,7 +4138,6 @@ var Li = function Li(_ref) {
4578
4138
  var _ref$emitter = _ref.emitter,
4579
4139
  emitter = _ref$emitter === void 0 ? mitt() : _ref$emitter,
4580
4140
  index = _ref.index,
4581
- menuSlot = _ref.menuSlot,
4582
4141
  keepOpen = _ref.keepOpen,
4583
4142
  hover = _ref.hover,
4584
4143
  layerIndex = _ref.layerIndex,
@@ -4595,7 +4154,7 @@ var Li = function Li(_ref) {
4595
4154
  helpText = _ref.helpText,
4596
4155
  target = _ref.target,
4597
4156
  href = _ref.href,
4598
- rest = _objectWithoutProperties(_ref, ["emitter", "index", "menuSlot", "keepOpen", "hover", "layerIndex", "hoverCursor", "passTouchThrough", "children", "setCursorOnHover", "onClick", "prefixWith", "linkTo", "icon", "label", "descText", "helpText", "target", "href"]);
4157
+ rest = _objectWithoutProperties(_ref, ["emitter", "index", "keepOpen", "hover", "layerIndex", "hoverCursor", "passTouchThrough", "children", "setCursorOnHover", "onClick", "prefixWith", "linkTo", "icon", "label", "descText", "helpText", "target", "href"]);
4599
4158
 
4600
4159
  var nodeRef = React.useRef();
4601
4160
  var tagRef = React.useRef();
@@ -4705,8 +4264,7 @@ var Li = function Li(_ref) {
4705
4264
  closing: subMenu.closing,
4706
4265
  onMouseMove: subMenu.open,
4707
4266
  onClose: onCloseSub,
4708
- sub: true,
4709
- slot: c.props.slot || menuSlot
4267
+ sub: true
4710
4268
  });
4711
4269
  });
4712
4270
  };
@@ -4723,8 +4281,7 @@ var Li = function Li(_ref) {
4723
4281
  hover: hover,
4724
4282
  onClick: onClickHandler,
4725
4283
  onMouseLeave: onMouseOut,
4726
- onMouseMove: onMouseMove,
4727
- hasSubmenu: children
4284
+ onMouseMove: onMouseMove
4728
4285
  }), rest.withButton || rest.noActions ? content : React__default.createElement(Tag, {
4729
4286
  href: href,
4730
4287
  target: target,
@@ -4742,16 +4299,15 @@ var _willUseLayers$1 = core.willUseLayers(),
4742
4299
 
4743
4300
  var contextMenuLayersQuantity = contextMenuLayersSize;
4744
4301
 
4745
- var _willUseSharedState$3 = core.willUseSharedState(),
4746
- _willUseSharedState2$3 = _slicedToArray(_willUseSharedState$3, 1),
4747
- useContextMenuSharedState = _willUseSharedState2$3[0];
4302
+ var _willUseSharedState$2 = core.willUseSharedState(),
4303
+ _willUseSharedState2$2 = _slicedToArray(_willUseSharedState$2, 1),
4304
+ useContextMenuSharedState = _willUseSharedState2$2[0];
4748
4305
 
4749
4306
  var ContextMenuComponent = React.forwardRef(function (_ref2, unesuredRef) {
4750
4307
  var children = _ref2.children,
4751
4308
  sub = _ref2.sub,
4752
4309
  hoverIndex = _ref2.hoverIndex,
4753
4310
  autoHover = _ref2.autoHover,
4754
- menuSlot = _ref2.menuSlot,
4755
4311
  withoutIcons = _ref2.withoutIcons,
4756
4312
  onClose = _ref2.onClose,
4757
4313
  _ref2$onHover = _ref2.onHover,
@@ -4760,7 +4316,7 @@ var ContextMenuComponent = React.forwardRef(function (_ref2, unesuredRef) {
4760
4316
  } : _ref2$onHover,
4761
4317
  fill = _ref2.fill,
4762
4318
  onClick = _ref2.onClick,
4763
- props = _objectWithoutProperties(_ref2, ["children", "sub", "hoverIndex", "autoHover", "menuSlot", "withoutIcons", "onClose", "onHover", "fill", "onClick"]);
4319
+ props = _objectWithoutProperties(_ref2, ["children", "sub", "hoverIndex", "autoHover", "withoutIcons", "onClose", "onHover", "fill", "onClick"]);
4764
4320
 
4765
4321
  var ref = core.useEnsureRef(unesuredRef);
4766
4322
 
@@ -4832,19 +4388,11 @@ var ContextMenuComponent = React.forwardRef(function (_ref2, unesuredRef) {
4832
4388
  };
4833
4389
 
4834
4390
  var getTotalKeyboardItems = function getTotalKeyboardItems(children) {
4835
- var sum = 0;
4836
- React__default.Children.forEach(children, function (child) {
4837
- if (child && !child.props.disabled && !child.props.readOnly) {
4838
- if (!styled.isStyledComponent(child.type) && child.type === Li || child.type.isKeyboardNavigable) {
4839
- sum += 1;
4840
- }
4841
-
4842
- if (areComponentsEqual(child.type, StickyContainer) || child.props.nested) {
4843
- sum += getTotalKeyboardItems(child.props.children);
4844
- }
4845
- }
4391
+ var max = 0;
4392
+ React__default.Children.forEach(children, function (e) {
4393
+ return max += e && (!styled.isStyledComponent(e.type) && reactHotLoader.areComponentsEqual(e.type, Li) || e.type.isKeyboardNavigable || (reactHotLoader.areComponentsEqual(e.type, StickyContainer) ? getTotalKeyboardItems(e.props.children) : 0));
4846
4394
  });
4847
- return sum;
4395
+ return max;
4848
4396
  };
4849
4397
 
4850
4398
  var setCursorOnHover = function setCursorOnHover(index) {
@@ -4854,20 +4402,18 @@ var ContextMenuComponent = React.forwardRef(function (_ref2, unesuredRef) {
4854
4402
  };
4855
4403
 
4856
4404
  var formatChildren = function formatChildren(children) {
4857
- var indexRef = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
4858
- current: 0
4859
- };
4405
+ var indexOffset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
4406
+ var i = 0;
4860
4407
  return React__default.Children.map(children, function (child, j) {
4861
- return child && !child.props.disabled && !child.props.readOnly ? child.props.nested ? React__default.cloneElement(child, child.props, formatChildren(child.props.children, indexRef)) : !styled.isStyledComponent(child.type) && !reactIs.isMemo(child.type) && areComponentsEqual(child.type, Li) || child.type.isKeyboardNavigable ? React__default.cloneElement(child, {
4862
- hover: hoverCursor === indexRef.current && layerIndex === layerCursor,
4408
+ return child ? !styled.isStyledComponent(child.type) && !reactIs.isMemo(child.type) && reactHotLoader.areComponentsEqual(child.type, Li) || child.type.isKeyboardNavigable ? React__default.cloneElement(child, {
4409
+ hover: hoverCursor === i + indexOffset && layerIndex === layerCursor,
4863
4410
  hoverCursor: hoverCursor,
4864
- index: indexRef.current++,
4411
+ index: indexOffset + i++,
4865
4412
  setCursorOnHover: setCursorOnHover,
4866
4413
  emitter: itemsEmitter,
4867
- layerIndex: layerIndex,
4868
- menuSlot: menuSlot
4869
- }) : areComponentsEqual(child.type, StickyContainer) ? React__default.cloneElement(child, _objectSpread({}, child.props, {
4870
- children: formatChildren(child.props.children, indexRef)
4414
+ layerIndex: layerIndex
4415
+ }) : reactHotLoader.areComponentsEqual(child.type, StickyContainer) ? React__default.cloneElement(child, _objectSpread({}, child.props, {
4416
+ children: formatChildren(child.props.children, i + indexOffset)
4871
4417
  })) : child : child;
4872
4418
  });
4873
4419
  };
@@ -4933,7 +4479,6 @@ var ContextMenu = React.forwardRef(function (_ref3, ref) {
4933
4479
  return React__default.createElement(React__default.Fragment, null, placeholder, React__default.createElement(core.Fill, {
4934
4480
  name: slotName
4935
4481
  }, React__default.createElement(ContextMenuComponent, _extends({}, rest, {
4936
- menuSlot: slot,
4937
4482
  sub: sub
4938
4483
  }, positionInfo, {
4939
4484
  ref: contextMenuRef,
@@ -4942,135 +4487,13 @@ var ContextMenu = React.forwardRef(function (_ref3, ref) {
4942
4487
  });
4943
4488
  ContextMenu.ListItem = ListItem;
4944
4489
 
4945
- var scrollWidth = function () {
4946
- if (!window.document) return 0;
4947
- var html = document.documentElement;
4948
- var oldOverflow = html.style.overflowY;
4949
- html.style.overflowY = 'scroll';
4950
- var width = window.innerWidth - html.clientWidth;
4951
- html.style.overflowY = oldOverflow;
4952
- return width;
4953
- }();
4954
-
4955
- var callIfFunction = function callIfFunction(prop) {
4956
- for (var _len6 = arguments.length, args = new Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; _key6 < _len6; _key6++) {
4957
- args[_key6 - 1] = arguments[_key6];
4958
- }
4959
-
4960
- return typeof prop === "function" ? prop.apply(void 0, args) : prop;
4961
- };
4962
-
4963
- function _templateObject$7() {
4964
- var data = _taggedTemplateLiteral(["\n ", ""]);
4965
-
4966
- _templateObject$7 = function _templateObject() {
4967
- return data;
4968
- };
4969
-
4970
- return data;
4971
- }
4972
-
4973
- var checkCustomScreenWidth = function checkCustomScreenWidth(sizeParis, customWidth) {
4974
- var currentWidth = callIfFunction(customWidth);
4975
- return !sizeParis.find(function (_ref5) {
4976
- var _ref6 = _slicedToArray(_ref5, 2),
4977
- size = _ref6[0],
4978
- type = _ref6[1];
4979
-
4980
- if (type === "min-width") {
4981
- return currentWidth < size;
4982
- }
4983
-
4984
- if (type === "max-width") {
4985
- return currentWidth > size;
4986
- }
4987
- });
4988
- };
4989
-
4990
- var media = function media() {
4991
- for (var _len3 = arguments.length, sizePairs = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
4992
- sizePairs[_key3] = arguments[_key3];
4993
- }
4994
-
4995
- return function () {
4996
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
4997
- args[_key4] = arguments[_key4];
4998
- }
4999
-
5000
- return styled.css(["", ""], function (props) {
5001
- var _props$theme, _props$theme2;
5002
-
5003
- return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.overrideMediaWidth) ? checkCustomScreenWidth(sizePairs, (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.overrideMediaWidth) ? styled.css.apply(void 0, args) : "" : styled.css(["@media ", "{", "}"], sizePairs.map(function (_ref7) {
5004
- var _ref8 = _slicedToArray(_ref7, 2),
5005
- size = _ref8[0],
5006
- type = _ref8[1];
5007
-
5008
- return "(".concat(type, ": ").concat(size + scrollWidth, "px)");
5009
- }).join(' and '), styled.css.apply(void 0, args));
5010
- });
5011
- };
5012
- };
5013
- media.mobile = media([600, 'max-width']);
5014
-
5015
- media.between = function (min, max) {
5016
- return media([min, 'min-width'], [max, 'max-width']);
5017
- };
5018
-
5019
- media.max = function (n) {
5020
- return media([n, 'max-width']);
5021
- };
5022
-
5023
- media.min = function (n) {
5024
- return media([n, 'min-width']);
5025
- };
5026
-
5027
- media.desktop = media([601, 'min-width']);
5028
-
5029
- var getFrameOffset = function getFrameOffset(i, total) {
5030
- return Math.round(i * 100 / (total - 1));
5031
- };
5032
-
5033
- var emotion = createEmotion({
5034
- nonce: __webpack_nonce__
5035
- });
5036
- var oneWayAnimation = function oneWayAnimation() {
5037
- for (var _len5 = arguments.length, frames = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
5038
- frames[_key5] = arguments[_key5];
5039
- }
5040
-
5041
- return emotion.keyframes(_templateObject$7(), frames.map(function (frame, i) {
5042
- return !frame ? '' : "".concat(getFrameOffset(i, frames.length), "% {\n ").concat(frame, "\n }");
5043
- }));
5044
- };
5045
- var animationTiming = function animationTiming(props) {
5046
- return function () {
5047
- for (var _len7 = arguments.length, animations = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
5048
- animations[_key7] = arguments[_key7];
5049
- }
5050
-
5051
- return animations.filter(function (_) {
5052
- return _;
5053
- }).map(function (_) {
5054
- return _ + ' ' + props;
5055
- }).join(',');
5056
- };
5057
- };
5058
- var identityTranslateFrames = oneWayAnimation('transform: translateY(0);', 'transform: translateY(0);');
5059
- var identityOpacityFrames = oneWayAnimation('opacity: 1;', 'opacity:1;');
5060
-
5061
4490
  var LoadingBar = styled__default.div.withConfig({
5062
4491
  displayName: "PageLoader__LoadingBar",
5063
4492
  componentId: "sc-96jeob-0"
5064
- })(["width:100%;border-radius:0 1px 1px 0;height:4px;position:fixed;background:", ";transform:translateX(-100%);", " left:0;z-index:99999;box-shadow:", ";", " ", ""], function (props) {
5065
- return props.bottom ? styled.css(["", ""], utils.getColor('main')) : "#84D359";
4493
+ })(["width:0%;height:3px;position:fixed;background:#84D359;top:0;left:0;z-index:99999;box-shadow:0 0 6px 0 rgba(0,0,0,0.5);", " ", " "], function (props) {
4494
+ return props.loading && "\n width: 70%;\n transition: 1.5s width linear;\n ";
5066
4495
  }, function (props) {
5067
- return props.bottom ? "bottom:55px;" : "top: 0;";
5068
- }, function (props) {
5069
- return props.bottom ? "0 0 1px 1px rgba(0,132,214,0.2);" : "0 0 2px 0 rgba(0,0,0,0.5);";
5070
- }, function (props) {
5071
- return props.loading && "\n transform: translateX(-30%);\n transition: transform 1.5s ease;\n ";
5072
- }, function (props) {
5073
- return props.closing && "\n transform: translateX(0);\n transition: transform 0.3s ease-in;\n ";
4496
+ return props.closing && "\n width: 100%;\n transition: 0.3s ease-in;\n ";
5074
4497
  });
5075
4498
  var PageLoader = function PageLoader(_ref) {
5076
4499
  var isLoading = _ref.isLoading;
@@ -5087,18 +4510,6 @@ var PageLoader = function PageLoader(_ref) {
5087
4510
  closing: loader.closing
5088
4511
  });
5089
4512
  };
5090
- var animation$2 = utils.oneWayAnimation('transform:translateX(-30%);', 'transform:translateX(0);');
5091
- var SuspenseLoadingBar = function SuspenseLoadingBar() {
5092
- var ref = React__default.useRef();
5093
- useFlipLeave(ref, animation$2, {
5094
- reverse: false,
5095
- timing: animationTiming('0.3s ease-in')
5096
- });
5097
- return React__default.createElement(LoadingBar, {
5098
- ref: ref,
5099
- loading: true
5100
- });
5101
- };
5102
4513
 
5103
4514
  var isNodeJunction = function isNodeJunction(nextNode) {
5104
4515
  return nextNode && !nextNode.hasChangedLine && nextNode.words[0] !== '';
@@ -5398,20 +4809,17 @@ FillLastLineResizer.h2 = function (props) {
5398
4809
  };
5399
4810
 
5400
4811
  var DEFAULT_ANIMATION = utils.oneWayAnimation("opacity: 1;", "opacity: 0;");
5401
- var AnimationBlockContainer = styled__default.div.withConfig({
5402
- displayName: "TransitionDiv__AnimationBlockContainer",
4812
+ var BlockContainer$1 = styled__default.div.withConfig({
4813
+ displayName: "TransitionDiv__BlockContainer",
5403
4814
  componentId: "sc-1sh2xah-0"
5404
- })(["", " position:relative;"], function (props) {
5405
- return props.inline ? 'display: inline-block; ' : '';
5406
- });
4815
+ })(["position:relative;"]);
5407
4816
  var TransitionDiv = function TransitionDiv(_ref) {
5408
4817
  var children = _ref.children,
5409
4818
  animation = _ref.animation,
5410
4819
  skipChromeFix = _ref.skipChromeFix,
5411
4820
  className = _ref.className,
5412
4821
  block = _ref.block,
5413
- inline = _ref.inline,
5414
- rest = _objectWithoutProperties(_ref, ["children", "animation", "skipChromeFix", "className", "block", "inline"]);
4822
+ rest = _objectWithoutProperties(_ref, ["children", "animation", "skipChromeFix", "className", "block"]);
5415
4823
 
5416
4824
  var blockRef = React.useRef();
5417
4825
 
@@ -5426,27 +4834,24 @@ var TransitionDiv = function TransitionDiv(_ref) {
5426
4834
  };
5427
4835
 
5428
4836
  var content = children ? React__default.createElement(FlipList, _extends({
5429
- smallJumpFix: inline && -3,
5430
4837
  effect: overflowEffect,
5431
4838
  skipChromeFix: skipChromeFix,
5432
4839
  animation: animation || DEFAULT_ANIMATION
5433
4840
  }, rest), [React__default.createElement("div", {
5434
- className: block || inline ? "" : className,
4841
+ className: block ? "" : className,
5435
4842
  key: "first"
5436
4843
  }, children)]) : React__default.createElement(FlipList, _extends({
5437
- smallJumpFix: inline && -3,
5438
4844
  effect: overflowEffect,
5439
4845
  skipChromeFix: skipChromeFix,
5440
4846
  animation: animation || DEFAULT_ANIMATION
5441
4847
  }, rest), []);
5442
- return block || inline ? React__default.createElement(AnimationBlockContainer, {
5443
- inline: inline,
4848
+ return block ? React__default.createElement(BlockContainer$1, {
5444
4849
  ref: blockRef,
5445
4850
  className: className
5446
4851
  }, content) : content;
5447
4852
  };
5448
4853
 
5449
- var BlockContainer$1 = styled__default.div.withConfig({
4854
+ var BlockContainer$2 = styled__default.div.withConfig({
5450
4855
  displayName: "SwitchDiv__BlockContainer",
5451
4856
  componentId: "htfwpl-0"
5452
4857
  })(["position:relative;"]);
@@ -5493,12 +4898,167 @@ var SwitchContainer = function SwitchContainer(_ref2) {
5493
4898
  switchAnimation(contentRef, enterAnimation, leaveAnimation, {
5494
4899
  effect: effect
5495
4900
  });
5496
- return React__default.createElement(BlockContainer$1, {
4901
+ return React__default.createElement(BlockContainer$2, {
5497
4902
  ref: contentRef,
5498
4903
  className: className
5499
4904
  }, utils.callIfFunction(children));
5500
4905
  };
5501
4906
 
4907
+ var TOP_TRIGGER = function TOP_TRIGGER(posInfo, refInfo) {
4908
+ // Started sticking.
4909
+ if (posInfo.bottom < refInfo.top) {
4910
+ return true;
4911
+ } // Stopped sticking.
4912
+
4913
+
4914
+ if (posInfo.bottom >= refInfo.top && posInfo.bottom < refInfo.bottom) {
4915
+ return false;
4916
+ }
4917
+ };
4918
+
4919
+ var BOTTOM_TRIGGER = function BOTTOM_TRIGGER(posInfo, refInfo) {
4920
+ // Started sticking.
4921
+ if (posInfo.top > refInfo.bottom) {
4922
+ return true;
4923
+ }
4924
+
4925
+ if (posInfo.top <= refInfo.bottom && posInfo.top > refInfo.top) {
4926
+ return false;
4927
+ }
4928
+ };
4929
+
4930
+ var SentinelStyle = styled__default.div.withConfig({
4931
+ displayName: "willUseIsSticky__SentinelStyle",
4932
+ componentId: "sc-1nsyca-0"
4933
+ })(["position:absolute;visibility:hidden;height:1px;width:1px;", ""], function (props) {
4934
+ return props.addCss;
4935
+ });
4936
+ var willUseIsSticky = function willUseIsSticky() {
4937
+ var _willUseSharedCallbac = core.willUseSharedCallback(),
4938
+ _willUseSharedCallbac2 = _slicedToArray(_willUseSharedCallbac, 2),
4939
+ useRegister = _willUseSharedCallbac2[0],
4940
+ onChange = _willUseSharedCallbac2[1];
4941
+
4942
+ var _willUseSharedState = core.willUseSharedState(),
4943
+ _willUseSharedState2 = _slicedToArray(_willUseSharedState, 3),
4944
+ useSharedIsSticky = _willUseSharedState2[0],
4945
+ setSharedIsSticky = _willUseSharedState2[2];
4946
+
4947
+ var createObserver = function createObserver(root) {
4948
+ return window.IntersectionObserver ? new window.IntersectionObserver(function (records, observer) {
4949
+ var _iteratorNormalCompletion = true;
4950
+ var _didIteratorError = false;
4951
+ var _iteratorError = undefined;
4952
+
4953
+ try {
4954
+ for (var _iterator = records[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
4955
+ var record = _step.value;
4956
+ var targetInfo = record.boundingClientRect;
4957
+ var rootBoundsInfo = record.rootBounds;
4958
+
4959
+ if (!rootBoundsInfo) {
4960
+ return;
4961
+ }
4962
+
4963
+ onChange(targetInfo, rootBoundsInfo, record.target, record.isIntersecting);
4964
+ }
4965
+ } catch (err) {
4966
+ _didIteratorError = true;
4967
+ _iteratorError = err;
4968
+ } finally {
4969
+ try {
4970
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
4971
+ _iterator.return();
4972
+ }
4973
+ } finally {
4974
+ if (_didIteratorError) {
4975
+ throw _iteratorError;
4976
+ }
4977
+ }
4978
+ }
4979
+ }, {
4980
+ root: root
4981
+ }) : {
4982
+ observe: _identity,
4983
+ unobserve: _identity
4984
+ };
4985
+ };
4986
+
4987
+ var observerMap = new Map();
4988
+
4989
+ var getObserver = function getObserver() {
4990
+ var root = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
4991
+ var result = observerMap.get(root);
4992
+
4993
+ if (result) {
4994
+ return result;
4995
+ }
4996
+
4997
+ var observer = createObserver(root);
4998
+ observerMap.set(root, observer);
4999
+ return observer;
5000
+ };
5001
+
5002
+ var activeObserved = [];
5003
+
5004
+ var resetObservers = function resetObservers() {
5005
+ var root = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
5006
+ var observer = getObserver(root);
5007
+ activeObserved.forEach(function (observed) {
5008
+ observer.unobserve(observed);
5009
+ observer.observe(observed);
5010
+ });
5011
+ };
5012
+
5013
+ var WithIsSticky = React__default.forwardRef(function (_ref, ref) {
5014
+ var className = _ref.className,
5015
+ children = _ref.children,
5016
+ bottom = _ref.bottom,
5017
+ root = _ref.root,
5018
+ intersection = _ref.intersection,
5019
+ onChange = _ref.onChange;
5020
+ var ensuredRef = core.useEnsureRef(ref);
5021
+
5022
+ var _useState = React.useState(false),
5023
+ _useState2 = _slicedToArray(_useState, 2),
5024
+ isSticky = _useState2[0],
5025
+ setIsSticky = _useState2[1];
5026
+
5027
+ useRegister(function (posInfo, refInfo, target, isIntersecting) {
5028
+ if (ensuredRef.current === target) {
5029
+ var value = intersection ? isIntersecting : bottom ? BOTTOM_TRIGGER(posInfo, refInfo) : TOP_TRIGGER(posInfo, refInfo);
5030
+
5031
+ if (value !== undefined) {
5032
+ setIsSticky(value);
5033
+ utils.callIfFunction(onChange, value);
5034
+ setSharedIsSticky(value);
5035
+ }
5036
+ }
5037
+ });
5038
+ React.useEffect(function () {
5039
+ setIsSticky(false);
5040
+ getObserver(utils.callIfFunction(root)).observe(ensuredRef.current);
5041
+ activeObserved = activeObserved.concat(ensuredRef.current);
5042
+ return function () {
5043
+ // observer.unobserve(ref.current)
5044
+ activeObserved = _without([ensuredRef.current], activeObserved);
5045
+ };
5046
+ }, []);
5047
+
5048
+ var renderSentinel = function renderSentinel() {
5049
+ var css = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
5050
+ return React__default.createElement(SentinelStyle, {
5051
+ addCss: css,
5052
+ className: className,
5053
+ ref: ensuredRef
5054
+ });
5055
+ };
5056
+
5057
+ return children ? children(renderSentinel, isSticky) : renderSentinel();
5058
+ });
5059
+ return [WithIsSticky, useSharedIsSticky, resetObservers];
5060
+ };
5061
+
5502
5062
  var FormatDate = function FormatDate(_ref) {
5503
5063
  var date = _ref.date,
5504
5064
  format = _ref.format,
@@ -5552,10 +5112,10 @@ var Image = React.forwardRef(function (_ref, ref) {
5552
5112
  }));
5553
5113
  });
5554
5114
 
5555
- function _templateObject$8() {
5115
+ function _templateObject$6() {
5556
5116
  var data = _taggedTemplateLiteral(["\n @supports (position: sticky) {\n top: 0;\n margin-right: -0.75rem;\n }\n "]);
5557
5117
 
5558
- _templateObject$8 = function _templateObject() {
5118
+ _templateObject$6 = function _templateObject() {
5559
5119
  return data;
5560
5120
  };
5561
5121
 
@@ -5564,20 +5124,10 @@ function _templateObject$8() {
5564
5124
  var DialogWithImageHeader = styled__default(Dialog).withConfig({
5565
5125
  displayName: "DialogWithImageHeader",
5566
5126
  componentId: "sc-1f1ry4g-0"
5567
- })(["max-width:51rem;", "{background:", ";text-shadow:none;color:rgba(120,120,120,1);font-size:20px;box-shadow:rgba(0,0,0,0.2) 0px 1px 3px 0px,rgba(0,0,0,0.05) 0px 0px 0px 1px;width:36px;height:36px;line-height:36px;transition:0.1s ease-out;:hover{background-color:rgb(230,230,230);}:active{background-color:rgb(220,220,220);transition:0s ease-out;}@supports (position:sticky){position:sticky;top:-2.5rem;right:0rem;float:right;margin-right:-1.25rem;margin-top:0.75rem;}", "}"], CloseIcon, utils.getColor('gray240'), utils.media.mobile(_templateObject$8()));
5568
-
5569
- function _templateObject3$3() {
5570
- var data = _taggedTemplateLiteral(["\n min-height: 100%;\n overflow: hidden;\n "]);
5571
-
5572
- _templateObject3$3 = function _templateObject3() {
5573
- return data;
5574
- };
5575
-
5576
- return data;
5577
- }
5127
+ })(["max-width:51rem;", "{background:", ";text-shadow:none;color:rgba(120,120,120,1);font-size:20px;box-shadow:rgba(0,0,0,0.2) 0px 1px 3px 0px,rgba(0,0,0,0.05) 0px 0px 0px 1px;width:36px;height:36px;line-height:36px;transition:0.1s ease-out;:hover{background-color:rgb(230,230,230);}:active{background-color:rgb(220,220,220);transition:0s ease-out;}@supports (position:sticky){position:sticky;top:-2.5rem;right:0rem;float:right;margin-right:-1.25rem;margin-top:0.75rem;}", "}"], CloseIcon, utils.getColor('gray240'), utils.media.mobile(_templateObject$6()));
5578
5128
 
5579
5129
  function _templateObject2$5() {
5580
- var data = _taggedTemplateLiteral(["\n font-size: 16px;\n "]);
5130
+ var data = _taggedTemplateLiteral(["\n min-height: 100%;\n overflow: hidden;\n "]);
5581
5131
 
5582
5132
  _templateObject2$5 = function _templateObject2() {
5583
5133
  return data;
@@ -5586,10 +5136,10 @@ function _templateObject2$5() {
5586
5136
  return data;
5587
5137
  }
5588
5138
 
5589
- function _templateObject$9() {
5139
+ function _templateObject$7() {
5590
5140
  var data = _taggedTemplateLiteral(["\n display:block;\n position:fixed;\n top:0;\n left:0;\n bottom:0;\n z-index:1000;\n transition: 0.25s transform ease-out;\n background-color: ", ";\n box-shadow: -5px 0 20px 5px rgba(0,0,0,0.4);\n border-radius: 0;\n ", "\n "]);
5591
5141
 
5592
- _templateObject$9 = function _templateObject() {
5142
+ _templateObject$7 = function _templateObject() {
5593
5143
  return data;
5594
5144
  };
5595
5145
 
@@ -5600,13 +5150,13 @@ var SideMenu = styled__default.div.withConfig({
5600
5150
  componentId: "suvg9r-0"
5601
5151
  })(["background-color:", ";border-top-left-radius:10px;border-bottom-left-radius:10px;width:19rem;flex-shrink:0;padding:1.25rem 0;", " ", ""], utils.getColor('gray240'), function (props) {
5602
5152
  return !props.visibleOnDesktop && 'display:none;';
5603
- }, utils.media.mobile(_templateObject$9(), utils.getColor('gray240'), function (props) {
5153
+ }, utils.media.mobile(_templateObject$7(), utils.getColor('gray240'), function (props) {
5604
5154
  return !props.isOpen && "\n transform: translateX(-100%);\n box-shadow: none;\n ";
5605
5155
  }));
5606
5156
  var DialogTabMenu = styled__default.ul.withConfig({
5607
5157
  displayName: "DialogWithSidebar__DialogTabMenu",
5608
5158
  componentId: "suvg9r-1"
5609
- })(["cursor:default;overflow:auto;text-align:left;color:inherit;user-select:none;li{position:relative;padding:1rem 2rem 1rem 4.1rem;font-size:14px;", ":hover{background-color:rgba(0,0,0,0.1);cursor:pointer;}&.selected{color:", ";background:rgba(0,132,214,0.125);pointer-events:none;}}.icon{position:absolute;left:1rem;top:50%;transform:translateY(-50%);width:3rem;text-align:center;line-height:0;font-size:26px;}", ""], utils.media.mobile(_templateObject2$5()), utils.getColor('main'), function (props) {
5159
+ })(["cursor:default;overflow:auto;text-align:left;color:inherit;user-select:none;li{position:relative;padding:1rem 2rem 1rem 4.1rem;font-size:14px;:hover{background-color:rgba(0,0,0,0.1);cursor:pointer;}&.selected{color:", ";background:rgba(0,132,214,0.125);pointer-events:none;}}.icon{position:absolute;left:1rem;top:50%;transform:translateY(-50%);width:3rem;text-align:center;line-height:0;font-size:26px;}", ""], utils.getColor('main'), function (props) {
5610
5160
  return props.menuTabIsOpen && "\n li {\n padding: 1.25rem 2rem 1.25rem 3.25rem;\n border-radius: 6px\n }\n .icon{\n left: 0;\n }\n ";
5611
5161
  });
5612
5162
 
@@ -5650,7 +5200,7 @@ var DialogWithSidebarPresentation = function DialogWithSidebarPresentation(_ref)
5650
5200
  visibleOnDesktop: true
5651
5201
  }, sidebar(tab)), React__default.createElement("div", {
5652
5202
  className: (menuTabIsOpen ? "menuTabIsOpen " : "") + "main-container"
5653
- }, React__default.createElement("h2", null, menuTabIsOpen ? "Configurações gerais" : React__default.createElement(React__default.Fragment, null, React__default.createElement("span", {
5203
+ }, React__default.createElement("h2", null, menuTabIsOpen ? "Configurações da página" : React__default.createElement(React__default.Fragment, null, React__default.createElement("span", {
5654
5204
  className: "icon icon-menu mobile-only",
5655
5205
  onClick: sideMenu.open
5656
5206
  }), title(tab))), React__default.createElement(React__default.Suspense, {
@@ -5693,7 +5243,7 @@ var DialogWithSidebar = styled__default(function (props) {
5693
5243
  }).withConfig({
5694
5244
  displayName: "DialogWithSidebar",
5695
5245
  componentId: "suvg9r-2"
5696
- })(["max-width:59rem;display:flex;padding:0;flex-direction:row;", ""], utils.media.mobile(_templateObject3$3()));
5246
+ })(["max-width:59rem;display:flex;padding:0;flex-direction:row;", ""], utils.media.mobile(_templateObject2$5()));
5697
5247
 
5698
5248
  var MobileBubbleDialogFooter = styled__default.div.withConfig({
5699
5249
  displayName: "MobileBubbleDialog__MobileBubbleDialogFooter",
@@ -5731,7 +5281,6 @@ var MobileBubbleDialog = styled__default(function (_ref) {
5731
5281
  })(["border-radius:10px;background-color:white;width:100%;margin:auto;position:relative;align-self:baseline;overflow:hidden;@supports (flex-wrap:wrap){display:flex;flex-direction:column;}"]);
5732
5282
 
5733
5283
  exports.AnimatedModal = AnimatedModal;
5734
- exports.AnimationBlockContainer = AnimationBlockContainer;
5735
5284
  exports.Button = Button;
5736
5285
  exports.CloseIcon = CloseIcon;
5737
5286
  exports.ConfirmDialog = ConfirmDialog;
@@ -5772,30 +5321,24 @@ exports.ListItem = ListItem;
5772
5321
  exports.ListMenu = ListMenu;
5773
5322
  exports.ListSeparator = ListSeparator;
5774
5323
  exports.Loading = Loading;
5775
- exports.LoadingBar = LoadingBar;
5776
5324
  exports.LoadingDiv = LoadingDiv;
5777
5325
  exports.MENU_TAB = MENU_TAB;
5778
5326
  exports.MobileBubbleDialog = MobileBubbleDialog;
5779
5327
  exports.Modal = Modal;
5780
5328
  exports.ModalContainer = ModalContainer;
5781
5329
  exports.Notifications = Notifications;
5782
- exports.OnClickLoadingButton = OnClickLoadingButton;
5783
5330
  exports.PageLoader = PageLoader;
5784
- exports.PersistentNotifications = PersistentNotifications;
5785
5331
  exports.Popup = Popup;
5786
5332
  exports.Reposition = Reposition;
5787
5333
  exports.SideMenu = SideMenu;
5788
5334
  exports.SimpleLi = SimpleLi;
5789
5335
  exports.SplitColumnsContainer = SplitColumnsContainer;
5790
5336
  exports.StickyContainer = StickyContainer;
5791
- exports.SuspenseLoadingBar = SuspenseLoadingBar;
5792
5337
  exports.SwitchDiv = SwitchDiv;
5793
5338
  exports.TextButton = TextButton;
5794
5339
  exports.Tooltip = Tooltip;
5795
5340
  exports.TransitionDiv = TransitionDiv;
5796
5341
  exports.WarningDialog = WarningDialog;
5797
- exports.WarningDialogIcon = WarningDialogIcon;
5798
- exports.WarningDialogTitle = WarningDialogTitle;
5799
5342
  exports.addPositioningBound = addPositioningBound;
5800
5343
  exports.contextMenuLayersQuantity = contextMenuLayersQuantity;
5801
5344
  exports.defaultAnimationMaker = defaultAnimationMaker;
@@ -5806,10 +5349,7 @@ exports.fixDoubledLastMarginBottom = fixDoubledLastMarginBottom;
5806
5349
  exports.formatAnimation = formatAnimation;
5807
5350
  exports.getClientRectAnimation = getClientRectAnimation;
5808
5351
  exports.getDialogLayersSize = getDialogLayersSize;
5809
- exports.hidePersistentNotifications = hidePersistentNotifications;
5810
- exports.isFakeScrolled = isFakeScrolled;
5811
5352
  exports.morph = morph;
5812
- exports.openPersistentNotification = openPersistentNotification;
5813
5353
  exports.preventDialogPop = preventDialogPop;
5814
5354
  exports.removeWindowScroll = removeWindowScroll;
5815
5355
  exports.setNotification = setNotification;
@@ -5822,7 +5362,6 @@ exports.useFlip = useFlip;
5822
5362
  exports.useFlipAnimation = useFlipAnimation;
5823
5363
  exports.useFlipEnter = useFlipEnter;
5824
5364
  exports.useFlipLeave = useFlipLeave;
5825
- exports.useIsHiddenPersistentNotifications = useIsHiddenPersistentNotifications;
5826
5365
  exports.useNotification = useNotification;
5827
5366
  exports.useNotificationRef = useNotificationRef;
5828
5367
  exports.usePositioning = usePositioning;