@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.
- package/dist/cjs/core/ImmersiveDialog/index.js +8 -2
- package/dist/cjs/core/MediumDialog/MediumDialog.js +1 -1
- package/dist/cjs/core/SmallDialog/SmallDialog.js +7 -5
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +2452 -2430
- package/dist/esm/core/ImmersiveDialog/index.js +8 -2
- package/dist/esm/core/MediumDialog/MediumDialog.js +1 -1
- package/dist/esm/core/SmallDialog/SmallDialog.js +6 -4
- package/dist/esm/stats1.html +1 -1
- package/dist/linaria.merged.scss +3160 -3131
- package/dist/src/core/ImmersiveDialog/type.d.ts +2 -0
- package/dist/src/core/SmallDialog/SmallDialog.type.d.ts +2 -0
- package/dist/stories/docs/core/ImmersiveDialog.stories.d.ts +5 -0
- package/dist/stories/docs/core/MediumDialog.stories.d.ts +5 -1
- package/dist/stories/docs/core/SmallDialog.stories.d.ts +5 -1
- package/dist/stories/docs/core/WizardDialog.stories.d.ts +2 -0
- package/dist/style.css +2452 -2430
- package/package.json +4 -4
|
@@ -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,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,
|