@atlaskit/textfield 5.1.2

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 (38) hide show
  1. package/CHANGELOG.md +673 -0
  2. package/LICENSE +13 -0
  3. package/README.md +13 -0
  4. package/__perf__/default.tsx +5 -0
  5. package/__perf__/examples.tsx +58 -0
  6. package/codemods/5.0.0-lite-mode.tsx +16 -0
  7. package/codemods/__tests__/5.0.0-lite-mode.tsx +87 -0
  8. package/codemods/__tests__/remove-imports.tsx +64 -0
  9. package/codemods/__tests__/remove-prop.tsx +142 -0
  10. package/codemods/__tests__/rename-imports.tsx +85 -0
  11. package/codemods/migrations/remove-imports.tsx +8 -0
  12. package/codemods/migrations/remove-props.tsx +10 -0
  13. package/codemods/migrations/rename-imports.tsx +15 -0
  14. package/codemods/migrations/utils.tsx +375 -0
  15. package/dist/cjs/component-tokens.js +66 -0
  16. package/dist/cjs/index.js +23 -0
  17. package/dist/cjs/styles.js +231 -0
  18. package/dist/cjs/text-field.js +169 -0
  19. package/dist/cjs/types.js +5 -0
  20. package/dist/cjs/version.json +5 -0
  21. package/dist/es2019/component-tokens.js +46 -0
  22. package/dist/es2019/index.js +2 -0
  23. package/dist/es2019/styles.js +192 -0
  24. package/dist/es2019/text-field.js +129 -0
  25. package/dist/es2019/types.js +1 -0
  26. package/dist/es2019/version.json +5 -0
  27. package/dist/esm/component-tokens.js +46 -0
  28. package/dist/esm/index.js +2 -0
  29. package/dist/esm/styles.js +206 -0
  30. package/dist/esm/text-field.js +145 -0
  31. package/dist/esm/types.js +1 -0
  32. package/dist/esm/version.json +5 -0
  33. package/dist/types/component-tokens.d.ts +44 -0
  34. package/dist/types/index.d.ts +3 -0
  35. package/dist/types/styles.d.ts +208 -0
  36. package/dist/types/text-field.d.ts +14 -0
  37. package/dist/types/types.d.ts +71 -0
  38. package/package.json +79 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,673 @@
