@trops/dash-react 1.0.8 → 1.0.9
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/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2908,7 +2908,7 @@ var Toast3 = function Toast3(props) {
|
|
|
2908
2908
|
};
|
|
2909
2909
|
|
|
2910
2910
|
function _typeof$t(o) { "@babel/helpers - typeof"; return _typeof$t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$t(o); }
|
|
2911
|
-
var _excluded$m = ["title", "children", "footer", "actions", "onRemove", "onSettings", "onRefresh", "className"];
|
|
2911
|
+
var _excluded$m = ["title", "children", "footer", "actions", "onRemove", "onSettings", "onRefresh", "onPopout", "className"];
|
|
2912
2912
|
function ownKeys$n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2913
2913
|
function _objectSpread$n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$n(Object(t), !0).forEach(function (r) { _defineProperty$o(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2914
2914
|
function _defineProperty$o(e, r, t) { return (r = _toPropertyKey$s(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -2930,6 +2930,8 @@ var WidgetChrome = function WidgetChrome(_ref) {
|
|
|
2930
2930
|
onSettings = _ref$onSettings === void 0 ? null : _ref$onSettings,
|
|
2931
2931
|
_ref$onRefresh = _ref.onRefresh,
|
|
2932
2932
|
onRefresh = _ref$onRefresh === void 0 ? null : _ref$onRefresh,
|
|
2933
|
+
_ref$onPopout = _ref.onPopout,
|
|
2934
|
+
onPopout = _ref$onPopout === void 0 ? null : _ref$onPopout,
|
|
2933
2935
|
_ref$className = _ref.className,
|
|
2934
2936
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
2935
2937
|
props = _objectWithoutProperties$m(_ref, _excluded$m);
|
|
@@ -2950,7 +2952,10 @@ var WidgetChrome = function WidgetChrome(_ref) {
|
|
|
2950
2952
|
children: title
|
|
2951
2953
|
}), /*#__PURE__*/jsxs("div", {
|
|
2952
2954
|
className: "flex items-center space-x-2",
|
|
2953
|
-
children: [actions,
|
|
2955
|
+
children: [actions, onPopout && /*#__PURE__*/jsx(ButtonIcon, {
|
|
2956
|
+
icon: "arrow-up-right-from-square",
|
|
2957
|
+
onClick: onPopout
|
|
2958
|
+
}), onRefresh && /*#__PURE__*/jsx(ButtonIcon, {
|
|
2954
2959
|
icon: "arrows-up-down",
|
|
2955
2960
|
onClick: onRefresh
|
|
2956
2961
|
}), onSettings && /*#__PURE__*/jsx(ButtonIcon, {
|