@mirantes-micro/foundation-design-system 1.0.99 → 1.1.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.d.ts +44 -1
- package/dist/index.js +69 -69
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -663,4 +663,47 @@ interface CommunityTriggerState {
|
|
|
663
663
|
}
|
|
664
664
|
declare const useCommunityTriggerStore: zustand.UseBoundStore<zustand.StoreApi<CommunityTriggerState>>;
|
|
665
665
|
|
|
666
|
-
|
|
666
|
+
type ModalVariant = "expanded" | "minimized" | "center";
|
|
667
|
+
interface ModalPosition {
|
|
668
|
+
top?: string;
|
|
669
|
+
bottom?: string;
|
|
670
|
+
left?: string;
|
|
671
|
+
right?: string;
|
|
672
|
+
}
|
|
673
|
+
interface ModalAnimationConfig {
|
|
674
|
+
duration?: number;
|
|
675
|
+
ease?: string | number[];
|
|
676
|
+
exitDuration?: number;
|
|
677
|
+
}
|
|
678
|
+
interface BaseModalProps {
|
|
679
|
+
isOpen: boolean;
|
|
680
|
+
onClose: () => void;
|
|
681
|
+
children: React.ReactNode;
|
|
682
|
+
}
|
|
683
|
+
interface ModalStyleProps {
|
|
684
|
+
className?: string;
|
|
685
|
+
contentClassName?: string;
|
|
686
|
+
overlayClassName?: string;
|
|
687
|
+
}
|
|
688
|
+
interface ModalBehaviorProps {
|
|
689
|
+
closeOnClickOutside?: boolean;
|
|
690
|
+
closeOnEscape?: boolean;
|
|
691
|
+
hideCloseButton?: boolean;
|
|
692
|
+
preventBodyScroll?: boolean;
|
|
693
|
+
showOverlay?: boolean;
|
|
694
|
+
}
|
|
695
|
+
interface ModalConfigProps {
|
|
696
|
+
variant?: ModalVariant;
|
|
697
|
+
position?: ModalPosition;
|
|
698
|
+
animationConfig?: ModalAnimationConfig;
|
|
699
|
+
header?: React.ReactNode;
|
|
700
|
+
zIndex?: number;
|
|
701
|
+
}
|
|
702
|
+
interface AnimatedModalProps extends BaseModalProps, ModalStyleProps, ModalBehaviorProps, ModalConfigProps {
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
declare function AnimatedModal({ isOpen, onClose, children, variant, className, contentClassName, overlayClassName, closeOnClickOutside, closeOnEscape, hideCloseButton, preventBodyScroll, showOverlay, position, animationConfig, header, zIndex, offsetTop, }: AnimatedModalProps & {
|
|
706
|
+
offsetTop?: number;
|
|
707
|
+
}): React__default.JSX.Element | null;
|
|
708
|
+
|
|
709
|
+
export { AddressAutocompleteInput, AnimatedModal, BaseInput, Button, ChatView, ChatViewDesktopPage, CheckBoxInput, ContactsModal, CountryDisplay, CountryInput, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, GradientModal, Header, MessageButton, MirantesButton, MirantesFoundationProvider, RadioButtonInput, SalaryInput, Calendar as ScheduleCalendar, Spinner, WorkspacePanel, clearSettingsCookie, closeLogoutChannel, designSystemPreset, getInitials, getSettingsFromCookie, joinUrlWithPathAndQuery, onLogout, stringToObj, useApiGetPage, useCandidaciesTriggerStore, useCommunityTriggerStore, useJobTriggerStore, useLoadSettings, useMirantesFoundation, useSetChatVisibility };
|