@mirantes-micro/foundation-design-system 0.0.97 → 0.0.99

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
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import React__default, { ReactNode } from 'react';
1
+ import * as React$1 from 'react';
2
+ import React__default, { ReactNode, ChangeEvent } from 'react';
3
3
  import { QueryClient } from '@tanstack/react-query';
4
4
 
5
5
  declare function Spinner({ className }: {
@@ -101,7 +101,7 @@ interface DateInputProps$1 {
101
101
  calendarClassName?: string;
102
102
  triggerClassName?: string;
103
103
  }
104
- declare function DateInput({ label, onChange, value, required, className, triggerClassName, error, disabled, calendarClassName, }: DateInputProps$1): React.JSX.Element;
104
+ declare function DateInput({ label, onChange, value, required, className, triggerClassName, error, disabled, calendarClassName, }: DateInputProps$1): React$1.JSX.Element;
105
105
 
106
106
  declare function GradientModal({ onClose, children, isOpen, className, contentClassName, showGradient, }: {
107
107
  onClose: () => void;
@@ -223,4 +223,93 @@ interface CalendarProps {
223
223
  }
224
224
  declare function Calendar({ onMarkAsUnavailable, isModalOpen, onClose, calendarCardClassName, }: CalendarProps): React__default.JSX.Element;
225
225
 
226
- export { AddressAutocompleteInput, CountryDisplay, CountryInput, CustomDateInput, DateInput, GradientModal, Header, MirantesFoundationProvider, SalaryInput, Calendar as ScheduleCalendar, Spinner, WorkspacePanel, closeLogoutChannel, getInitials, joinUrlWithPathAndQuery, onLogout, stringToObj, useMirantesFoundation };
226
+ type BaseInputProps = {
227
+ placeholder: string;
228
+ value: string;
229
+ onChange: (e: ChangeEvent<HTMLInputElement>) => void;
230
+ rightIcon?: React__default.ReactNode;
231
+ leftIcon?: React__default.ReactNode;
232
+ label?: string;
233
+ error?: string;
234
+ disabled?: boolean;
235
+ type?: string;
236
+ name?: string;
237
+ id?: string;
238
+ className?: string;
239
+ children?: React__default.ReactNode;
240
+ wrapperClassName?: string;
241
+ required?: boolean;
242
+ inputClassName?: string;
243
+ requiredInPlaceholder?: boolean;
244
+ min?: number;
245
+ max?: number;
246
+ };
247
+ declare const BaseInput: React__default.ForwardRefExoticComponent<BaseInputProps & React__default.RefAttributes<HTMLInputElement>>;
248
+
249
+ declare function CheckBoxInput({ isChecked, onClick, label, }: {
250
+ isChecked?: boolean;
251
+ onClick?: () => void;
252
+ label?: string;
253
+ }): React__default.JSX.Element;
254
+
255
+ type CustomDrawerProps = {
256
+ children: React__default.ReactNode;
257
+ footer?: React__default.ReactNode;
258
+ onClose: () => void;
259
+ className?: string;
260
+ isOpen?: boolean;
261
+ };
262
+ declare function CustomDrawer({ children, footer, onClose, className, isOpen, }: CustomDrawerProps): React__default.JSX.Element;
263
+
264
+ declare function RadioButtonInput({ label, isSelected, onSelect, }: {
265
+ label?: string;
266
+ isSelected?: boolean;
267
+ onSelect?: () => void;
268
+ }): React__default.JSX.Element;
269
+
270
+ type Option = {
271
+ id: string;
272
+ label: string;
273
+ value: string;
274
+ };
275
+ type CustomSelectInputProps = {
276
+ options: Option[];
277
+ value?: string;
278
+ onChange?: (value: string) => void;
279
+ placeholder?: string;
280
+ className?: string;
281
+ enableSearch?: boolean;
282
+ floattable?: boolean;
283
+ required?: boolean;
284
+ };
285
+ declare function CustomSelectInput({ options, value, onChange, placeholder, className, enableSearch, floattable, required, }: CustomSelectInputProps): React$1.JSX.Element;
286
+
287
+ type ButtonProps = {
288
+ children: React__default.ReactNode;
289
+ type?: "button" | "submit";
290
+ className?: string;
291
+ onClick?: () => void;
292
+ disabled?: boolean;
293
+ isLoading?: boolean;
294
+ };
295
+ declare function Button({ children, className, disabled, isLoading, onClick, type, }: ButtonProps): React__default.JSX.Element;
296
+
297
+ interface IDropdownProps {
298
+ trigger: React.ReactNode;
299
+ options: IDropdownOption[];
300
+ onSelect: (id: string) => void;
301
+ className?: string;
302
+ itemClassName?: string;
303
+ itemHoverClassName?: string;
304
+ animate?: boolean;
305
+ }
306
+ interface IDropdownOption {
307
+ id: string;
308
+ label: string;
309
+ value: string;
310
+ icon?: React.ReactNode;
311
+ }
312
+
313
+ declare function CustomDropdown({ trigger, options, onSelect, className, itemClassName, itemHoverClassName, animate, }: IDropdownProps): React__default.JSX.Element;
314
+
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 };