@broxus/react-uikit 0.5.2 → 0.5.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.
@@ -6,7 +6,6 @@ export interface ModalProps extends Omit<DialogProps, 'afterClose'> {
6
6
  direction?: Direction;
7
7
  full?: boolean;
8
8
  getContainer?: string | HTMLElement | (() => HTMLElement) | false;
9
- type?: 'info' | 'success' | 'warning' | 'error' | 'confirm';
10
9
  onClosed?: VoidFunction;
11
10
  }
12
11
  export declare const Modal: React.MemoExoticComponent<(props: ModalProps) => React.JSX.Element>;
@@ -56,7 +56,7 @@ exports.Modal = React.memo((props) => {
56
56
  return (React.createElement(rc_dialog_1.default, { className: (0, classnames_1.default)(className, {
57
57
  [`${rootCls}-centered`]: centered && !full,
58
58
  [`${rootCls}-full`]: full && !centered,
59
- }), focusTriggerAfterClose: focusTriggerAfterClose, maskTransitionName: defaultMaskTransitionName, mousePosition: mousePosition, prefixCls: rootCls, transitionName: defaultTransitionName, visible: visible, ...restProps, afterClose: onClosed, closable: false, closeIcon: null },
59
+ }), focusTriggerAfterClose: focusTriggerAfterClose, maskTransitionName: defaultMaskTransitionName, mousePosition: mousePosition, prefixCls: rootCls, transitionName: defaultTransitionName, visible: visible, ...restProps, onClose: onClose, afterClose: onClosed, closable: false, closeIcon: null },
60
60
  closable
61
61
  && (closeIcon || (React.createElement(Close_1.Close, { className: (0, classnames_1.default)({
62
62
  [`${rootCls}-close-default`]: !full,
@@ -347,7 +347,7 @@
347
347
  // ========================================================================
348
348
 
349
349
  :root {
350
- --modal-z-index: #{$global-z-index + 10};
350
+ --modal-z-index: calc(var(--global-z-index) + 10);
351
351
  --modal-mask-background: #{$modal-mask-background};
352
352
  --modal-padding-horizontal: #{$modal-padding-horizontal};
353
353
  --modal-padding-horizontal-s: var(--global-gutter);