@cloudtower/eagle 0.34.23 → 0.34.25

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.
@@ -3,9 +3,9 @@
3
3
  var iconsReact = require('@cloudtower/icons-react');
4
4
  var core = require('@linaria/core');
5
5
  var index$3 = require('../Button/index.js');
6
+ var index$4 = require('../Icon/index.js');
6
7
  var index = require('../KitStoreProvider/index.js');
7
8
  var index$1 = require('../Typo/index.js');
8
- var index$4 = require('../Icon/index.js');
9
9
  var index$2 = require('../../coreX/OverflowTooltip/index.js');
10
10
  var useParrotTranslation = require('../../hooks/useParrotTranslation.js');
11
11
  var antd = require('antd');
@@ -67,6 +67,7 @@ function ImmersiveDialog(props) {
67
67
  okText,
68
68
  cancelText,
69
69
  error,
70
+ hideFooter = false,
70
71
  showFooterErrorIcon = true,
71
72
  visible = true,
72
73
  isContentFull,
@@ -93,6 +94,7 @@ function ImmersiveDialog(props) {
93
94
  "okText",
94
95
  "cancelText",
95
96
  "error",
97
+ "hideFooter",
96
98
  "showFooterErrorIcon",
97
99
  "visible",
98
100
  "isContentFull",
@@ -118,6 +120,8 @@ function ImmersiveDialog(props) {
118
120
  if (initializing) {
119
121
  return null;
120
122
  }
123
+ if (hideFooter)
124
+ return /* @__PURE__ */ React__default.default.createElement("div", null);
121
125
  return footer || /* @__PURE__ */ React__default.default.createElement("div", { className: styles.FooterStyle }, /* @__PURE__ */ React__default.default.createElement("div", { className: styles.FooterButtonStyle }, footerLeftAction, error && /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement("span", { className: core.cx(styles.ErrorStyle, index$1.Typo.Label.l2_regular) }, showFooterErrorIcon && /* @__PURE__ */ React__default.default.createElement(
122
126
  iconsReact.ExclamationErrorCircleFill16RedIcon,
123
127
  {
@@ -160,6 +164,7 @@ function ImmersiveDialog(props) {
160
164
  ) : null));
161
165
  }, [
162
166
  initializing,
167
+ hideFooter,
163
168
  footer,
164
169
  footerLeftAction,
165
170
  error,
@@ -185,7 +190,8 @@ function ImmersiveDialog(props) {
185
190
  isContentFull ? styles.FullContentStyle : styles.MultiAreaStyle,
186
191
  className,
187
192
  {
188
- "initializing-error": initializingError
193
+ "initializing-error": initializingError,
194
+ "no-footer": hideFooter
189
195
  }
190
196
  ),
191
197
  closeIcon: closeIcon != null ? closeIcon : /* @__PURE__ */ React__default.default.createElement(
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var React = require('react');
4
3
  var core = require('@linaria/core');
4
+ var React = require('react');
5
5
  var index = require('../Typo/index.js');
6
6
  var SmallDialog = require('../SmallDialog/SmallDialog.js');
7
7
 
@@ -3,14 +3,14 @@
3
3
  var iconsReact = require('@cloudtower/icons-react');
4
4
  var core = require('@linaria/core');
5
5
  var index = require('../KitStoreProvider/index.js');
6
+ var useParrotTranslation = require('../../hooks/useParrotTranslation.js');
6
7
  var antd = require('antd');
7
- var React = require('react');
8
8
  var cs = require('classnames');
9
+ var React = require('react');
9
10
  var index$4 = require('../../coreX/OverflowTooltip/index.js');
10
11
  var index$1 = require('../../coreX/Show/index.js');
11
12
  var SmallDialog_style = require('./SmallDialog.style.js');
12
13
  var SmallDialog_widget = require('./SmallDialog.widget.js');
13
- var useParrotTranslation = require('../../hooks/useParrotTranslation.js');
14
14
  var index$3 = require('../Icon/index.js');
15
15
  var index$5 = require('../Button/index.js');
16
16
  var antd5 = require('antd5');
@@ -18,8 +18,8 @@ var index$2 = require('../Typo/index.js');
18
18
 
19
19
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
20
20
 
21
- var React__default = /*#__PURE__*/_interopDefault(React);
22
21
  var cs__default = /*#__PURE__*/_interopDefault(cs);
22
+ var React__default = /*#__PURE__*/_interopDefault(React);
23
23
 
24
24
  var __defProp = Object.defineProperty;
25
25
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
@@ -58,6 +58,7 @@ const SmallDialog = ({
58
58
  okButtonProps,
59
59
  cancelButtonProps,
60
60
  children,
61
+ hideFooter = false,
61
62
  showFooterErrorIcon = true,
62
63
  error,
63
64
  confirmLoading,
@@ -91,7 +92,7 @@ const SmallDialog = ({
91
92
  visible: true,
92
93
  width,
93
94
  title: initializing ? /* @__PURE__ */ React__default.default.createElement(SmallDialog_widget.ModelTitleSkeleton, null) : /* @__PURE__ */ React__default.default.createElement(CustomTitleRender, { title: title || defaultTitle }),
94
- footer: initializing ? null : /* @__PURE__ */ React__default.default.createElement(
95
+ footer: initializing ? null : hideFooter ? /* @__PURE__ */ React__default.default.createElement("div", null) : /* @__PURE__ */ React__default.default.createElement(
95
96
  "div",
96
97
  {
97
98
  className: cs__default.default(SmallDialog_style.FooterStyle, footerClassName, {
@@ -144,7 +145,8 @@ const SmallDialog = ({
144
145
  closable,
145
146
  maskClosable,
146
147
  className: cs__default.default(SmallDialog_style.DialogStyle, className, {
147
- "initializing-error": initializingError
148
+ "initializing-error": initializingError,
149
+ "no-footer": hideFooter
148
150
  }),
149
151
  closeIcon: /* @__PURE__ */ React__default.default.createElement(
150
152
  index$3,