@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,21 +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
-
8
- import type { SelectOption } from '../SelectField/types';
9
- export type FormikType = {
10
- +handleSubmit: (Object) => void,
11
- +setFieldValue: (
12
- string,
13
- string | boolean | SelectOption<any> | SelectOption<any>[] | Date | null
14
- ) => void,
15
- +setFieldTouched: (string) => void,
16
- +values: { [string]: any },
17
- +touched: { [string]: ?boolean },
18
- +errors: { [string]: ?string },
19
- +isValid: boolean,
20
- +dirty: boolean,
21
- };
@@ -1,31 +0,0 @@
1
- /**
2
- * Flowtype definitions for FormRow
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 Size25Percent = '25%';
10
- declare export var SIZE_25_PERCENT: Size25Percent;
11
- declare type Size33Percent = '33.333%';
12
- declare export var SIZE_33_PERCENT: Size33Percent;
13
- declare type Size50Percent = '50%';
14
- declare export var SIZE_50_PERCENT: Size50Percent;
15
- declare type Size66Percent = '66.666%';
16
- declare export var SIZE_66_PERCENT: Size66Percent;
17
- declare type Size75Percent = '75%';
18
- declare export var SIZE_75_PERCENT: Size75Percent;
19
- declare type Size =
20
- | Size25Percent
21
- | Size33Percent
22
- | Size50Percent
23
- | Size66Percent
24
- | Size75Percent;
25
- declare type Props = {
26
- children: React$Node,
27
- columns?: number,
28
- sizes?: Size[],
29
- };
30
- declare var FormRow: (props: Props) => React$Node;
31
- declare export default typeof FormRow;
@@ -1,15 +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 {
9
- default,
10
- SIZE_25_PERCENT,
11
- SIZE_33_PERCENT,
12
- SIZE_50_PERCENT,
13
- SIZE_66_PERCENT,
14
- SIZE_75_PERCENT,
15
- } from "./FormRow";
@@ -1,14 +0,0 @@
1
- /**
2
- * Flowtype definitions for Label
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
- htmlFor: string,
11
- children: React$Node,
12
- };
13
- declare var Label: (props: Props) => React$Node;
14
- declare export default typeof Label;
@@ -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 "./Label";
@@ -1,33 +0,0 @@
1
- /**
2
- * Flowtype definitions for SelectField
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 {
10
- SelectOption,
11
- SelectOptions,
12
- CustomOptionProps,
13
- } from '../SelectField/types';
14
- declare type Props<T> = {
15
- name: string,
16
-
17
- /**
18
- * If not provided it will generate a random id so the label links properly with the text input
19
- */
20
- id?: string,
21
- value?: SelectOption<T>[],
22
- options: SelectOptions<T>,
23
- onChange?: (e: SelectOption<T>[]) => void,
24
- onBlur?: (e: SelectOption<T>[]) => void,
25
- CustomOption?: React$ComponentType<CustomOptionProps<T>>,
26
- label?: React$Node,
27
- caption?: React$Node,
28
- error?: string,
29
- placeholder?: string,
30
- disabled?: boolean,
31
- };
32
- declare var MultiSelectField: <T>(props: Props<T>) => React$Node;
33
- declare export default typeof MultiSelectField;
@@ -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 './MultiSelectField';
@@ -1,14 +0,0 @@
1
- /**
2
- * Flowtype definitions for PasswordCriteria
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
- met: boolean,
11
- children: React$Node,
12
- };
13
- declare var PasswordCriteria: (props: Props) => React$Node;
14
- declare export default typeof PasswordCriteria;
@@ -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 "./PasswordCriteria";
@@ -1,28 +0,0 @@
1
- /**
2
- * Flowtype definitions for PasswordField
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 { PasswordCriteria } from './types';
10
- declare type Props = {
11
- name: string,
12
-
13
- /**
14
- * If not provided it will generate a random id so the label links properly with the text input
15
- */
16
- id?: string,
17
- value?: string,
18
- onChange?: (e: string) => void,
19
- onBlur?: (e: string) => void,
20
- label?: React$Node,
21
- error?: string,
22
- placeholder?: string,
23
- disabled?: boolean,
24
- defaultValue?: string,
25
- criterias?: PasswordCriteria[],
26
- };
27
- declare var PasswordField: (props: Props) => React$Node;
28
- declare export default typeof PasswordField;
@@ -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 "./PasswordField";
@@ -1,12 +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
-
8
- export type PasswordCriteria = {
9
- key?: string,
10
- label: string,
11
- met: boolean,
12
- };
@@ -1,26 +0,0 @@
1
- /**
2
- * Flowtype definitions for PillSelectField
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
- declare type Props<T> = {
11
- name: string,
12
-
13
- /**
14
- * If not provided it will generate a random id so the label links properly with the text input
15
- */
16
- id?: string,
17
- value?: SelectOption<T>[],
18
- options: SelectOption<T>[],
19
- onChange?: (e: SelectOption<T>[]) => void,
20
- label?: React$Node,
21
- caption?: React$Node,
22
- error?: string,
23
- disabled?: boolean
24
- };
25
- declare var PillSelectField: <T>(props: Props<T>) => React$Node;
26
- declare export default typeof PillSelectField;
@@ -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 './PillSelectField';
@@ -1,20 +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
- value?: string | number,
12
- onChange?: (e: string | number) => void,
13
- label?: React$Node,
14
- error?: string,
15
- inline?: boolean,
16
- disabled?: boolean,
17
- children: React$Node,
18
- };
19
- declare var RadioGroupField: (props: Props) => React$Node;
20
- declare export default typeof RadioGroupField;
@@ -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 './RadioGroupField';
@@ -1,16 +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
- value: string | number,
11
- id?: string,
12
- label?: React$Node,
13
- caption?: React$Node,
14
- };
15
- declare var RadioGroupOption: (props: Props) => React$Node;
16
- declare export default typeof RadioGroupOption;
@@ -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 './RadioGroupOption';
@@ -1,40 +0,0 @@
1
- /**
2
- * Flowtype definitions for SelectField
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 {
10
- SelectOption,
11
- SelectOptions,
12
- CustomOptionProps,
13
- SelectedOptionPrefixProps
14
- } from './types';
15
- declare type Props<T> = {
16
- name: string,
17
-
18
- /**
19
- * If not provided it will generate a random id so the label links properly with the text input
20
- */
21
- id?: string,
22
- value?: SelectOption<T>,
23
- options: SelectOptions<T>,
24
- onChange?: (e: SelectOption<T>) => void,
25
- onBlur?: (e: SelectOption<T>) => void,
26
- CustomOption?: React$ComponentType<CustomOptionProps<T>>,
27
- SelectedOptionPrefix?: React$ComponentType<SelectedOptionPrefixProps<T>>,
28
- label?: React$Node,
29
- caption?: React$Node,
30
- error?: string,
31
- placeholder?: string,
32
- disabled?: boolean,
33
- /**
34
- * Use a prefix for things like currency symbols (“$”, “¥”, “£”) or icons.
35
- */
36
- prefix?: React$Node,
37
- asToolbarFilter?: boolean
38
- };
39
- declare var SelectField: <T>(props: Props<T>) => React$Node;
40
- declare export default typeof SelectField;
@@ -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 "./SelectField";
@@ -1,26 +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
-
8
- declare type GroupOption<T> = {|
9
- label: string,
10
- options: SelectOption<T>[],
11
- |};
12
- export type SelectOption<T> = {|
13
- value: T,
14
- label: string,
15
- isDisabled?: boolean
16
- |};
17
- export type SelectOptions<T> = Array<SelectOption<T> | GroupOption<T>>;
18
- export type CustomOptionProps<T> = {
19
- value: T,
20
- label: string,
21
- isSelected: boolean,
22
- isDisabled: boolean,
23
- };
24
- export type SelectedOptionPrefixProps<T> = {
25
- selectedOption: SelectOption<T>,
26
- };
@@ -1,35 +0,0 @@
1
- /**
2
- * Flowtype definitions for TextField
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?: string,
17
- onChange?: (e: string) => void,
18
- onBlur?: (e: string) => void,
19
- label?: React$Node,
20
- caption?: React$Node,
21
- error?: string,
22
- placeholder?: string,
23
- disabled?: boolean,
24
- defaultValue?: string,
25
- /** When `true` the field will grow as more lines is added until it hits the `maxHeight` defined. */
26
- autoGrow?: boolean,
27
- /** It defines the minimum size the input can grow. */
28
- minHeight?: number,
29
- /** It defines the maximum size the input can grow. */
30
- maxHeight?: number,
31
- /** A JSX containing the toolbar elements. You can use `Inline` to place the buttons properly on the toolbar space. */
32
- toolbar?: React$Node,
33
- };
34
- declare var TextAreaField: (props: Props) => React$Node;
35
- declare export default typeof TextAreaField;
@@ -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 './TextAreaField';
@@ -1,38 +0,0 @@
1
- /**
2
- * Flowtype definitions for TextField
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?: string,
17
- onChange?: (e: string) => void,
18
- onBlur?: (e: string) => void,
19
- label?: React$Node,
20
- caption?: React$Node,
21
- error?: string,
22
- placeholder?: string,
23
- disabled?: boolean,
24
-
25
- /**
26
- * Use a prefix for things like currency symbols (“$”, “¥”, “£”).
27
- */
28
- prefix?: React$Node,
29
-
30
- /**
31
- * Use suffix for things like units of measure (“in”, “cm”, ”hours”).
32
- */
33
- suffix?: React$Node,
34
- defaultValue?: string,
35
- autoFocus?: boolean
36
- };
37
- declare var TextField: (props: Props) => React$Node;
38
- declare export default typeof TextField;
@@ -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 "./TextField";
@@ -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 WeekField: (props: Props) => React$Node;
35
- declare export default typeof WeekField;
@@ -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 './WeekField';
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import { WeekStart } from '../../utils/date';
3
- declare type Props = {
4
- name: string;
5
- /** If not provided it will generate a random id so the label links properly with the text input */
6
- id?: string;
7
- value?: Date;
8
- disabledDays?: (day: Date) => boolean;
9
- /** Reference this for valid formats: https://date-fns.org/v2.18.0/docs/format */
10
- format?: string;
11
- initialMonth?: Date;
12
- onChange?: (e: Date) => void;
13
- onBlur?: () => void;
14
- label?: React.ReactNode;
15
- caption?: React.ReactNode;
16
- error?: string;
17
- placeholder?: string;
18
- disabled?: boolean;
19
- defaultValue?: Date;
20
- readOnly?: boolean;
21
- weekStart?: WeekStart;
22
- };
23
- /** WeekPickerField form element. */
24
- declare const WeekPickerField: React.FC<Props>;
25
- export default WeekPickerField;
@@ -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 WeekPickerField: (props: Props) => React$Node;
35
- declare export default typeof WeekPickerField;
@@ -1 +0,0 @@
1
- export { default } from './WeekPickerField';
@@ -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 './WeekPickerField';
@@ -1,56 +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 Form from './Form';
9
- import FormRow, {
10
- SIZE_25_PERCENT,
11
- SIZE_33_PERCENT,
12
- SIZE_50_PERCENT,
13
- SIZE_66_PERCENT,
14
- SIZE_75_PERCENT
15
- } from './FormRow';
16
- import TextAreaField from './TextAreaField';
17
- import TextField from './TextField';
18
- import CheckboxField from './CheckboxField';
19
- import PillSelectField from './PillSelectField';
20
- import RadioGroupField from './RadioGroupField';
21
- import RadioGroupOption from './RadioGroupOption';
22
- import PasswordField from './PasswordField';
23
- import SelectField from './SelectField';
24
- import MultiSelectField from './MultiSelectField';
25
- import DateField from './DateField';
26
- import DateRangeField from './DateRangeField';
27
- import WeekField from './WeekField';
28
- declare export {
29
- Form,
30
- FormRow,
31
- TextAreaField,
32
- TextField,
33
- CheckboxField,
34
- PillSelectField,
35
- RadioGroupField,
36
- RadioGroupOption,
37
- PasswordField,
38
- SelectField,
39
- MultiSelectField,
40
- DateField,
41
- DateRangeField,
42
- WeekField,
43
- SIZE_25_PERCENT,
44
- SIZE_33_PERCENT,
45
- SIZE_50_PERCENT,
46
- SIZE_66_PERCENT,
47
- SIZE_75_PERCENT
48
- };
49
- export type { PasswordCriteria } from './PasswordField/types';
50
- export type {
51
- SelectOption,
52
- SelectOptions,
53
- CustomOptionProps,
54
- SelectedOptionPrefixProps
55
- } from './SelectField/types';
56
- export type { FormikType } from './Form/types';