Text field
A text field is an input that allows a user to write or edit text.10.2.3
Patch Changes
- Updated dependencies
10.2.2
Patch Changes
724fabad010d6, (opens new window) - Cleaned up new shape theme styles, making new border and radius values the default.
10.2.1
Patch Changes
34127bf96b9db, (opens new window) - Improved the contrast of placeholder text and input indicator icons, gated behindplatform-dst-tokens-finesse.
10.2.0
Minor Changes
bd2c5b0112185, (opens new window) - Remove stale API report artifacts from published Platform packages.
Patch Changes
- Updated dependencies
10.1.0
Minor Changes
-
d82e6f76528ab, (opens new window) - Add direct subpath package exports as part of the linking-platform, search, media, and design-system barrel-removal (de-barrel) migration.These packages now expose their individual modules via explicit
package.jsonexportssubpaths so that consumers can import directly from the leaf module (e.g.@atlaskit/pkg/thing) instead of the package barrel/index. This adds new public entry points without changing or removing any existing exports, so it is a backwards-compatible additive change.No runtime behaviour changes; this is an API-surface (entry-point) addition to support tree-shaking and to unblock removal of the barrel index files.
Patch Changes
- Updated dependencies
10.0.1
Patch Changes
55f149675c988, (opens new window) - Experimental React 19 peer dependency support. This patch widens the peer range; CI coverage is partial.
10.0.0
Major Changes
-
48e7d03469b80, (opens new window) - Apply Volt entry-point and barrel-removal standards across these design-system packages. Publicexportsnow resolve directly to./src/*implementations instead of intermediate./src/entry-points/*re-exports, root barrels and remaining entry-point shims are marked deprecated in favour of per-export subpaths, and a few new subpaths are added (@atlaskit/badge/badge-new,@atlaskit/tile/tile-skeleton,@atlaskit/popper/main,@atlaskit/section-message/message,@atlaskit/section-message/message-action).Why this is breaking
Subpaths and the package root can now resolve to the same module instance. Consumers that deep-imported
entry-points/*, orjest.mock()'d a specific subpath may need updates.@atlaskit/image's root export now points at./src/ui/image/index.tsx.@atlaskit/checkbox/checkboxnow exports a namedCheckboxfrom the implementation module (default export retained for backwards compatibility).Migration
Prefer published subpaths over the package root:
import { Checkbox } from '@atlaskit/checkbox/checkbox'; import TextField from '@atlaskit/textfield/text-field'; import Popup from '@atlaskit/popup/popup'; import SectionMessage from '@atlaskit/section-message/message'; import EmptyState from '@atlaskit/empty-state/empty-state';If you imported through internal entry-point modules, switch to the public subpath:
-import Checkbox from '@atlaskit/checkbox/entry-points/checkbox'; +import { Checkbox } from '@atlaskit/checkbox/checkbox';
Patch Changes
- Updated dependencies
9.1.1
Patch Changes
- Updated dependencies
9.1.0
Minor Changes
-
cd097a2111788, (opens new window) - Republish packages depending on@atlaskit/react-compiler-gatingso their published dependency reference is updated to the renamed@atlaskit/react-compiler-gatingscope.The earlier rename of
@atlassian/react-compiler-gatingto@atlaskit/react-compiler-gatingonly bumped the renamed package itself, so dependent packages were never republished and their published versions still referenced the old@atlassian/react-compiler-gatingname, which is not available in the public npm registry. This minor bump republishes all affected packages with the corrected dependency.
Patch Changes
- Updated dependencies
9.0.1
Patch Changes
ee28cf33718b0, (opens new window) - Add @atlaskit/react-compiler-gating as a runtime dependency to enable React Compiler platform gating.- Updated dependencies
9.0.0
Major Changes
-
f2dc9097319f0, (opens new window) - ### Dropped support for legacy Typescript 4 types. Typescript 5 is now the new minimum.Removes the
typesVersionsproperty anddist/types-ts4.5directory from the dist.Types are now exclusively via the
"types": "dist/types/index.d.ts"property.- "typesVersions": { - ">=4.5 <4.9": { - "*": [ - "dist/types-ts4.5/*", - "dist/types-ts4.5/index.d.ts" - ] - } - },
Patch Changes
- Updated dependencies
8.3.2
Patch Changes
- Updated dependencies
8.3.1
Patch Changes
- Updated dependencies
8.3.0
Minor Changes
8fdea38bd31f8, (opens new window) - Autofix: add explicit package exports (barrel removal)
8.2.6
Patch Changes
02483200273ec, (opens new window) - Enrol all Design System UI packages into the React Compiler with platform gating via isReactCompilerActivePlatform.- Updated dependencies
8.2.5
Patch Changes
e2085d35701ca, (opens new window) - Internal changes to remove unnecessary token fallbacks and imports from@atlaskit/theme- Updated dependencies
8.2.4
Patch Changes
08170da1fbf62, (opens new window) - Migrate spacing prop usages on icons to Flex wrapper- Updated dependencies
8.2.3
Patch Changes
- Updated dependencies
8.2.2
Patch Changes
- Updated dependencies
8.2.1
Patch Changes
- Updated dependencies
8.2.0
Minor Changes
b867e641d818d, (opens new window) - Updated border radius values behind a feature gateplatform-dst-shape-theme-default.
8.1.0
Minor Changes
2568622464f45, (opens new window) - release previously feature-gated change to textfield, textarea, and select to increase font size to 16px on mobile
8.0.15
Patch Changes
- Updated dependencies
8.0.14
Patch Changes
- Updated dependencies
8.0.13
Patch Changes
39e543109ec09, (opens new window) - add type info to forwardRef components
8.0.12
Patch Changes
f3494b0a49dbc, (opens new window) - Internal changes to use new shape tokens. No visual changes.
8.0.11
Patch Changes
f0662cd7a143e, (opens new window) - Internal changes to how borders are applied.- Updated dependencies
8.0.10
Patch Changes
- Updated dependencies
8.0.9
Patch Changes
- Updated dependencies
8.0.8
Patch Changes
- #188952, (opens new window)
1a88e6e2601ae, (opens new window) - Migrated usage of renamed/deprecated icons
8.0.7
Patch Changes
- Updated dependencies
8.0.6
Patch Changes
- Updated dependencies
8.0.5
Patch Changes
- #156306, (opens new window)
fce9f0b8cd381, (opens new window) - [ux] Applies visible focus only when the text input is actively focused, instead of any focusable elements rendered via elemBeforeInput or elemAfterInput.
8.0.4
Patch Changes
- #129972, (opens new window)
b2d69a39e6687, (opens new window) - Update@compiled/reactdependency for improved type checking support. - Updated dependencies
8.0.3
Patch Changes
- #129364, (opens new window)
998814482368f, (opens new window) - Internal changes to placeholder text color for disabled text fields.
8.0.2
Patch Changes
- #126525, (opens new window)
69b96eb748121, (opens new window) - Update dependencies and remove old codemods.
8.0.1
Patch Changes
- Updated dependencies
8.0.0
Major Changes
-
#117363, (opens new window)
10a0f7f6c2027, (opens new window) - This package'speerDependencieshave been adjusted forreactand/orreact-domto reflect the status of only supporting React 18 going forward. No explicit breaking change to React support has been made in this release, but this is to signify going forward, breaking changes for React 16 or React 17 may come via non-major semver releases.Please refer this community post for more details: https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026, (opens new window)
Patch Changes
- Updated dependencies
7.0.0
Major Changes
-
#114073, (opens new window)
b5b9031ffaa05, (opens new window) - Migrated from@emotion/reactto@compiled/reactin order to improve performance, align with the rest of the Atlaskit techstack, and support React 18 Streaming SSR. Please note, in order to use this version of@atlaskit/textfield, you will need to ensure that your bundler is configured to handle.cssimports correctly.Most bundlers come with built-in support for
.cssimports, so you may not need to do anything. If you are using a different bundler, please refer to the documentation for that bundler to understand how to handle.cssimports. For more information on the migration, please refer to RFC-73 Migrating our components to Compiled CSS-in-JS, (opens new window).
6.8.3
Patch Changes
- Updated dependencies
6.8.2
Patch Changes
- Updated dependencies
6.8.1
Patch Changes
- Updated dependencies
6.8.0
Minor Changes
- #109060, (opens new window)
4660ec858a305, (opens new window) - UpdateReactfrom v16 to v18
Patch Changes
- Updated dependencies
6.7.2
Patch Changes
- #103999, (opens new window)
9f62ecec4d422, (opens new window) - Update dependencies.
6.7.1
Patch Changes
- Updated dependencies
6.7.0
Minor Changes
-
#173737, (opens new window)
667640085e5c7, (opens new window) - Update the font size for the textarea and select components at thexsbreakpoint. The font size will be increased to 16px to prevent IOS Safari from zooming in on the text field when it is focused. Styles for larger breakpoints will remain unchanged.Apply a fix to the textfield component to ensure monospace is correctly applied to the input at the
media.above.xsbreakpoint.These changes are currently behind a feature gate and will be evaluated for effectiveness. If successful, they will be included in a future release.
6.6.0
Minor Changes
-
#161890, (opens new window)
6735226160872, (opens new window) - Update the font size and padding styles for the text field component at thexsbreakpoint. The font size will be increased to 16px to prevent IOS Safari from zooming in on the text field when it is focused. Styles for larger breakpoints will remain unchanged.These changes are currently behind a feature gate and will be evaluated for effectiveness. If successful, they will be included in a future release.
6.5.5
Patch Changes
- #166026, (opens new window)
962b5e77810fb, (opens new window) - Adds side-effect config to support Compiled css extraction in third-party apps
6.5.4
Patch Changes
- Updated dependencies
6.5.3
Patch Changes
- #143559, (opens new window)
56dfbfe361f96, (opens new window) - Upgrade react-select from 5.4 to 5.8 and replace it with internal atlaskit/react-select
6.5.2
Patch Changes
- Updated dependencies
6.5.1
Patch Changes
- Updated dependencies
6.5.0
Minor Changes
-
#127511, (opens new window)
db30e29344013, (opens new window) - Widening range ofreactandreact-dompeer dependencies from^16.8.0 || ^17.0.0 || ~18.2.0to the wider range of ``^16.8.0 || ^17.0.0 || ^18.0.0` (where applicable).This change has been done to enable usage of
react@18.3as well as to have a consistent peer dependency range forreactandreact-domfor/platformpackages.
Patch Changes
- Updated dependencies
6.4.3
Patch Changes
- Updated dependencies
6.4.2
Patch Changes
- #119154, (opens new window)
0733b41bad0b4, (opens new window) - Remove remnants ofextract-react-typesfrom textfield. Previously had a workaround so that API could be properly documented, but is no longer necessary.
6.4.1
Patch Changes
- #116025, (opens new window)
cd506a937e44f, (opens new window) - Internal change to how typography is applied. There should be no visual change.
6.4.0
Minor Changes
- #111016, (opens new window)
d131599730792, (opens new window) - Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime is implicitly set to automatic.
Patch Changes
- Updated dependencies
6.3.1
Patch Changes
- #97073, (opens new window)
b6435f7c8d0d, (opens new window) - Internal changes to typography, no visual change. - Updated dependencies
6.3.0
Minor Changes
- #94675, (opens new window)
5d9e1dccacca, (opens new window) - [ux] Update input border color token to meet 3:1 color contrast ratioLight theme: color.border.input: #091E4224 → #8590A2Dark mode: color.border.input: #A6C5E229 → #738496
Patch Changes
- Updated dependencies
6.2.0
Minor Changes
- #94485, (opens new window)
b22bd00b7948, (opens new window) - Add support for React 18 in non-strict mode.
6.1.3
Patch Changes
- #83130, (opens new window)
4efd62cdc533, (opens new window) - SHPLVIII-481: Assign name to default export components to fix quick-fix imports
6.1.2
Patch Changes
- #83116, (opens new window)
8d4e99057fe0, (opens new window) - Upgrade Typescript from4.9.5to5.4.2
6.1.1
Patch Changes
- #81644, (opens new window)
8ab7a816dca7, (opens new window) - Revert input border change from the previous version
6.1.0
Minor Changes
- #80805, (opens new window)
427c2dd9e0d6, (opens new window) - [ux] Update input border width from 2px to 1px with darker color to meet 3:1 color contrast
Patch Changes
- Updated dependencies
6.0.1
Patch Changes
- #74756, (opens new window)
8e66f751df96, (opens new window) - Use feature flag to roll out border width update from 2px to 1px
6.0.0
Major Changes
- #42569, (opens new window)
df6d526f3c8, (opens new window) - Removed all remaining legacy theming logic from the TextField component.
5.6.8
Patch Changes
- #40987, (opens new window)
3039d60a810, (opens new window) - Make spread props present in types explicit.
5.6.7
Patch Changes
- #39787, (opens new window)
6900f89eb0e, (opens new window) - Internal changes to use space tokens. There is no expected visual or behaviour change.
5.6.6
Patch Changes
- #37613, (opens new window)
29941aaea33, (opens new window) - update focused fallback color to meet contrast requirement
5.6.5
Patch Changes
- #39128, (opens new window)
3c114ea4257, (opens new window) - Update type definitions to conform to inherited changes from@types/react@16.14.15.
5.6.4
Patch Changes
- #38201, (opens new window)
356d6ebed05, (opens new window) - This package is now onboarded onto the product push model.
5.6.3
Patch Changes
- #36754, (opens new window)
4ae083a7e66, (opens new window) - Use@af/accessibility-testingfor default jest-axe config and jest-axe import in accessibility testing.
5.6.2
Patch Changes
- #36661, (opens new window)
a01cf0168b8, (opens new window) - update border width with border spacing token
5.6.1
Patch Changes
- #36066, (opens new window)
3a8d6f61240, (opens new window) - [ux] Addstext-overflow: ellipsisto placeholder text.
5.6.0
Minor Changes
- #35766, (opens new window)
a90730ddb33, (opens new window) - Disallow use of unused propdisabled. Disabled textfields should useisDisabled. This change includes a codemod for transitioning existing code over to the proper usage.
5.5.2
Patch Changes
- #35111, (opens new window)
8f436f0c301, (opens new window) - extend border contrast feature flag to support confluence
5.5.1
Patch Changes
- #34881, (opens new window)
774ed69ecef, (opens new window) - Internal changes to use space tokens for spacing values. There is no visual change.
5.5.0
Minor Changes
- #33167, (opens new window)
c9c3a3f43af, (opens new window) - [ux] reduce border width to 1px and update fallback color of border
5.4.3
Patch Changes
- #34051, (opens new window)
49b08bfdf5f, (opens new window) - Migrated use ofgridSizeto space tokens where possible. There is no expected visual or behaviour change.
5.4.2
Patch Changes
- #33793, (opens new window)
9d00501a414, (opens new window) - Ensure legacy types are published for TS 4.5-4.8
5.4.1
Patch Changes
- #33649, (opens new window)
41fae2c6f68, (opens new window) - Upgrade Typescript from4.5.5to4.9.5
5.4.0
Minor Changes
- #33258, (opens new window)
56507598609, (opens new window) - Skip minor dependency bump
Patch Changes
- Updated dependencies
5.3.7
Patch Changes
- #33004, (opens new window)
e028bee17df, (opens new window) - [ux] fix(style): update fallback color of placeholder to meet contrast requirement
5.3.6
Patch Changes
- Updated dependencies
5.3.5
Patch Changes
- Updated dependencies
5.3.4
Patch Changes
- Updated dependencies
5.3.3
Patch Changes
- Updated dependencies
5.3.2
Patch Changes
- Updated dependencies
5.3.1
Patch Changes
- #26303, (opens new window)
9827dcb82b8, (opens new window) - No-op change to introduce spacing tokens to design system components.
5.3.0
Minor Changes
- #24968, (opens new window)
b8841384da6, (opens new window) - Disabled background and border styles should not be applied to components that have either no background or transparent background to begin with. Textfield and textarea variants that do not have backgrounds (sublte or none) have no backgrounds or borders applied when disabled. As such, any comopnents that consume these will also be affected.
5.2.2
Patch Changes
- #25314, (opens new window)
bedbdec0e82, (opens new window) - Update hover state appearance of subtle Textarea, Textfield and Select components to match the hover states of their default counterparts.
5.2.1
Patch Changes
- #24874, (opens new window)
8cc2f888c83, (opens new window) - Upgrade Typescript from4.3.5to4.5.5
5.2.0
Minor Changes
- #24004, (opens new window)
acf974e717c, (opens new window) - Updates@emotion/coreto@emotion/react; v10 to v11. There is no expected behavior change.
Patch Changes
- Updated dependencies
5.1.13
Patch Changes
- #24492, (opens new window)
8d4228767b0, (opens new window) - Upgrade Typescript from4.2.4to4.3.5.
5.1.12
Patch Changes
- #21570, (opens new window)
7c14ea36248, (opens new window) - [ux] Updated input tokens within@atlaskit/textfield.
5.1.11
Patch Changes
- Updated dependencies
5.1.10
Patch Changes
- #20650, (opens new window)
cb2392f6d33, (opens new window) - Upgrade to TypeScript 4.2.4
5.1.9
Patch Changes
- Updated dependencies
5.1.8
Patch Changes
- #19618, (opens new window)
62edf20ab1e, (opens new window) - Migrates all usage of brand tokens to either selected or information tokens. This change is purely for semantic reasons, there are no visual or behavioural changes. - Updated dependencies
5.1.7
Patch Changes
- Updated dependencies
5.1.6
Patch Changes
- #16752, (opens new window)
19d72473dfb, (opens new window) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids. - Updated dependencies
5.1.5
Patch Changes
- Updated dependencies
5.1.4
Patch Changes
- #15998, (opens new window)
f460cc7c411, (opens new window) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size. - Updated dependencies
5.1.3
Patch Changes
- Updated dependencies
5.1.2
Patch Changes
- Updated dependencies
5.1.1
Patch Changes
- Updated dependencies
5.1.0
Minor Changes
-
#13302, (opens new window)
78ba9e045b8, (opens new window) - Internal refactor to align to the design system techstack. -
4d34d35270e, (opens new window) - Instrumented text field with the new theming package,@atlaskit/tokens.New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha). These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
Patch Changes
af4bca32ad4, (opens new window) - Internal changes to supress eslint rules.ac656b4875e, (opens new window) - Internal style refactor with no visual change.- Updated dependencies
5.0.5
Patch Changes
- #12880, (opens new window)
378d1cef00f, (opens new window) - Bump@atlaskit/themeto version^11.3.0.
5.0.4
Patch Changes
- #12328, (opens new window)
a7d1415e5e6, (opens new window) - [ux] add high contrast mode supporting for Textfield - Updated dependencies
5.0.3
Patch Changes
- #11649, (opens new window)
6f0bbf09744, (opens new window) - [ux] Fix disabled TextField text contrast on Safari/WebKit browsers
5.0.2
Patch Changes
- #12167, (opens new window)
d6f7ff383cf, (opens new window) - Updates to development dependencystorybook-addon-performance
5.0.1
Patch Changes
- #8644, (opens new window)
79c23df6340, (opens new window) - Use injected package name and version for analytics instead of version.json.
5.0.0
Major Changes
-
#7170, (opens new window)
9d0f54a809, (opens new window)Summary
The goal of this major for TextField is to improve the component's performance, by both reducing static structure and avoiding unnecessary function calls.
Changes
In this version we improved the performance of
TextFieldby making it more similar to a native input field and removing the slow theme prop.Theming
The
themeprop allows you to customize the appearance ofTextField. Theming was previously used to customize the container div and input element styling inTextField. 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.We decided to remove this API to benefit all consumers of
TextField. If you would like to continue customizing TextField we have added data attributes (data-ds--text-field--containeranddata-ds--text-field--input) to both container div and input element ofTextField. Therefore consumers can use this if they want to override style of respective element inTextField. For example,import React from 'react'; import { css } from '@emotion/core'; import { TextField } from '@atlaskit/textfield'; export default function CustomStyleExample() { return ( <TextField css={{ padding: 5, border: '2px solid orange', '& > [data-ds--text-field--input]': { fontSize: 20, border: '2px solid green', }, }} /> ); }You can also override CSS using
classNameand data-attributes inTextField.// component import React from 'react'; import { TextField } from '@atlaskit/textfield'; import './styles.css'; export default () => { return ( <TextField width="large" className='myClass' /> ); }; // styles.css .myClass [data-ds--text-field--container] { border: 2px solid orange; padding: 5px; } .myClass [data-ds--text-field--input] { border: 2px solid green; font-size: 20px; };Note that
TextFieldstill supports the light mode / dark mode global token. Along with this change we have removed the exportsThemeProps,ThemeTokensandThemefromTextFieldas they can no longer be used with the removal oftheme.Other changes
- 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
TextFieldare applied using CSS selectors. - Updated the entry point to only export
TextFieldandTextFieldProps. These exportsThemeProps,ThemeTokensandThemehave now been removed.
Automatic upgrading
There is a codemod that assists you in upgrading most of the changes from above. However, a manual step is still required to override styles via data attributes.
- Removes
themeandoverridesprop. - Removes imports of
ThemeProps,ThemeTokensandTheme.
# You first need to have the latest `TextField` installed before you can run the codemod `yarn upgrade @atlaskit/textfield@^5.0.0` # Run the codemod cli # Pass in a parser for your codebase npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel] - 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
4.0.10
Patch Changes
- #5857, (opens new window)
d3265f19be, (opens new window) - Transpile packages using babel rather than tsc
4.0.9
Patch Changes
- #5497, (opens new window)
5f58283e1f, (opens new window) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option. This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started, (opens new window) Also addtypescripttodevDependenciesto denote version that the package was built with.
4.0.8
Patch Changes
- Updated dependencies
4.0.7
Patch Changes
- #5164, (opens new window)
2ac834240e, (opens new window) - Undo analytics-next file restructure to allow external ts definitions to continue working
4.0.6
Patch Changes
- #4749, (opens new window)
6529a49064, (opens new window) - Removed IE11 and outdated browser-prefixed styles targeting the placeholder attribute - Updated dependencies
4.0.5
Patch Changes
- #4707, (opens new window)
6360c46009, (opens new window) - Reenable integration tests for Edge browser
4.0.4
Patch Changes
-
#3885, (opens new window)
6c525a8229, (opens new window) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade to prevent duplicates of tslib being bundled.
4.0.3
Patch Changes
- #4393, (opens new window)
76165ad82f, (opens new window) - Bump required because of conflicts on wadmal release
4.0.2
Patch Changes
- #3823, (opens new window)
e99262c6f0, (opens new window) - All form elements now have a default font explicitly set
4.0.1
Patch Changes
- #3293, (opens new window)
954cc87b62, (opens new window) - The readme and package information has been updated to point to the new design system website.
4.0.0
Major Changes
- #3335, (opens new window)
87f4720f27, (opens new window) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11. For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534, (opens new window)
Patch Changes
- Updated dependencies
3.1.13
Patch Changes
- #2763, (opens new window)
088c636cbd, (opens new window) - Updated disabled state border-color to match the ADG spec. It now appears as if there is no border on a disabled textfield.
3.1.12
Patch Changes
- #2866, (opens new window)
54a9514fcf, (opens new window) - Build and supporting files will no longer be published to npm
3.1.11
Patch Changes
- Updated dependencies
3.1.10
Patch Changes
- #1868, (opens new window)
83f4f94df3, (opens new window) - Change imports to comply with Atlassian conventions- Updated dependencies
3.1.9
Patch Changes
- Updated dependencies 66dcced7a0, (opens new window):
- Updated dependencies fd5292fd5a, (opens new window):
- Updated dependencies 64fb94fb1e, (opens new window):
- Updated dependencies fd5292fd5a, (opens new window):
- Updated dependencies eea5e9bd8c, (opens new window):
- Updated dependencies fd5292fd5a, (opens new window):
- Updated dependencies 109c1a2c0a, (opens new window):
- Updated dependencies
c57bb32f6d, (opens new window):
- @atlaskit/docs@8.4.0
- @atlaskit/icon@20.1.0
- @atlaskit/webdriver-runner@0.3.0
- @atlaskit/avatar@17.1.9
- @atlaskit/button@13.3.9
- @atlaskit/form@7.1.5
3.1.8
Patch Changes
- Updated dependencies
e3f01787dd, (opens new window):
- @atlaskit/webdriver-runner@0.2.0
- @atlaskit/avatar@17.1.8
- @atlaskit/button@13.3.8
- @atlaskit/form@7.1.4
3.1.7
Patch Changes
-
[patch]91a1eb05db, (opens new window):
Textfield now exports its props as TextFieldProps- Updated dependencies eaad41d56c, (opens new window):
-
Updated dependencies c12ba5eb3e, (opens new window):
-
Updated dependencies 0603860c07, (opens new window):
- @atlaskit/form@7.1.3
- @atlaskit/icon@20.0.2
3.1.6
Patch Changes
-
[patch]6548261c9a, (opens new window):
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies 6548261c9a, (opens new window):
- @atlaskit/docs@8.3.2
- @atlaskit/visual-regression@0.1.9
- @atlaskit/analytics-next@6.3.5
- @atlaskit/avatar@17.1.7
- @atlaskit/button@13.3.7
- @atlaskit/form@7.1.2
- @atlaskit/icon@20.0.1
- @atlaskit/theme@9.5.1
3.1.5
Patch Changes
- Updated dependencies c0102a3ea2, (opens new window):
- Updated dependencies
b9dc265bc9, (opens new window):
- @atlaskit/icon@20.0.0
- @atlaskit/avatar@17.1.6
- @atlaskit/form@7.1.1
- @atlaskit/docs@8.3.1
- @atlaskit/button@13.3.6
3.1.4
Patch Changes
-
[patch]24865cfaff, (opens new window):
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, (opens new window):
Added name prop to component prop types.- Updated dependencies 24865cfaff, (opens new window):
-
Updated dependencies 24865cfaff, (opens new window):
-
Updated dependencies 24865cfaff, (opens new window):
-
Updated dependencies 24865cfaff, (opens new window):
-
Updated dependencies 24865cfaff, (opens new window):
- @atlaskit/analytics-next@6.3.3
- @atlaskit/form@7.0.0
- @atlaskit/avatar@17.1.5
3.1.3
Patch Changes
-
[patch]557a8e2451, (opens new window):
Rebuilds package to fix typescript typing error.
3.1.2
Patch Changes
-
[patch]35d2229b2a, (opens new window):
Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd.
3.1.1
Patch Changes
-
[patch]a2d0043716, (opens new window):
Updated version of analytics-next to fix potential incompatibilities with TS 3.6
3.1.0
Minor Changes
-
[minor]9638c553c0, (opens new window):
Adding an optional prop
testIdthat will set the attribute valuedata-testid. It will help products to write better integration and end to end tests.
3.0.7
Patch Changes
-
[patch]d5def52d98, (opens new window):
Refactored textfield styles to better support border-box being set globally.
3.0.6
- Updated dependencies
8d0f37c23e, (opens new window):
- @atlaskit/avatar@17.0.0
- @atlaskit/theme@9.2.2
3.0.5
Patch Changes
-
[patch]097b696613, (opens new window):
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving non-relative imports as relative imports
3.0.4
Patch Changes
-
[patch]ecca4d1dbb, (opens new window):
Upgraded Typescript to 3.3.x
3.0.3
Patch Changes
-
[patch]708028db86, (opens new window):
Change all the imports to theme in Core to use multi entry points
3.0.2
Patch Changes
-
[patch]de35ce8c67, (opens new window):
Updates component maintainers
3.0.1
- Updated dependencies
926b43142b, (opens new window):
- @atlaskit/analytics-next@6.0.0
- @atlaskit/avatar@16.0.10
- @atlaskit/button@13.1.2
3.0.0
Major Changes
- [major]84887b940c, (opens new window):
- Converting from flow to typescript 🎉
- Correctly typing the current prop spreading onto the internal
<input>element - Removing
isHoveredandisFocusedfrom public API as they previously did not do anything
2.0.5
Patch Changes
-
[patch]2fe6e8fbdf, (opens new window):
Removed unused dependencies from package.json for textfield: @emotion/core was unused.
2.0.4
Patch Changes
-
[patch]9f8ab1084b, (opens new window):
Consume analytics-next ts type definitions as an ambient declaration.
2.0.3
- Updated dependencies
06326ef3f7, (opens new window):
- @atlaskit/docs@8.1.3
- @atlaskit/avatar@16.0.6
- @atlaskit/button@13.0.9
- @atlaskit/form@6.1.1
- @atlaskit/icon@19.0.0
2.0.2
Patch Changes
-
[patch]4615439434, (opens new window):
index.ts will now be ignored when publishing to npm
2.0.1
- Updated dependencies
cfc3c8adb3, (opens new window):
- @atlaskit/docs@8.1.2
- @atlaskit/avatar@16.0.3
- @atlaskit/button@13.0.8
- @atlaskit/form@6.0.5
- @atlaskit/icon@18.0.0
2.0.0
- [major]7c17b35107, (opens new window):
- 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.
1.0.0
- [major]6cdf11238d, (opens new window):
- This major release indicates that this package is no longer under dev preview but is ready for use
0.4.5
- [patch]7157a95389, (opens new window):
- Internal changes only. Textfield is compatible with SSR.
0.4.4
- Updated dependencies
9c0b4744be, (opens new window):
- @atlaskit/docs@7.0.3
- @atlaskit/avatar@15.0.4
- @atlaskit/button@12.0.3
- @atlaskit/form@5.2.7
- @atlaskit/icon@16.0.9
- @atlaskit/theme@8.1.7
0.4.3
- Updated dependencies
1e826b2966, (opens new window):
- @atlaskit/docs@7.0.2
- @atlaskit/analytics-next@4.0.3
- @atlaskit/avatar@15.0.3
- @atlaskit/form@5.2.5
- @atlaskit/icon@16.0.8
- @atlaskit/theme@8.1.6
- @atlaskit/button@12.0.0
0.4.2
- [patch]a28eb04426, (opens new window):
- Migrates package from emotion 9 to emotion 10. No behaviour or API changes.
0.4.1
- [patch]e0797c2937, (opens new window):
- Support object refs e.g. React.createRef()
0.4.0
- [minor]8eff47cacb, (opens new window):
- Allow element before and/or after input
0.3.1
- Updated dependencies
9d5cc39394, (opens new window):
- @atlaskit/docs@7.0.1
- @atlaskit/analytics-next@4.0.1
- @atlaskit/form@5.2.1
- @atlaskit/theme@8.0.1
- @atlaskit/button@11.0.0
0.3.0
-
[minor]76299208e6, (opens new window):
- Drop ES5 from all the flow modules
Dropping CJS support in all @atlaskit packages
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
importandexportdeclarations.The major reason for doing this is to allow us to support multiple entry points in packages, e.g:
import colors from `@atlaskit/theme/colors`;Previously this was sort of possible for consumers by doing something like:
import colors from `@atlaskit/theme/dist/esm/colors`;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.
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.
ES Modules are widely supported by all modern bundlers and can be worked around in node environments.
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.
Please reach out to #fabric-build (if in Atlassian) or create an issue in Design System Support, (opens new window) (for external) if you have any questions or queries about this.
0.2.0
-
[minor]e9b824bf86, (opens new window):
- Breaking: Changes to the
themeprop. The type of this prop remains as(ThemeTokens, ThemeProps) => ThemeTokens.- The shape of
ThemeTokenshas changed.containerandinputkeys are now required. The value of these keys are style objects. - More information has been added to ThemeProps.
- The shape of
type ThemeTokens = { - backgroundColor: string - backgroundColorFocus: string - backgroundColorHover: string - borderColor: string - borderColorFocus: string - textColor: string - disabledTextColor: string - placeholderTextColor: string + container: Object, + input: Object } type ThemeProps = { appearance: ThemeAppearance, mode: 'dark' | 'light', + isDisabled: boolean, + isFocused: boolean, + isHovered: boolean, + isInvalid: boolean, + isMonospaced: boolean, + isCompact: boolean, + width?: string | number, }; - Breaking: Changes to the
0.1.6
- [patch]3d8322bd71, (opens new window):
- Trival refactor: update a variable name
0.1.5
-
[patch]2e5dd50, (opens new window):
- Update validation example to be compatible with the new Forms API
-
Updated dependencies 647a46f, (opens new window):
- @atlaskit/form@5.0.0
0.1.4
- Updated dependencies 58b84fa, (opens new window):
- @atlaskit/analytics-next@3.1.2
- @atlaskit/button@10.1.1
- @atlaskit/form@4.0.21
- @atlaskit/theme@7.0.1
- @atlaskit/docs@6.0.0
0.1.3
- [patch]63f969d, (opens new window):
- Fixed height of compact textfields to correctly be 32px instead of 28px
0.1.2
- [patch]480a57c, (opens new window):
- Convert to use new theme API.
0.1.1
- Updated dependencies 6998f11, (opens new window):
- @atlaskit/docs@5.2.1
- @atlaskit/analytics-next@3.1.1
- @atlaskit/form@4.0.18
- @atlaskit/theme@6.2.1
- @atlaskit/button@10.0.0
0.1.0
- [minor]62109bd, (opens new window):
- Refactor of field-text to remove field-base and normalise along api patterns established in other form components.