@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.
- package/dist/components/common/Modal.d.ts +2 -1
- package/dist/sdk.cjs.development.js +6 -4
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +6 -4
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/common/Modal.tsx +5 -4
- package/src/components/filter/FilterItem.tsx +2 -2
package/dist/sdk.esm.js
CHANGED
|
@@ -1455,7 +1455,9 @@ function Modal(_ref) {
|
|
|
1455
1455
|
_ref$isActive = _ref.isActive,
|
|
1456
1456
|
isActive = _ref$isActive === void 0 ? false : _ref$isActive,
|
|
1457
1457
|
onClose = _ref.onClose,
|
|
1458
|
-
title = _ref.title
|
|
1458
|
+
title = _ref.title,
|
|
1459
|
+
_ref$className = _ref.className,
|
|
1460
|
+
className = _ref$className === void 0 ? '' : _ref$className;
|
|
1459
1461
|
return React__default.createElement(Transition.Root, {
|
|
1460
1462
|
show: isActive,
|
|
1461
1463
|
as: Fragment
|
|
@@ -1484,7 +1486,7 @@ function Modal(_ref) {
|
|
|
1484
1486
|
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
1485
1487
|
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
1486
1488
|
}, React__default.createElement("div", {
|
|
1487
|
-
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"
|
|
1489
|
+
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"
|
|
1488
1490
|
}, React__default.createElement("div", {
|
|
1489
1491
|
className: "flex gap-4 mb-4 text-asphalt " + (title ? 'border-b-2 border-asphalt pb-4' : '')
|
|
1490
1492
|
}, title && React__default.createElement("h3", {
|
|
@@ -2741,7 +2743,7 @@ function FilterItem(_ref) {
|
|
|
2741
2743
|
className: "whitespace-nowrap"
|
|
2742
2744
|
}, filter.label), React__default.createElement(HiChevronDown, null))
|
|
2743
2745
|
}, React__default.createElement("form", {
|
|
2744
|
-
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'),
|
|
2746
|
+
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'),
|
|
2745
2747
|
onSubmit: handleApply
|
|
2746
2748
|
}, React__default.createElement("div", {
|
|
2747
2749
|
className: "flex flex-col items-start gap-1"
|
|
@@ -2757,7 +2759,7 @@ function FilterItem(_ref) {
|
|
|
2757
2759
|
checked: selected.includes(option.value.toString()),
|
|
2758
2760
|
onChange: handleInput
|
|
2759
2761
|
}), React__default.createElement("label", {
|
|
2760
|
-
className: "
|
|
2762
|
+
className: "leading-tight",
|
|
2761
2763
|
htmlFor: option.label
|
|
2762
2764
|
}, option.label));
|
|
2763
2765
|
})), filter.type === 'greaterThan' && filter.options && React__default.createElement("label", {
|