@cloudtower/eagle 0.32.9 → 0.32.11

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,3 +1,4 @@
1
+ import { XmarkRemove16RegularTertiaryCapsOffIcon, XmarkRemove16RegularPrimaryCapsOffIcon } from '@cloudtower/icons-react';
1
2
  import Icon from '../Icon/index.js';
2
3
  import { Alert as Alert$2 } from 'antd';
3
4
  import cs from 'classnames';
@@ -44,14 +45,16 @@ const Alert = _a => {
44
45
  onClose,
45
46
  closeText,
46
47
  action,
47
- message
48
+ message,
49
+ closable
48
50
  } = _b,
49
- props = __objRest(_b, ["type", "icon", "showIcon", "className", "onClose", "closeText", "action", "message"]);
51
+ props = __objRest(_b, ["type", "icon", "showIcon", "className", "onClose", "closeText", "action", "message", "closable"]);
50
52
  const _icon = /* @__PURE__ */React__default.createElement(Icon, {
51
53
  alt: type,
52
54
  src: getAlertIcon(type)
53
55
  });
54
56
  const _type = type === "normal" ? "info" : type;
57
+ const _closable = closable || Boolean(onClose) || Boolean(closeText);
55
58
  return /* @__PURE__ */React__default.createElement(Alert$2, __spreadProps(__spreadValues({}, props), {
56
59
  className: cs(AlertStyle, type ? `alert-${type}` : "", className, {
57
60
  action
@@ -69,8 +72,11 @@ const Alert = _a => {
69
72
  icon: icon || _icon,
70
73
  showIcon,
71
74
  onClose,
72
- closeText,
73
- closable: !!onClose
75
+ closeText: closeText || _closable && /* @__PURE__ */React__default.createElement(Icon, {
76
+ src: XmarkRemove16RegularTertiaryCapsOffIcon,
77
+ hoverSrc: XmarkRemove16RegularPrimaryCapsOffIcon
78
+ }),
79
+ closable: _closable
74
80
  }));
75
81
  };
76
82
  var Alert$1 = Alert;
@@ -128,7 +128,8 @@ const TableFormBodyCell = (props) => {
128
128
  },
129
129
  onBlur: _onBlur,
130
130
  rowIndex,
131
- error: isCellErrorStyle
131
+ error: isCellErrorStyle,
132
+ formValue: data
132
133
  }) : renderDefaultComponent();
133
134
  const CellDescription = useMemo(() => {
134
135
  var _a;
@@ -71,7 +71,8 @@ const BatchInputListHeaderCell = (props) => {
71
71
  isHeader: true,
72
72
  disabled,
73
73
  onChange: headerOnChange,
74
- onBlur: headerOnBlur
74
+ onBlur: headerOnBlur,
75
+ formValue: data
75
76
  });
76
77
  }
77
78
  if (disableBatchFilling) {
@@ -89,7 +90,8 @@ const BatchInputListHeaderCell = (props) => {
89
90
  isHeader: true,
90
91
  disabled,
91
92
  onChange: headerOnChange,
92
- onBlur: headerOnBlur
93
+ onBlur: headerOnBlur,
94
+ formValue: data
93
95
  }) : renderDefaultComponent()
94
96
  );
95
97
  };