UNPKG

17.9 kBMarkdownView Raw
1# Changelog
2
3## Unreleased
4
5## 11.0.1 - 2019-11-21
6
7### Changed
8
9- [Patch] Update version of the Thumbprint SCSS dependency.
10
11## 11.0.0 - 2019-11-20
12
13### Removed
14
15- [Major] Remove `BlockList`, `ProgressBar`, and `ProgressBarBase` components. (#544)
16
17## 10.1.1 - 2019-11-11
18
19### Changed
20
21- [Patch] Rewrite `Button` component in TypeScript.
22- [Patch] Rewrite `UIAction` component in TypeScript.
23- [Patch] Rewrite internal utility function and components in TypeScript.
24
25## 10.1.0 - 2019-11-06
26
27### Changed
28
29- [Patch] Convert `Radio` component to TypeScript.
30
31### Fixed
32
33- [Patch] Update Type syntax for `Image` and `ServiceCardImage` to fix missing API docs.
34
35### Added
36
37- [Minor] Create `Alert` component in React (TypeScript).
38- [Minor] Add `ref` support to `Input` component. (#492)
39
40## 10.0.1 - 2019-10-21
41
42### Fixed
43
44- [Patch] Adjust `Input` padding when `innerLeft` or `innerRight` exist to prevent overlap and provide better spacing. Reverting previous change to `z-index`. (#498)
45- [Patch] Change z-index of icon container on `Input` to prevent overlap when input background has a color. (#498)
46
47## 10.0.0 - 2019-10-17
48
49### Changed
50
51- [Patch] Rewrite `Label` component in TypeScript.
52- [Patch] Convert `Input` component to TypeScript.
53- [Major] Change type of `maxLength` attribute of `Input` from `string` to `number`.
54
55## 9.7.1 - 2019-10-17
56
57### Changed
58
59- [Patch] Convert `Input` component to a function component with Hooks.
60- [Patch] Update version of the Thumbprint Tokens dependency.
61
62## 9.7.0 - 2019-10-16
63
64### Added
65
66- [Minor] Add `value` to `Checkbox` component. (#501)
67
68## 9.6.0 - 2019-10-16
69
70### Added
71
72- [Minor] Add `isRequired` to `Radio` component.
73- [Minor] Add `isRequired` to `Checkbox` component.
74
75### Fixed
76
77- [Patch] Add `line-height` to `Pill` to ensure alignment, prevent external value inheritance. (#494)
78- [Patch] Enable `size` prop to properly pass through a `number` to the `Image` height. (#486)
79
80### Changed
81
82- [Patch] Rewrite `Checkbox` component in TypeScript.
83- [Patch] Rewrite `Textarea` component in TypeScript.
84
85## 9.5.6 - 2019-10-09
86
87### Changed
88
89- [Patch] Rewrite `Popover` component in TypeScript.
90- [Patch] Rewrite `Select` component in TypeScript.
91
92## 9.5.5 - 2019-10-09
93
94### Changed
95
96- [Patch] Rewrite `ServiceCard` component in TypeScript.
97
98## 9.5.4 - 2019-10-07
99
100### Changed
101
102- [Patch] Rewrite `Carousel` component in TypeScript.
103- [Patch] Rewrite `DatePicker` component in TypeScript.
104
105## 9.5.3 - 2019-10-03
106
107### Changed
108
109- [Patch] Rewrite `StarRating` component in TypeScript.
110- [Patch] Rewrite `Text` and `Title` components in TypeScript.
111- [Patch] Rewrite `Image` component in TypeScript.
112- [Patch] Rewrite `Wrap` component in TypeScript.
113
114## 9.5.2 - 2019-09-27
115
116### Changed
117
118- [Patch] Rewrite `Avatar` component in TypeScript.
119- [Patch] Add TS declarations for main entry point (`index.ts`) so consumers of this library can access component type definitions.
120
121## 9.5.1 - 2019-09-25
122
123### Changed
124
125- [Patch] Rewrite `FormNote` component in TypeScript.
126- [Patch] Rewrite `Grid` and `GridColumn` components in TypeScript.
127- [Patch] Rewrite `LoaderDots` component in TypeScript.
128- [Patch] Rewrite `Tooltip` component in TypeScript.
129
130## 9.5.0 - 2019-09-24
131
132### Added
133
134- [Minor] Add `onKeyPress` prop to input.
135
136## 9.4.1 - 2019-09-24
137
138### Changed
139
140- [Patch] Rewrite `ButtonRow` component in TypeScript.
141
142### Fixed
143
144- [Patch] Replace slow `scrollparent` NPM package with faster script. (#416)
145
146## 9.4.0 - 2019-09-18
147
148### Added
149
150- [Minor] Add `iconRight` prop to `Link`. (#436)
151
152## 9.3.0 - 2019-09-17
153
154### Added
155
156- [Minor] Add `iconRight` prop to `TextButton`. (#436)
157
158## 9.2.0 - 2019-09-05
159
160### Added
161
162- [Minor] Add `heightAboveSmall` to `ModalDefault` and `ModalDefaultAnimatedWrapper`. (#433)
163
164### Changed
165
166- [Patch] Fix bottom padding in `ModalDefault` for Firefox and Edge (#376)
167
168## 9.1.2 - 2019-09-03
169
170### Changed
171
172- [Patch] Code formatting tweaks due to Prettier version bump.
173
174## 9.1.1 - 2019-08-23
175
176### Fixed
177
178- [Patch] Prevent noscript image when `forceEarlyRender` prop is used.
179
180## 9.1.0 - 2019-08-22
181
182### Added
183
184- [Minor] Add `forceEarlyRender` prop to `Image` to disable the default lazy-loading behavior and override the `sizes` attribute. (#426)
185
186### Fixed
187
188- [Patch] Fixed missing `Unreleased` header in CHANGELOG.
189
190## 9.0.3 - 2019-08-21
191
192### Changed
193
194- [Patch] Update version of the Thumbprint Tokens dependency.
195
196## 9.0.2 - 2019-08-19
197
198### Changed
199
200- [Patch] Fix a bug in `BaseCarousel` caused by previous refactor. (#427)
201
202## 9.0.1 - 2019-08-13
203
204### Changed
205
206- [Patch] Refactor `BaseCarousel` to be a SFC with Hooks.
207
208## 9.0.0 - 2019-08-13
209
210### Added
211
212- [Minor] Update `DatePicker` to accept a `month` prop to control the active month.
213
214### Changed
215
216- [Major] Make the `onMonthChanged` prop from `DatePicker` required.
217
218### Fixed
219
220- [Patch] Update `react-day-picker` dependency to 7.3.2. (#150)
221
222## 8.0.1 - 2019-08-08
223
224### Fixed
225
226- [Patch] Fix bug in `Carousel` where transition animation was not working.
227
228## 8.0.0 - 2019-08-08
229
230### Fixed
231
232- [Major] Update `DatePicker` props validation to be more stringent. It now throws a JavaScript error for any provided `value`s that collide with the `disabledDays`, whether `before` or `after`. Previously only `before` was checked, and only when it was before the current day. For consumers who are not passing in erroneous input, these new checks will have no effect, but it may reveal existing bugs and so all consumers should be tested manually when upgrading.
233- [Patch] Restore border color of focused `Radio` input.
234- [Patch] Refactor `Carousel` component to be a SFC with Hooks.
235
236## 7.1.0 - 2019-07-31
237
238### Changed
239
240- [Minor] Add new `HorizontalRule` react component.
241
242### Fixed
243
244- [Patch] Fix border colour of focused `Select` in an error state.
245
246## 7.0.1 - 2019-07-16
247
248### Fixed
249
250- [Patch] Fix bug in `DatePicker` where string dates were parsed in UTC instead of local timezone.
251
252## 7.0.0 - 2019-07-15
253
254### Changed
255
256- [Major] Rewrite `DatePicker` to be a fully controlled component. (#12)
257
258## 6.4.2 - 2019-07-15
259
260### Fixed
261
262- [Patch] Revert Datepicker breaking change that was accidentally released in 6.4.1
263
264## 6.4.1 - 2019-07-15
265
266### Fixed
267
268- [Patch] Fix bug in `use-focus-trap` that caused it to refocus every render. (#366)
269
270## 6.4.0 - 2019-07-09
271
272### Changed
273
274- [Patch] Update `ConditionalPortal` to explicitly allow and handle null contents. (#357)
275- [Patch] Update description of Avatar prop.
276- [Minor] Remove fade-in from `Image`. (#368)
277
278## 6.3.2 - 2019-07-01
279
280### Changed
281
282- [Patch] Update version of the Thumbprint Tokens dependency.
283
284## 6.3.1 - 2019-07-01
285
286### Added
287
288- [Patch] Create new hook for registering an ESC listener.
289- [Patch] Create new hook for trapping focus.
290- [Patch] Create new utility component for conditionally using portals.
291
292### Changed
293
294- [Patch] Refactor ModalCurtain to be a function component and use hooks.
295- [Patch] Refactor Tooltip to use the new hooks.
296- [Patch] Refactor Popover to use the new hooks.
297- [Patch] Refactor Tooltip to be a functional component and update its tests.
298
299### Fixed
300
301- [Patch] Add `muted` theme to tertiary `Button` loading state to match the button's text color. (#352)
302
303## 6.3.0 - 2019-06-26
304
305### Changed
306
307- [Patch] Simplify `<noscript>` output in `Image` component by removing `<picture>` and `srcSet` and using only `<img alt="..." src="..." />`.
308
309### Added
310
311- [Minor] Add the new `Popover` component.
312
313## 6.2.1 - 2019-06-24
314
315### Changed
316
317- [Patch] Revert lazy load threshold in `Image` component from `400px` to `100px`. The larger value loads more images than desired on mobile.
318
319## 6.2.0 - 2019-06-20
320
321### Changed
322
323- [Patch] Increased lazy load threshold in `Image` component from `100px` to `400px` to bring it more in line with the default of lazy loading libraries like [lazysizes](https://github.com/aFarkas/lazysizes#js-api).
324
325### Added
326
327- [Minor] Make `ServiceCardImage`, `UserAvatar`, and `EntityAvatar` forward a ref to `Image`. (#324)
328- [Minor] Add `onError` function to `Image` component so broken image icon is properly displayed.
329
330## 6.1.0 - 2019-06-18
331
332### Changed
333
334- [Patch] Use `Image` component within `Avatar`. (#69)
335
336### Added
337
338- [Patch] `Image` now uses `overflow:hidden` to prevent incorrect image height prior to loading due to `alt` text. (#239)
339- [Minor] Add support for `isOnline` prop to `EntityAvatar`. (#25)
340- [Minor] Enable avatar badges at extra small size. (#318)
341
342## 6.0.0 - 2019-06-17
343
344### Changed
345
346- [Major] Only include `object-fit` CSS in `Image` when `height` is provided. That CSS was previously being added when the `containerAspectRatio` was present. `containerAspectRatio` now only adds placeholder spacing on the `<img>` which is removed `onload`.
347- [Major] Remove CSS that enforced aspect ratio in `ServiceCardImage` due to changes in `Image` component that no longer support this use case.
348- [Major] `ServiceCardImage` requires an image in the 8:5 aspect ratio to render correctly.
349- [Patch] Simplify `Image` component by remove placeholder `div` and CSS positing so the component behaves more predictably. Fixes double download bug in Edge 18.
350- [Minor] `ServiceCardImage` prop `src` added to replace `src`.
351- [Patch] `ServiceCardImage` prop `url` deprecated.
352
353## 5.0.0 - 2019-06-13
354
355### Removed
356
357- [Major] Remove `Avatar` alias for the `UserAvatar` component. Use the [`avatar-import-name` codemod](https://github.com/thumbtack/thumbprint/tree/master/packages/thumbprint-codemods/src/avatar-import-name) to migrate. (#25)
358
359### Fixed
360
361- [Patch] Remove unused CSS from `ServiceCardImage`.
362
363## 4.0.1 - 2019-06-13
364
365### Fixed
366
367- [Patch] Fix incorrect PropTypes for Avatar component.
368
369## 4.0.0 - 2019-06-12
370
371### Added
372
373- [Minor] Allow custom pixel values in avatar size prop. (#25)
374
375### Removed
376
377- [Major] Remove `hasUnreadNotifications` prop from `UserAvatar`. (#25)
378
379### Changed
380
381- [Major] Update dimensions of `EntityAvatar` and `UserAvatar` at all sizes. (#25)
382
383## 3.1.2 - 2019-06-11
384
385### Fixed
386
387- [Patch] Make `Input` and `Textarea` placeholder red when in error mode. (#216)
388- [Patch] Fix `DatePicker` multi-selection bug in IE 11.
389- [Patch] Make `Textarea` text black when there is an error but component is focused. (#298)
390
391## 3.1.1 - 2019-06-07
392
393### Fixed
394
395- [Patch] Fix `Image` component in IE 11.
396
397## 3.1.0 - 2019-06-06
398
399### Added
400
401- [Minor] Add a new named export called `UserAvatar` that refers to the same component as the old `Avatar`. This is the preferred name going forward. The default `Avatar` export will be removed in a future breaking change. (#25)
402
403## 3.0.0 - 2019-06-06
404
405### Added
406
407- [Major] Add new `secondary` theme `Button` and `ThemedLink` style. This style now has blue text. Consumers should replace old `theme="secondary"` with `theme="tertiary"` to avoid and visual changes. (#89)
408- [Minor] Export a new component `ModalDefaultContentFullBleed` that allows full-bleed content for the `ModalDefault`. (#194)
409
410### Changed
411
412- [Patch] Use `Image` component instead of lazysizes in `ServiceCardImage`.
413
414## 2.2.0 - 2019-06-05
415
416### Added
417
418- [Minor] Add `checkboxVerticalAlign` prop to `Checkbox` and `radioVerticalAlign` prop to `Radio` (#266)
419- [Minor] Add `tertiary` theme that is the same as our `secondary` style. `secondary` will soon be redesigned to have blue text. Consumers should replace `theme="secondary"` with `theme="tertiary"` to avoid and visual changes. (#89)
420
421### Changed
422
423- [Patch] Add small delay before showing tooltip after hovering to prevent flickering. (#158)
424- [Patch] Redesign the avatar with initials design to use dynamic colours. (#25)
425
426### Fixed
427
428- [Patch] Add `1px` min-height to the Image component root element to improve lazy-loading.
429
430## 2.1.0 - 2019-06-04
431
432### Added
433
434- [Minor] Add `onClick` prop to `ServiceCard`.
435- [Minor] Add `shouldOpenInNewTab` prop to `ServiceCard`.
436
437### Changed
438
439- [Patch] Refactor the internals of the `Image` component.
440
441## 2.0.0 - 2019-06-03
442
443### Changed
444
445- [Major] Update `DatePicker` component design.
446- [Patch] Update version of the Thumbprint Tokens dependency.
447
448## 1.0.0 - 2019-05-28
449
450### Added
451
452- [Minor] Add quick fade in transition to the `Image` component. (#243)
453- [Minor] Add Pill component (#251)
454
455### Changed
456
457- [Major] Remove `disableLazyLoading` prop from `Image` component (#257).
458
459## 0.7.3 - 2019-05-24
460
461### Changed
462
463- [Patch] Update some token names that were renamed. This doesn't affect the outputted code.
464
465### Fixed
466
467- [Patch] Update dot centering on `DatePicker` component to work better at all breakpoints. (#244)
468
469## 0.7.2 - 2019-05-17
470
471### Changed
472
473- [Patch] Remove references to deprecated tokens.
474
475## 0.7.1 - 2019-05-15
476
477### Changed
478
479- [Patch] Update version of the Thumbprint Tokens dependency. This doesn't affect the outputted code.
480
481### Fixed
482
483- [Patch] Support `width` classes and inline styles in the `Image` component. (#238)
484
485## 0.7.0 - 2019-05-09
486
487### Added
488
489- [Minor] Create an `Image` component.
490
491### Fixed
492
493- [Patch] Call `onOpenFinish` when the modal is immediately open as it is mounted.
494
495## 0.6.0 - 2019-05-01
496
497### Added
498
499- [Minor] Add `onMonthChange`, `daysThemeDotIndicator`, and `daysThemeStrikeout` props to the `DatePicker` component.
500
501## 0.5.3 - 2019-04-09
502
503### Added
504
505- [Minor] Add `onMouseOver` prop to the `Button` component. (#209)
506
507## 0.5.2 - 2019-04-08
508
509### Changed
510
511- [Patch] Fix `ButtonRow` so that it displays the primary call to action on top when the button row is stacked.
512- [Patch] Replace `tpSpacerUnit` with `tpSpace3` to remove dependencies on the deprecated spacer unit.
513- [Patch] Update version of the Thumbprint Tokens dependency.
514
515## 0.5.1 - 2019-04-02
516
517### Fixed
518
519- [Patch] Revert change that replaces `lazysizes` with internal image component because it was not working well within carousels.
520
521## 0.5.0 - 2019-04-01
522
523### Added
524
525- [Minor] `ModalDefaultAnimatedWrapper` now has a prop called `shouldPageScrollAboveSmall` that defaults to `true`. If `true`, the modal will be allowed to grow taller than the viewport above `small` breakpoints. If `false`, the modal height will limited by the viewport height at all breakpoints. This is a backwards compatible change since the default value remains the same as the previous behavior.
526
527### Changed
528
529- [Patch] The `isSticky` prop in `ModalDefaultFooter` will now affect modals at all breakpoints. Previously, only the small breakpoint was affected. (#135)
530
531## 0.4.0 - 2019-03-29
532
533### Added
534
535- [Minor] `Select`'s `onChange` function now sends the original event as a second argument (#188)
536- [Minor] `Select` now supports `onBlur` and `onFocus` props
537- [Minor] `Textarea` now supports a `name` prop
538
539## 0.3.0 - 2019-03-28
540
541### Added
542
543- [Minor] Add `BlockList` component. (#70)
544
545### Changed
546
547- [Patch] Convert all `tp-spacer` instances to `tp-space__*` or hardcoded values. (#159)
548- [Patch] Create internal image component for lazy-loading images. This removes the dependency on `lazysizes`.
549
550## 0.2.6 - 2019-03-26
551
552### Changed
553
554- [Patch] Move away from `tp-spacer` in `List` component. (#159)
555
556## 0.2.5 - 2019-03-25
557
558### Changed
559
560- [Patch] Set focus to `ModalCurtain` root instead of the first focusable element within modal (#156)
561- [Patch] Replace deprecated `tp-font__text` tokens with new values. (#171)
562
563## 0.2.4 - 2019-03-11
564
565### Changed
566
567- [Patch] Update version of dependencies. This doesn't affect the outputted code.
568
569## 0.2.3 - 2019-02-22
570
571### Changed
572
573- [Patch] `url` prop of `ServiceCard` is now required (#16)
574
575## 0.2.2 - 2019-02-20
576
577### Changed
578
579- [Patch] Use a red border in the `caution` button focus state. (#116)
580- [Patch] Support all `autocomplete` values in `Input` component. (#113)
581- [Patch] Remove `@default` annotation from JSDoc comments.
582- [Patch] Eliminate the need for the `babel-plugin-inline-react-svg` plugin. This is a behind-the-scenes change.
583- [Patch] Move around icon files for greater consistency and reusability. (#39, #41, #42)
584
585### Fixed
586
587- [Patch] Fix contents div in ModalDefault with sticky ModalFooter having no height in IE11. (#115)
588- [Patch] Minimize SVGs in the `StarRating`, `ModalStandard`, and `Avatar` components.
589
590## 0.2.1 - 2019-02-08
591
592### Changed
593
594- [Patch] Fix SCSS imports by adding the file extension at the end of the imports.
595
596## 0.2.0 - 2019-02-07
597
598### Added
599
600- [Minor] Add `Title` sizes `6`, `7`, and `8`. (#70)
601
602### Changed
603
604- [Patch] Use `@thumbtack/thumbprint-scss` instead of `@thumbtack/tp-ui-core-mixin` and `@thumbtack/tp-ui-core-function`. This is a behind-the-scenes change that doesn't affect the the output. (#38)
605
606### Fixed
607
608- [Patch] Add `tpColorGray` to fix disabled state of label. It was not grayed out as expected. (#85)
609- [Patch] Bring back `InputRowContext` context that was accidentally removed during consolidation into one NPM package. (#8)
610- [Patch] Revert regression in `StarRating` that was introduced when running it through SVGO.
611
612## 0.1.4 - 2019-01-30
613
614### Changed
615
616- [Patch] Minimize SVG used in `StarRating` component.
617- [Patch] Use Apache License 2.0.
618- [Patch] Remove two unnecessary comments disabling eslint rules.
619- [Patch] Remove duplicated `rollup` packages in `package.json`.
620
621## 0.1.3 - 2019-01-25
622
623### Changed
624
625- [Patch] Update links to GitHub Issues/PRs so that they point to our archived repo.
626
627## 0.1.2 - 2019-01-24
628
629### Changed
630
631- [Patch] Change comments in source files to point to new documentation URLs. This does not affect consumers of Thumbprint React.
632- [Patch] Move close icon into the repo.
633
634## 0.1.1 - 2019-01-10
635
636### Added
637
638- [Patch] Move all React component source files into this package.
639
640## 0.1.0 - 2019-01-09
641
642### Added
643
644- [Minor] Created package for Thumbprint React. (#1050)