@cloudtower/eagle 0.34.23 → 0.34.24

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.
@@ -1,9 +1,9 @@
1
1
  import { ExclamationErrorCircleFill16RedIcon, XmarkCloseBold24TertiaryIcon, XmarkCloseBold24SecondaryIcon } from '@cloudtower/icons-react';
2
2
  import { cx } from '@linaria/core';
3
3
  import Button from '../Button/index.js';
4
+ import Icon from '../Icon/index.js';
4
5
  import { usePopModal } from '../KitStoreProvider/index.js';
5
6
  import { Typo } from '../Typo/index.js';
6
- import Icon from '../Icon/index.js';
7
7
  import OverflowTooltip from '../../coreX/OverflowTooltip/index.js';
8
8
  import useParrotTranslation from '../../hooks/useParrotTranslation.js';
9
9
  import { Modal } from 'antd';
@@ -60,6 +60,7 @@ function ImmersiveDialog(props) {
60
60
  okText,
61
61
  cancelText,
62
62
  error,
63
+ hideFooter = false,
63
64
  showFooterErrorIcon = true,
64
65
  visible = true,
65
66
  isContentFull,
@@ -86,6 +87,7 @@ function ImmersiveDialog(props) {
86
87
  "okText",
87
88
  "cancelText",
88
89
  "error",
90
+ "hideFooter",
89
91
  "showFooterErrorIcon",
90
92
  "visible",
91
93
  "isContentFull",
@@ -111,6 +113,8 @@ function ImmersiveDialog(props) {
111
113
  if (initializing) {
112
114
  return null;
113
115
  }
116
+ if (hideFooter)
117
+ return /* @__PURE__ */ React__default.createElement("div", null);
114
118
  return footer || /* @__PURE__ */ React__default.createElement("div", { className: FooterStyle }, /* @__PURE__ */ React__default.createElement("div", { className: FooterButtonStyle }, footerLeftAction, error && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("span", { className: cx(ErrorStyle, Typo.Label.l2_regular) }, showFooterErrorIcon && /* @__PURE__ */ React__default.createElement(
115
119
  ExclamationErrorCircleFill16RedIcon,
116
120
  {
@@ -153,6 +157,7 @@ function ImmersiveDialog(props) {
153
157
  ) : null));
154
158
  }, [
155
159
  initializing,
160
+ hideFooter,
156
161
  footer,
157
162
  footerLeftAction,
158
163
  error,
@@ -178,7 +183,8 @@ function ImmersiveDialog(props) {
178
183
  isContentFull ? FullContentStyle : MultiAreaStyle,
179
184
  className,
180
185
  {
181
- "initializing-error": initializingError
186
+ "initializing-error": initializingError,
187
+ "no-footer": hideFooter
182
188
  }
183
189
  ),
184
190
  closeIcon: closeIcon != null ? closeIcon : /* @__PURE__ */ React__default.createElement(
@@ -1,5 +1,5 @@
1
- import React__default from 'react';
2
1
  import { cx } from '@linaria/core';
2
+ import React__default from 'react';
3
3
  import { Typo } from '../Typo/index.js';
4
4
  import { SmallDialog } from '../SmallDialog/SmallDialog.js';
5
5
 
@@ -1,14 +1,14 @@
1
1
  import { ExclamationErrorCircleFill16RedIcon, XmarkCloseBold24TertiaryIcon, XmarkCloseBold24SecondaryIcon } from '@cloudtower/icons-react';
2
2
  import { cx } from '@linaria/core';
3
3
  import { usePopModal } from '../KitStoreProvider/index.js';
4
+ import useParrotTranslation from '../../hooks/useParrotTranslation.js';
4
5
  import { Modal } from 'antd';
5
- import React__default from 'react';
6
6
  import cs from 'classnames';
7
+ import React__default from 'react';
7
8
  import OverflowTooltip from '../../coreX/OverflowTooltip/index.js';
8
9
  import { Show } from '../../coreX/Show/index.js';
9
10
  import { FooterStyle, ErrorTextStyle, DialogStyle, CloseIconStyle } from './SmallDialog.style.js';
10
11
  import { ModelTitleSkeleton, ModelContentSkeleton, ModelInitializingError } from './SmallDialog.widget.js';
11
- import useParrotTranslation from '../../hooks/useParrotTranslation.js';
12
12
  import Icon from '../Icon/index.js';
13
13
  import Button from '../Button/index.js';
14
14
  import { Flex } from 'antd5';
@@ -51,6 +51,7 @@ const SmallDialog = ({
51
51
  okButtonProps,
52
52
  cancelButtonProps,
53
53
  children,
54
+ hideFooter = false,
54
55
  showFooterErrorIcon = true,
55
56
  error,
56
57
  confirmLoading,
@@ -84,7 +85,7 @@ const SmallDialog = ({
84
85
  visible: true,
85
86
  width,
86
87
  title: initializing ? /* @__PURE__ */ React__default.createElement(ModelTitleSkeleton, null) : /* @__PURE__ */ React__default.createElement(CustomTitleRender, { title: title || defaultTitle }),
87
- footer: initializing ? null : /* @__PURE__ */ React__default.createElement(
88
+ footer: initializing ? null : hideFooter ? /* @__PURE__ */ React__default.createElement("div", null) : /* @__PURE__ */ React__default.createElement(
88
89
  "div",
89
90
  {
90
91
  className: cs(FooterStyle, footerClassName, {
@@ -137,7 +138,8 @@ const SmallDialog = ({
137
138
  closable,
138
139
  maskClosable,
139
140
  className: cs(DialogStyle, className, {
140
- "initializing-error": initializingError
141
+ "initializing-error": initializingError,
142
+ "no-footer": hideFooter
141
143
  }),
142
144
  closeIcon: /* @__PURE__ */ React__default.createElement(
143
145
  Icon,