@mirantes-micro/foundation-design-system 0.0.70 → 0.0.72
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 +20 -19
- package/dist/index.js +8 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ declare function useMirantesFoundation(): IMirantesFoundationContext;
|
|
|
88
88
|
declare function onLogout(callback: () => void): void;
|
|
89
89
|
declare function closeLogoutChannel(): void;
|
|
90
90
|
|
|
91
|
-
interface DateInputProps {
|
|
91
|
+
interface DateInputProps$1 {
|
|
92
92
|
label: string;
|
|
93
93
|
onChange: (date: Date) => void;
|
|
94
94
|
value: Date;
|
|
@@ -97,24 +97,9 @@ interface DateInputProps {
|
|
|
97
97
|
error?: string;
|
|
98
98
|
disabled?: boolean;
|
|
99
99
|
calendarClassName?: string;
|
|
100
|
+
triggerClassName?: string;
|
|
100
101
|
}
|
|
101
|
-
declare function DateInput({ label, onChange, value, required, className, error, disabled, calendarClassName, }: DateInputProps): React.JSX.Element;
|
|
102
|
-
|
|
103
|
-
interface DateRange {
|
|
104
|
-
from: Date | undefined;
|
|
105
|
-
to: Date | undefined;
|
|
106
|
-
}
|
|
107
|
-
interface DateRangeInputProps {
|
|
108
|
-
label: string;
|
|
109
|
-
onChange: (range: DateRange) => void;
|
|
110
|
-
value: DateRange;
|
|
111
|
-
required?: boolean;
|
|
112
|
-
className?: string;
|
|
113
|
-
error?: string;
|
|
114
|
-
calendarClassName?: string;
|
|
115
|
-
disabled?: boolean;
|
|
116
|
-
}
|
|
117
|
-
declare function DateRangeInput({ label, onChange, value, required, className, error, disabled, calendarClassName, }: DateRangeInputProps): React.JSX.Element;
|
|
102
|
+
declare function DateInput({ label, onChange, value, required, className, triggerClassName, error, disabled, calendarClassName, }: DateInputProps$1): React.JSX.Element;
|
|
118
103
|
|
|
119
104
|
declare function GradientModal({ onClose, children, isOpen, className, contentClassName, }: {
|
|
120
105
|
onClose: () => void;
|
|
@@ -124,4 +109,20 @@ declare function GradientModal({ onClose, children, isOpen, className, contentCl
|
|
|
124
109
|
contentClassName?: string;
|
|
125
110
|
}): React__default.JSX.Element;
|
|
126
111
|
|
|
127
|
-
|
|
112
|
+
interface DateInputProps {
|
|
113
|
+
value?: Date | string | null;
|
|
114
|
+
onChange?: (date: Date | null) => void;
|
|
115
|
+
minDate?: Date;
|
|
116
|
+
maxDate?: Date;
|
|
117
|
+
required?: boolean;
|
|
118
|
+
disabled?: boolean;
|
|
119
|
+
readOnly?: boolean;
|
|
120
|
+
className?: string;
|
|
121
|
+
placeholder?: string;
|
|
122
|
+
inputClassName?: string;
|
|
123
|
+
label?: string;
|
|
124
|
+
"data-testid"?: string;
|
|
125
|
+
}
|
|
126
|
+
declare function CustomDateInput({ value, onChange, minDate, maxDate, required, disabled, readOnly, className, placeholder, inputClassName, label, "data-testid": testId, }: DateInputProps): React__default.JSX.Element;
|
|
127
|
+
|
|
128
|
+
export { CustomDateInput, DateInput, GradientModal, Header, MirantesFoundationProvider, Spinner, WorkspacePanel, closeLogoutChannel, getInitials, joinUrlWithPathAndQuery, onLogout, stringToObj, useMirantesFoundation };
|