@mirantes-micro/foundation-design-system 1.0.2 → 1.0.3
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 +11 -3
- package/dist/index.js +71 -14
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ interface IMirantesFoundationProviderProps {
|
|
|
20
20
|
onOpenCreatePostModal?: () => void;
|
|
21
21
|
values?: {
|
|
22
22
|
widgetsApi?: string;
|
|
23
|
+
feedApi?: string;
|
|
23
24
|
environment?: string;
|
|
24
25
|
profileApiUrl?: string;
|
|
25
26
|
mirantesDomain?: string;
|
|
@@ -36,6 +37,7 @@ interface IMirantesFoundationProviderProps {
|
|
|
36
37
|
}
|
|
37
38
|
interface IMirantesFoundationContext {
|
|
38
39
|
widgetsApi?: string;
|
|
40
|
+
feedApi?: string;
|
|
39
41
|
profileApiUrl?: string;
|
|
40
42
|
environment?: string;
|
|
41
43
|
mirantesDomain?: string;
|
|
@@ -77,7 +79,7 @@ type User = {
|
|
|
77
79
|
type LinkComponent = (props: CommonLinkProps) => any;
|
|
78
80
|
type UsePathname = () => string;
|
|
79
81
|
|
|
80
|
-
declare function MirantesFoundationProvider({ children, Notification, queryClient: reactQueryClient, onOpenCreatePostModal, values: { locale, Link, usePathname, user, isGettingUser, mirantesDomain, environment, widgetsApi, hostUrl, isDev, profileApiUrl, isGettingStats, openCageApiKey, }, }: IMirantesFoundationProviderProps): React__default.JSX.Element;
|
|
82
|
+
declare function MirantesFoundationProvider({ children, Notification, queryClient: reactQueryClient, onOpenCreatePostModal, values: { locale, Link, usePathname, user, isGettingUser, mirantesDomain, environment, feedApi, widgetsApi, hostUrl, isDev, profileApiUrl, isGettingStats, openCageApiKey, }, }: IMirantesFoundationProviderProps): React__default.JSX.Element;
|
|
81
83
|
|
|
82
84
|
declare function WorkspacePanel(): React__default.JSX.Element;
|
|
83
85
|
|
|
@@ -258,8 +260,9 @@ type CustomDrawerProps = {
|
|
|
258
260
|
onClose: () => void;
|
|
259
261
|
className?: string;
|
|
260
262
|
isOpen?: boolean;
|
|
263
|
+
hideCloseBlock?: boolean;
|
|
261
264
|
};
|
|
262
|
-
declare function CustomDrawer({ children, footer, onClose, className, isOpen, }: CustomDrawerProps): React__default.JSX.Element;
|
|
265
|
+
declare function CustomDrawer({ children, footer, onClose, className, isOpen, hideCloseBlock, }: CustomDrawerProps): React__default.JSX.Element;
|
|
263
266
|
|
|
264
267
|
declare function RadioButtonInput({ label, isSelected, onSelect, }: {
|
|
265
268
|
label?: string;
|
|
@@ -313,4 +316,9 @@ interface IDropdownOption {
|
|
|
313
316
|
|
|
314
317
|
declare function CustomDropdown({ trigger, options, onSelect, className, itemClassName, itemHoverClassName, animate, enableSearch, }: IDropdownProps): React__default.JSX.Element;
|
|
315
318
|
|
|
316
|
-
|
|
319
|
+
declare function ContactsModal({ onClose, slug, }: {
|
|
320
|
+
onClose: () => void;
|
|
321
|
+
slug?: string;
|
|
322
|
+
}): React__default.JSX.Element;
|
|
323
|
+
|
|
324
|
+
export { AddressAutocompleteInput, BaseInput, Button, CheckBoxInput, ContactsModal, CountryDisplay, CountryInput, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, GradientModal, Header, MirantesFoundationProvider, RadioButtonInput, SalaryInput, Calendar as ScheduleCalendar, Spinner, WorkspacePanel, closeLogoutChannel, getInitials, joinUrlWithPathAndQuery, onLogout, stringToObj, useMirantesFoundation };
|