@mirantes-micro/foundation-design-system 1.2.222 → 1.2.224
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 -7
- package/dist/index.js +114 -115
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -320,12 +320,13 @@ interface CalendarProps {
|
|
|
320
320
|
}
|
|
321
321
|
declare function Calendar({ onMarkAsUnavailable, isModalOpen, onClose, calendarCardClassName, }: CalendarProps): React__default.JSX.Element;
|
|
322
322
|
|
|
323
|
-
|
|
323
|
+
declare const BaseInput: React__default.ForwardRefExoticComponent<{
|
|
324
324
|
placeholder: string;
|
|
325
325
|
value: string;
|
|
326
326
|
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
327
327
|
onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
328
328
|
onFocus?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
329
|
+
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
329
330
|
rightIcon?: React__default.ReactNode;
|
|
330
331
|
leftIcon?: React__default.ReactNode;
|
|
331
332
|
label?: string;
|
|
@@ -335,7 +336,6 @@ type BaseInputProps = {
|
|
|
335
336
|
name?: string;
|
|
336
337
|
id?: string;
|
|
337
338
|
className?: string;
|
|
338
|
-
children?: React__default.ReactNode;
|
|
339
339
|
wrapperClassName?: string;
|
|
340
340
|
required?: boolean;
|
|
341
341
|
inputClassName?: string;
|
|
@@ -343,8 +343,8 @@ type BaseInputProps = {
|
|
|
343
343
|
min?: number;
|
|
344
344
|
max?: number;
|
|
345
345
|
placeholderColor?: string;
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
autoComplete?: string;
|
|
347
|
+
} & React__default.InputHTMLAttributes<HTMLInputElement> & React__default.RefAttributes<HTMLInputElement>>;
|
|
348
348
|
|
|
349
349
|
declare function CheckBoxInput({ isChecked, onClick, label, disabled, }: {
|
|
350
350
|
isChecked?: boolean;
|
|
@@ -355,13 +355,16 @@ declare function CheckBoxInput({ isChecked, onClick, label, disabled, }: {
|
|
|
355
355
|
|
|
356
356
|
type CustomDrawerProps = {
|
|
357
357
|
children: React__default.ReactNode;
|
|
358
|
+
title?: React__default.ReactNode;
|
|
358
359
|
footer?: React__default.ReactNode;
|
|
359
360
|
onClose: () => void;
|
|
360
361
|
className?: string;
|
|
361
362
|
isOpen?: boolean;
|
|
362
363
|
hideCloseBlock?: boolean;
|
|
364
|
+
/** If true, the footer will stay at the bottom even when scrolling */
|
|
365
|
+
stickyFooter?: boolean;
|
|
363
366
|
};
|
|
364
|
-
declare function CustomDrawer({ children, footer, onClose, className, isOpen, hideCloseBlock, }: CustomDrawerProps): React__default.JSX.Element;
|
|
367
|
+
declare function CustomDrawer({ children, title, footer, onClose, className, isOpen, hideCloseBlock, stickyFooter, }: CustomDrawerProps): React__default.JSX.Element;
|
|
365
368
|
|
|
366
369
|
declare function RadioButtonInput({ label, isSelected, onSelect, }: {
|
|
367
370
|
label?: string;
|
|
@@ -377,7 +380,7 @@ type Option = {
|
|
|
377
380
|
type CustomSelectInputProps = {
|
|
378
381
|
options: Option[];
|
|
379
382
|
value?: string;
|
|
380
|
-
onChange?: (option: Option) => void;
|
|
383
|
+
onChange?: (option: Option | null) => void;
|
|
381
384
|
placeholder?: string;
|
|
382
385
|
className?: string;
|
|
383
386
|
enableSearch?: boolean;
|
|
@@ -390,7 +393,8 @@ type CustomSelectInputProps = {
|
|
|
390
393
|
onSearch?: (query: string) => void;
|
|
391
394
|
isLoading?: boolean;
|
|
392
395
|
};
|
|
393
|
-
declare function CustomSelectInput({ options, value, onChange, placeholder, className, enableSearch, floattable,
|
|
396
|
+
declare function CustomSelectInput({ options, value, onChange, placeholder, className, enableSearch, floattable, // Default to true for standard dropdown behavior
|
|
397
|
+
required, showCheck, label, error, disabled, onSearch, isLoading, }: CustomSelectInputProps): React$1.JSX.Element;
|
|
394
398
|
|
|
395
399
|
type ButtonProps = {
|
|
396
400
|
children: React__default.ReactNode;
|