@7shifts/sous-chef 2.10.0 → 2.11.0
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/CHANGELOG.md +450 -0
- package/dist/forms/DateField/DateField.d.ts +1 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
## 2.11.0 (August 8th, 2022)
|
|
2
|
+
|
|
3
|
+
### Enhancements
|
|
4
|
+
|
|
5
|
+
- DatePicker: Added new prop to handle the onMonthChange callback([#128](https://github.com/7shifts/sous-chef/pull/128))
|
|
6
|
+
|
|
7
|
+
## 2.10.0 (August 5th, 2022)
|
|
8
|
+
|
|
9
|
+
### New component
|
|
10
|
+
|
|
11
|
+
- Calendar: Added new component that can open calendar with any kind of input([#126](https://github.com/7shifts/sous-chef/pull/126))
|
|
12
|
+
|
|
13
|
+
## 2.9.0 (July 14th, 2022)
|
|
14
|
+
|
|
15
|
+
### Enhancements
|
|
16
|
+
|
|
17
|
+
- DataTableRow: Updated the `actions` prop allow creating actions outside of a kebab menu. ([#124](https://github.com/7shifts/sous-chef/pull/124))
|
|
18
|
+
|
|
19
|
+
## 2.8.3 (July 11th, 2022)
|
|
20
|
+
|
|
21
|
+
### Bug fixes
|
|
22
|
+
|
|
23
|
+
- DataTableRow: Fixed the TypeScript error that was requiring the css prop. ([#123](https://github.com/7shifts/sous-chef/pull/123))
|
|
24
|
+
|
|
25
|
+
## 2.8.2 (June 30th, 2022)
|
|
26
|
+
|
|
27
|
+
### Enhancements
|
|
28
|
+
|
|
29
|
+
- DataTableRow: Added possibility to pass a `ref` prop to have more control over each table row, for example, using drag and drop for sorting. It is also allowing extension to pass native div props. ([#122](https://github.com/7shifts/sous-chef/pull/122))
|
|
30
|
+
|
|
31
|
+
## 2.8.1 (June 23th, 2022)
|
|
32
|
+
|
|
33
|
+
### Bug fixes
|
|
34
|
+
|
|
35
|
+
- SelectField and MultiSelectField: The scroll was not working properly when using the prop `menuShouldScrollIntoView` with grouped options. ([#121](https://github.com/7shifts/sous-chef/pull/121))
|
|
36
|
+
|
|
37
|
+
## 2.8.0 (June 16th, 2022)
|
|
38
|
+
|
|
39
|
+
### Bug fixes
|
|
40
|
+
|
|
41
|
+
- DateField and WeekField: Updated the error state style where it was not showing the red border. ([#120](https://github.com/7shifts/sous-chef/pull/120))
|
|
42
|
+
- RadioGroupField: When using formik it wasn't possible to change options. ([#119](https://github.com/7shifts/sous-chef/pull/119))
|
|
43
|
+
|
|
44
|
+
### New component
|
|
45
|
+
|
|
46
|
+
- PercentageField: Added new form input for validating and displaying percentages. ([#117](https://github.com/7shifts/sous-chef/pull/117))
|
|
47
|
+
- CurrencyField: Added new form input for validating and displaying currency values. ([#118](https://github.com/7shifts/sous-chef/pull/118))
|
|
48
|
+
|
|
49
|
+
## 2.7.0 (June 2nd, 2022)
|
|
50
|
+
|
|
51
|
+
### New component
|
|
52
|
+
|
|
53
|
+
- IconUniversity: Added the new icon to the Sous Chef iconography. ([#114](https://github.com/7shifts/sous-chef/pull/114))
|
|
54
|
+
|
|
55
|
+
### Enhancements
|
|
56
|
+
|
|
57
|
+
- Spinner: Added pride theme ([#115](https://github.com/7shifts/sous-chef/pull/115)).
|
|
58
|
+
|
|
59
|
+
### Bug fixes
|
|
60
|
+
|
|
61
|
+
- TextField: Fixed `onBlur` error when using with Formik ([#116](https://github.com/7shifts/sous-chef/pull/116)).
|
|
62
|
+
|
|
63
|
+
## 2.6.0 (May 24th, 2022)
|
|
64
|
+
|
|
65
|
+
### Enhancements
|
|
66
|
+
|
|
67
|
+
- DateRangeField: Added the `disabledDays` prop so it is possible to disable some dates to prevent the user from selecting it ([#109](https://github.com/7shifts/sous-chef/pull/109)).
|
|
68
|
+
|
|
69
|
+
### Bug fixes
|
|
70
|
+
|
|
71
|
+
- DateRangeField: Showing the formik error properly when it is an object ([#113](https://github.com/7shifts/sous-chef/pull/113)).
|
|
72
|
+
- DateRangeField: Hiding the calendar when clicking outside ([#112](https://github.com/7shifts/sous-chef/pull/112)).
|
|
73
|
+
- DateRangeField: Fixed bug when clicking on disabled dates would open two calendars ([#110](https://github.com/7shifts/sous-chef/pull/110)).
|
|
74
|
+
|
|
75
|
+
## 2.5.1 (May 18th, 2022)
|
|
76
|
+
|
|
77
|
+
### Design Debt
|
|
78
|
+
|
|
79
|
+
- DataTable: Updated DataTable column header padding values to follow 4px grid ([#108](https://github.com/7shifts/sous-chef/pull/108)).
|
|
80
|
+
- Tooltip: Updated white tooltip text color to be consistent with component in design system ([#108](https://github.com/7shifts/sous-chef/pull/108)).
|
|
81
|
+
|
|
82
|
+
## 2.5.0 (May 12th, 2022)
|
|
83
|
+
|
|
84
|
+
### New components
|
|
85
|
+
|
|
86
|
+
- Icons: Added IconCalendarStar and IconBirthdayCake ([#105](https://github.com/7shifts/sous-chef/pull/105)).
|
|
87
|
+
|
|
88
|
+
### Bug fixes
|
|
89
|
+
|
|
90
|
+
- DataTable: Fixed scroll issue where the table will show a scroll if it has more content than the container can handle. ([#107](https://github.com/7shifts/sous-chef/pull/107)).
|
|
91
|
+
|
|
92
|
+
## 2.4.0 (May 9th, 2022)
|
|
93
|
+
|
|
94
|
+
### Enhancements
|
|
95
|
+
|
|
96
|
+
- SelectField: Added `isClearable` so users can clear the selected option. ([#104](https://github.com/7shifts/sous-chef/pull/104)).
|
|
97
|
+
|
|
98
|
+
## 2.3.6 (April 28th, 2022)
|
|
99
|
+
|
|
100
|
+
### New components
|
|
101
|
+
|
|
102
|
+
- IconStarSolid: Added the new icon to the Sous Chef iconography. ([#103](https://github.com/7shifts/sous-chef/pull/103)).
|
|
103
|
+
|
|
104
|
+
### Tech debt
|
|
105
|
+
|
|
106
|
+
- ToolbarFilter: Exporting the component so it can be imported from the root level. ([#101](https://github.com/7shifts/sous-chef/pull/101)).
|
|
107
|
+
|
|
108
|
+
## 2.3.5 (April 22th, 2022)
|
|
109
|
+
|
|
110
|
+
### Enhancements
|
|
111
|
+
|
|
112
|
+
- IconGif: Added the new icon to the Sous Chef iconography. ([#102](https://github.com/7shifts/sous-chef/pull/102)).
|
|
113
|
+
|
|
114
|
+
## 2.3.4 (April 12th, 2022)
|
|
115
|
+
|
|
116
|
+
### Bug fixes
|
|
117
|
+
|
|
118
|
+
- Tooltip: Clear the tooltip's visible state if no text is informed to avoid it appearing without a hovering action in case a text is redefined. ([#100](https://github.com/7shifts/sous-chef/pull/100)).
|
|
119
|
+
|
|
120
|
+
## 2.3.3 (April 5th, 2022)
|
|
121
|
+
|
|
122
|
+
### Bug fixes
|
|
123
|
+
|
|
124
|
+
- DataTable & ResourceTable: Updated the border-radius for the first selected item. ([#95](https://github.com/7shifts/sous-chef/pull/95)).
|
|
125
|
+
- DataTable: Updated to make the `columns` prop optional. ([#94](https://github.com/7shifts/sous-chef/pull/94)).
|
|
126
|
+
- DataTable & ResorceTable: Fixed the header size issue when changing sort. ([#93](https://github.com/7shifts/sous-chef/pull/93)).
|
|
127
|
+
- Form: Updated how form fields are linked with Formik. Now it supports multi-level dynamic fields. ([#99](https://github.com/7shifts/sous-chef/pull/99)).
|
|
128
|
+
|
|
129
|
+
### Enhancements
|
|
130
|
+
|
|
131
|
+
- Form: Updated to add the proper type of the property `formik`. It is now working with both `<Formik>` and `useFormik`. ([#97](https://github.com/7shifts/sous-chef/pull/97)).
|
|
132
|
+
- Tooltip: Added the `role="tooltip"` to improve acessibility and also help writing tests. ([#96](https://github.com/7shifts/sous-chef/pull/96)).
|
|
133
|
+
- Tooltip: Added the prop `onVisibleChange` to tell when the overlay is getting shown or hidden. It is helpful to trigger analytic events. ([#96](https://github.com/7shifts/sous-chef/pull/96)).
|
|
134
|
+
|
|
135
|
+
### Tech debt
|
|
136
|
+
|
|
137
|
+
- Modal: Downgraded to use v3.5.1 to match the webapp version. ([#98](https://github.com/7shifts/sous-chef/pull/98)).
|
|
138
|
+
|
|
139
|
+
## 2.3.2 (March 28th, 2022)
|
|
140
|
+
|
|
141
|
+
### Bug fixes
|
|
142
|
+
|
|
143
|
+
- DateField: Updated date check when a non-date value was passed to the `onChange` method. ([#92](https://github.com/7shifts/sous-chef/pull/92)).
|
|
144
|
+
|
|
145
|
+
## 2.3.1 (March 28th, 2022)
|
|
146
|
+
|
|
147
|
+
### Enhancement
|
|
148
|
+
|
|
149
|
+
- SelectField & MultiSelectField: Added the `noOptionsMessage` prop to both components to customize the no results message. ([#89](https://github.com/7shifts/sous-chef/pull/89)).
|
|
150
|
+
- DateField: Updated to have the date set to midnight. ([#91](https://github.com/7shifts/sous-chef/pull/91)).
|
|
151
|
+
|
|
152
|
+
### Bug fixes
|
|
153
|
+
|
|
154
|
+
- SelectField & MultiSelectField: Fixed the Safari scroll issue when using the prop `menuShouldScrollIntoView={false}`. ([#90](https://github.com/7shifts/sous-chef/pull/90)).
|
|
155
|
+
|
|
156
|
+
## 2.3.0 (March 24th, 2022)
|
|
157
|
+
|
|
158
|
+
### New components
|
|
159
|
+
|
|
160
|
+
- IconGavel: Added the new icon to the Sous Chef iconography. ([#87](https://github.com/7shifts/sous-chef/pull/87)).
|
|
161
|
+
|
|
162
|
+
### Bug fixes
|
|
163
|
+
|
|
164
|
+
- SelectField: When selecting a large option, it makes the `SelectField` to grow more than the placeholder can support. ([#88](https://github.com/7shifts/sous-chef/pull/88)).
|
|
165
|
+
|
|
166
|
+
## 2.2.0 (March 22th, 2022)
|
|
167
|
+
|
|
168
|
+
### New components
|
|
169
|
+
|
|
170
|
+
- TimeField: Form field able to handle time format. ([#85](https://github.com/7shifts/sous-chef/pull/85)).
|
|
171
|
+
|
|
172
|
+
### Bug fixes
|
|
173
|
+
|
|
174
|
+
- DateField: When placing the `DateField` in a `FormRow` with 3 columns, the `DateField` was not shrinking enough to fit in the space. ([#86](https://github.com/7shifts/sous-chef/pull/86)).
|
|
175
|
+
|
|
176
|
+
## 2.1.2 (March 15th, 2022)
|
|
177
|
+
|
|
178
|
+
### Bug fixes
|
|
179
|
+
|
|
180
|
+
- IconGrinBeam: Removed the icon white background to allow using it in places with different background colors. ([#84](https://github.com/7shifts/sous-chef/pull/84)).
|
|
181
|
+
- SelectField: Added the `menuShouldScrollIntoView` to remove scrolling into the view. It was causing weird scroll behaviours when placing the component inside a modal. ([#82](https://github.com/7shifts/sous-chef/pull/82)).
|
|
182
|
+
|
|
183
|
+
## 2.1.1 (March 10th, 2022)
|
|
184
|
+
|
|
185
|
+
### Bug fixes
|
|
186
|
+
|
|
187
|
+
- DataTable: added box-sizing: content-box to the actions column header and actions cell to mitigate box-sizing: border-box messing with the layout. ([#83](https://github.com/7shifts/sous-chef/pull/83)).
|
|
188
|
+
|
|
189
|
+
## 2.1.0 (March 4th, 2022)
|
|
190
|
+
|
|
191
|
+
### Bug fixes
|
|
192
|
+
|
|
193
|
+
- Field: Fixed to do not render the label if the label value is evaluated as falsy. ([#79](https://github.com/7shifts/sous-chef/pull/79)).
|
|
194
|
+
- SelectField: Updated colour variables being used to be consistent with all fields and adjusted styles in order for disabled styles to work with SelectFields with prefixes. ([#73](https://github.com/7shifts/sous-chef/pull/73))
|
|
195
|
+
- TextField:
|
|
196
|
+
- Added `$text-field-disabled-font-color` token and linked it up to the disabled styles. ([#73](https://github.com/7shifts/sous-chef/pull/73))
|
|
197
|
+
- Updated component export to ensure all props appear on storybook.
|
|
198
|
+
- DateRangeField: Added `date-range-field--disabled` className to DateRangePicker in order for the entire field to get the disabled background. ([#73](https://github.com/7shifts/sous-chef/pull/73))
|
|
199
|
+
- PillSelectField: Updated PillSelectField disabled text colour to grey-400 to be consistent with other fields. ([#73](https://github.com/7shifts/sous-chef/pull/73))
|
|
200
|
+
- AffixContainer: Updated color for prefix and suffix to be grey-400 if it's an svg. If not, it'll be grey-500 from affix-item styles.
|
|
201
|
+
|
|
202
|
+
### New components
|
|
203
|
+
|
|
204
|
+
- ToolbarSelect: Added new select component similar to SelectField but meant specifically for toolbars rather than forms.
|
|
205
|
+
|
|
206
|
+
## 2.0.0 (February 16th, 2022)
|
|
207
|
+
|
|
208
|
+
### New components/Enhancements
|
|
209
|
+
|
|
210
|
+
- Icons: Added SVGR as a dependency, migrated existing icons and their usage to new implementation using SVGR, added remaining icons used in the 7shifts repo, and renamed the icons listed below (before -> after) in order to have consistent naming across various tools. ([#60](https://github.com/7shifts/sous-chef/pull/60))
|
|
211
|
+
- IconCalendar -> IconCalendarAlt
|
|
212
|
+
- IconClose -> IconTimes
|
|
213
|
+
- IconDelete -> IconTimesOctagon
|
|
214
|
+
- IconEdit -> IconPencil
|
|
215
|
+
- IconExclaim -> IconExclaimation
|
|
216
|
+
- IconLocation -> IconMapMarker
|
|
217
|
+
- IconMore -> IconEllipsisV
|
|
218
|
+
- IconRemove -> IconTrash
|
|
219
|
+
- IconUser -> IconUserSolid
|
|
220
|
+
|
|
221
|
+
## 1.5.8 (February 14th, 2022)
|
|
222
|
+
|
|
223
|
+
### Bug fixes
|
|
224
|
+
|
|
225
|
+
- DataTableRow: Updated hover state to only appear if there's an onClick (i.e. row action) similar to previous component (ResourceTable). ([#76](https://github.com/7shifts/sous-chef/pull/76))
|
|
226
|
+
- DataTableEditableCell: Added hover state styles to DataTableEditableCell to keep proper styles after the changes to DataTableRow (above). ([#76](https://github.com/7shifts/sous-chef/pull/76))
|
|
227
|
+
|
|
228
|
+
## 1.5.7 (January 31st, 2022)
|
|
229
|
+
|
|
230
|
+
### Enhancements
|
|
231
|
+
|
|
232
|
+
- TextField: Added new props ([#75](https://github.com/7shifts/sous-chef/pull/75)) :
|
|
233
|
+
- `onFocus`, accepts an event callback to be passed which receives the current input value
|
|
234
|
+
- `onKeyDown`, accepts an event callback to be passed which receives the key pressed when the input has focus
|
|
235
|
+
- `maxLength`, specifies the maximum length allowed by the underlying `input`
|
|
236
|
+
|
|
237
|
+
## 1.5.6 (January 21st, 2022)
|
|
238
|
+
|
|
239
|
+
### Enhancements
|
|
240
|
+
|
|
241
|
+
- TextField: Added new string prop `autoComplete` which has no default value. Options are "off" or "on". ([#74](https://github.com/7shifts/sous-chef/pull/74))
|
|
242
|
+
|
|
243
|
+
## 1.5.5 (January 13th, 2022)
|
|
244
|
+
|
|
245
|
+
### Bug fixes
|
|
246
|
+
|
|
247
|
+
- DataTableEditableCell: Added new prop 'step' which is set to 'any' if the input type is set to 'currency'. ([#72](https://github.com/7shifts/sous-chef/pull/72))
|
|
248
|
+
|
|
249
|
+
## 1.5.4 (January 10th, 2022)
|
|
250
|
+
|
|
251
|
+
### Enhancements
|
|
252
|
+
|
|
253
|
+
- MultiSelectField: Added new prop closeOnSelect which is set to false by default in order for the dropdown to stay open while selecting options. ([#71](https://github.com/7shifts/sous-chef/pull/71))
|
|
254
|
+
|
|
255
|
+
## 1.5.3 (December 13th, 2021)
|
|
256
|
+
|
|
257
|
+
### Enhancements
|
|
258
|
+
|
|
259
|
+
- 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))
|
|
260
|
+
|
|
261
|
+
## 1.5.2 (November 10th, 2021)
|
|
262
|
+
|
|
263
|
+
### Enhancements
|
|
264
|
+
|
|
265
|
+
- PasswordField: Updated met criteria bullet to IconCheck to be consistent with mobile ([#69](https://github.com/7shifts/sous-chef/pull/69))
|
|
266
|
+
|
|
267
|
+
### New Components
|
|
268
|
+
|
|
269
|
+
- IconCheck: added for now to use in PasswordCriteria. ([#69](https://github.com/7shifts/sous-chef/pull/69))
|
|
270
|
+
|
|
271
|
+
## 1.5.1 (October 20th, 2021)
|
|
272
|
+
|
|
273
|
+
### Bug fixes
|
|
274
|
+
|
|
275
|
+
- DataTable: Exported `DataTableCustomComponent` type ([#67](https://github.com/7shifts/sous-chef/pull/67))
|
|
276
|
+
|
|
277
|
+
## 1.5.0 (October 19th, 2021)
|
|
278
|
+
|
|
279
|
+
### New components
|
|
280
|
+
|
|
281
|
+
- PillSelectField ([#65](https://github.com/7shifts/sous-chef/pull/65))
|
|
282
|
+
|
|
283
|
+
### Bug fixes
|
|
284
|
+
|
|
285
|
+
- 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))
|
|
286
|
+
|
|
287
|
+
## 1.4.1 (October 8th, 2021)
|
|
288
|
+
|
|
289
|
+
### Enhancements
|
|
290
|
+
|
|
291
|
+
- DataTable: Updated flow types ([#62](https://github.com/7shifts/sous-chef/pull/62))
|
|
292
|
+
- Tooltip: Added the prop `onClose` to listen when the overlay closed ([#64](https://github.com/7shifts/sous-chef/pull/64))
|
|
293
|
+
|
|
294
|
+
## 1.4.0 (October 7th, 2021)
|
|
295
|
+
|
|
296
|
+
### Enhancements
|
|
297
|
+
|
|
298
|
+
- Updated SelectField to support disabled options
|
|
299
|
+
|
|
300
|
+
## 1.3.1 (September 29th, 2021)
|
|
301
|
+
|
|
302
|
+
### Bug fixes
|
|
303
|
+
|
|
304
|
+
- Avatar: updated to show the proper background when the image url is not available ([#57](https://github.com/7shifts/sous-chef/pull/57))
|
|
305
|
+
- PaginationControls: updated to have the title with the first character capitalized ([#58](https://github.com/7shifts/sous-chef/pull/58))
|
|
306
|
+
- DataTable: Added missing exports ([#59](https://github.com/7shifts/sous-chef/pull/59))
|
|
307
|
+
|
|
308
|
+
## 1.3.0 (September 27th, 2021)
|
|
309
|
+
|
|
310
|
+
### New components
|
|
311
|
+
|
|
312
|
+
- DataTable ([#50](https://github.com/7shifts/sous-chef/pull/50)) - And added editable functionality ([#54](https://github.com/7shifts/sous-chef/pull/54))
|
|
313
|
+
|
|
314
|
+
## 1.2.2 (September 24rd, 2021)
|
|
315
|
+
|
|
316
|
+
### Bug fixes
|
|
317
|
+
|
|
318
|
+
- 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))
|
|
319
|
+
|
|
320
|
+
## 1.2.1 (September 23rd, 2021)
|
|
321
|
+
|
|
322
|
+
### Bug fixes
|
|
323
|
+
|
|
324
|
+
- 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))
|
|
325
|
+
|
|
326
|
+
### Enhancements
|
|
327
|
+
|
|
328
|
+
- 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))
|
|
329
|
+
|
|
330
|
+
## 1.2.0 (September 15th, 2021)
|
|
331
|
+
|
|
332
|
+
### New components
|
|
333
|
+
|
|
334
|
+
- Modal ([#49](https://github.com/7shifts/sous-chef/pull/49))
|
|
335
|
+
|
|
336
|
+
### Bug fixes
|
|
337
|
+
|
|
338
|
+
- Avatar: The fallback image was not being applied properly ([#46](https://github.com/7shifts/sous-chef/pull/46))
|
|
339
|
+
|
|
340
|
+
## 1.1.4 (August 17, 2021)
|
|
341
|
+
|
|
342
|
+
### Bug fixes
|
|
343
|
+
|
|
344
|
+
- Button: Fixed the padding when having only an icon inside the Button ([#45](https://github.com/7shifts/sous-chef/pull/45))
|
|
345
|
+
|
|
346
|
+
## 1.1.3 (August 5, 2021)
|
|
347
|
+
|
|
348
|
+
### Bug fixes
|
|
349
|
+
|
|
350
|
+
- 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))
|
|
351
|
+
|
|
352
|
+
## 1.1.2 (August 4, 2021)
|
|
353
|
+
|
|
354
|
+
### Bug fixes
|
|
355
|
+
|
|
356
|
+
- SelectField: When using the `prefix` prop it had a missaligned prefix ([#43](https://github.com/7shifts/sous-chef/pull/43))
|
|
357
|
+
- SelectField: Implemented the `onBlur` prop ([#42](https://github.com/7shifts/sous-chef/pull/42))
|
|
358
|
+
- MultiSelectField: Implemented the `onBlur` prop ([#42](https://github.com/7shifts/sous-chef/pull/42))
|
|
359
|
+
|
|
360
|
+
## 1.1.1 (July 28, 2021)
|
|
361
|
+
|
|
362
|
+
### Enhancements
|
|
363
|
+
|
|
364
|
+
- Badge: Added the `title` prop to make it easier adding a black tooltip ([#40](https://github.com/7shifts/sous-chef/pull/40))
|
|
365
|
+
|
|
366
|
+
### New components
|
|
367
|
+
|
|
368
|
+
- IconExclaim ([#41](https://github.com/7shifts/sous-chef/pull/41))
|
|
369
|
+
|
|
370
|
+
## 1.1.0 (July 23, 2021)
|
|
371
|
+
|
|
372
|
+
### New components
|
|
373
|
+
|
|
374
|
+
- Badge ([#37](https://github.com/7shifts/sous-chef/pull/37))
|
|
375
|
+
- Avatar ([#38](https://github.com/7shifts/sous-chef/pull/38))
|
|
376
|
+
- IconComment ([#39](https://github.com/7shifts/sous-chef/pull/39))
|
|
377
|
+
- IconLocation ([#39](https://github.com/7shifts/sous-chef/pull/39))
|
|
378
|
+
- IconMinusCircle ([#39](https://github.com/7shifts/sous-chef/pull/39))
|
|
379
|
+
- IconUserPlus ([#39](https://github.com/7shifts/sous-chef/pull/39))
|
|
380
|
+
|
|
381
|
+
### Bug fixes
|
|
382
|
+
|
|
383
|
+
- 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))
|
|
384
|
+
|
|
385
|
+
### Enhancements
|
|
386
|
+
|
|
387
|
+
- 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))
|
|
388
|
+
|
|
389
|
+
## 1.0.3 (July 15, 2021)
|
|
390
|
+
|
|
391
|
+
### Bug fixes
|
|
392
|
+
|
|
393
|
+
- Button: Fixed global CSS overrites when button behaves like link ([#35](https://github.com/7shifts/sous-chef/pull/35))
|
|
394
|
+
|
|
395
|
+
## 1.0.2 (July 15, 2021)
|
|
396
|
+
|
|
397
|
+
### Bug fixes
|
|
398
|
+
|
|
399
|
+
- TextAreaField: Fixed global CSS overrites ([#34](https://github.com/7shifts/sous-chef/pull/34))
|
|
400
|
+
|
|
401
|
+
## 1.0.1 (July 14, 2021)
|
|
402
|
+
|
|
403
|
+
### Enhancements
|
|
404
|
+
|
|
405
|
+
- TextField: Added the possibility of using `useRef` ([#33](https://github.com/7shifts/sous-chef/pull/33))
|
|
406
|
+
|
|
407
|
+
## 1.0.0 (June 25, 2021)
|
|
408
|
+
|
|
409
|
+
### New components
|
|
410
|
+
|
|
411
|
+
- Tooltip ([#16](https://github.com/7shifts/sous-chef/pull/16))
|
|
412
|
+
- MultiSelectField ([#19](https://github.com/7shifts/sous-chef/pull/19))
|
|
413
|
+
- TextAreaField ([#21](https://github.com/7shifts/sous-chef/pull/21))
|
|
414
|
+
- RadioGroupField ([#22](https://github.com/7shifts/sous-chef/pull/22))
|
|
415
|
+
- WeekField ([#24](https://github.com/7shifts/sous-chef/pull/24))
|
|
416
|
+
- DateRangeField ([#25](https://github.com/7shifts/sous-chef/pull/25))
|
|
417
|
+
- IconRemove ([#26](https://github.com/7shifts/sous-chef/pull/26))
|
|
418
|
+
|
|
419
|
+
### Enhancements
|
|
420
|
+
|
|
421
|
+
- Button: Added the possibility of making Butons act as links ([#23](https://github.com/7shifts/sous-chef/pull/23))
|
|
422
|
+
- SelectField and MultiSelectField: Added the possibility of customizing the select options ([#27](https://github.com/7shifts/sous-chef/pull/27))
|
|
423
|
+
|
|
424
|
+
### Bug fixes
|
|
425
|
+
|
|
426
|
+
- Form: consolidated the Flow types for `useFormik` and `<Formik ...>` ([#28](https://github.com/7shifts/sous-chef/pull/28))
|
|
427
|
+
- Icons: added missing Flow types ([#26](https://github.com/7shifts/sous-chef/pull/26))
|
|
428
|
+
|
|
429
|
+
### Pre existing components
|
|
430
|
+
|
|
431
|
+
- Button
|
|
432
|
+
- PaginationControls
|
|
433
|
+
- Toggle
|
|
434
|
+
- Inline
|
|
435
|
+
- Stack
|
|
436
|
+
- ResourceTable
|
|
437
|
+
- Spinner
|
|
438
|
+
- CheckboxField
|
|
439
|
+
- DateField
|
|
440
|
+
- DateRangeField
|
|
441
|
+
- Form
|
|
442
|
+
- FormRow
|
|
443
|
+
- MultiSelectField
|
|
444
|
+
- PasswordField
|
|
445
|
+
- RadioGroupField
|
|
446
|
+
- SelectField
|
|
447
|
+
- TextAreaField
|
|
448
|
+
- TextField
|
|
449
|
+
- WeekField
|
|
450
|
+
- Tooltip
|
package/dist/index.js
CHANGED
|
@@ -5372,7 +5372,8 @@ var DateField = function DateField(_ref) {
|
|
|
5372
5372
|
disabled = _ref.disabled,
|
|
5373
5373
|
defaultValue = _ref.defaultValue,
|
|
5374
5374
|
_ref$readOnly = _ref.readOnly,
|
|
5375
|
-
readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly
|
|
5375
|
+
readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
|
|
5376
|
+
onMonthChange = _ref.onMonthChange;
|
|
5376
5377
|
var inputRef = React.useRef();
|
|
5377
5378
|
|
|
5378
5379
|
var _useState = React.useState(false),
|
|
@@ -5405,7 +5406,8 @@ var DateField = function DateField(_ref) {
|
|
|
5405
5406
|
weekdaysLong: DAYS,
|
|
5406
5407
|
weekdaysShort: DAYS.map(function (day) {
|
|
5407
5408
|
return day.substring(0, 2);
|
|
5408
|
-
})
|
|
5409
|
+
}),
|
|
5410
|
+
onMonthChange: onMonthChange
|
|
5409
5411
|
};
|
|
5410
5412
|
return React__default.createElement(Field, Object.assign({}, fieldProps), React__default.createElement(AffixContainer, {
|
|
5411
5413
|
prefix: React__default.createElement(IconCalendarAlt, {
|