@mirantes-micro/foundation-design-system 1.0.1 → 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 +13 -4
- 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;
|
|
@@ -302,6 +305,7 @@ interface IDropdownProps {
|
|
|
302
305
|
itemClassName?: string;
|
|
303
306
|
itemHoverClassName?: string;
|
|
304
307
|
animate?: boolean;
|
|
308
|
+
enableSearch?: boolean;
|
|
305
309
|
}
|
|
306
310
|
interface IDropdownOption {
|
|
307
311
|
id: string;
|
|
@@ -310,6 +314,11 @@ interface IDropdownOption {
|
|
|
310
314
|
icon?: React.ReactNode;
|
|
311
315
|
}
|
|
312
316
|
|
|
313
|
-
declare function CustomDropdown({ trigger, options, onSelect, className, itemClassName, itemHoverClassName, animate, }: IDropdownProps): React__default.JSX.Element;
|
|
317
|
+
declare function CustomDropdown({ trigger, options, onSelect, className, itemClassName, itemHoverClassName, animate, enableSearch, }: IDropdownProps): React__default.JSX.Element;
|
|
318
|
+
|
|
319
|
+
declare function ContactsModal({ onClose, slug, }: {
|
|
320
|
+
onClose: () => void;
|
|
321
|
+
slug?: string;
|
|
322
|
+
}): React__default.JSX.Element;
|
|
314
323
|
|
|
315
|
-
export { AddressAutocompleteInput, BaseInput, Button, CheckBoxInput, CountryDisplay, CountryInput, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, GradientModal, Header, MirantesFoundationProvider, RadioButtonInput, SalaryInput, Calendar as ScheduleCalendar, Spinner, WorkspacePanel, closeLogoutChannel, getInitials, joinUrlWithPathAndQuery, onLogout, stringToObj, useMirantesFoundation };
|
|
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 };
|