@7shifts/sous-chef 1.5.3 → 1.5.7
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/dist/forms/MultiSelectField/MultiSelectField.d.ts +2 -1
- package/dist/forms/TextField/TextField.d.ts +14 -9
- package/dist/forms/hooks/useFieldControllers.d.ts +8 -4
- package/dist/index.css +1258 -889
- package/dist/index.js +49 -27
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +49 -27
- package/dist/index.modern.js.map +1 -1
- package/package.json +6 -6
- package/CHANGELOG.md +0 -196
- package/dist/actions/Button/Button.js.flow +0 -44
- package/dist/actions/Button/index.js.flow +0 -8
- package/dist/actions/PaginationControls/PaginationControls.js.flow +0 -16
- package/dist/actions/PaginationControls/index.js.flow +0 -8
- package/dist/actions/Toggle/Toggle.js.flow +0 -21
- package/dist/actions/Toggle/index.js.flow +0 -8
- package/dist/actions/index.js.flow +0 -11
- package/dist/core/DataTable/DataTable.js.flow +0 -59
- package/dist/core/DataTable/DataTableContext.js.flow +0 -15
- package/dist/core/DataTable/index.js.flow +0 -8
- package/dist/core/DataTable/types.js.flow +0 -32
- package/dist/core/DataTableCell/DataTableCell.js.flow +0 -16
- package/dist/core/DataTableCell/index.js.flow +0 -8
- package/dist/core/DataTableEditableCell/DataTableEditableCell.js.flow +0 -26
- package/dist/core/DataTableEditableCell/index.js.flow +0 -8
- package/dist/core/DataTableRow/DataTableRow.js.flow +0 -17
- package/dist/core/DataTableRow/index.js.flow +0 -8
- package/dist/core/Flex/Flex.js.flow +0 -29
- package/dist/core/Flex/index.js.flow +0 -8
- package/dist/core/Flex/types.js.flow +0 -27
- package/dist/core/Inline/Inline.js.flow +0 -41
- package/dist/core/Inline/index.js.flow +0 -8
- package/dist/core/ResourceTable/ResourceTable.js.flow +0 -55
- package/dist/core/ResourceTable/ResourceTableContext.js.flow +0 -15
- package/dist/core/ResourceTable/index.js.flow +0 -8
- package/dist/core/ResourceTable/types.js.flow +0 -32
- package/dist/core/ResourceTableRow/ResourceTableRow.js.flow +0 -17
- package/dist/core/ResourceTableRow/index.js.flow +0 -8
- package/dist/core/Stack/Stack.js.flow +0 -35
- package/dist/core/Stack/index.js.flow +0 -8
- package/dist/core/index.js.flow +0 -39
- package/dist/feedback/Spinner/Spinner.js.flow +0 -15
- package/dist/feedback/Spinner/index.js.flow +0 -8
- package/dist/feedback/index.js.flow +0 -9
- package/dist/forms/AffixContainer/AffixContainer.js.flow +0 -15
- package/dist/forms/AffixContainer/index.js.flow +0 -8
- package/dist/forms/Caption/Caption.js.flow +0 -14
- package/dist/forms/Caption/index.js.flow +0 -8
- package/dist/forms/CheckboxField/CheckboxField.js.flow +0 -25
- package/dist/forms/CheckboxField/index.js.flow +0 -8
- package/dist/forms/DateField/DateField.js.flow +0 -35
- package/dist/forms/DateField/index.js.flow +0 -8
- package/dist/forms/DatePickerCalendar/DatePickerCalendar.js.flow +0 -18
- package/dist/forms/DatePickerCalendar/index.js.flow +0 -8
- package/dist/forms/DatePickerField/DatePickerField.d.ts +0 -23
- package/dist/forms/DatePickerField/DatePickerField.js.flow +0 -35
- package/dist/forms/DatePickerField/index.d.ts +0 -1
- package/dist/forms/DatePickerField/index.js.flow +0 -8
- package/dist/forms/DateRangeField/DateRangeField.js.flow +0 -37
- package/dist/forms/DateRangeField/index.js.flow +0 -8
- package/dist/forms/ErrorMessage/ErrorMessage.js.flow +0 -14
- package/dist/forms/ErrorMessage/index.js.flow +0 -8
- package/dist/forms/Field/Field.js.flow +0 -17
- package/dist/forms/Field/index.js.flow +0 -8
- package/dist/forms/Form/Form.js.flow +0 -18
- package/dist/forms/Form/FormContext.js.flow +0 -17
- package/dist/forms/Form/index.js.flow +0 -8
- package/dist/forms/Form/types.js.flow +0 -21
- package/dist/forms/FormRow/FormRow.js.flow +0 -31
- package/dist/forms/FormRow/index.js.flow +0 -15
- package/dist/forms/Label/Label.js.flow +0 -14
- package/dist/forms/Label/index.js.flow +0 -8
- package/dist/forms/MultiSelectField/MultiSelectField.js.flow +0 -33
- package/dist/forms/MultiSelectField/index.js.flow +0 -8
- package/dist/forms/PasswordCriteria/PasswordCriteria.js.flow +0 -14
- package/dist/forms/PasswordCriteria/index.js.flow +0 -8
- package/dist/forms/PasswordField/PasswordField.js.flow +0 -28
- package/dist/forms/PasswordField/index.js.flow +0 -8
- package/dist/forms/PasswordField/types.js.flow +0 -12
- package/dist/forms/PillSelectField/PillSelectField.js.flow +0 -26
- package/dist/forms/PillSelectField/index.js.flow +0 -8
- package/dist/forms/RadioGroupField/RadioGroupField.js.flow +0 -20
- package/dist/forms/RadioGroupField/index.js.flow +0 -8
- package/dist/forms/RadioGroupOption/RadioGroupOption.js.flow +0 -16
- package/dist/forms/RadioGroupOption/index.js.flow +0 -8
- package/dist/forms/SelectField/SelectField.js.flow +0 -40
- package/dist/forms/SelectField/index.js.flow +0 -8
- package/dist/forms/SelectField/types.js.flow +0 -26
- package/dist/forms/TextAreaField/TextAreaField.js.flow +0 -35
- package/dist/forms/TextAreaField/index.js.flow +0 -8
- package/dist/forms/TextField/TextField.js.flow +0 -38
- package/dist/forms/TextField/index.js.flow +0 -8
- package/dist/forms/WeekField/WeekField.js.flow +0 -35
- package/dist/forms/WeekField/index.js.flow +0 -8
- package/dist/forms/WeekPickerField/WeekPickerField.d.ts +0 -25
- package/dist/forms/WeekPickerField/WeekPickerField.js.flow +0 -35
- package/dist/forms/WeekPickerField/index.d.ts +0 -1
- package/dist/forms/WeekPickerField/index.js.flow +0 -8
- package/dist/forms/index.js.flow +0 -56
- package/dist/foundation/colors.js.flow +0 -116
- package/dist/icons/IconArrowDown.js.flow +0 -19
- package/dist/icons/IconArrowLeft.js.flow +0 -17
- package/dist/icons/IconArrowRight.js.flow +0 -17
- package/dist/icons/IconArrowUp.js.flow +0 -17
- package/dist/icons/IconCalendar.js.flow +0 -17
- package/dist/icons/IconCheck.js.flow +0 -17
- package/dist/icons/IconChevronDown.js.flow +0 -18
- package/dist/icons/IconChevronUp.js.flow +0 -16
- package/dist/icons/IconComment.js.flow +0 -16
- package/dist/icons/IconDelete.js.flow +0 -17
- package/dist/icons/IconEdit.js.flow +0 -17
- package/dist/icons/IconExclaim.flow +0 -17
- package/dist/icons/IconEye.js.flow +0 -17
- package/dist/icons/IconEyeSlash.js.flow +0 -17
- package/dist/icons/IconLocation.js.flow +0 -16
- package/dist/icons/IconMinusCircle.js.flow +0 -16
- package/dist/icons/IconMore.js.flow +0 -17
- package/dist/icons/IconRemove.js.flow +0 -17
- package/dist/icons/IconUser.flow +0 -17
- package/dist/icons/IconUser.js.flow +0 -17
- package/dist/icons/IconUserPlus.js.flow +0 -17
- package/dist/icons/index.js.flow +0 -50
- package/dist/icons/types.js.flow +0 -8
- package/dist/index.js.flow +0 -14
- package/dist/media/Avatar/Avatar.js.flow +0 -18
- package/dist/media/Avatar/index.js.flow +0 -8
- package/dist/media/Badge/Badge.js.flow +0 -18
- package/dist/media/Badge/index.js.flow +0 -8
- package/dist/media/index.js.flow +0 -10
- package/dist/nophoto~DrLDqLZE.png +0 -0
- package/dist/overlay/Modal/Modal.js.flow +0 -23
- package/dist/overlay/Modal/ModalBody/ModalBody.js.flow +0 -13
- package/dist/overlay/Modal/ModalBody/index.js.flow +0 -8
- package/dist/overlay/Modal/ModalFooter/ModalFooter.js.flow +0 -18
- package/dist/overlay/Modal/ModalFooter/index.js.flow +0 -8
- package/dist/overlay/Modal/index.js.flow +0 -8
- package/dist/overlay/Tooltip/Tooltip.js.flow +0 -21
- package/dist/overlay/Tooltip/index.js.flow +0 -8
- package/dist/overlay/index.js.flow +0 -12
- package/dist/profile/LetterProfile/LetterProfile.d.ts +0 -9
- package/dist/profile/LetterProfile/index.d.ts +0 -1
- package/dist/profile/index.d.ts +0 -2
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for ResourceTable
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
import type { Column, CustomComponent, Item, Sort } from './types';
|
|
10
|
-
declare type Props<T> = {
|
|
11
|
-
/**
|
|
12
|
-
* Each element represents a row and each key of the object represents a column
|
|
13
|
-
*/
|
|
14
|
-
items: Item<T>[],
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* For each column element, the `name` property should match the key on `items`
|
|
18
|
-
*/
|
|
19
|
-
columns?: Column[],
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* A custom component for customizing how the each item is rendered. It pass as props: `item`, `index`, `columnSizes` and `columns`
|
|
23
|
-
*/
|
|
24
|
-
itemComponent?: React$ComponentType<CustomComponent<T>>,
|
|
25
|
-
maxHeight?: number,
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Used for pagination
|
|
29
|
-
*/
|
|
30
|
-
hasPrevious?: boolean,
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Used for pagination
|
|
34
|
-
*/
|
|
35
|
-
hasNext?: boolean,
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Used for pagination
|
|
39
|
-
*/
|
|
40
|
-
onPreviousClick?: () => void,
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Used for pagination
|
|
44
|
-
*/
|
|
45
|
-
onNextClick?: () => void,
|
|
46
|
-
isLoading?: boolean,
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* It is fired when a sorted column is clicked to be sorted
|
|
50
|
-
*/
|
|
51
|
-
onSort?: (sort: Sort) => void,
|
|
52
|
-
showActionMenu?: boolean,
|
|
53
|
-
};
|
|
54
|
-
declare var ResourceTable: <T>(props: Props<T>) => React$Node;
|
|
55
|
-
declare export default typeof ResourceTable;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for ResourceTableContext
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
import * as React from 'react';
|
|
8
|
-
|
|
9
|
-
export type ResourceTableContextType = {
|
|
10
|
-
columnSizes?: number[],
|
|
11
|
-
showActionMenu?: boolean,
|
|
12
|
-
};
|
|
13
|
-
declare var Context: React$Context<ResourceTableContextType>;
|
|
14
|
-
declare export var useResourceTableContext: () => ResourceTableContextType;
|
|
15
|
-
declare export default typeof Context;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for types
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
import * as React from 'react';
|
|
8
|
-
|
|
9
|
-
export type Column = {
|
|
10
|
-
name: string,
|
|
11
|
-
label?: React$Node,
|
|
12
|
-
size?: number,
|
|
13
|
-
isSortable?: boolean,
|
|
14
|
-
currentSort?: SortDirection,
|
|
15
|
-
isRightAligned?: boolean
|
|
16
|
-
};
|
|
17
|
-
export type SortDirection = 'asc' | 'desc' | null;
|
|
18
|
-
export type Sort = {
|
|
19
|
-
columnName: string,
|
|
20
|
-
direction: SortDirection
|
|
21
|
-
};
|
|
22
|
-
export type Item<T> = T | (T & { actions?: Action[] });
|
|
23
|
-
export type CustomComponent<T> = {
|
|
24
|
-
item: Item<T>,
|
|
25
|
-
index: number,
|
|
26
|
-
columnSizes?: number[],
|
|
27
|
-
columns?: Column[]
|
|
28
|
-
};
|
|
29
|
-
export type Action = {
|
|
30
|
-
label: React$Node,
|
|
31
|
-
onAction: () => void
|
|
32
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for ResourceTableRow
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
import type { Action } from '../ResourceTable/types';
|
|
10
|
-
declare type Props = {
|
|
11
|
-
children: React$Node,
|
|
12
|
-
onClick?: () => void,
|
|
13
|
-
isSelected?: boolean,
|
|
14
|
-
actions?: Action[],
|
|
15
|
-
};
|
|
16
|
-
declare var ResourceTableRow: (props: Props) => React$Node;
|
|
17
|
-
declare export default typeof ResourceTableRow;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for Stack
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
import type { JustifyContent, Space, AlignItems } from '../Flex/types';
|
|
10
|
-
declare type Props = {
|
|
11
|
-
children: React$Node,
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* From `0` to `60` with multiples of `4`, eg. `8`, `12`, `16` and so on.
|
|
15
|
-
*/
|
|
16
|
-
space?: Space,
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* It sets how each item will grow or shrink to fit the space available in its flex container. The default value is `0 1 auto` but it can be overriden. Check it out this [official doc](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) to see all the possible values.
|
|
20
|
-
*/
|
|
21
|
-
flex?: (string | number)[],
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* One of: `flex-start`, `flex-end`, `center`, `stretch`
|
|
25
|
-
*/
|
|
26
|
-
alignItems?: AlignItems,
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* One of: `start`, `end`, `center`, `space-between`
|
|
30
|
-
*/
|
|
31
|
-
justifyContent?: JustifyContent,
|
|
32
|
-
flexItems?: boolean,
|
|
33
|
-
};
|
|
34
|
-
declare var Stack: (props: Props) => React$Node;
|
|
35
|
-
declare export default typeof Stack;
|
package/dist/core/index.js.flow
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for index
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import ResourceTable from './ResourceTable';
|
|
9
|
-
import ResourceTableRow from './ResourceTableRow';
|
|
10
|
-
import Inline from './Inline';
|
|
11
|
-
import Stack from './Stack';
|
|
12
|
-
import DataTable from './DataTable';
|
|
13
|
-
import DataTableRow from './DataTableRow';
|
|
14
|
-
import DataTableCell from './DataTableCell';
|
|
15
|
-
import DataTableEditableCell from './DataTableEditableCell';
|
|
16
|
-
|
|
17
|
-
declare export {
|
|
18
|
-
ResourceTable,
|
|
19
|
-
ResourceTableRow,
|
|
20
|
-
Inline,
|
|
21
|
-
Stack,
|
|
22
|
-
DataTable,
|
|
23
|
-
DataTableRow,
|
|
24
|
-
DataTableCell,
|
|
25
|
-
DataTableEditableCell
|
|
26
|
-
};
|
|
27
|
-
export type { AlignItems, FlexWrap, JustifyContent } from './Flex/types';
|
|
28
|
-
export type {
|
|
29
|
-
CustomComponent,
|
|
30
|
-
Column,
|
|
31
|
-
SortDirection,
|
|
32
|
-
Sort,
|
|
33
|
-
Action
|
|
34
|
-
} from './ResourceTable/types';
|
|
35
|
-
|
|
36
|
-
export type {
|
|
37
|
-
Column as DataTableColumn,
|
|
38
|
-
CustomComponent as DataTableCustomComponent
|
|
39
|
-
} from './DataTable/types';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for Spinner
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
declare type Props = {
|
|
10
|
-
size?: number,
|
|
11
|
-
theme?: 'mint' | 'disabled' | 'contrast',
|
|
12
|
-
block?: boolean,
|
|
13
|
-
};
|
|
14
|
-
declare var Spinner: (props: Props) => React$Node;
|
|
15
|
-
declare export default typeof Spinner;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for AffixContainer
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
declare type Props = {
|
|
10
|
-
prefix?: React$Node,
|
|
11
|
-
suffix?: React$Node,
|
|
12
|
-
children: React$Node,
|
|
13
|
-
};
|
|
14
|
-
declare var AffixContainer: (props: Props) => React$Node;
|
|
15
|
-
declare export default typeof AffixContainer;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for Caption
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
declare type Props = {
|
|
10
|
-
fieldId?: string,
|
|
11
|
-
children: React$Node,
|
|
12
|
-
};
|
|
13
|
-
declare var Caption: (props: Props) => React$Node;
|
|
14
|
-
declare export default typeof Caption;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for CheckboxField
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
declare type Props = {
|
|
10
|
-
name: string,
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* If not provided it will generate a random id so the label links properly with the text input
|
|
14
|
-
*/
|
|
15
|
-
id?: string,
|
|
16
|
-
checked?: boolean,
|
|
17
|
-
onChange?: (e: boolean) => void,
|
|
18
|
-
onBlur?: (e: boolean) => void,
|
|
19
|
-
label?: React$Node,
|
|
20
|
-
caption?: React$Node,
|
|
21
|
-
error?: string,
|
|
22
|
-
disabled?: boolean,
|
|
23
|
-
};
|
|
24
|
-
declare var CheckboxField: (props: Props) => React$Node;
|
|
25
|
-
declare export default typeof CheckboxField;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for DatePickerField
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
declare type Props = {
|
|
10
|
-
name: string,
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* If not provided it will generate a random id so the label links properly with the text input
|
|
14
|
-
*/
|
|
15
|
-
id?: string,
|
|
16
|
-
value?: Date,
|
|
17
|
-
disabledDays?: (day: Date) => boolean,
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Reference this for valid formats: https://date-fns.org/v2.18.0/docs/format
|
|
21
|
-
*/
|
|
22
|
-
format?: string,
|
|
23
|
-
initialMonth?: Date,
|
|
24
|
-
onChange?: (e: Date) => void,
|
|
25
|
-
onBlur?: () => void,
|
|
26
|
-
label?: React$Node,
|
|
27
|
-
caption?: React$Node,
|
|
28
|
-
error?: string,
|
|
29
|
-
placeholder?: string,
|
|
30
|
-
disabled?: boolean,
|
|
31
|
-
defaultValue?: Date,
|
|
32
|
-
readOnly?: boolean,
|
|
33
|
-
};
|
|
34
|
-
declare var DateField: (props: Props) => React$Node;
|
|
35
|
-
declare export default typeof DateField;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for DatePickerCalendar
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
declare type Props = {
|
|
10
|
-
classNames: Object,
|
|
11
|
-
inputNode: HTMLElement,
|
|
12
|
-
onBlur: () => void,
|
|
13
|
-
onFocus: () => void,
|
|
14
|
-
tabIndex: number,
|
|
15
|
-
children: React$Node,
|
|
16
|
-
};
|
|
17
|
-
declare var DatePickerCalendar: (props: Props) => React$Node;
|
|
18
|
-
declare export default typeof DatePickerCalendar;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type Props = {
|
|
3
|
-
name: string;
|
|
4
|
-
/** If not provided it will generate a random id so the label links properly with the text input */
|
|
5
|
-
id?: string;
|
|
6
|
-
value?: Date;
|
|
7
|
-
disabledDays?: (day: Date) => boolean;
|
|
8
|
-
/** Reference this for valid formats: https://date-fns.org/v2.18.0/docs/format */
|
|
9
|
-
format?: string;
|
|
10
|
-
initialMonth?: Date;
|
|
11
|
-
onChange?: (e: Date) => void;
|
|
12
|
-
onBlur?: () => void;
|
|
13
|
-
label?: React.ReactNode;
|
|
14
|
-
caption?: React.ReactNode;
|
|
15
|
-
error?: string;
|
|
16
|
-
placeholder?: string;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
defaultValue?: Date;
|
|
19
|
-
readOnly?: boolean;
|
|
20
|
-
};
|
|
21
|
-
/** DatePickerField form element. */
|
|
22
|
-
declare const DatePickerField: React.FC<Props>;
|
|
23
|
-
export default DatePickerField;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for DatePickerField
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
declare type Props = {
|
|
10
|
-
name: string,
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* If not provided it will generate a random id so the label links properly with the text input
|
|
14
|
-
*/
|
|
15
|
-
id?: string,
|
|
16
|
-
value?: Date,
|
|
17
|
-
disabledDays?: (day: Date) => boolean,
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Reference this for valid formats: https://date-fns.org/v2.18.0/docs/format
|
|
21
|
-
*/
|
|
22
|
-
format?: string,
|
|
23
|
-
initialMonth?: Date,
|
|
24
|
-
onChange?: (e: Date) => void,
|
|
25
|
-
onBlur?: () => void,
|
|
26
|
-
label?: React$Node,
|
|
27
|
-
caption?: React$Node,
|
|
28
|
-
error?: string,
|
|
29
|
-
placeholder?: string,
|
|
30
|
-
disabled?: boolean,
|
|
31
|
-
defaultValue?: Date,
|
|
32
|
-
readOnly?: boolean,
|
|
33
|
-
};
|
|
34
|
-
declare var DatePickerField: (props: Props) => React$Node;
|
|
35
|
-
declare export default typeof DatePickerField;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './DatePickerField';
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for DatePickerField
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
type DateRange = { start?: Date, end?: Date };
|
|
9
|
-
type WeekStart = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
10
|
-
|
|
11
|
-
import * as React from 'react';
|
|
12
|
-
declare type Props = {
|
|
13
|
-
name: string,
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* If not provided it will generate a random id so the label links properly with the text input
|
|
17
|
-
*/
|
|
18
|
-
id?: string,
|
|
19
|
-
value?: DateRange,
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Reference this for valid formats: https://date-fns.org/v2.18.0/docs/format
|
|
23
|
-
*/
|
|
24
|
-
format?: string,
|
|
25
|
-
onChange?: (e: DateRange) => void,
|
|
26
|
-
onBlur?: () => void,
|
|
27
|
-
label?: React$Node,
|
|
28
|
-
caption?: React$Node,
|
|
29
|
-
error?: string,
|
|
30
|
-
placeholder?: string,
|
|
31
|
-
disabled?: boolean,
|
|
32
|
-
defaultValue?: Date,
|
|
33
|
-
readOnly?: boolean,
|
|
34
|
-
weekStart?: WeekStart,
|
|
35
|
-
};
|
|
36
|
-
declare var DateRangeField: (props: Props) => React$Node;
|
|
37
|
-
declare export default typeof DateRangeField;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for ErrorMessage
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
declare type Props = {
|
|
10
|
-
fieldId?: string,
|
|
11
|
-
children: React$Node,
|
|
12
|
-
};
|
|
13
|
-
declare var ErrorMessage: (props: Props) => React$Node;
|
|
14
|
-
declare export default typeof ErrorMessage;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for Field
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
declare type Props = {
|
|
10
|
-
id: string,
|
|
11
|
-
label?: React$Node,
|
|
12
|
-
caption?: React$Node,
|
|
13
|
-
error?: React$Node,
|
|
14
|
-
children: React$Node,
|
|
15
|
-
};
|
|
16
|
-
declare var Field: (props: Props) => React$Node;
|
|
17
|
-
declare export default typeof Field;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for Form
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
import { type FormikType } from './types';
|
|
10
|
-
declare type Props = {
|
|
11
|
-
children: React$Node,
|
|
12
|
-
onSubmit?: (e: Object) => void,
|
|
13
|
-
wide?: boolean,
|
|
14
|
-
formik?: FormikType,
|
|
15
|
-
stackContent?: boolean
|
|
16
|
-
};
|
|
17
|
-
declare var Form: (props: Props) => React$Node;
|
|
18
|
-
declare export default typeof Form;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for FormContext
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
import type { SelectOption } from '../SelectField/types';
|
|
10
|
-
import { type FormikType } from './types';
|
|
11
|
-
|
|
12
|
-
export type FormContextType = {
|
|
13
|
-
formik?: FormikType,
|
|
14
|
-
};
|
|
15
|
-
declare var Context: React$Context<FormContextType>;
|
|
16
|
-
declare export var useFormContext: () => FormContextType;
|
|
17
|
-
declare export default typeof Context;
|