@mirantes-micro/foundation-design-system 0.0.74 → 0.0.78

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 CHANGED
@@ -23,6 +23,7 @@ interface IMirantesFoundationProviderProps {
23
23
  environment?: string;
24
24
  profileApiUrl?: string;
25
25
  mirantesDomain?: string;
26
+ openCageApiKey?: string;
26
27
  locale?: TLocale;
27
28
  Link?: LinkComponent;
28
29
  usePathname?: UsePathname;
@@ -45,6 +46,7 @@ interface IMirantesFoundationContext {
45
46
  isGettingUser?: boolean;
46
47
  isGettingStats?: boolean;
47
48
  Notification?: ReactNode;
49
+ openCageApiKey?: string;
48
50
  onOpenCreatePostModal?: (cb?: () => void) => void;
49
51
  }
50
52
  type CommonLinkProps = {
@@ -75,7 +77,7 @@ type User = {
75
77
  type LinkComponent = (props: CommonLinkProps) => any;
76
78
  type UsePathname = () => string;
77
79
 
78
- declare function MirantesFoundationProvider({ children, Notification, queryClient: reactQueryClient, onOpenCreatePostModal, values: { locale, Link, usePathname, user, isGettingUser, mirantesDomain, environment, widgetsApi, hostUrl, isDev, profileApiUrl, isGettingStats, }, }: IMirantesFoundationProviderProps): React__default.JSX.Element;
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;
79
81
 
80
82
  declare function WorkspacePanel(): React__default.JSX.Element;
81
83
 
@@ -115,6 +117,7 @@ interface DateInputProps {
115
117
  minDate?: Date;
116
118
  maxDate?: Date;
117
119
  required?: boolean;
120
+ showDateIcon?: boolean;
118
121
  disabled?: boolean;
119
122
  readOnly?: boolean;
120
123
  className?: string;
@@ -123,7 +126,65 @@ interface DateInputProps {
123
126
  label?: string;
124
127
  "data-testid"?: string;
125
128
  error?: string;
129
+ formattedAsMonthYear?: boolean;
126
130
  }
127
- declare function CustomDateInput({ value, error: errorMessage, onChange, minDate, maxDate, required, disabled, readOnly, className, placeholder, inputClassName, label, "data-testid": testId, }: DateInputProps): React__default.JSX.Element;
131
+ declare function CustomDateInput({ value, error: errorMessage, onChange, minDate, maxDate, required, showDateIcon, disabled, readOnly, className, placeholder, inputClassName, label, "data-testid": testId, formattedAsMonthYear, }: DateInputProps): React__default.JSX.Element;
128
132
 
129
- export { CustomDateInput, DateInput, GradientModal, Header, MirantesFoundationProvider, Spinner, WorkspacePanel, closeLogoutChannel, getInitials, joinUrlWithPathAndQuery, onLogout, stringToObj, useMirantesFoundation };
133
+ interface AddressSuggestion {
134
+ country?: string;
135
+ city?: string;
136
+ latitude?: number;
137
+ longitude?: number;
138
+ address?: string;
139
+ }
140
+ interface AddressInputProps {
141
+ value: string;
142
+ onChange: (props?: AddressSuggestion) => void;
143
+ className?: string;
144
+ inputClassName?: string;
145
+ leftElement?: ReactNode;
146
+ minChars?: number;
147
+ debounceDelay?: number;
148
+ placeholder?: string;
149
+ noResultsText?: string;
150
+ customLoading?: ReactNode;
151
+ floatable?: boolean;
152
+ }
153
+ declare function AddressAutocompleteInput({ value, onChange, className, inputClassName, leftElement, minChars, debounceDelay, placeholder, customLoading, floatable, }: AddressInputProps): React__default.JSX.Element;
154
+
155
+ interface ICountryInputProps {
156
+ locale?: "pt" | "fr" | "en";
157
+ value?: string;
158
+ onChange?: (value: {
159
+ locale: string;
160
+ name: string;
161
+ }) => void;
162
+ className?: string;
163
+ defaultCode?: string;
164
+ forNationality?: boolean;
165
+ }
166
+
167
+ interface CountryInputProps extends Omit<ICountryInputProps, "locale"> {
168
+ floatable?: boolean;
169
+ className?: string;
170
+ }
171
+ declare function CountryInput({ className, defaultCode, onChange, value, floatable, }: CountryInputProps): React__default.JSX.Element;
172
+ declare namespace CountryInput {
173
+ var displayName: string;
174
+ }
175
+
176
+ interface SalaryInputProps {
177
+ value?: string;
178
+ currency?: string;
179
+ onChange?: (value: string, currency: string) => void;
180
+ label?: string;
181
+ placeholder?: string;
182
+ className?: string;
183
+ disabled?: boolean;
184
+ required?: boolean;
185
+ id?: string;
186
+ floatable?: boolean;
187
+ }
188
+ declare function SalaryInput({ value, currency, onChange, label, placeholder, className, disabled, required, id, floatable, }: SalaryInputProps): React__default.JSX.Element;
189
+
190
+ export { AddressAutocompleteInput, CountryInput, CustomDateInput, DateInput, GradientModal, Header, MirantesFoundationProvider, SalaryInput, Spinner, WorkspacePanel, closeLogoutChannel, getInitials, joinUrlWithPathAndQuery, onLogout, stringToObj, useMirantesFoundation };