@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@7shifts/sous-chef",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.7",
|
|
4
4
|
"description": "7shifts component library",
|
|
5
5
|
"author": "7shifts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@babel/core": "^7.14.3",
|
|
34
|
-
"@storybook/addon-actions": "^6.
|
|
35
|
-
"@storybook/addon-essentials": "^6.
|
|
36
|
-
"@storybook/addon-links": "^6.
|
|
37
|
-
"@storybook/react": "^6.
|
|
34
|
+
"@storybook/addon-actions": "^6.4.12",
|
|
35
|
+
"@storybook/addon-essentials": "^6.4.12",
|
|
36
|
+
"@storybook/addon-links": "^6.4.12",
|
|
37
|
+
"@storybook/react": "^6.4.12",
|
|
38
38
|
"@testing-library/jest-dom": "^5.12.0",
|
|
39
39
|
"@testing-library/react": "^11.2.7",
|
|
40
40
|
"@testing-library/user-event": "^13.2.1",
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"formik": "^2.2.6",
|
|
65
65
|
"gh-pages": "^2.2.0",
|
|
66
66
|
"microbundle-crl": "^0.13.10",
|
|
67
|
-
"node-sass": "^4.0.0",
|
|
68
67
|
"npm-run-all": "^4.1.5",
|
|
69
68
|
"prettier": "^2.0.4",
|
|
70
69
|
"react": "^16.13.1",
|
|
71
70
|
"react-dom": "^16.13.1",
|
|
72
71
|
"react-scripts": "^3.4.1",
|
|
72
|
+
"sass": "^1.48.0",
|
|
73
73
|
"sass-loader": "10.1.1",
|
|
74
74
|
"typescript": "^3.7.5",
|
|
75
75
|
"yup": "^0.32.9"
|
package/CHANGELOG.md
DELETED
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
## 1.5.3 (December 7th, 2021)
|
|
2
|
-
|
|
3
|
-
### Enhancements
|
|
4
|
-
|
|
5
|
-
- Button: Updated link button themes to have proper one shade darker color (excluding contrast, icon, and toolbar theme) on hover. ([#70](https://github.com/7shifts/sous-chef/pull/70))
|
|
6
|
-
|
|
7
|
-
## 1.5.2 (November 10th, 2021)
|
|
8
|
-
|
|
9
|
-
### Enhancements
|
|
10
|
-
|
|
11
|
-
- PasswordField: Updated met criteria bullet to IconCheck to be consistent with mobile ([#69](https://github.com/7shifts/sous-chef/pull/69))
|
|
12
|
-
|
|
13
|
-
### New Components
|
|
14
|
-
|
|
15
|
-
- IconCheck: added for now to use in PasswordCriteria. ([#69](https://github.com/7shifts/sous-chef/pull/69))
|
|
16
|
-
|
|
17
|
-
## 1.5.1 (October 20th, 2021)
|
|
18
|
-
|
|
19
|
-
### Bug fixes
|
|
20
|
-
|
|
21
|
-
- DataTable: Exported `DataTableCustomComponent` type ([#67](https://github.com/7shifts/sous-chef/pull/67))
|
|
22
|
-
|
|
23
|
-
## 1.5.0 (October 19th, 2021)
|
|
24
|
-
|
|
25
|
-
### New components
|
|
26
|
-
|
|
27
|
-
- PillSelectField ([#65](https://github.com/7shifts/sous-chef/pull/65))
|
|
28
|
-
|
|
29
|
-
### Bug fixes
|
|
30
|
-
|
|
31
|
-
- Field: Updated to align properly when using FormRow with only one form field with with label ([#66](https://github.com/7shifts/sous-chef/pull/66))
|
|
32
|
-
|
|
33
|
-
## 1.4.1 (October 8th, 2021)
|
|
34
|
-
|
|
35
|
-
### Enhancements
|
|
36
|
-
|
|
37
|
-
- DataTable: Updated flow types ([#62](https://github.com/7shifts/sous-chef/pull/62))
|
|
38
|
-
- Tooltip: Added the prop `onClose` to listen when the overlay closed ([#64](https://github.com/7shifts/sous-chef/pull/64))
|
|
39
|
-
|
|
40
|
-
## 1.4.0 (October 7th, 2021)
|
|
41
|
-
|
|
42
|
-
### Enhancements
|
|
43
|
-
|
|
44
|
-
- Updated SelectField to support disabled options
|
|
45
|
-
|
|
46
|
-
## 1.3.1 (September 29th, 2021)
|
|
47
|
-
|
|
48
|
-
### Bug fixes
|
|
49
|
-
|
|
50
|
-
- Avatar: updated to show the proper background when the image url is not available ([#57](https://github.com/7shifts/sous-chef/pull/57))
|
|
51
|
-
- PaginationControls: updated to have the title with the first character capitalized ([#58](https://github.com/7shifts/sous-chef/pull/58))
|
|
52
|
-
- DataTable: Added missing exports ([#59](https://github.com/7shifts/sous-chef/pull/59))
|
|
53
|
-
|
|
54
|
-
## 1.3.0 (September 27th, 2021)
|
|
55
|
-
|
|
56
|
-
### New components
|
|
57
|
-
|
|
58
|
-
- DataTable ([#50](https://github.com/7shifts/sous-chef/pull/50)) - And added editable functionality ([#54](https://github.com/7shifts/sous-chef/pull/54))
|
|
59
|
-
|
|
60
|
-
## 1.2.2 (September 24rd, 2021)
|
|
61
|
-
|
|
62
|
-
### Bug fixes
|
|
63
|
-
|
|
64
|
-
- TextField: Removed the support for Formik `Field` as it was a breaking change in the `TextField` component ([#56](https://github.com/7shifts/sous-chef/pull/56))
|
|
65
|
-
|
|
66
|
-
## 1.2.1 (September 23rd, 2021)
|
|
67
|
-
|
|
68
|
-
### Bug fixes
|
|
69
|
-
|
|
70
|
-
- Modal: When a scroll was showing, the top content was getting cut off on the top. Also updated the flow type ([#55](https://github.com/7shifts/sous-chef/pull/55))
|
|
71
|
-
|
|
72
|
-
### Enhancements
|
|
73
|
-
|
|
74
|
-
- Form: Updated the field components to work with formik components such as `Field` and `FieldArray`. It also suports now dynamic fields ([#53](https://github.com/7shifts/sous-chef/pull/53))
|
|
75
|
-
|
|
76
|
-
## 1.2.0 (September 15th, 2021)
|
|
77
|
-
|
|
78
|
-
### New components
|
|
79
|
-
|
|
80
|
-
- Modal ([#49](https://github.com/7shifts/sous-chef/pull/49))
|
|
81
|
-
|
|
82
|
-
### Bug fixes
|
|
83
|
-
|
|
84
|
-
- Avatar: The fallback image was not being applied properly ([#46](https://github.com/7shifts/sous-chef/pull/46))
|
|
85
|
-
|
|
86
|
-
## 1.1.4 (August 17, 2021)
|
|
87
|
-
|
|
88
|
-
### Bug fixes
|
|
89
|
-
|
|
90
|
-
- Button: Fixed the padding when having only an icon inside the Button ([#45](https://github.com/7shifts/sous-chef/pull/45))
|
|
91
|
-
|
|
92
|
-
## 1.1.3 (August 5, 2021)
|
|
93
|
-
|
|
94
|
-
### Bug fixes
|
|
95
|
-
|
|
96
|
-
- MultiSelectField: It was not wrapping to the next line when multiple options were select and they didn't fit on the space given ([#44](https://github.com/7shifts/sous-chef/pull/44))
|
|
97
|
-
|
|
98
|
-
## 1.1.2 (August 4, 2021)
|
|
99
|
-
|
|
100
|
-
### Bug fixes
|
|
101
|
-
|
|
102
|
-
- SelectField: When using the `prefix` prop it had a missaligned prefix ([#43](https://github.com/7shifts/sous-chef/pull/43))
|
|
103
|
-
- SelectField: Implemented the `onBlur` prop ([#42](https://github.com/7shifts/sous-chef/pull/42))
|
|
104
|
-
- MultiSelectField: Implemented the `onBlur` prop ([#42](https://github.com/7shifts/sous-chef/pull/42))
|
|
105
|
-
|
|
106
|
-
## 1.1.1 (July 28, 2021)
|
|
107
|
-
|
|
108
|
-
### Enhancements
|
|
109
|
-
|
|
110
|
-
- Badge: Added the `title` prop to make it easier adding a black tooltip ([#40](https://github.com/7shifts/sous-chef/pull/40))
|
|
111
|
-
|
|
112
|
-
### New components
|
|
113
|
-
|
|
114
|
-
- IconExclaim ([#41](https://github.com/7shifts/sous-chef/pull/41))
|
|
115
|
-
|
|
116
|
-
## 1.1.0 (July 23, 2021)
|
|
117
|
-
|
|
118
|
-
### New components
|
|
119
|
-
|
|
120
|
-
- Badge ([#37](https://github.com/7shifts/sous-chef/pull/37))
|
|
121
|
-
- Avatar ([#38](https://github.com/7shifts/sous-chef/pull/38))
|
|
122
|
-
- IconComment ([#39](https://github.com/7shifts/sous-chef/pull/39))
|
|
123
|
-
- IconLocation ([#39](https://github.com/7shifts/sous-chef/pull/39))
|
|
124
|
-
- IconMinusCircle ([#39](https://github.com/7shifts/sous-chef/pull/39))
|
|
125
|
-
- IconUserPlus ([#39](https://github.com/7shifts/sous-chef/pull/39))
|
|
126
|
-
|
|
127
|
-
### Bug fixes
|
|
128
|
-
|
|
129
|
-
- SelectField: When there is no container with size defined the component will grow with the content until it fills the space ([#36](https://github.com/7shifts/sous-chef/pull/36))
|
|
130
|
-
|
|
131
|
-
### Enhancements
|
|
132
|
-
|
|
133
|
-
- SelectField: Added the `prefix` prop and the `asToolbarField` so the component will look as a toolbar filter with no border ([#36](https://github.com/7shifts/sous-chef/pull/36))
|
|
134
|
-
|
|
135
|
-
## 1.0.3 (July 15, 2021)
|
|
136
|
-
|
|
137
|
-
### Bug fixes
|
|
138
|
-
|
|
139
|
-
- Button: Fixed global CSS overrites when button behaves like link ([#35](https://github.com/7shifts/sous-chef/pull/35))
|
|
140
|
-
|
|
141
|
-
## 1.0.2 (July 15, 2021)
|
|
142
|
-
|
|
143
|
-
### Bug fixes
|
|
144
|
-
|
|
145
|
-
- TextAreaField: Fixed global CSS overrites ([#34](https://github.com/7shifts/sous-chef/pull/34))
|
|
146
|
-
|
|
147
|
-
## 1.0.1 (July 14, 2021)
|
|
148
|
-
|
|
149
|
-
### Enhancements
|
|
150
|
-
|
|
151
|
-
- TextField: Added the possibility of using `useRef` ([#33](https://github.com/7shifts/sous-chef/pull/33))
|
|
152
|
-
|
|
153
|
-
## 1.0.0 (June 25, 2021)
|
|
154
|
-
|
|
155
|
-
### New components
|
|
156
|
-
|
|
157
|
-
- Tooltip ([#16](https://github.com/7shifts/sous-chef/pull/16))
|
|
158
|
-
- MultiSelectField ([#19](https://github.com/7shifts/sous-chef/pull/19))
|
|
159
|
-
- TextAreaField ([#21](https://github.com/7shifts/sous-chef/pull/21))
|
|
160
|
-
- RadioGroupField ([#22](https://github.com/7shifts/sous-chef/pull/22))
|
|
161
|
-
- WeekField ([#24](https://github.com/7shifts/sous-chef/pull/24))
|
|
162
|
-
- DateRangeField ([#25](https://github.com/7shifts/sous-chef/pull/25))
|
|
163
|
-
- IconRemove ([#26](https://github.com/7shifts/sous-chef/pull/26))
|
|
164
|
-
|
|
165
|
-
### Enhancements
|
|
166
|
-
|
|
167
|
-
- Button: Added the possibility of making Butons act as links ([#23](https://github.com/7shifts/sous-chef/pull/23))
|
|
168
|
-
- SelectField and MultiSelectField: Added the possibility of customizing the select options ([#27](https://github.com/7shifts/sous-chef/pull/27))
|
|
169
|
-
|
|
170
|
-
### Bug fixes
|
|
171
|
-
|
|
172
|
-
- Form: consolidated the Flow types for `useFormik` and `<Formik ...>` ([#28](https://github.com/7shifts/sous-chef/pull/28))
|
|
173
|
-
- Icons: added missing Flow types ([#26](https://github.com/7shifts/sous-chef/pull/26))
|
|
174
|
-
|
|
175
|
-
### Pre existing components
|
|
176
|
-
|
|
177
|
-
- Button
|
|
178
|
-
- PaginationControls
|
|
179
|
-
- Toggle
|
|
180
|
-
- Inline
|
|
181
|
-
- Stack
|
|
182
|
-
- ResourceTable
|
|
183
|
-
- Spinner
|
|
184
|
-
- CheckboxField
|
|
185
|
-
- DateField
|
|
186
|
-
- DateRangeField
|
|
187
|
-
- Form
|
|
188
|
-
- FormRow
|
|
189
|
-
- MultiSelectField
|
|
190
|
-
- PasswordField
|
|
191
|
-
- RadioGroupField
|
|
192
|
-
- SelectField
|
|
193
|
-
- TextAreaField
|
|
194
|
-
- TextField
|
|
195
|
-
- WeekField
|
|
196
|
-
- Tooltip
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for Button
|
|
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 ButtonTheme =
|
|
10
|
-
| 'default'
|
|
11
|
-
| 'primary'
|
|
12
|
-
| 'danger'
|
|
13
|
-
| 'upsell'
|
|
14
|
-
| 'marketing'
|
|
15
|
-
| 'hollow'
|
|
16
|
-
| 'link-primary'
|
|
17
|
-
| 'link-danger'
|
|
18
|
-
| 'link-upsell'
|
|
19
|
-
| 'link-toolbar'
|
|
20
|
-
| 'link-contrast'
|
|
21
|
-
| 'link-icon';
|
|
22
|
-
declare type Props = {
|
|
23
|
-
children: React$Node,
|
|
24
|
-
type?: 'button' | 'submit' | 'reset',
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* It controls the button theme
|
|
28
|
-
*/
|
|
29
|
-
theme?: ButtonTheme,
|
|
30
|
-
disabled?: boolean,
|
|
31
|
-
onClick?: (e: SyntheticEvent<HTMLButtonElement>) => void,
|
|
32
|
-
id?: string,
|
|
33
|
-
wide?: boolean,
|
|
34
|
-
loading?: boolean,
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* This will show a black tooltip when the user hover the button
|
|
38
|
-
*/
|
|
39
|
-
title?: string,
|
|
40
|
-
href?: string,
|
|
41
|
-
target?: '_self' | '_blank',
|
|
42
|
-
};
|
|
43
|
-
declare var _default: React$AbstractComponent<Props, HTMLElement>;
|
|
44
|
-
declare export default typeof _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for PaginationControls
|
|
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
|
-
hasPrevious?: boolean,
|
|
11
|
-
hasNext?: boolean,
|
|
12
|
-
onPreviousClick: () => void,
|
|
13
|
-
onNextClick: () => void,
|
|
14
|
-
};
|
|
15
|
-
declare var PaginationControls: (props: Props) => React$Node;
|
|
16
|
-
declare export default typeof PaginationControls;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for Toggle
|
|
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
|
-
/**
|
|
11
|
-
* It turns the toggle ON if `true` and OFF if `false`
|
|
12
|
-
*/
|
|
13
|
-
checked: boolean,
|
|
14
|
-
onChange: (e: boolean) => void,
|
|
15
|
-
label?: React$Node,
|
|
16
|
-
caption?: React$Node,
|
|
17
|
-
disabled?: boolean,
|
|
18
|
-
id?: string,
|
|
19
|
-
};
|
|
20
|
-
declare var Toggle: (props: Props) => React$Node;
|
|
21
|
-
declare export default typeof Toggle;
|
|
@@ -1,11 +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 Toggle from './Toggle';
|
|
9
|
-
import Button from './Button';
|
|
10
|
-
import PaginationControls from './PaginationControls';
|
|
11
|
-
declare export { Toggle, Button, PaginationControls };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for DataTable
|
|
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
|
-
/** Will render footer component if not null - expects a custom RowItem component */
|
|
54
|
-
footerComponent?: React.ReactNode;
|
|
55
|
-
/** Will render vertical borders between columns if true */
|
|
56
|
-
hasVerticalBorders?: boolean
|
|
57
|
-
};
|
|
58
|
-
declare var DataTable: <T>(props: Props<T>) => React$Node;
|
|
59
|
-
declare export default typeof DataTable;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for DataTableContext
|
|
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 DataTableContextType = {
|
|
10
|
-
columnSizes?: number[],
|
|
11
|
-
showActionMenu?: boolean,
|
|
12
|
-
};
|
|
13
|
-
declare var Context: React$Context<DataTableContextType>;
|
|
14
|
-
declare export var useDataTableContext: () => DataTableContextType;
|
|
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,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for DataTableRow
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
import * as React from 'react';
|
|
8
|
-
declare type Props = {
|
|
9
|
-
value?: string,
|
|
10
|
-
/** Use a prefix for things like currency symbols (“$”, “¥”, “£”) or icons. */
|
|
11
|
-
prefix?: React.ReactNode,
|
|
12
|
-
/** Use suffix for things like units of measure (“in”, “cm”, ”hours”) or icons. */
|
|
13
|
-
suffix?: React.ReactNode
|
|
14
|
-
};
|
|
15
|
-
declare var DataTableCell: (props: Props) => React$Node;
|
|
16
|
-
declare export default typeof DataTableCell;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for DataTableRow
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.1
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
import * as React from 'react';
|
|
8
|
-
declare type Props = {
|
|
9
|
-
name: string,
|
|
10
|
-
columnIndex: number,
|
|
11
|
-
rowIndex: number,
|
|
12
|
-
id?: string,
|
|
13
|
-
value?: string,
|
|
14
|
-
onChange?: (e: string) => void,
|
|
15
|
-
onBlur?: (e: string) => void,
|
|
16
|
-
placeholder?: string,
|
|
17
|
-
disabled?: boolean,
|
|
18
|
-
error?: string,
|
|
19
|
-
/** Use a prefix for things like currency symbols (“$”, “¥”, “£”) or icons. */
|
|
20
|
-
prefix?: React.ReactNode,
|
|
21
|
-
/** Use suffix for things like units of measure (“in”, “cm”, ”hours”) or icons. */
|
|
22
|
-
suffix?: React.ReactNode,
|
|
23
|
-
defaultValue?: string
|
|
24
|
-
};
|
|
25
|
-
declare var DataTableEditableCell: (props: Props) => React$Node;
|
|
26
|
-
declare export default typeof DataTableEditableCell;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for DataTableRow
|
|
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 '../DataTable/types';
|
|
10
|
-
declare type Props = {
|
|
11
|
-
children: React$Node,
|
|
12
|
-
onClick?: () => void,
|
|
13
|
-
isSelected?: boolean,
|
|
14
|
-
actions?: Action[],
|
|
15
|
-
};
|
|
16
|
-
declare var DataTableRow: (props: Props) => React$Node;
|
|
17
|
-
declare export default typeof DataTableRow;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for Flex
|
|
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 { AlignItems, FlexWrap, JustifyContent, Space } from './types';
|
|
10
|
-
declare type Props = {
|
|
11
|
-
children: React$Node,
|
|
12
|
-
space?: Space,
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* 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.
|
|
16
|
-
*/
|
|
17
|
-
flex?: (string | number)[],
|
|
18
|
-
alignItems?: AlignItems,
|
|
19
|
-
justifyContent?: JustifyContent,
|
|
20
|
-
inlineFlex?: boolean,
|
|
21
|
-
direction?: 'row' | 'column',
|
|
22
|
-
flexItems?: boolean,
|
|
23
|
-
flexWrap?: FlexWrap,
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Flex is a internal component used by Stack and Inline. DON'T use this component outside of Sous Chef
|
|
27
|
-
*/
|
|
28
|
-
declare var Flex: (props: Props) => React$Node;
|
|
29
|
-
declare export default typeof Flex;
|
|
@@ -1,27 +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 AlignItems = "flex-start" | "flex-end" | "center" | "stretch";
|
|
9
|
-
export type FlexWrap = "nowrap" | "wrap" | "wrap-reverse";
|
|
10
|
-
export type JustifyContent = "start" | "end" | "center" | "space-between";
|
|
11
|
-
export type Space =
|
|
12
|
-
| 0
|
|
13
|
-
| 4
|
|
14
|
-
| 8
|
|
15
|
-
| 12
|
|
16
|
-
| 16
|
|
17
|
-
| 20
|
|
18
|
-
| 24
|
|
19
|
-
| 28
|
|
20
|
-
| 32
|
|
21
|
-
| 36
|
|
22
|
-
| 40
|
|
23
|
-
| 44
|
|
24
|
-
| 48
|
|
25
|
-
| 52
|
|
26
|
-
| 56
|
|
27
|
-
| 60;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for Inline
|
|
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
|
-
AlignItems,
|
|
11
|
-
FlexWrap,
|
|
12
|
-
JustifyContent,
|
|
13
|
-
Space,
|
|
14
|
-
} from '../Flex/types';
|
|
15
|
-
declare type Props = {
|
|
16
|
-
children: React$Node,
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* From `0` to `60` with multiples of `4`, eg. `8`, `12`, `16` and so on.
|
|
20
|
-
*/
|
|
21
|
-
space?: Space,
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* 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.
|
|
25
|
-
*/
|
|
26
|
-
flex?: (string | number)[],
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* One of: `flex-start`, `flex-end`, `center`, `stretch`
|
|
30
|
-
*/
|
|
31
|
-
alignItems?: AlignItems,
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* One of: `start`, `end`, `center`, `space-between`
|
|
35
|
-
*/
|
|
36
|
-
justifyContent?: JustifyContent,
|
|
37
|
-
inlineFlex?: boolean,
|
|
38
|
-
flexWrap?: FlexWrap,
|
|
39
|
-
};
|
|
40
|
-
declare var Inline: (props: Props) => React$Node;
|
|
41
|
-
declare export default typeof Inline;
|