@agilekit/ui 0.1.0-alpha.23 → 0.1.0-alpha.25
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const createInputChangeEvent: (value: string | number, name?: string) => React.ChangeEvent<HTMLInputElement>;
|
|
3
3
|
export declare const formatDatePickerValue: (value: any, dateRange: boolean, locale: string) => string;
|
|
4
|
+
export declare const getTimePickerOptions: (inputProps?: Record<string, any>) => string[];
|
|
@@ -11,7 +11,7 @@ interface AdornmentParams {
|
|
|
11
11
|
timePickerDisabled?: boolean;
|
|
12
12
|
classes: any;
|
|
13
13
|
handlePopoverClick: (event: React.MouseEvent<any>) => void;
|
|
14
|
-
handleTimePickerClick: () => void;
|
|
14
|
+
handleTimePickerClick: (event: React.MouseEvent<any>) => void;
|
|
15
15
|
}
|
|
16
16
|
interface DatePickerPopoverParams {
|
|
17
17
|
open: boolean;
|
|
@@ -39,6 +39,16 @@ interface ColorPickerPopoverParams {
|
|
|
39
39
|
handleColorPicker: (color: ColorResult) => void;
|
|
40
40
|
handlePredefinedColorPicker: (color: ColorResult) => void;
|
|
41
41
|
}
|
|
42
|
+
interface TimePickerPopoverParams {
|
|
43
|
+
open: boolean;
|
|
44
|
+
anchorEl: HTMLElement | null;
|
|
45
|
+
timePicker?: boolean;
|
|
46
|
+
classes: any;
|
|
47
|
+
value?: string | number;
|
|
48
|
+
options: string[];
|
|
49
|
+
handlePopoverClose: () => void;
|
|
50
|
+
handleTimePickerSelect: (value: string) => void;
|
|
51
|
+
}
|
|
42
52
|
interface HelperTextParams {
|
|
43
53
|
error?: Error | boolean | string;
|
|
44
54
|
helperText?: React.ReactNode;
|
|
@@ -51,5 +61,6 @@ export declare const getTextFieldAdornments: ({ startAdornment, endAdornment, ic
|
|
|
51
61
|
export declare const renderDatePickerPopover: ({ open, anchorEl, datePicker, dateRange, locale, handlePopoverClose, handleDatePicker, }: DatePickerPopoverParams) => React.ReactNode;
|
|
52
62
|
export declare const renderColorPickerButton: ({ classes, value, handlePopoverClick, }: ColorPickerButtonParams) => React.ReactNode;
|
|
53
63
|
export declare const renderColorPickerPopover: ({ name, open, anchorEl, classes, value, colorPickerMode, predefinedColors, handlePopoverClose, handleColorPicker, handlePredefinedColorPicker, }: ColorPickerPopoverParams) => React.ReactNode;
|
|
64
|
+
export declare const renderTimePickerPopover: ({ open, anchorEl, timePicker, classes, value, options, handlePopoverClose, handleTimePickerSelect, }: TimePickerPopoverParams) => React.ReactNode;
|
|
54
65
|
export declare const renderHelperText: ({ error, helperText, classes }: HelperTextParams) => React.ReactNode;
|
|
55
66
|
export {};
|
|
@@ -12,5 +12,5 @@ interface HelperTextStyles {
|
|
|
12
12
|
}
|
|
13
13
|
export declare const inputLabelStyles: (theme: ThemeAgile) => InputLabelStyles;
|
|
14
14
|
export declare const helperTextStyles: (theme: ThemeAgile) => HelperTextStyles;
|
|
15
|
-
export declare const useTextFieldStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"helperText" | "secondaryLabel" | "inputBase" | "inputLabel" | "inputLabelFocused" | "asteriskRequired" | "inputContainer" | "inputContainerFocus" | "inputContainerDisabled" | "inputContainerError" | "multilineContainer" | "inputDisabled" | "inputAction" | "inputGroupAppend" | "inputBtn" | "withAppend" | "withIconLeft" | "sideIcon" | "colorPickerButton" | "colorPopover" | "predefinedColorInput" | "timePickerInput" | "withMask" | "append" | "edgeEnd">;
|
|
15
|
+
export declare const useTextFieldStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"helperText" | "secondaryLabel" | "inputBase" | "inputLabel" | "inputLabelFocused" | "asteriskRequired" | "inputContainer" | "inputContainerFocus" | "inputContainerDisabled" | "inputContainerError" | "multilineContainer" | "inputDisabled" | "inputAction" | "inputGroupAppend" | "inputBtn" | "withAppend" | "withIconLeft" | "sideIcon" | "colorPickerButton" | "colorPopover" | "predefinedColorInput" | "timePickerInput" | "timePickerPopover" | "timePickerOptionList" | "timePickerOption" | "timePickerOptionSelected" | "withMask" | "append" | "edgeEnd">;
|
|
16
16
|
export {};
|