@star-insure/sdk 3.2.13 → 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 +4 -2
- 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 +4 -2
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/common/Modal.tsx +5 -4
|
@@ -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", {
|