@agilekit/ui 0.1.0-alpha.16 → 0.1.0-alpha.18
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/lib/index.js +1 -1
- package/lib/src/components/InputDuration/InputDuration.d.ts +5 -0
- package/lib/src/components/InputDuration/InputDuration.styles.d.ts +1 -0
- package/lib/src/components/InputDuration/InputDuration.types.d.ts +14 -0
- package/lib/src/components/InputDuration/index.d.ts +2 -0
- package/lib/src/components/InputDuration/tests/InputDuration.test.d.ts +1 -0
- package/lib/src/components/TextField/TextField.renderers.d.ts +4 -1
- package/lib/src/components/TextField/TextField.styles.d.ts +1 -1
- package/lib/src/components/TextField/TextField.types.d.ts +2 -0
- package/lib/src/components/TextField/tests/TextField.test.d.ts +1 -0
- package/lib/src/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useInputDurationStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"divider" | "root" | "helperText" | "secondaryLabel" | "inputLabel" | "inputLabelFocused" | "asteriskRequired" | "inputContainer" | "inputContainerFocus" | "inputContainerDisabled" | "inputContainerError" | "sizeMd" | "sizeSm" | "segmentContainer" | "iconWrapper" | "iconMd" | "iconSm" | "numberContainer" | "numberInput" | "numberInputDisabled" | "unitLabel">;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BasicTextFieldProps } from '../TextField';
|
|
3
|
+
export interface DurationValue {
|
|
4
|
+
hours: number | '';
|
|
5
|
+
minutes: number | '';
|
|
6
|
+
}
|
|
7
|
+
export interface IInputDurationProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue' | 'onBlur' | 'onFocus'>, BasicTextFieldProps {
|
|
8
|
+
value?: DurationValue;
|
|
9
|
+
onChange?(value: DurationValue): void;
|
|
10
|
+
size?: 'md' | 'sm';
|
|
11
|
+
name?: string;
|
|
12
|
+
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
13
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -30,8 +30,11 @@ interface ColorPickerPopoverParams {
|
|
|
30
30
|
anchorEl: HTMLElement | null;
|
|
31
31
|
classes: any;
|
|
32
32
|
value?: string | number;
|
|
33
|
+
colorPickerMode: 'free' | 'predefined';
|
|
34
|
+
predefinedColors?: string[];
|
|
33
35
|
handlePopoverClose: () => void;
|
|
34
36
|
handleColorPicker: (color: ColorResult) => void;
|
|
37
|
+
handlePredefinedColorPicker: (color: ColorResult) => void;
|
|
35
38
|
}
|
|
36
39
|
interface HelperTextParams {
|
|
37
40
|
error?: Error | boolean | string;
|
|
@@ -44,6 +47,6 @@ export declare const getTextFieldAdornments: ({ startAdornment, endAdornment, ic
|
|
|
44
47
|
};
|
|
45
48
|
export declare const renderDatePickerPopover: ({ open, anchorEl, datePicker, dateRange, locale, handlePopoverClose, handleDatePicker, }: DatePickerPopoverParams) => React.ReactNode;
|
|
46
49
|
export declare const renderColorPickerButton: ({ classes, value, handlePopoverClick, }: ColorPickerButtonParams) => React.ReactNode;
|
|
47
|
-
export declare const renderColorPickerPopover: ({ name, open, anchorEl, classes, value, handlePopoverClose, handleColorPicker, }: ColorPickerPopoverParams) => React.ReactNode;
|
|
50
|
+
export declare const renderColorPickerPopover: ({ name, open, anchorEl, classes, value, colorPickerMode, predefinedColors, handlePopoverClose, handleColorPicker, handlePredefinedColorPicker, }: ColorPickerPopoverParams) => React.ReactNode;
|
|
48
51
|
export declare const renderHelperText: ({ error, helperText, classes }: HelperTextParams) => React.ReactNode;
|
|
49
52
|
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" | "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" | "withMask" | "append" | "edgeEnd">;
|
|
16
16
|
export {};
|
|
@@ -26,6 +26,8 @@ export interface ITextFieldProps extends React.HTMLAttributes<HTMLInputElement>,
|
|
|
26
26
|
datePicker?: boolean;
|
|
27
27
|
dateRange?: boolean;
|
|
28
28
|
colorPicker?: boolean | number;
|
|
29
|
+
colorPickerMode?: 'free' | 'predefined';
|
|
30
|
+
predefinedColors?: string[];
|
|
29
31
|
type?: string;
|
|
30
32
|
mask?: string;
|
|
31
33
|
name?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/src/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export { Gallery } from './components/Gallery/Gallery';
|
|
|
28
28
|
export { default as Heading } from './components/Heading/Heading';
|
|
29
29
|
export { default as Icon } from './components/Icon/Icon';
|
|
30
30
|
export { default as InputFile } from './components/InputFile/InputFile';
|
|
31
|
+
export { default as InputDuration } from './components/InputDuration';
|
|
31
32
|
export { default as Label } from './components/Label/Label';
|
|
32
33
|
export { default as Labelled } from './components/Labelled/Labelled';
|
|
33
34
|
export { default as Link } from './components/Link/Link';
|