@cloudtower/eagle 0.33.13 → 0.33.14

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.
@@ -0,0 +1,6 @@
1
+ const BasicBanner = "E_bpgac8u";
2
+ const ErrorBanner = "E_envn4g3";
3
+ const InfoBanner = "E_i12w18eu";
4
+ const WarningBanner = "E_wujsnt4";
5
+
6
+ export { BasicBanner, ErrorBanner, InfoBanner, WarningBanner };
@@ -0,0 +1,25 @@
1
+ import { InfoICircleFill16OntintIcon } from '@cloudtower/icons-react';
2
+ import Icon from '../Icon/index.js';
3
+ import { Typo } from '../Typo/index.js';
4
+ import cs from 'classnames';
5
+ import React__default from 'react';
6
+ import { BasicBanner, ErrorBanner, InfoBanner, WarningBanner } from './banner.style.js';
7
+ import { Show } from '../../coreX/Show/index.js';
8
+
9
+ const Banner = ({ message, type, btnProps }) => {
10
+ return /* @__PURE__ */ React__default.createElement("div", { id: "global-banner" }, /* @__PURE__ */ React__default.createElement(
11
+ "div",
12
+ {
13
+ className: cs(Typo.Label.l3_bold, BasicBanner, {
14
+ [ErrorBanner]: type === "error",
15
+ [InfoBanner]: type === "info",
16
+ [WarningBanner]: type === "warning"
17
+ })
18
+ },
19
+ /* @__PURE__ */ React__default.createElement(Icon, { src: InfoICircleFill16OntintIcon }),
20
+ /* @__PURE__ */ React__default.createElement("span", null, message),
21
+ /* @__PURE__ */ React__default.createElement(Show, { condition: !(btnProps == null ? void 0 : btnProps.hide) }, /* @__PURE__ */ React__default.createElement("span", { className: "dashed-btn", onClick: btnProps == null ? void 0 : btnProps.onClick }, btnProps == null ? void 0 : btnProps.text))
22
+ ));
23
+ };
24
+
25
+ export { Banner };
package/dist/esm/index.js CHANGED
@@ -114,6 +114,7 @@ export { ColumnTitle, EmptyRowMenu, KitTableContext, TableLoading } from './core
114
114
  export { ValidateTriggerType } from './core/TableForm/types.js';
115
115
  export { Timeline } from './core/Timeline/index.js';
116
116
  export { Typo } from './core/Typo/index.js';
117
+ export { Banner } from './core/Banner/index.js';
117
118
  export { default as BarChart, getWidth } from './coreX/BarChart/index.js';
118
119
  export { default as BatchOperation, renderBatchOperationMenuItem } from './coreX/BatchOperation/index.js';
119
120
  export { default as ChartWithTooltip, ChartWithUnit } from './coreX/ChartWithTooltip/index.js';