@beweco/aurora-ui 0.6.57 → 0.6.58
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 +24 -10
- package/dist/index.esm.js +24 -10
- package/dist/types/components/drawer-filters/_internal/DayMonthPicker.d.ts.map +1 -1
- package/dist/types/components/multi-step-wizard/MultiStepWizard.d.ts +1 -1
- package/dist/types/components/multi-step-wizard/MultiStepWizard.d.ts.map +1 -1
- package/dist/types/components/multi-step-wizard/MultiStepWizard.types.d.ts +6 -0
- package/dist/types/components/multi-step-wizard/MultiStepWizard.types.d.ts.map +1 -1
- package/dist/types/components/multi-step-wizard/_internal/MultiStepSidebar.d.ts.map +1 -1
- package/dist/types/components/multi-step-wizard/_internal/MultiStepSidebar.types.d.ts +2 -0
- package/dist/types/components/multi-step-wizard/_internal/MultiStepSidebar.types.d.ts.map +1 -1
- package/dist/types/components/phone/Phone.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3829,8 +3829,11 @@ var VerticalSteps = React.forwardRef(function (_a, ref) {
|
|
|
3829
3829
|
VerticalSteps.displayName = "VerticalSteps";
|
|
3830
3830
|
|
|
3831
3831
|
var MultiStepSidebar = React.forwardRef(function (_a, ref) {
|
|
3832
|
-
var children = _a.children, className = _a.className, currentPage = _a.currentPage; _a.onBack; _a.onNext; var onChangePage = _a.onChangePage, steps = _a.steps; _a.goBackTranslation; var onClose = _a.onClose, _b = _a.hideInactiveDescriptions, hideInactiveDescriptions = _b === void 0 ? false : _b, props = __rest(_a, ["children", "className", "currentPage", "onBack", "onNext", "onChangePage", "steps", "goBackTranslation", "onClose", "hideInactiveDescriptions"]);
|
|
3832
|
+
var children = _a.children, className = _a.className, currentPage = _a.currentPage; _a.onBack; _a.onNext; var onChangePage = _a.onChangePage, steps = _a.steps; _a.goBackTranslation; var onClose = _a.onClose, _b = _a.hideInactiveDescriptions, hideInactiveDescriptions = _b === void 0 ? false : _b, _c = _a.isDismissable, isDismissable = _c === void 0 ? true : _c, props = __rest(_a, ["children", "className", "currentPage", "onBack", "onNext", "onChangePage", "steps", "goBackTranslation", "onClose", "hideInactiveDescriptions", "isDismissable"]);
|
|
3833
3833
|
var handleOverlayClick = function (e) {
|
|
3834
|
+
if (!isDismissable) {
|
|
3835
|
+
return;
|
|
3836
|
+
}
|
|
3834
3837
|
if (e.target === e.currentTarget) {
|
|
3835
3838
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
3836
3839
|
}
|
|
@@ -3849,8 +3852,8 @@ var MultistepNavigationButtons = function (_a) {
|
|
|
3849
3852
|
};
|
|
3850
3853
|
|
|
3851
3854
|
var MultiStepWizard = function (_a) {
|
|
3852
|
-
var isOpen = _a.isOpen, steps = _a.steps, translations = _a.translations, onClose = _a.onClose, onComplete = _a.onComplete, completeButtonText = _a.completeButtonText, hideInactiveDescriptions = _a.hideInactiveDescriptions;
|
|
3853
|
-
var
|
|
3855
|
+
var isOpen = _a.isOpen, steps = _a.steps, translations = _a.translations, onClose = _a.onClose, onComplete = _a.onComplete, completeButtonText = _a.completeButtonText, hideInactiveDescriptions = _a.hideInactiveDescriptions, _b = _a.isDismissable, isDismissable = _b === void 0 ? true : _b;
|
|
3856
|
+
var _c = React.useState(0), page = _c[0], setPage = _c[1];
|
|
3854
3857
|
React.useEffect(function () {
|
|
3855
3858
|
if (isOpen) {
|
|
3856
3859
|
setPage(0);
|
|
@@ -3913,7 +3916,7 @@ var MultiStepWizard = function (_a) {
|
|
|
3913
3916
|
if (!isOpen) {
|
|
3914
3917
|
return null;
|
|
3915
3918
|
}
|
|
3916
|
-
return (jsxRuntime.jsxs(MultiStepSidebar, { currentPage: page, goBackTranslation: t.goBack, steps: steps, onBack: onBack, onChangePage: onChangePage, onClose: onClose, onNext: onNext, hideInactiveDescriptions: hideInactiveDescriptions, children: [jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Button, { className: "w-fit text-default-600 mb-6", color: "default", variant: "light", onPress: onBack, isDisabled: page === 0, startContent: jsxRuntime.jsx(IconComponent, { className: "text-default-500", icon: "material-symbols:arrow-back-rounded", size: "sm" }), children: t.goBack || "Back" }), jsxRuntime.jsx("div", { className: "relative flex h-fit w-full flex-col text-center lg:justify-center lg:pt-0", children: content })] }), jsxRuntime.jsx(MultistepNavigationButtons, { backButtonProps: {
|
|
3919
|
+
return (jsxRuntime.jsxs(MultiStepSidebar, { currentPage: page, goBackTranslation: t.goBack, steps: steps, onBack: onBack, onChangePage: onChangePage, onClose: onClose, onNext: onNext, hideInactiveDescriptions: hideInactiveDescriptions, isDismissable: isDismissable, children: [jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Button, { className: "w-fit text-default-600 mb-6", color: "default", variant: "light", onPress: onBack, isDisabled: page === 0, startContent: jsxRuntime.jsx(IconComponent, { className: "text-default-500", icon: "material-symbols:arrow-back-rounded", size: "sm" }), children: t.goBack || "Back" }), jsxRuntime.jsx("div", { className: "relative flex h-fit w-full flex-col text-center lg:justify-center lg:pt-0", children: content })] }), jsxRuntime.jsx(MultistepNavigationButtons, { backButtonProps: {
|
|
3917
3920
|
isDisabled: page === 0,
|
|
3918
3921
|
onPress: onBack,
|
|
3919
3922
|
children: t.goBack,
|
|
@@ -3948,7 +3951,7 @@ var Phone = function (_a) {
|
|
|
3948
3951
|
var finalLabel = label || t.label;
|
|
3949
3952
|
React.useEffect(function () {
|
|
3950
3953
|
if (value) {
|
|
3951
|
-
var found = uniqueCountries.find(function (c) { return c.code === value.code; });
|
|
3954
|
+
var found = uniqueCountries.find(function (c) { return c.code === value.code && (value.country ? c.country === value.country : true); });
|
|
3952
3955
|
if (found) {
|
|
3953
3956
|
setSelectedCountry(found);
|
|
3954
3957
|
}
|
|
@@ -3973,18 +3976,29 @@ var Phone = function (_a) {
|
|
|
3973
3976
|
}
|
|
3974
3977
|
}, [isDropdownOpen]);
|
|
3975
3978
|
React.useEffect(function () {
|
|
3979
|
+
if (!isDropdownOpen)
|
|
3980
|
+
return;
|
|
3976
3981
|
var handleClickOutside = function (event) {
|
|
3982
|
+
// Ignore synthetic events (e.g. dispatched by scroll-close hooks)
|
|
3983
|
+
if (!event.isTrusted)
|
|
3984
|
+
return;
|
|
3985
|
+
var target = event.target;
|
|
3977
3986
|
if (dropdownRef.current &&
|
|
3978
|
-
!dropdownRef.current.contains(
|
|
3987
|
+
!dropdownRef.current.contains(target) &&
|
|
3979
3988
|
portalDropdownRef.current &&
|
|
3980
|
-
!portalDropdownRef.current.contains(
|
|
3989
|
+
!portalDropdownRef.current.contains(target)) {
|
|
3981
3990
|
setIsDropdownOpen(false);
|
|
3982
3991
|
}
|
|
3983
3992
|
};
|
|
3984
|
-
|
|
3993
|
+
// Defer listener registration to the next frame so the same
|
|
3994
|
+
// tap/click that opened the dropdown cannot immediately close it.
|
|
3995
|
+
var rafId = requestAnimationFrame(function () {
|
|
3996
|
+
document.addEventListener("pointerdown", handleClickOutside);
|
|
3985
3997
|
document.addEventListener("mousedown", handleClickOutside);
|
|
3986
|
-
}
|
|
3998
|
+
});
|
|
3987
3999
|
return function () {
|
|
4000
|
+
cancelAnimationFrame(rafId);
|
|
4001
|
+
document.removeEventListener("pointerdown", handleClickOutside);
|
|
3988
4002
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
3989
4003
|
};
|
|
3990
4004
|
}, [isDropdownOpen]);
|
|
@@ -4019,7 +4033,7 @@ var Phone = function (_a) {
|
|
|
4019
4033
|
country.code.toLowerCase().includes(searchTerm);
|
|
4020
4034
|
});
|
|
4021
4035
|
setFilteredCountries(filtered);
|
|
4022
|
-
} }) }), jsxRuntime.jsx("div", { className: "max-h-60 overflow-y-auto", children: filteredCountries.length > 0 ? (filteredCountries.map(function (country) { return (jsxRuntime.jsxs("button", { type: "button", className: "flex items-center w-full px-4 py-2.5 text-sm hover:bg-default-200 ".concat(country.
|
|
4036
|
+
} }) }), jsxRuntime.jsx("div", { className: "max-h-60 overflow-y-auto", children: filteredCountries.length > 0 ? (filteredCountries.map(function (country) { return (jsxRuntime.jsxs("button", { type: "button", className: "flex items-center w-full px-4 py-2.5 text-sm hover:bg-default-200 ".concat(country.country === selectedCountry.country
|
|
4023
4037
|
? "bg-primary-50"
|
|
4024
4038
|
: ""), onClick: function () { return handleCountrySelect(country); }, children: [jsxRuntime.jsx("span", { className: "mr-3", children: jsxRuntime.jsx(FlagIcon, { countryCode: country.country, size: "md" }) }), jsxRuntime.jsx("span", { className: "flex-1 text-left text-default-500", children: getCountryName(country) }), jsxRuntime.jsx("span", { className: "text-xs text-default-500", children: country.code })] }, "".concat(country.code, "-").concat(country.country))); })) : (jsxRuntime.jsx("div", { className: "px-4 py-2 text-sm text-default-500", children: t.noCountriesFound })) })] }), document.body)] }));
|
|
4025
4039
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -3830,8 +3830,11 @@ var VerticalSteps = React.forwardRef(function (_a, ref) {
|
|
|
3830
3830
|
VerticalSteps.displayName = "VerticalSteps";
|
|
3831
3831
|
|
|
3832
3832
|
var MultiStepSidebar = React.forwardRef(function (_a, ref) {
|
|
3833
|
-
var children = _a.children, className = _a.className, currentPage = _a.currentPage; _a.onBack; _a.onNext; var onChangePage = _a.onChangePage, steps = _a.steps; _a.goBackTranslation; var onClose = _a.onClose, _b = _a.hideInactiveDescriptions, hideInactiveDescriptions = _b === void 0 ? false : _b, props = __rest(_a, ["children", "className", "currentPage", "onBack", "onNext", "onChangePage", "steps", "goBackTranslation", "onClose", "hideInactiveDescriptions"]);
|
|
3833
|
+
var children = _a.children, className = _a.className, currentPage = _a.currentPage; _a.onBack; _a.onNext; var onChangePage = _a.onChangePage, steps = _a.steps; _a.goBackTranslation; var onClose = _a.onClose, _b = _a.hideInactiveDescriptions, hideInactiveDescriptions = _b === void 0 ? false : _b, _c = _a.isDismissable, isDismissable = _c === void 0 ? true : _c, props = __rest(_a, ["children", "className", "currentPage", "onBack", "onNext", "onChangePage", "steps", "goBackTranslation", "onClose", "hideInactiveDescriptions", "isDismissable"]);
|
|
3834
3834
|
var handleOverlayClick = function (e) {
|
|
3835
|
+
if (!isDismissable) {
|
|
3836
|
+
return;
|
|
3837
|
+
}
|
|
3835
3838
|
if (e.target === e.currentTarget) {
|
|
3836
3839
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
3837
3840
|
}
|
|
@@ -3850,8 +3853,8 @@ var MultistepNavigationButtons = function (_a) {
|
|
|
3850
3853
|
};
|
|
3851
3854
|
|
|
3852
3855
|
var MultiStepWizard = function (_a) {
|
|
3853
|
-
var isOpen = _a.isOpen, steps = _a.steps, translations = _a.translations, onClose = _a.onClose, onComplete = _a.onComplete, completeButtonText = _a.completeButtonText, hideInactiveDescriptions = _a.hideInactiveDescriptions;
|
|
3854
|
-
var
|
|
3856
|
+
var isOpen = _a.isOpen, steps = _a.steps, translations = _a.translations, onClose = _a.onClose, onComplete = _a.onComplete, completeButtonText = _a.completeButtonText, hideInactiveDescriptions = _a.hideInactiveDescriptions, _b = _a.isDismissable, isDismissable = _b === void 0 ? true : _b;
|
|
3857
|
+
var _c = React.useState(0), page = _c[0], setPage = _c[1];
|
|
3855
3858
|
React.useEffect(function () {
|
|
3856
3859
|
if (isOpen) {
|
|
3857
3860
|
setPage(0);
|
|
@@ -3914,7 +3917,7 @@ var MultiStepWizard = function (_a) {
|
|
|
3914
3917
|
if (!isOpen) {
|
|
3915
3918
|
return null;
|
|
3916
3919
|
}
|
|
3917
|
-
return (jsxs(MultiStepSidebar, { currentPage: page, goBackTranslation: t.goBack, steps: steps, onBack: onBack, onChangePage: onChangePage, onClose: onClose, onNext: onNext, hideInactiveDescriptions: hideInactiveDescriptions, children: [jsxs("div", { children: [jsx(Button, { className: "w-fit text-default-600 mb-6", color: "default", variant: "light", onPress: onBack, isDisabled: page === 0, startContent: jsx(IconComponent, { className: "text-default-500", icon: "material-symbols:arrow-back-rounded", size: "sm" }), children: t.goBack || "Back" }), jsx("div", { className: "relative flex h-fit w-full flex-col text-center lg:justify-center lg:pt-0", children: content })] }), jsx(MultistepNavigationButtons, { backButtonProps: {
|
|
3920
|
+
return (jsxs(MultiStepSidebar, { currentPage: page, goBackTranslation: t.goBack, steps: steps, onBack: onBack, onChangePage: onChangePage, onClose: onClose, onNext: onNext, hideInactiveDescriptions: hideInactiveDescriptions, isDismissable: isDismissable, children: [jsxs("div", { children: [jsx(Button, { className: "w-fit text-default-600 mb-6", color: "default", variant: "light", onPress: onBack, isDisabled: page === 0, startContent: jsx(IconComponent, { className: "text-default-500", icon: "material-symbols:arrow-back-rounded", size: "sm" }), children: t.goBack || "Back" }), jsx("div", { className: "relative flex h-fit w-full flex-col text-center lg:justify-center lg:pt-0", children: content })] }), jsx(MultistepNavigationButtons, { backButtonProps: {
|
|
3918
3921
|
isDisabled: page === 0,
|
|
3919
3922
|
onPress: onBack,
|
|
3920
3923
|
children: t.goBack,
|
|
@@ -3949,7 +3952,7 @@ var Phone = function (_a) {
|
|
|
3949
3952
|
var finalLabel = label || t.label;
|
|
3950
3953
|
useEffect(function () {
|
|
3951
3954
|
if (value) {
|
|
3952
|
-
var found = uniqueCountries.find(function (c) { return c.code === value.code; });
|
|
3955
|
+
var found = uniqueCountries.find(function (c) { return c.code === value.code && (value.country ? c.country === value.country : true); });
|
|
3953
3956
|
if (found) {
|
|
3954
3957
|
setSelectedCountry(found);
|
|
3955
3958
|
}
|
|
@@ -3974,18 +3977,29 @@ var Phone = function (_a) {
|
|
|
3974
3977
|
}
|
|
3975
3978
|
}, [isDropdownOpen]);
|
|
3976
3979
|
useEffect(function () {
|
|
3980
|
+
if (!isDropdownOpen)
|
|
3981
|
+
return;
|
|
3977
3982
|
var handleClickOutside = function (event) {
|
|
3983
|
+
// Ignore synthetic events (e.g. dispatched by scroll-close hooks)
|
|
3984
|
+
if (!event.isTrusted)
|
|
3985
|
+
return;
|
|
3986
|
+
var target = event.target;
|
|
3978
3987
|
if (dropdownRef.current &&
|
|
3979
|
-
!dropdownRef.current.contains(
|
|
3988
|
+
!dropdownRef.current.contains(target) &&
|
|
3980
3989
|
portalDropdownRef.current &&
|
|
3981
|
-
!portalDropdownRef.current.contains(
|
|
3990
|
+
!portalDropdownRef.current.contains(target)) {
|
|
3982
3991
|
setIsDropdownOpen(false);
|
|
3983
3992
|
}
|
|
3984
3993
|
};
|
|
3985
|
-
|
|
3994
|
+
// Defer listener registration to the next frame so the same
|
|
3995
|
+
// tap/click that opened the dropdown cannot immediately close it.
|
|
3996
|
+
var rafId = requestAnimationFrame(function () {
|
|
3997
|
+
document.addEventListener("pointerdown", handleClickOutside);
|
|
3986
3998
|
document.addEventListener("mousedown", handleClickOutside);
|
|
3987
|
-
}
|
|
3999
|
+
});
|
|
3988
4000
|
return function () {
|
|
4001
|
+
cancelAnimationFrame(rafId);
|
|
4002
|
+
document.removeEventListener("pointerdown", handleClickOutside);
|
|
3989
4003
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
3990
4004
|
};
|
|
3991
4005
|
}, [isDropdownOpen]);
|
|
@@ -4020,7 +4034,7 @@ var Phone = function (_a) {
|
|
|
4020
4034
|
country.code.toLowerCase().includes(searchTerm);
|
|
4021
4035
|
});
|
|
4022
4036
|
setFilteredCountries(filtered);
|
|
4023
|
-
} }) }), jsx("div", { className: "max-h-60 overflow-y-auto", children: filteredCountries.length > 0 ? (filteredCountries.map(function (country) { return (jsxs("button", { type: "button", className: "flex items-center w-full px-4 py-2.5 text-sm hover:bg-default-200 ".concat(country.
|
|
4037
|
+
} }) }), jsx("div", { className: "max-h-60 overflow-y-auto", children: filteredCountries.length > 0 ? (filteredCountries.map(function (country) { return (jsxs("button", { type: "button", className: "flex items-center w-full px-4 py-2.5 text-sm hover:bg-default-200 ".concat(country.country === selectedCountry.country
|
|
4024
4038
|
? "bg-primary-50"
|
|
4025
4039
|
: ""), onClick: function () { return handleCountrySelect(country); }, children: [jsx("span", { className: "mr-3", children: jsx(FlagIcon, { countryCode: country.country, size: "md" }) }), jsx("span", { className: "flex-1 text-left text-default-500", children: getCountryName(country) }), jsx("span", { className: "text-xs text-default-500", children: country.code })] }, "".concat(country.code, "-").concat(country.country))); })) : (jsx("div", { className: "px-4 py-2 text-sm text-default-500", children: t.noCountriesFound })) })] }), document.body)] }));
|
|
4026
4040
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DayMonthPicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/drawer-filters/_internal/DayMonthPicker.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAgCxE,UAAU,mBAAmB;IAC5B,IAAI,EAAE,UAAU,GAAG,eAAe,CAAC;IACnC,QAAQ,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;CAC5C;AAED,UAAU,mBAAmB;IAC5B,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC/C,YAAY,CAAC,EAAE,yBAAyB,CAAC;CACzC;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"DayMonthPicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/drawer-filters/_internal/DayMonthPicker.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAgCxE,UAAU,mBAAmB;IAC5B,IAAI,EAAE,UAAU,GAAG,eAAe,CAAC;IACnC,QAAQ,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;CAC5C;AAED,UAAU,mBAAmB;IAC5B,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC/C,YAAY,CAAC,EAAE,yBAAyB,CAAC;CACzC;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAoIxD,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { MultiStepWizardProps } from "./MultiStepWizard.types";
|
|
2
|
-
export declare const MultiStepWizard: ({ isOpen, steps, translations, onClose, onComplete, completeButtonText, hideInactiveDescriptions, }: MultiStepWizardProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
2
|
+
export declare const MultiStepWizard: ({ isOpen, steps, translations, onClose, onComplete, completeButtonText, hideInactiveDescriptions, isDismissable, }: MultiStepWizardProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
//# sourceMappingURL=MultiStepWizard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiStepWizard.d.ts","sourceRoot":"","sources":["../../../../src/components/multi-step-wizard/MultiStepWizard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAIpE,eAAO,MAAM,eAAe,GAAI,
|
|
1
|
+
{"version":3,"file":"MultiStepWizard.d.ts","sourceRoot":"","sources":["../../../../src/components/multi-step-wizard/MultiStepWizard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAIpE,eAAO,MAAM,eAAe,GAAI,oHAS7B,oBAAoB,mDA6ItB,CAAC"}
|
|
@@ -17,6 +17,12 @@ export interface MultiStepWizardProps {
|
|
|
17
17
|
completeButtonText?: string;
|
|
18
18
|
/** Oculta las descripciones de los pasos no activos en el sidebar */
|
|
19
19
|
hideInactiveDescriptions?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Permite cerrar el wizard al hacer clic en el fondo (backdrop).
|
|
22
|
+
* Por defecto `true`. Pásalo como `false` para evitar cierres
|
|
23
|
+
* accidentales que descarten los datos del formulario.
|
|
24
|
+
*/
|
|
25
|
+
isDismissable?: boolean;
|
|
20
26
|
}
|
|
21
27
|
export interface MultiStepWizardTranslations {
|
|
22
28
|
continue?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiStepWizard.types.d.ts","sourceRoot":"","sources":["../../../../src/components/multi-step-wizard/MultiStepWizard.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,IAAI;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,YAAY,CAAC,EAAE,2BAA2B,CAAC;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,wCAAwC;IACxC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qEAAqE;IACrE,wBAAwB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MultiStepWizard.types.d.ts","sourceRoot":"","sources":["../../../../src/components/multi-step-wizard/MultiStepWizard.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,IAAI;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,YAAY,CAAC,EAAE,2BAA2B,CAAC;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,wCAAwC;IACxC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qEAAqE;IACrE,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,2BAA2B;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiStepSidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/multi-step-wizard/_internal/MultiStepSidebar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEtE,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"MultiStepSidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/multi-step-wizard/_internal/MultiStepSidebar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEtE,eAAO,MAAM,gBAAgB,8FA6F5B,CAAC"}
|
|
@@ -10,5 +10,7 @@ export interface MultiStepSidebarProps extends React.HTMLAttributes<HTMLDivEleme
|
|
|
10
10
|
steps: Step[];
|
|
11
11
|
goBackTranslation?: string;
|
|
12
12
|
hideInactiveDescriptions?: boolean;
|
|
13
|
+
/** Permite cerrar al hacer clic en el backdrop. Por defecto `true`. */
|
|
14
|
+
isDismissable?: boolean;
|
|
13
15
|
}
|
|
14
16
|
//# sourceMappingURL=MultiStepSidebar.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiStepSidebar.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/multi-step-wizard/_internal/MultiStepSidebar.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAErD,MAAM,WAAW,qBAChB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wBAAwB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MultiStepSidebar.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/multi-step-wizard/_internal/MultiStepSidebar.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAErD,MAAM,WAAW,qBAChB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,uEAAuE;IACvE,aAAa,CAAC,EAAE,OAAO,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Phone.d.ts","sourceRoot":"","sources":["../../../../src/components/phone/Phone.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAOrD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"Phone.d.ts","sourceRoot":"","sources":["../../../../src/components/phone/Phone.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAOrD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmP3C,CAAC;AAEF,eAAe,KAAK,CAAC"}
|