@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.
Files changed (142) hide show
  1. package/dist/forms/MultiSelectField/MultiSelectField.d.ts +2 -1
  2. package/dist/forms/TextField/TextField.d.ts +14 -9
  3. package/dist/forms/hooks/useFieldControllers.d.ts +8 -4
  4. package/dist/index.css +1258 -889
  5. package/dist/index.js +49 -27
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.modern.js +49 -27
  8. package/dist/index.modern.js.map +1 -1
  9. package/package.json +6 -6
  10. package/CHANGELOG.md +0 -196
  11. package/dist/actions/Button/Button.js.flow +0 -44
  12. package/dist/actions/Button/index.js.flow +0 -8
  13. package/dist/actions/PaginationControls/PaginationControls.js.flow +0 -16
  14. package/dist/actions/PaginationControls/index.js.flow +0 -8
  15. package/dist/actions/Toggle/Toggle.js.flow +0 -21
  16. package/dist/actions/Toggle/index.js.flow +0 -8
  17. package/dist/actions/index.js.flow +0 -11
  18. package/dist/core/DataTable/DataTable.js.flow +0 -59
  19. package/dist/core/DataTable/DataTableContext.js.flow +0 -15
  20. package/dist/core/DataTable/index.js.flow +0 -8
  21. package/dist/core/DataTable/types.js.flow +0 -32
  22. package/dist/core/DataTableCell/DataTableCell.js.flow +0 -16
  23. package/dist/core/DataTableCell/index.js.flow +0 -8
  24. package/dist/core/DataTableEditableCell/DataTableEditableCell.js.flow +0 -26
  25. package/dist/core/DataTableEditableCell/index.js.flow +0 -8
  26. package/dist/core/DataTableRow/DataTableRow.js.flow +0 -17
  27. package/dist/core/DataTableRow/index.js.flow +0 -8
  28. package/dist/core/Flex/Flex.js.flow +0 -29
  29. package/dist/core/Flex/index.js.flow +0 -8
  30. package/dist/core/Flex/types.js.flow +0 -27
  31. package/dist/core/Inline/Inline.js.flow +0 -41
  32. package/dist/core/Inline/index.js.flow +0 -8
  33. package/dist/core/ResourceTable/ResourceTable.js.flow +0 -55
  34. package/dist/core/ResourceTable/ResourceTableContext.js.flow +0 -15
  35. package/dist/core/ResourceTable/index.js.flow +0 -8
  36. package/dist/core/ResourceTable/types.js.flow +0 -32
  37. package/dist/core/ResourceTableRow/ResourceTableRow.js.flow +0 -17
  38. package/dist/core/ResourceTableRow/index.js.flow +0 -8
  39. package/dist/core/Stack/Stack.js.flow +0 -35
  40. package/dist/core/Stack/index.js.flow +0 -8
  41. package/dist/core/index.js.flow +0 -39
  42. package/dist/feedback/Spinner/Spinner.js.flow +0 -15
  43. package/dist/feedback/Spinner/index.js.flow +0 -8
  44. package/dist/feedback/index.js.flow +0 -9
  45. package/dist/forms/AffixContainer/AffixContainer.js.flow +0 -15
  46. package/dist/forms/AffixContainer/index.js.flow +0 -8
  47. package/dist/forms/Caption/Caption.js.flow +0 -14
  48. package/dist/forms/Caption/index.js.flow +0 -8
  49. package/dist/forms/CheckboxField/CheckboxField.js.flow +0 -25
  50. package/dist/forms/CheckboxField/index.js.flow +0 -8
  51. package/dist/forms/DateField/DateField.js.flow +0 -35
  52. package/dist/forms/DateField/index.js.flow +0 -8
  53. package/dist/forms/DatePickerCalendar/DatePickerCalendar.js.flow +0 -18
  54. package/dist/forms/DatePickerCalendar/index.js.flow +0 -8
  55. package/dist/forms/DatePickerField/DatePickerField.d.ts +0 -23
  56. package/dist/forms/DatePickerField/DatePickerField.js.flow +0 -35
  57. package/dist/forms/DatePickerField/index.d.ts +0 -1
  58. package/dist/forms/DatePickerField/index.js.flow +0 -8
  59. package/dist/forms/DateRangeField/DateRangeField.js.flow +0 -37
  60. package/dist/forms/DateRangeField/index.js.flow +0 -8
  61. package/dist/forms/ErrorMessage/ErrorMessage.js.flow +0 -14
  62. package/dist/forms/ErrorMessage/index.js.flow +0 -8
  63. package/dist/forms/Field/Field.js.flow +0 -17
  64. package/dist/forms/Field/index.js.flow +0 -8
  65. package/dist/forms/Form/Form.js.flow +0 -18
  66. package/dist/forms/Form/FormContext.js.flow +0 -17
  67. package/dist/forms/Form/index.js.flow +0 -8
  68. package/dist/forms/Form/types.js.flow +0 -21
  69. package/dist/forms/FormRow/FormRow.js.flow +0 -31
  70. package/dist/forms/FormRow/index.js.flow +0 -15
  71. package/dist/forms/Label/Label.js.flow +0 -14
  72. package/dist/forms/Label/index.js.flow +0 -8
  73. package/dist/forms/MultiSelectField/MultiSelectField.js.flow +0 -33
  74. package/dist/forms/MultiSelectField/index.js.flow +0 -8
  75. package/dist/forms/PasswordCriteria/PasswordCriteria.js.flow +0 -14
  76. package/dist/forms/PasswordCriteria/index.js.flow +0 -8
  77. package/dist/forms/PasswordField/PasswordField.js.flow +0 -28
  78. package/dist/forms/PasswordField/index.js.flow +0 -8
  79. package/dist/forms/PasswordField/types.js.flow +0 -12
  80. package/dist/forms/PillSelectField/PillSelectField.js.flow +0 -26
  81. package/dist/forms/PillSelectField/index.js.flow +0 -8
  82. package/dist/forms/RadioGroupField/RadioGroupField.js.flow +0 -20
  83. package/dist/forms/RadioGroupField/index.js.flow +0 -8
  84. package/dist/forms/RadioGroupOption/RadioGroupOption.js.flow +0 -16
  85. package/dist/forms/RadioGroupOption/index.js.flow +0 -8
  86. package/dist/forms/SelectField/SelectField.js.flow +0 -40
  87. package/dist/forms/SelectField/index.js.flow +0 -8
  88. package/dist/forms/SelectField/types.js.flow +0 -26
  89. package/dist/forms/TextAreaField/TextAreaField.js.flow +0 -35
  90. package/dist/forms/TextAreaField/index.js.flow +0 -8
  91. package/dist/forms/TextField/TextField.js.flow +0 -38
  92. package/dist/forms/TextField/index.js.flow +0 -8
  93. package/dist/forms/WeekField/WeekField.js.flow +0 -35
  94. package/dist/forms/WeekField/index.js.flow +0 -8
  95. package/dist/forms/WeekPickerField/WeekPickerField.d.ts +0 -25
  96. package/dist/forms/WeekPickerField/WeekPickerField.js.flow +0 -35
  97. package/dist/forms/WeekPickerField/index.d.ts +0 -1
  98. package/dist/forms/WeekPickerField/index.js.flow +0 -8
  99. package/dist/forms/index.js.flow +0 -56
  100. package/dist/foundation/colors.js.flow +0 -116
  101. package/dist/icons/IconArrowDown.js.flow +0 -19
  102. package/dist/icons/IconArrowLeft.js.flow +0 -17
  103. package/dist/icons/IconArrowRight.js.flow +0 -17
  104. package/dist/icons/IconArrowUp.js.flow +0 -17
  105. package/dist/icons/IconCalendar.js.flow +0 -17
  106. package/dist/icons/IconCheck.js.flow +0 -17
  107. package/dist/icons/IconChevronDown.js.flow +0 -18
  108. package/dist/icons/IconChevronUp.js.flow +0 -16
  109. package/dist/icons/IconComment.js.flow +0 -16
  110. package/dist/icons/IconDelete.js.flow +0 -17
  111. package/dist/icons/IconEdit.js.flow +0 -17
  112. package/dist/icons/IconExclaim.flow +0 -17
  113. package/dist/icons/IconEye.js.flow +0 -17
  114. package/dist/icons/IconEyeSlash.js.flow +0 -17
  115. package/dist/icons/IconLocation.js.flow +0 -16
  116. package/dist/icons/IconMinusCircle.js.flow +0 -16
  117. package/dist/icons/IconMore.js.flow +0 -17
  118. package/dist/icons/IconRemove.js.flow +0 -17
  119. package/dist/icons/IconUser.flow +0 -17
  120. package/dist/icons/IconUser.js.flow +0 -17
  121. package/dist/icons/IconUserPlus.js.flow +0 -17
  122. package/dist/icons/index.js.flow +0 -50
  123. package/dist/icons/types.js.flow +0 -8
  124. package/dist/index.js.flow +0 -14
  125. package/dist/media/Avatar/Avatar.js.flow +0 -18
  126. package/dist/media/Avatar/index.js.flow +0 -8
  127. package/dist/media/Badge/Badge.js.flow +0 -18
  128. package/dist/media/Badge/index.js.flow +0 -8
  129. package/dist/media/index.js.flow +0 -10
  130. package/dist/nophoto~DrLDqLZE.png +0 -0
  131. package/dist/overlay/Modal/Modal.js.flow +0 -23
  132. package/dist/overlay/Modal/ModalBody/ModalBody.js.flow +0 -13
  133. package/dist/overlay/Modal/ModalBody/index.js.flow +0 -8
  134. package/dist/overlay/Modal/ModalFooter/ModalFooter.js.flow +0 -18
  135. package/dist/overlay/Modal/ModalFooter/index.js.flow +0 -8
  136. package/dist/overlay/Modal/index.js.flow +0 -8
  137. package/dist/overlay/Tooltip/Tooltip.js.flow +0 -21
  138. package/dist/overlay/Tooltip/index.js.flow +0 -8
  139. package/dist/overlay/index.js.flow +0 -12
  140. package/dist/profile/LetterProfile/LetterProfile.d.ts +0 -9
  141. package/dist/profile/LetterProfile/index.d.ts +0 -1
  142. package/dist/profile/index.d.ts +0 -2
@@ -1,8 +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
- declare export { default } from "./Inline";
@@ -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,8 +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
- declare export { default } from "./ResourceTable";
@@ -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,8 +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
- declare export { default } from "./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;
@@ -1,8 +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
- declare export { default } from "./Stack";
@@ -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,8 +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
- declare export { default } from "./Spinner";
@@ -1,9 +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 Spinner from './Spinner';
9
- declare export { 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,8 +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
- declare export { default } from "./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,8 +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
- declare export { default } from "./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,8 +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
- declare export { default } from "./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,8 +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
- declare export { default } from './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,8 +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
- declare export { default } from "./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,8 +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
- declare 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,8 +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
- declare export { default } from './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,8 +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
- declare export { default } from "./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,8 +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
- declare export { default } from "./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;
@@ -1,8 +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
- declare export { default } from "./Form";