@mirantes-micro/foundation-design-system 0.0.71 → 0.0.73
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 +19 -20
- 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;
|
|
@@ -99,24 +99,7 @@ interface DateInputProps {
|
|
|
99
99
|
calendarClassName?: string;
|
|
100
100
|
triggerClassName?: string;
|
|
101
101
|
}
|
|
102
|
-
declare function DateInput({ label, onChange, value, required, className, triggerClassName, error, disabled, calendarClassName, }: DateInputProps): React.JSX.Element;
|
|
103
|
-
|
|
104
|
-
interface DateRange {
|
|
105
|
-
from: Date | undefined;
|
|
106
|
-
to: Date | undefined;
|
|
107
|
-
}
|
|
108
|
-
interface DateRangeInputProps {
|
|
109
|
-
label: string;
|
|
110
|
-
onChange: (range: DateRange) => void;
|
|
111
|
-
value: DateRange;
|
|
112
|
-
required?: boolean;
|
|
113
|
-
className?: string;
|
|
114
|
-
error?: string;
|
|
115
|
-
calendarClassName?: string;
|
|
116
|
-
disabled?: boolean;
|
|
117
|
-
triggerClassName?: string;
|
|
118
|
-
}
|
|
119
|
-
declare function DateRangeInput({ label, onChange, value, required, className, error, disabled, calendarClassName, triggerClassName, }: DateRangeInputProps): React.JSX.Element;
|
|
102
|
+
declare function DateInput({ label, onChange, value, required, className, triggerClassName, error, disabled, calendarClassName, }: DateInputProps$1): React.JSX.Element;
|
|
120
103
|
|
|
121
104
|
declare function GradientModal({ onClose, children, isOpen, className, contentClassName, }: {
|
|
122
105
|
onClose: () => void;
|
|
@@ -126,4 +109,20 @@ declare function GradientModal({ onClose, children, isOpen, className, contentCl
|
|
|
126
109
|
contentClassName?: string;
|
|
127
110
|
}): React__default.JSX.Element;
|
|
128
111
|
|
|
129
|
-
|
|
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 };
|