@mirantes-micro/foundation-design-system 1.2.227 → 1.2.229
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 +13 -23
- package/dist/index.js +136 -135
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -320,13 +320,12 @@ interface CalendarProps {
|
|
|
320
320
|
}
|
|
321
321
|
declare function Calendar({ onMarkAsUnavailable, isModalOpen, onClose, calendarCardClassName, }: CalendarProps): React__default.JSX.Element;
|
|
322
322
|
|
|
323
|
-
|
|
323
|
+
type BaseInputProps = {
|
|
324
324
|
placeholder: string;
|
|
325
325
|
value: string;
|
|
326
326
|
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
327
327
|
onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
328
328
|
onFocus?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
329
|
-
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
330
329
|
rightIcon?: React__default.ReactNode;
|
|
331
330
|
leftIcon?: React__default.ReactNode;
|
|
332
331
|
label?: string;
|
|
@@ -336,6 +335,7 @@ declare const BaseInput: React__default.ForwardRefExoticComponent<{
|
|
|
336
335
|
name?: string;
|
|
337
336
|
id?: string;
|
|
338
337
|
className?: string;
|
|
338
|
+
children?: React__default.ReactNode;
|
|
339
339
|
wrapperClassName?: string;
|
|
340
340
|
required?: boolean;
|
|
341
341
|
inputClassName?: string;
|
|
@@ -343,8 +343,8 @@ declare const BaseInput: React__default.ForwardRefExoticComponent<{
|
|
|
343
343
|
min?: number;
|
|
344
344
|
max?: number;
|
|
345
345
|
placeholderColor?: string;
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
};
|
|
347
|
+
declare const BaseInput: React__default.ForwardRefExoticComponent<BaseInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
348
348
|
|
|
349
349
|
declare function CheckBoxInput({ isChecked, onClick, label, disabled, }: {
|
|
350
350
|
isChecked?: boolean;
|
|
@@ -355,16 +355,13 @@ declare function CheckBoxInput({ isChecked, onClick, label, disabled, }: {
|
|
|
355
355
|
|
|
356
356
|
type CustomDrawerProps = {
|
|
357
357
|
children: React__default.ReactNode;
|
|
358
|
-
title?: React__default.ReactNode;
|
|
359
358
|
footer?: React__default.ReactNode;
|
|
360
359
|
onClose: () => void;
|
|
361
360
|
className?: string;
|
|
362
361
|
isOpen?: boolean;
|
|
363
362
|
hideCloseBlock?: boolean;
|
|
364
|
-
/** If true, the footer will stay at the bottom even when scrolling */
|
|
365
|
-
stickyFooter?: boolean;
|
|
366
363
|
};
|
|
367
|
-
declare function CustomDrawer({ children,
|
|
364
|
+
declare function CustomDrawer({ children, footer, onClose, className, isOpen, hideCloseBlock, }: CustomDrawerProps): React__default.JSX.Element;
|
|
368
365
|
|
|
369
366
|
declare function RadioButtonInput({ label, isSelected, onSelect, }: {
|
|
370
367
|
label?: string;
|
|
@@ -380,7 +377,7 @@ type Option = {
|
|
|
380
377
|
type CustomSelectInputProps = {
|
|
381
378
|
options: Option[];
|
|
382
379
|
value?: string;
|
|
383
|
-
onChange?: (option: Option
|
|
380
|
+
onChange?: (option: Option) => void;
|
|
384
381
|
placeholder?: string;
|
|
385
382
|
className?: string;
|
|
386
383
|
enableSearch?: boolean;
|
|
@@ -393,8 +390,7 @@ type CustomSelectInputProps = {
|
|
|
393
390
|
onSearch?: (query: string) => void;
|
|
394
391
|
isLoading?: boolean;
|
|
395
392
|
};
|
|
396
|
-
declare function CustomSelectInput({ options, value, onChange, placeholder, className, enableSearch, floattable,
|
|
397
|
-
required, showCheck, label, error, disabled, onSearch, isLoading, }: CustomSelectInputProps): React$1.JSX.Element;
|
|
393
|
+
declare function CustomSelectInput({ options, value, onChange, placeholder, className, enableSearch, floattable, required, showCheck, label, error, disabled, onSearch, isLoading, }: CustomSelectInputProps): React$1.JSX.Element;
|
|
398
394
|
|
|
399
395
|
type ButtonProps = {
|
|
400
396
|
children: React__default.ReactNode;
|
|
@@ -982,11 +978,6 @@ interface ShareProfileButtonProps {
|
|
|
982
978
|
}
|
|
983
979
|
declare function ShareProfileButton({ onClick }: ShareProfileButtonProps): React__default.JSX.Element;
|
|
984
980
|
|
|
985
|
-
interface ShareOtherProfileButtonProps {
|
|
986
|
-
onClick: () => void;
|
|
987
|
-
}
|
|
988
|
-
declare function ShareOtherProfileButton({ onClick }: ShareOtherProfileButtonProps): React__default.JSX.Element;
|
|
989
|
-
|
|
990
981
|
interface ShareProfileModalProps extends RattingSuggestionCardProps {
|
|
991
982
|
isOpen: boolean;
|
|
992
983
|
onClose: () => void;
|
|
@@ -1353,7 +1344,7 @@ type PostAttachmentProps$1 = {
|
|
|
1353
1344
|
};
|
|
1354
1345
|
type Post$1 = {
|
|
1355
1346
|
user: User$1;
|
|
1356
|
-
postType:
|
|
1347
|
+
postType: "NORMAL" | "REEL" | "ARTICLE";
|
|
1357
1348
|
id: string;
|
|
1358
1349
|
createdAt: string;
|
|
1359
1350
|
scheduledAt?: string;
|
|
@@ -1361,7 +1352,6 @@ type Post$1 = {
|
|
|
1361
1352
|
content: string;
|
|
1362
1353
|
totalShares: number;
|
|
1363
1354
|
totalReactions?: number;
|
|
1364
|
-
currentUserReaction?: string | undefined;
|
|
1365
1355
|
totalComments?: number;
|
|
1366
1356
|
attachment?: PostAttachmentProps$1;
|
|
1367
1357
|
isFollowed?: boolean;
|
|
@@ -1452,14 +1442,14 @@ type Post$1 = {
|
|
|
1452
1442
|
type PostAssetProps$1 = {
|
|
1453
1443
|
id: string;
|
|
1454
1444
|
url: string;
|
|
1455
|
-
type?:
|
|
1445
|
+
type?: "image" | "video" | "pdf";
|
|
1456
1446
|
createdAt?: string;
|
|
1457
1447
|
};
|
|
1458
1448
|
type PostReactionsProps$1 = {
|
|
1459
1449
|
id: string;
|
|
1460
1450
|
userId: string;
|
|
1461
1451
|
postId: string;
|
|
1462
|
-
reaction:
|
|
1452
|
+
reaction: "LIKE" | "LOVE" | "HAHA" | "WOW" | "SAD" | "ANGRY" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT" | "DISAGREE";
|
|
1463
1453
|
createdAt?: string;
|
|
1464
1454
|
updatedAt?: string;
|
|
1465
1455
|
user?: User$1;
|
|
@@ -1468,7 +1458,7 @@ type CommentReactionsProps$1 = {
|
|
|
1468
1458
|
id: string;
|
|
1469
1459
|
userId: string;
|
|
1470
1460
|
commentId: string;
|
|
1471
|
-
reaction:
|
|
1461
|
+
reaction: "LIKE" | "LOVE" | "HAHA" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT";
|
|
1472
1462
|
createdAt: string;
|
|
1473
1463
|
updatedAt: string;
|
|
1474
1464
|
user?: User$1;
|
|
@@ -1499,7 +1489,7 @@ declare function ReactPostButton({ post, hideLabel, className, orientation, }: {
|
|
|
1499
1489
|
post: Post$1;
|
|
1500
1490
|
hideLabel?: boolean;
|
|
1501
1491
|
className?: string;
|
|
1502
|
-
orientation?:
|
|
1492
|
+
orientation?: "vertical" | "horizontal";
|
|
1503
1493
|
}): JSX.Element;
|
|
1504
1494
|
|
|
1505
1495
|
interface TargetEntity {
|
|
@@ -2250,4 +2240,4 @@ declare function useRegisterTracking(): {
|
|
|
2250
2240
|
registerEvent: _tanstack_react_query.UseMutateFunction<ICreateTelemetryEventOutput | null, Error, ICreateTelemetryEventInput, unknown>;
|
|
2251
2241
|
};
|
|
2252
2242
|
|
|
2253
|
-
export { ActivateAccountModal, AddRating, AddressAutocompleteInput, AnimatedModal, ArticleContent, ArticleViewer, AutoDownloadBanner, AvatarRatingBadge, BaseInput, Button, ChatContacts, ChatListWrapper, ChatView, ChatViewDesktopPage, CheckBoxInput, closeLogoutChannel as CloseLogoutChannel, ContactsModal, ControlButtons, CountryDisplay, CountryInput, CreatePostCard, CreatePostContent, CreatePostForm, CreatePostModal, CreatePostModalFilters, CreatePostReelForm, CreatePostScheduleStep, CreatePostToolbar, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, DownloadMobileVersionBanner, DownloadModalTrigger, GradientModal, Header, MessageButton, MessagesButtonFromPage, MirantesButton, Index as MirantesChatApp, MirantesChatButton, MirantesFoundationProvider, MobileWorkspaceBar, NoRecruitmentResponsiveIlustration, onLogout as Onlogout, PageChatContent, PageChatContentHeader, PageChatInput, PageChatList, PageChatListWrapper, PageChatUserSuggestions, PageFloatFooter, PageMessageWrapper, PagesFeedTrigger, PdfFooter, PdfFullscreenView, PdfReader, PdfReaderHeader, PostCardArticle, ProgressBar, RadioButtonInput, RatingReviewsList, RatingUserCard, RatingsCard, RatingsSummary, RattingSuggestionCard, ReactPostButton, ResponsiveDrawer, SalaryInputWithButton, Calendar as ScheduleCalendar,
|
|
2243
|
+
export { ActivateAccountModal, AddRating, AddressAutocompleteInput, AnimatedModal, ArticleContent, ArticleViewer, AutoDownloadBanner, AvatarRatingBadge, BaseInput, Button, ChatContacts, ChatListWrapper, ChatView, ChatViewDesktopPage, CheckBoxInput, closeLogoutChannel as CloseLogoutChannel, ContactsModal, ControlButtons, CountryDisplay, CountryInput, CreatePostCard, CreatePostContent, CreatePostForm, CreatePostModal, CreatePostModalFilters, CreatePostReelForm, CreatePostScheduleStep, CreatePostToolbar, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, DownloadMobileVersionBanner, DownloadModalTrigger, GradientModal, Header, MessageButton, MessagesButtonFromPage, MirantesButton, Index as MirantesChatApp, MirantesChatButton, MirantesFoundationProvider, MobileWorkspaceBar, NoRecruitmentResponsiveIlustration, onLogout as Onlogout, PageChatContent, PageChatContentHeader, PageChatInput, PageChatList, PageChatListWrapper, PageChatUserSuggestions, PageFloatFooter, PageMessageWrapper, PagesFeedTrigger, PdfFooter, PdfFullscreenView, PdfReader, PdfReaderHeader, PostCardArticle, ProgressBar, RadioButtonInput, RatingReviewsList, RatingUserCard, RatingsCard, RatingsSummary, RattingSuggestionCard, ReactPostButton, ResponsiveDrawer, SalaryInputWithButton, Calendar as ScheduleCalendar, SharePostModal, ShareProfile, ShareProfileButton, ShareProfileModal, Spinner, WorkspacePanel, broadcastLogout, clearSettingsCookie, clearUserSession, closeLogoutChannel, createPersistentState, getInitials, getSettingsFromCookie, joinUrlWithPathAndQuery, onLogout, stringToObj, useApiCheckRater, useApiGetPage, useArticleNavigation, useArticleStore, useAssetVersions, useBestAssetVersion, useCandidaciesTriggerStore, useCommunityTriggerStore, useCreatePostFormStore, useCreatePostStore, useJobTriggerStore, useLoadSettings, useMessageAppStore, useMirantesFoundation, useModalArticleStore, useModalStore, useOpenChat, useOportunitiesStore, usePeriodicDownloadBanner, usePersistentUIState, useRegisterTracking, useRestorePendingChat, useSavedItemsStore, useSetChatVisibility, useSignedUrl, useUploadAsset, useUploadAssetsBulk };
|