@hexure/ui 1.3.8 → 1.4.0

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
  }
package/dist/index.d.ts CHANGED
@@ -221,9 +221,9 @@ interface InputProps extends AccessibleProps {
221
221
  height?: string;
222
222
  suffix?: string;
223
223
  invalid?: boolean;
224
- max?: number;
224
+ max?: string;
225
225
  maxLength?: number;
226
- min?: number;
226
+ min?: string;
227
227
  onBlur?: (e?: any) => void;
228
228
  onChange?: (e?: any) => void;
229
229
  onKeyDown?: (e?: any) => void;
@@ -326,7 +326,7 @@ declare const RadioList: FC<RadioListProps>;
326
326
 
327
327
  interface OptionProps {
328
328
  /** It is used to give label to option. */
329
- label: string;
329
+ label?: string;
330
330
  /** It is used to give value to option. */
331
331
  value: string | number;
332
332
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.3.8",
3
+ "version": "1.4.0",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",