@bigbinary/neeto-rules-frontend 0.7.0 → 0.7.1
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.cjs.js +21 -56
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +21 -56
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -441,9 +441,8 @@ var EventsDetail = function EventsDetail(_ref) {
|
|
|
441
441
|
|
|
442
442
|
function ownKeys$q(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; }
|
|
443
443
|
function _objectSpread$o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$q(Object(t), !0).forEach(function (r) { _defineProperty$2(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
444
|
-
var RulePreview =
|
|
445
|
-
var
|
|
446
|
-
isLoading = _ref.isLoading,
|
|
444
|
+
var RulePreview = function RulePreview(_ref) {
|
|
445
|
+
var isLoading = _ref.isLoading,
|
|
447
446
|
ruleDetails = _ref.ruleDetails,
|
|
448
447
|
isOpen = _ref.isOpen,
|
|
449
448
|
onClose = _ref.onClose,
|
|
@@ -457,67 +456,33 @@ var RulePreview = withT(function (_ref) {
|
|
|
457
456
|
children: /*#__PURE__*/jsxs("div", {
|
|
458
457
|
className: "flex items-center justify-between gap-x-3",
|
|
459
458
|
children: [/*#__PURE__*/jsx$1(Typography, {
|
|
460
|
-
|
|
459
|
+
className: "line-clamp-2",
|
|
460
|
+
style: "h4",
|
|
461
461
|
weight: "semibold",
|
|
462
|
-
children:
|
|
462
|
+
children: ruleDetails.name.value
|
|
463
463
|
}), isNotEmpty(moreDropdownProps) && /*#__PURE__*/jsx$1(MoreDropdown, _objectSpread$o({}, moreDropdownProps))]
|
|
464
464
|
})
|
|
465
465
|
}), /*#__PURE__*/jsx$1(Pane.Body, {
|
|
466
466
|
children: /*#__PURE__*/jsxs("div", {
|
|
467
|
-
className: "w-full",
|
|
467
|
+
className: "mt-2 w-full",
|
|
468
468
|
children: [/*#__PURE__*/jsxs("div", {
|
|
469
|
-
className: "
|
|
470
|
-
children: [/*#__PURE__*/
|
|
471
|
-
className: "
|
|
469
|
+
className: "mb-6",
|
|
470
|
+
children: [ruleDetails.description && /*#__PURE__*/jsx$1(Typography, {
|
|
471
|
+
className: "my-auto mb-4",
|
|
472
|
+
style: "body2",
|
|
473
|
+
children: ruleDetails.description.value
|
|
474
|
+
}), ruleDetails.entity && /*#__PURE__*/jsxs("div", {
|
|
475
|
+
className: "flex space-x-8",
|
|
472
476
|
children: [/*#__PURE__*/jsx$1(Typography, {
|
|
473
|
-
className: "neeto-ui-text-gray-
|
|
477
|
+
className: "neeto-ui-text-gray-800 col-span-1",
|
|
474
478
|
style: "h5",
|
|
475
479
|
weight: "semibold",
|
|
476
|
-
children:
|
|
477
|
-
}), /*#__PURE__*/jsx$1(
|
|
478
|
-
className: "
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
weight: "normal",
|
|
483
|
-
children: ruleDetails.name.value
|
|
484
|
-
})
|
|
485
|
-
})]
|
|
486
|
-
}), ruleDetails.description && /*#__PURE__*/jsxs(Fragment, {
|
|
487
|
-
children: [/*#__PURE__*/jsx$1("hr", {}), /*#__PURE__*/jsxs("div", {
|
|
488
|
-
className: "my-3 flex flex-wrap justify-between gap-x-2",
|
|
489
|
-
children: [/*#__PURE__*/jsx$1(Typography, {
|
|
490
|
-
className: "neeto-ui-text-gray-700 my-auto",
|
|
491
|
-
style: "h5",
|
|
492
|
-
weight: "semibold",
|
|
493
|
-
children: t("neetoRules.common.description")
|
|
494
|
-
}), /*#__PURE__*/jsx$1("div", {
|
|
495
|
-
className: "flex w-72 flex-wrap",
|
|
496
|
-
children: /*#__PURE__*/jsx$1(Typography, {
|
|
497
|
-
className: "neeto-ui-text-gray-800 my-auto",
|
|
498
|
-
style: "h5",
|
|
499
|
-
weight: "normal",
|
|
500
|
-
children: ruleDetails.description.value
|
|
501
|
-
})
|
|
502
|
-
})]
|
|
503
|
-
})]
|
|
504
|
-
}), ruleDetails.entity && /*#__PURE__*/jsxs(Fragment, {
|
|
505
|
-
children: [/*#__PURE__*/jsx$1("hr", {}), /*#__PURE__*/jsxs("div", {
|
|
506
|
-
className: "my-3 flex flex-wrap justify-between gap-x-2",
|
|
507
|
-
children: [/*#__PURE__*/jsx$1(Typography, {
|
|
508
|
-
className: "neeto-ui-text-gray-700 my-auto",
|
|
509
|
-
style: "h5",
|
|
510
|
-
weight: "semibold",
|
|
511
|
-
children: ruleDetails.entity.label
|
|
512
|
-
}), /*#__PURE__*/jsx$1("div", {
|
|
513
|
-
className: "flex w-72 flex-wrap",
|
|
514
|
-
children: /*#__PURE__*/jsx$1(Typography, {
|
|
515
|
-
className: "neeto-ui-text-gray-800 my-auto",
|
|
516
|
-
style: "h5",
|
|
517
|
-
weight: "normal",
|
|
518
|
-
children: ruleDetails.entity.value
|
|
519
|
-
})
|
|
520
|
-
})]
|
|
480
|
+
children: ruleDetails.entity.label
|
|
481
|
+
}), /*#__PURE__*/jsx$1(Typography, {
|
|
482
|
+
className: "neeto-ui-text-gray-800 col-span-2",
|
|
483
|
+
style: "h5",
|
|
484
|
+
weight: "normal",
|
|
485
|
+
children: ruleDetails.entity.value
|
|
521
486
|
})]
|
|
522
487
|
})]
|
|
523
488
|
}), /*#__PURE__*/jsx$1(EventsDetail, {
|
|
@@ -531,7 +496,7 @@ var RulePreview = withT(function (_ref) {
|
|
|
531
496
|
})]
|
|
532
497
|
})
|
|
533
498
|
});
|
|
534
|
-
}
|
|
499
|
+
};
|
|
535
500
|
|
|
536
501
|
function _typeof$2(o) {
|
|
537
502
|
"@babel/helpers - typeof";
|