@mirantes-micro/foundation-design-system 1.1.4 → 1.1.6

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
@@ -240,19 +240,23 @@ declare namespace CountryDisplay {
240
240
  var displayName: string;
241
241
  }
242
242
 
243
- interface SalaryInputProps {
244
- value?: string;
245
- currency?: string;
246
- onChange?: (value: string, currency: string) => void;
243
+ interface SalaryInputWithButtonProps {
247
244
  label?: string;
245
+ value?: {
246
+ amount: string;
247
+ currency: string;
248
+ };
249
+ onChange?: (val: {
250
+ amount: string;
251
+ currency: string;
252
+ }) => void;
253
+ onGenerate?: () => void;
248
254
  placeholder?: string;
249
- className?: string;
250
255
  disabled?: boolean;
251
- required?: boolean;
252
- id?: string;
253
- floatable?: boolean;
256
+ className?: string;
257
+ buttonLabel?: string;
254
258
  }
255
- declare function SalaryInput({ value, currency, onChange, label, placeholder, className, disabled, required, id, floatable, }: SalaryInputProps): React__default.JSX.Element;
259
+ declare function SalaryInputWithButton({ label, value, onChange, onGenerate, placeholder, disabled, className, buttonLabel, }: SalaryInputWithButtonProps): React__default.JSX.Element;
256
260
 
257
261
  interface CalendarProps {
258
262
  locale?: "pt" | "fr" | "en";
@@ -709,4 +713,21 @@ declare function AnimatedModal({ isOpen, onClose, children, variant, className,
709
713
  offsetTop?: number;
710
714
  }): React__default.JSX.Element | null;
711
715
 
712
- export { AddressAutocompleteInput, AnimatedModal, BaseInput, Button, ChatView, ChatViewDesktopPage, CheckBoxInput, ContactsModal, CountryDisplay, CountryInput, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, GradientModal, Header, MessageButton, MirantesButton, MirantesFoundationProvider, RadioButtonInput, SalaryInput, Calendar as ScheduleCalendar, Spinner, WorkspacePanel, clearSettingsCookie, closeLogoutChannel, designSystemPreset, getInitials, getSettingsFromCookie, joinUrlWithPathAndQuery, onLogout, stringToObj, useApiGetPage, useCandidaciesTriggerStore, useCommunityTriggerStore, useJobTriggerStore, useLoadSettings, useMirantesFoundation, useSetChatVisibility };
716
+ interface IResponsiveDrawerProps {
717
+ isOpen: boolean;
718
+ onClose: () => void;
719
+ header?: React$1.ReactNode;
720
+ footer?: React$1.ReactNode;
721
+ children: React$1.ReactNode;
722
+ className?: string;
723
+ side?: "right" | "left" | "bottom";
724
+ swipeable?: boolean;
725
+ swipeThreshold?: number;
726
+ }
727
+
728
+ interface ExtendedDrawerProps extends IResponsiveDrawerProps {
729
+ title?: string;
730
+ }
731
+ declare function ResponsiveDrawer({ isOpen, onClose, title, header, footer, children, className, swipeable, }: ExtendedDrawerProps): React$1.JSX.Element;
732
+
733
+ export { AddressAutocompleteInput, AnimatedModal, BaseInput, Button, ChatView, ChatViewDesktopPage, CheckBoxInput, ContactsModal, CountryDisplay, CountryInput, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, GradientModal, Header, MessageButton, MirantesButton, MirantesFoundationProvider, RadioButtonInput, ResponsiveDrawer, SalaryInputWithButton, Calendar as ScheduleCalendar, Spinner, WorkspacePanel, clearSettingsCookie, closeLogoutChannel, designSystemPreset, getInitials, getSettingsFromCookie, joinUrlWithPathAndQuery, onLogout, stringToObj, useApiGetPage, useCandidaciesTriggerStore, useCommunityTriggerStore, useJobTriggerStore, useLoadSettings, useMirantesFoundation, useSetChatVisibility };