@hexure/ui 1.3.8 → 1.4.1

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.
@@ -5,21 +5,12 @@ export interface DateProps extends AccessibleProps {
5
5
  readOnly?: boolean;
6
6
  /** It is used to show error messages when it's value is false. */
7
7
  invalid?: boolean;
8
- /** It is used to set maxxiumum year. */
9
- maxYear?: number;
10
- /** It is used to set minumum year. */
11
- minYear?: number;
12
- /** It is used to set the date. */
13
- date?: {
14
- month: number;
15
- day: number;
16
- year: number;
17
- };
18
- /** It is used to read value for border rasius & flex grow */
19
- style?: {
20
- borderRadius?: string;
21
- flexGrow?: number;
22
- };
8
+ /** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
9
+ maxDate?: number;
10
+ /** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
11
+ minDate?: number;
12
+ /** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
13
+ date?: string;
23
14
  /** It is used to get selected value */
24
15
  onChange: (e: any) => void;
25
16
  }
@@ -5,9 +5,9 @@ export interface InputProps extends AccessibleProps {
5
5
  height?: string;
6
6
  suffix?: string;
7
7
  invalid?: boolean;
8
- max?: number;
8
+ max?: string;
9
9
  maxLength?: number;
10
- min?: number;
10
+ min?: string;
11
11
  onBlur?: (e?: any) => void;
12
12
  onChange?: (e?: any) => void;
13
13
  onKeyDown?: (e?: any) => void;
@@ -2,7 +2,7 @@ import { FC } from 'react';
2
2
  import { AccessibleProps } from '../../utils/Accessibility';
3
3
  export interface OptionProps {
4
4
  /** It is used to give label to option. */
5
- label: string;
5
+ label?: string;
6
6
  /** It is used to give value to option. */
7
7
  value: string | number;
8
8
  }
@@ -6,6 +6,7 @@ export { default as Button } from './components/Button';
6
6
  export { default as Checkbox } from './components/Checkbox';
7
7
  export { default as Checklist } from './components/Checklist';
8
8
  export { default as Copy } from './components/Copy';
9
+ export { default as DatePicker } from './components/DatePicker';
9
10
  export { default as Drawer } from './components/Drawer';
10
11
  export { default as Field } from './components/Field';
11
12
  export { default as FileUpload } from './components/FileUpload';