1
+ # @atlaskit/textfield
2
+
3
+ ## 5.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 5.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 5.1.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [`78ba9e045b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/78ba9e045b8) - Internal refactor to align to the design system techstack.
20
+ - [`4d34d35270e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4d34d35270e) - Instrumented text field with the new theming package, `@atlaskit/tokens`.
21
+
22
+ New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
23
+ These changes are intended to be interoperable with the legacy theme implementation.
24
+ Legacy dark mode users should expect no visual or breaking changes.
25
+
26
+ ### Patch Changes
27
+
28
+ - [`af4bca32ad4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/af4bca32ad4) - Internal changes to supress eslint rules.
29
+ - [`ac656b4875e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ac656b4875e) - Internal style refactor with no visual change.
30
+ - Updated dependencies
31
+
32
+ ## 5.0.5
33
+
34
+ ### Patch Changes
35
+
36
+ - [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
37
+
38
+ ## 5.0.4
39
+
40
+ ### Patch Changes
41
+
42
+ - [`a7d1415e5e6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a7d1415e5e6) - [ux] add high contrast mode supporting for Textfield
43
+ - Updated dependencies
44
+
45
+ ## 5.0.3
46
+
47
+ ### Patch Changes
48
+
49
+ - [`6f0bbf09744`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6f0bbf09744) - [ux] Fix disabled TextField text contrast on Safari/WebKit browsers
50
+
51
+ ## 5.0.2
52
+
53
+ ### Patch Changes
54
+
55
+ - [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance`
56
+
57
+ ## 5.0.1
58
+
59
+ ### Patch Changes
60
+
61
+ - [`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use injected package name and version for analytics instead of version.json.
62
+
63
+ ## 5.0.0
64
+
65
+ ### Major Changes
66
+
67
+ - [`9d0f54a809`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d0f54a809)
68
+
69
+ **Summary**
70
+
71
+ The goal of this major for TextField is to improve the component's performance, by both reducing static structure and avoiding unnecessary function calls.
72
+
73
+ **Changes**
74
+
75
+ In this version we improved the performance of `TextField` by making it more similar to a native input field and removing the slow theme prop.
76
+
77
+ **Theming**
78
+
79
+ The `theme` prop allows you to customize the appearance of `TextField`.
80
+ Theming was previously used to customize the container div and input element styling in `TextField`.
81
+ We found that there was minimal usage of this API and it was identified to have a negative performance impact regardless of whether it was used.
82
+
83
+ We decided to remove this API to benefit all consumers of `TextField`.
84
+ If you would like to continue customizing TextField we have added data attributes (`data-ds--text-field--container` and `data-ds--text-field--input`) to both container div and input element of `TextField`.
85
+ Therefore consumers can use this if they want to override style of respective element in `TextField`. For example,
86
+
87
+ ```jsx
88
+ import React from 'react';
89
+ import { css } from '@emotion/core';
90
+ import { TextField } from '@atlaskit/textfield';
91
+
92
+ export default function CustomStyleExample() {
93
+ return (
94
+ <TextField
95
+ css={{
96
+ padding: 5,
97
+ border: '2px solid orange',
98
+ '& > [data-ds--text-field--input]': {
99
+ fontSize: 20,
100
+ border: '2px solid green',
101
+ },
102
+ }}
103
+ />
104
+ );
105
+ }
106
+ ```
107
+
108
+ You can also override CSS using `className` and data-attributes in `TextField`.
109
+
110
+ ```jsx
111
+ // component
112
+ import React from 'react';
113
+ import { TextField } from '@atlaskit/textfield';
114
+ import './styles.css';
115
+
116
+ export default () => {
117
+ return (
118
+ <TextField
119
+ width="large"
120
+ className='myClass'
121
+ />
122
+ );
123
+ };
124
+
125
+ // styles.css
126
+ .myClass [data-ds--text-field--container] {
127
+ border: 2px solid orange;
128
+ padding: 5px;
129
+ }
130
+ .myClass [data-ds--text-field--input] {
131
+ border: 2px solid green;
132
+ font-size: 20px;
133
+ };
134
+
135
+ ```
136
+
137
+ Note that `TextField` still supports the light mode / dark mode global token.
138
+ Along with this change we have removed the exports `ThemeProps`, `ThemeTokens` and `Theme` from `TextField` as they can no longer be used with the removal of `theme`.
139
+
140
+ ### Other changes
141
+
142
+ - Previously all interaction styles were generated in JavaScript using events, causing unnecessary and slow re-renders for actions like hovering and focusing. Now all styles for the `TextField` are applied using CSS selectors.
143
+ - Updated the entry point to only export `TextField` and `TextFieldProps`. These exports `ThemeProps`, `ThemeTokens` and `Theme` have now been removed.
144
+
145
+ ### Automatic upgrading
146
+
147
+ There is a codemod that assists you in upgrading most of the changes from above.
148
+ However, a manual step is still required to override styles via data attributes.
149
+
150
+ - Removes `theme` and `overrides` prop.
151
+ - Removes imports of `ThemeProps`, `ThemeTokens` and `Theme`.
152
+
153
+ ```
154
+
155
+ # You first need to have the latest `TextField` installed before you can run the codemod
156
+ `yarn upgrade @atlaskit/textfield@^5.0.0`
157
+
158
+ # Run the codemod cli
159
+ # Pass in a parser for your codebase
160
+ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel]
161
+ ```
162
+
163
+ ## 4.0.10
164
+
165
+ ### Patch Changes
166
+
167
+ - [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
168
+
169
+ ## 4.0.9
170
+
171
+ ### Patch Changes
172
+
173
+ - [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
174
+ This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
175
+ Also add `typescript` to `devDependencies` to denote version that the package was built with.
176
+
177
+ ## 4.0.8
178
+
179
+ ### Patch Changes
180
+
181
+ - Updated dependencies
182
+
183
+ ## 4.0.7
184
+
185
+ ### Patch Changes
186
+
187
+ - [`2ac834240e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2ac834240e) - Undo analytics-next file restructure to allow external ts definitions to continue working
188
+
189
+ ## 4.0.6
190
+
191
+ ### Patch Changes
192
+
193
+ - [`6529a49064`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6529a49064) - Removed IE11 and outdated browser-prefixed styles targeting the placeholder attribute
194
+ - Updated dependencies
195
+
196
+ ## 4.0.5
197
+
198
+ ### Patch Changes
199
+
200
+ - [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser
201
+
202
+ ## 4.0.4
203
+
204
+ ### Patch Changes
205
+
206
+ - [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
207
+
208
+ Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
209
+ to prevent duplicates of tslib being bundled.
210
+
211
+ ## 4.0.3
212
+
213
+ ### Patch Changes
214
+
215
+ - [`76165ad82f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76165ad82f) - Bump required because of conflicts on wadmal release
216
+
217
+ ## 4.0.2
218
+
219
+ ### Patch Changes
220
+
221
+ - [`e99262c6f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e99262c6f0) - All form elements now have a default font explicitly set
222
+
223
+ ## 4.0.1
224
+
225
+ ### Patch Changes
226
+
227
+ - [`954cc87b62`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954cc87b62) - The readme and package information has been updated to point to the new design system website.
228
+
229
+ ## 4.0.0
230
+
231
+ ### Major Changes
232
+
233
+ - [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
234
+ For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
235
+
236
+ ### Patch Changes
237
+
238
+ - Updated dependencies
239
+
240
+ ## 3.1.13
241
+
242
+ ### Patch Changes
243
+
244
+ - [`088c636cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/088c636cbd) - Updated disabled state border-color to match the ADG spec. It now appears as if there is no border on a disabled textfield.
245
+
246
+ ## 3.1.12
247
+
248
+ ### Patch Changes
249
+
250
+ - [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
251
+
252
+ ## 3.1.11
253
+
254
+ ### Patch Changes
255
+
256
+ - Updated dependencies
257
+
258
+ ## 3.1.10
259
+
260
+ ### Patch Changes
261
+
262
+ - [`83f4f94df3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/83f4f94df3) - Change imports to comply with Atlassian conventions- Updated dependencies
263
+
264
+ ## 3.1.9
265
+
266
+ ### Patch Changes
267
+
268
+ - Updated dependencies [66dcced7a0](https://bitbucket.org/atlassian/atlassian-frontend/commits/66dcced7a0):
269
+ - Updated dependencies [fd5292fd5a](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd5292fd5a):
270
+ - Updated dependencies [64fb94fb1e](https://bitbucket.org/atlassian/atlassian-frontend/commits/64fb94fb1e):
271
+ - Updated dependencies [fd5292fd5a](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd5292fd5a):
272
+ - Updated dependencies [eea5e9bd8c](https://bitbucket.org/atlassian/atlassian-frontend/commits/eea5e9bd8c):
273
+ - Updated dependencies [fd5292fd5a](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd5292fd5a):
274
+ - Updated dependencies [109c1a2c0a](https://bitbucket.org/atlassian/atlassian-frontend/commits/109c1a2c0a):
275
+ - Updated dependencies [c57bb32f6d](https://bitbucket.org/atlassian/atlassian-frontend/commits/c57bb32f6d):
276
+ - @atlaskit/docs@8.4.0
277
+ - @atlaskit/icon@20.1.0
278
+ - @atlaskit/webdriver-runner@0.3.0
279
+ - @atlaskit/avatar@17.1.9
280
+ - @atlaskit/button@13.3.9
281
+ - @atlaskit/form@7.1.5
282
+
283
+ ## 3.1.8
284
+
285
+ ### Patch Changes
286
+
287
+ - Updated dependencies [e3f01787dd](https://bitbucket.org/atlassian/atlassian-frontend/commits/e3f01787dd):
288
+ - @atlaskit/webdriver-runner@0.2.0
289
+ - @atlaskit/avatar@17.1.8
290
+ - @atlaskit/button@13.3.8
291
+ - @atlaskit/form@7.1.4
292
+
293
+ ## 3.1.7
294
+
295
+ ### Patch Changes
296
+
297
+ - [patch][91a1eb05db](https://bitbucket.org/atlassian/atlassian-frontend/commits/91a1eb05db):
298
+
299
+ Textfield now exports its props as TextFieldProps- Updated dependencies [eaad41d56c](https://bitbucket.org/atlassian/atlassian-frontend/commits/eaad41d56c):
300
+
301
+ - Updated dependencies [c12ba5eb3e](https://bitbucket.org/atlassian/atlassian-frontend/commits/c12ba5eb3e):
302
+ - Updated dependencies [0603860c07](https://bitbucket.org/atlassian/atlassian-frontend/commits/0603860c07):
303
+ - @atlaskit/form@7.1.3
304
+ - @atlaskit/icon@20.0.2
305
+
306
+ ## 3.1.6
307
+
308
+ ### Patch Changes
309
+
310
+ - [patch][6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
311
+
312
+ Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
313
+
314
+ - @atlaskit/docs@8.3.2
315
+ - @atlaskit/visual-regression@0.1.9
316
+ - @atlaskit/analytics-next@6.3.5
317
+ - @atlaskit/avatar@17.1.7
318
+ - @atlaskit/button@13.3.7
319
+ - @atlaskit/form@7.1.2
320
+ - @atlaskit/icon@20.0.1
321
+ - @atlaskit/theme@9.5.1
322
+
323
+ ## 3.1.5
324
+
325
+ ### Patch Changes
326
+
327
+ - Updated dependencies [c0102a3ea2](https://bitbucket.org/atlassian/atlassian-frontend/commits/c0102a3ea2):
328
+ - Updated dependencies [b9dc265bc9](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9dc265bc9):
329
+ - @atlaskit/icon@20.0.0
330
+ - @atlaskit/avatar@17.1.6
331
+ - @atlaskit/form@7.1.1
332
+ - @atlaskit/docs@8.3.1
333
+ - @atlaskit/button@13.3.6
334
+
335
+ ## 3.1.4
336
+
337
+ ### Patch Changes
338
+
339
+ - [patch][24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
340
+
341
+ Form has been converted to Typescript. TypeScript consumers will now get static type safety. Flow types are no longer provided. No API changes.- [patch][24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
342
+
343
+ Added name prop to component prop types.- Updated dependencies [24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
344
+
345
+ - Updated dependencies [24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
346
+ - Updated dependencies [24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
347
+ - Updated dependencies [24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
348
+ - Updated dependencies [24865cfaff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/24865cfaff):
349
+ - @atlaskit/analytics-next@6.3.3
350
+ - @atlaskit/form@7.0.0
351
+ - @atlaskit/avatar@17.1.5
352
+
353
+ ## 3.1.3
354
+
355
+ ### Patch Changes
356
+
357
+ - [patch][557a8e2451](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/557a8e2451):
358
+
359
+ Rebuilds package to fix typescript typing error.
360
+
361
+ ## 3.1.2
362
+
363
+ ### Patch Changes
364
+
365
+ - [patch][35d2229b2a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/35d2229b2a):
366
+
367
+ Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd.
368
+
369
+ ## 3.1.1
370
+
371
+ ### Patch Changes
372
+
373
+ - [patch][a2d0043716](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a2d0043716):
374
+
375
+ Updated version of analytics-next to fix potential incompatibilities with TS 3.6
376
+
377
+ ## 3.1.0
378
+
379
+ ### Minor Changes
380
+
381
+ - [minor][9638c553c0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9638c553c0):
382
+
383
+ Adding an optional prop `testId` that will set the attribute value `data-testid`. It will help products to write better integration and end to end tests.
384
+
385
+ ## 3.0.7
386
+
387
+ ### Patch Changes
388
+
389
+ - [patch][d5def52d98](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d5def52d98):
390
+
391
+ Refactored textfield styles to better support border-box being set globally.
392
+
393
+ ## 3.0.6
394
+
395
+ - Updated dependencies [8d0f37c23e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8d0f37c23e):
396
+ - @atlaskit/avatar@17.0.0
397
+ - @atlaskit/theme@9.2.2
398
+
399
+ ## 3.0.5
400
+
401
+ ### Patch Changes
402
+
403
+ - [patch][097b696613](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/097b696613):
404
+
405
+ Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving non-relative imports as relative imports
406
+
407
+ ## 3.0.4
408
+
409
+ ### Patch Changes
410
+
411
+ - [patch][ecca4d1dbb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ecca4d1dbb):
412
+
413
+ Upgraded Typescript to 3.3.x
414
+
415
+ ## 3.0.3
416
+
417
+ ### Patch Changes
418
+
419
+ - [patch][708028db86](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/708028db86):
420
+
421
+ Change all the imports to theme in Core to use multi entry points
422
+
423
+ ## 3.0.2
424
+
425
+ ### Patch Changes
426
+
427
+ - [patch][de35ce8c67](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/de35ce8c67):
428
+
429
+ Updates component maintainers
430
+
431
+ ## 3.0.1
432
+
433
+ - Updated dependencies [926b43142b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/926b43142b):
434
+ - @atlaskit/analytics-next@6.0.0
435
+ - @atlaskit/avatar@16.0.10
436
+ - @atlaskit/button@13.1.2
437
+
438
+ ## 3.0.0
439
+
440
+ ### Major Changes
441
+
442
+ - [major][84887b940c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/84887b940c):
443
+
444
+ - Converting from flow to typescript 🎉
445
+ - Correctly typing the current prop spreading onto the internal `<input>` element
446
+ - Removing `isHovered` and `isFocused` from public API as they previously did not do anything
447
+
448
+ ## 2.0.5
449
+
450
+ ### Patch Changes
451
+
452
+ - [patch][2fe6e8fbdf](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2fe6e8fbdf):
453
+
454
+ Removed unused dependencies from package.json for textfield: @emotion/core was unused.
455
+
456
+ ## 2.0.4
457
+
458
+ ### Patch Changes
459
+
460
+ - [patch][9f8ab1084b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9f8ab1084b):
461
+
462
+ Consume analytics-next ts type definitions as an ambient declaration.
463
+
464
+ ## 2.0.3
465
+
466
+ - Updated dependencies [06326ef3f7](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/06326ef3f7):
467
+ - @atlaskit/docs@8.1.3
468
+ - @atlaskit/avatar@16.0.6
469
+ - @atlaskit/button@13.0.9
470
+ - @atlaskit/form@6.1.1
471
+ - @atlaskit/icon@19.0.0
472
+
473
+ ## 2.0.2
474
+
475
+ ### Patch Changes
476
+
477
+ - [patch][4615439434](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4615439434):
478
+
479
+ index.ts will now be ignored when publishing to npm
480
+
481
+ ## 2.0.1
482
+
483
+ - Updated dependencies [cfc3c8adb3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cfc3c8adb3):
484
+ - @atlaskit/docs@8.1.2
485
+ - @atlaskit/avatar@16.0.3
486
+ - @atlaskit/button@13.0.8
487
+ - @atlaskit/form@6.0.5
488
+ - @atlaskit/icon@18.0.0
489
+
490
+ ## 2.0.0
491
+
492
+ - [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
493
+
494
+ - Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use this package, please ensure you use at least this version of react and react-dom.
495
+
496
+ ## 1.0.0
497
+
498
+ - [major][6cdf11238d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6cdf11238d):
499
+
500
+ - This major release indicates that this package is no longer under dev preview but is ready for use
501
+
502
+ ## 0.4.5
503
+
504
+ - [patch][7157a95389](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7157a95389):
505
+
506
+ - Internal changes only. Textfield is compatible with SSR.
507
+
508
+ ## 0.4.4
509
+
510
+ - Updated dependencies [9c0b4744be](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9c0b4744be):
511
+ - @atlaskit/docs@7.0.3
512
+ - @atlaskit/avatar@15.0.4
513
+ - @atlaskit/button@12.0.3
514
+ - @atlaskit/form@5.2.7
515
+ - @atlaskit/icon@16.0.9
516
+ - @atlaskit/theme@8.1.7
517
+
518
+ ## 0.4.3
519
+
520
+ - Updated dependencies [1e826b2966](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e826b2966):
521
+ - @atlaskit/docs@7.0.2
522
+ - @atlaskit/analytics-next@4.0.3
523
+ - @atlaskit/avatar@15.0.3
524
+ - @atlaskit/form@5.2.5
525
+ - @atlaskit/icon@16.0.8
526
+ - @atlaskit/theme@8.1.6
527
+ - @atlaskit/button@12.0.0
528
+
529
+ ## 0.4.2
530
+
531
+ - [patch][a28eb04426](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a28eb04426):
532
+
533
+ - Migrates package from emotion 9 to emotion 10. No behaviour or API changes.
534
+
535
+ ## 0.4.1
536
+
537
+ - [patch][e0797c2937](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e0797c2937):
538
+
539
+ - Support object refs e.g. React.createRef()
540
+
541
+ ## 0.4.0
542
+
543
+ - [minor][8eff47cacb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8eff47cacb):
544
+
545
+ - Allow element before and/or after input
546
+
547
+ ## 0.3.1
548
+
549
+ - Updated dependencies [9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
550
+ - @atlaskit/docs@7.0.1
551
+ - @atlaskit/analytics-next@4.0.1
552
+ - @atlaskit/form@5.2.1
553
+ - @atlaskit/theme@8.0.1
554
+ - @atlaskit/button@11.0.0
555
+
556
+ ## 0.3.0
557
+
558
+ - [minor][76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
559
+
560
+ - Drop ES5 from all the flow modules
561
+
562
+ ### Dropping CJS support in all @atlaskit packages
563
+
564
+ As a breaking change, all @atlaskit packages will be dropping cjs distributions and will only distribute esm. This means all distributed code will be transpiled, but will still contain `import` and
565
+ `export` declarations.
566
+
567
+ The major reason for doing this is to allow us to support multiple entry points in packages, e.g:
568
+
569
+ ```js
570
+ import colors from `@atlaskit/theme/colors`;
571
+ ```
572
+
573
+ Previously this was sort of possible for consumers by doing something like:
574
+
575
+ ```js
576
+ import colors from `@atlaskit/theme/dist/esm/colors`;
577
+ ```
578
+
579
+ This has a couple of issues. 1, it treats the file system as API making internal refactors harder, we have to worry about how consumers might be using things that aren't _actually_ supposed to be used. 2. We are unable to do this _internally_ in @atlaskit packages. This leads to lots of packages bundling all of theme, just to use a single color, especially in situations where tree shaking fails.
580
+
581
+ To support being able to use multiple entrypoints internally, we unfortunately cannot have multiple distributions as they would need to have very different imports from of their own internal dependencies.
582
+
583
+ ES Modules are widely supported by all modern bundlers and can be worked around in node environments.
584
+
585
+ We may choose to revisit this solution in the future if we find any unintended condequences, but we see this as a pretty sane path forward which should lead to some major bundle size decreases, saner API's and simpler package architecture.
586
+
587
+ Please reach out to #fabric-build (if in Atlassian) or create an issue in [Design System Support](https://ecosystem.atlassian.net/secure/CreateIssue.jspa?pid=24670) (for external) if you have any questions or queries about this.
588
+
589
+ ## 0.2.0
590
+
591
+ - [minor][e9b824bf86](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e9b824bf86):
592
+
593
+ - **Breaking**: Changes to the `theme` prop. The type of this prop remains as `(ThemeTokens, ThemeProps) => ThemeTokens`.
594
+ - The shape of `ThemeTokens` has changed. `container` and `input` keys are now required. The value of these keys are style objects.
595
+ - More information has been added to ThemeProps.
596
+
597
+ ```diff
598
+ type ThemeTokens = {
599
+ - backgroundColor: string
600
+ - backgroundColorFocus: string
601
+ - backgroundColorHover: string
602
+ - borderColor: string
603
+ - borderColorFocus: string
604
+ - textColor: string
605
+ - disabledTextColor: string
606
+ - placeholderTextColor: string
607
+ + container: Object,
608
+ + input: Object
609
+ }
610
+
611
+ type ThemeProps = {
612
+ appearance: ThemeAppearance,
613
+ mode: 'dark' | 'light',
614
+ + isDisabled: boolean,
615
+ + isFocused: boolean,
616
+ + isHovered: boolean,
617
+ + isInvalid: boolean,
618
+ + isMonospaced: boolean,
619
+ + isCompact: boolean,
620
+ + width?: string | number,
621
+ };
622
+ ```
623
+
624
+ ## 0.1.6
625
+
626
+ - [patch][3d8322bd71](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3d8322bd71):
627
+
628
+ - Trival refactor: update a variable name
629
+
630
+ ## 0.1.5
631
+
632
+ - [patch][2e5dd50](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2e5dd50):
633
+
634
+ - Update validation example to be compatible with the new Forms API
635
+
636
+ - Updated dependencies [647a46f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/647a46f):
637
+ - @atlaskit/form@5.0.0
638
+
639
+ ## 0.1.4
640
+
641
+ - Updated dependencies [58b84fa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/58b84fa):
642
+ - @atlaskit/analytics-next@3.1.2
643
+ - @atlaskit/button@10.1.1
644
+ - @atlaskit/form@4.0.21
645
+ - @atlaskit/theme@7.0.1
646
+ - @atlaskit/docs@6.0.0
647
+
648
+ ## 0.1.3
649
+
650
+ - [patch][63f969d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/63f969d):
651
+
652
+ - Fixed height of compact textfields to correctly be 32px instead of 28px
653
+
654
+ ## 0.1.2
655
+
656
+ - [patch][480a57c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/480a57c):
657
+
658
+ - Convert to use new theme API.
659
+
660
+ ## 0.1.1
661
+
662
+ - Updated dependencies [6998f11](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6998f11):
663
+ - @atlaskit/docs@5.2.1
664
+ - @atlaskit/analytics-next@3.1.1
665
+ - @atlaskit/form@4.0.18
666
+ - @atlaskit/theme@6.2.1
667
+ - @atlaskit/button@10.0.0
668
+
669
+ ## 0.1.0
670
+
671
+ - [minor][62109bd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/62109bd):
672
+
673
+ - Refactor of field-text to remove field-base and normalise along api patterns established in other form components.