@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 CHANGED
@@ -492,9 +492,8 @@ var EventsDetail = function EventsDetail(_ref) {
492
492
 
493
493
  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; }
494
494
  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; }
495
- var RulePreview = reactUtils.withT(function (_ref) {
496
- var t = _ref.t,
497
- isLoading = _ref.isLoading,
495
+ var RulePreview = function RulePreview(_ref) {
496
+ var isLoading = _ref.isLoading,
498
497
  ruleDetails = _ref.ruleDetails,
499
498
  isOpen = _ref.isOpen,
500
499
  onClose = _ref.onClose,
@@ -508,67 +507,33 @@ var RulePreview = reactUtils.withT(function (_ref) {
508
507
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
509
508
  className: "flex items-center justify-between gap-x-3",
510
509
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
511
- style: "h2",
510
+ className: "line-clamp-2",
511
+ style: "h4",
512
512
  weight: "semibold",
513
- children: t("neetoRules.labels.ruleSummary")
513
+ children: ruleDetails.name.value
514
514
  }), neetoCist.isNotEmpty(moreDropdownProps) && /*#__PURE__*/jsxRuntime.jsx(MoreDropdown__default["default"], _objectSpread$o({}, moreDropdownProps))]
515
515
  })
516
516
  }), /*#__PURE__*/jsxRuntime.jsx(Pane__default["default"].Body, {
517
517
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
518
- className: "w-full",
518
+ className: "mt-2 w-full",
519
519
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
520
- className: "neeto-ui-rounded mb-4 border p-4",
521
- children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
522
- className: "mb-3 flex flex-wrap justify-between gap-x-4",
520
+ className: "mb-6",
521
+ children: [ruleDetails.description && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
522
+ className: "my-auto mb-4",
523
+ style: "body2",
524
+ children: ruleDetails.description.value
525
+ }), ruleDetails.entity && /*#__PURE__*/jsxRuntime.jsxs("div", {
526
+ className: "flex space-x-8",
523
527
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
524
- className: "neeto-ui-text-gray-700 my-auto",
528
+ className: "neeto-ui-text-gray-800 col-span-1",
525
529
  style: "h5",
526
530
  weight: "semibold",
527
- children: t("neetoRules.common.name")
528
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
529
- className: "flex w-72 flex-wrap",
530
- children: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
531
- className: "neeto-ui-text-gray-800 my-auto",
532
- style: "h5",
533
- weight: "normal",
534
- children: ruleDetails.name.value
535
- })
536
- })]
537
- }), ruleDetails.description && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
538
- children: [/*#__PURE__*/jsxRuntime.jsx("hr", {}), /*#__PURE__*/jsxRuntime.jsxs("div", {
539
- className: "my-3 flex flex-wrap justify-between gap-x-2",
540
- children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
541
- className: "neeto-ui-text-gray-700 my-auto",
542
- style: "h5",
543
- weight: "semibold",
544
- children: t("neetoRules.common.description")
545
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
546
- className: "flex w-72 flex-wrap",
547
- children: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
548
- className: "neeto-ui-text-gray-800 my-auto",
549
- style: "h5",
550
- weight: "normal",
551
- children: ruleDetails.description.value
552
- })
553
- })]
554
- })]
555
- }), ruleDetails.entity && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
556
- children: [/*#__PURE__*/jsxRuntime.jsx("hr", {}), /*#__PURE__*/jsxRuntime.jsxs("div", {
557
- className: "my-3 flex flex-wrap justify-between gap-x-2",
558
- children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
559
- className: "neeto-ui-text-gray-700 my-auto",
560
- style: "h5",
561
- weight: "semibold",
562
- children: ruleDetails.entity.label
563
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
564
- className: "flex w-72 flex-wrap",
565
- children: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
566
- className: "neeto-ui-text-gray-800 my-auto",
567
- style: "h5",
568
- weight: "normal",
569
- children: ruleDetails.entity.value
570
- })
571
- })]
531
+ children: ruleDetails.entity.label
532
+ }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
533
+ className: "neeto-ui-text-gray-800 col-span-2",
534
+ style: "h5",
535
+ weight: "normal",
536
+ children: ruleDetails.entity.value
572
537
  })]
573
538
  })]
574
539
  }), /*#__PURE__*/jsxRuntime.jsx(EventsDetail, {
@@ -582,7 +547,7 @@ var RulePreview = reactUtils.withT(function (_ref) {
582
547
  })]
583
548
  })
584
549
  });
585
- });
550
+ };
586
551
 
587
552
  function _typeof$2(o) {
588
553
  "@babel/helpers - typeof";