@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';
package/dist/index.d.ts CHANGED
@@ -134,6 +134,22 @@ interface CopyProps extends AccessibleProps {
134
134
  }
135
135
  declare const Copy: FC<CopyProps>;
136
136
 
137
+ interface DateProps extends AccessibleProps {
138
+ /** If it's value is true then select is disabled. */
139
+ readOnly?: boolean;
140
+ /** It is used to show error messages when it's value is false. */
141
+ invalid?: boolean;
142
+ /** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
143
+ maxDate?: number;
144
+ /** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
145
+ minDate?: number;
146
+ /** Pass in the date in ISO 8601 string format (YYYY-MM-DD) */
147
+ date?: string;
148
+ /** It is used to get selected value */
149
+ onChange: (e: any) => void;
150
+ }
151
+ declare const DatePicker: FC<DateProps>;
152
+
137
153
  interface ButtonProps$1 extends AccessibleProps {
138
154
  disabled: boolean;
139
155
  children: string;
@@ -221,9 +237,9 @@ interface InputProps extends AccessibleProps {
221
237
  height?: string;
222
238
  suffix?: string;
223
239
  invalid?: boolean;
224
- max?: number;
240
+ max?: string;
225
241
  maxLength?: number;
226
- min?: number;
242
+ min?: string;
227
243
  onBlur?: (e?: any) => void;
228
244
  onChange?: (e?: any) => void;
229
245
  onKeyDown?: (e?: any) => void;
@@ -326,7 +342,7 @@ declare const RadioList: FC<RadioListProps>;
326
342
 
327
343
  interface OptionProps {
328
344
  /** It is used to give label to option. */
329
- label: string;
345
+ label?: string;
330
346
  /** It is used to give value to option. */
331
347
  value: string | number;
332
348
  }
@@ -425,4 +441,4 @@ interface ZeroStateProps extends AccessibleProps {
425
441
  }
426
442
  declare const ZeroState: FC<ZeroStateProps>;
427
443
 
428
- export { Accordion, ActionDialog, Alert, BulkActionBar, Button, Checkbox, Checklist, Copy, Drawer, Field, FileUpload, Heading, Input, Logo, Modal, MoreMenu, MultiSelect, Pagination, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, ZeroState };
444
+ export { Accordion, ActionDialog, Alert, BulkActionBar, Button, Checkbox, Checklist, Copy, DatePicker, Drawer, Field, FileUpload, Heading, Input, Logo, Modal, MoreMenu, MultiSelect, Pagination, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, ZeroState };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.3.8",
3
+ "version": "1.4.1",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",