@star-insure/sdk 3.2.12 → 3.2.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.
@@ -4,6 +4,7 @@ interface Props {
4
4
  isActive?: boolean;
5
5
  onClose: () => void;
6
6
  title?: string;
7
+ className?: string;
7
8
  }
8
- export default function Modal({ children, isActive, onClose, title }: Props): JSX.Element;
9
+ export default function Modal({ children, isActive, onClose, title, className }: Props): JSX.Element;
9
10
  export {};
@@ -1462,7 +1462,9 @@ function Modal(_ref) {
1462
1462
  _ref$isActive = _ref.isActive,
1463
1463
  isActive = _ref$isActive === void 0 ? false : _ref$isActive,
1464
1464
  onClose = _ref.onClose,
1465
- title = _ref.title;
1465
+ title = _ref.title,
1466
+ _ref$className = _ref.className,
1467
+ className = _ref$className === void 0 ? '' : _ref$className;
1466
1468
  return React__default.createElement(react$1.Transition.Root, {
1467
1469
  show: isActive,
1468
1470
  as: React.Fragment
@@ -1491,7 +1493,7 @@ function Modal(_ref) {
1491
1493
  leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
1492
1494
  leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
1493
1495
  }, React__default.createElement("div", {
1494
- className: "w-full align-start inline-block bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-3xl sm:p-6"
1496
+ className: className + " w-full align-start inline-block bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-3xl sm:p-6"
1495
1497
  }, React__default.createElement("div", {
1496
1498
  className: "flex gap-4 mb-4 text-asphalt " + (title ? 'border-b-2 border-asphalt pb-4' : '')
1497
1499
  }, title && React__default.createElement("h3", {
@@ -2748,7 +2750,7 @@ function FilterItem(_ref) {
2748
2750
  className: "whitespace-nowrap"
2749
2751
  }, filter.label), React__default.createElement(hi2.HiChevronDown, null))
2750
2752
  }, React__default.createElement("form", {
2751
- className: "mt-2 flex max-h-[350px] min-w-[200px] flex-col gap-2 rounded-md border border-gray-300 bg-white p-4 shadow-lg " + (filter.type && filter.type === 'select' ? '' : 'overflow-y-scroll'),
2753
+ className: "mt-2 flex max-h-[350px] min-w-[200px] max-w-[220px] flex-col gap-2 rounded-md border border-gray-300 bg-white p-4 shadow-lg " + (filter.type && filter.type === 'select' ? '' : 'overflow-y-scroll'),
2752
2754
  onSubmit: handleApply
2753
2755
  }, React__default.createElement("div", {
2754
2756
  className: "flex flex-col items-start gap-1"
@@ -2764,7 +2766,7 @@ function FilterItem(_ref) {
2764
2766
  checked: selected.includes(option.value.toString()),
2765
2767
  onChange: handleInput
2766
2768
  }), React__default.createElement("label", {
2767
- className: "whitespace-nowrap",
2769
+ className: "leading-tight",
2768
2770
  htmlFor: option.label
2769
2771
  }, option.label));
2770
2772
  })), filter.type === 'greaterThan' && filter.options && React__default.createElement("label", {