MetricText
MetricText is a token-backed typography component to display metrics.22.5.1
Patch Changes
- Updated dependencies
22.5.0
Minor Changes
bd2c5b0112185, (opens new window) - Remove stale API report artifacts from published Platform packages.
Patch Changes
- Updated dependencies
22.4.1
Patch Changes
fdedfb06aa229, (opens new window) - Allow canonical typed media queries and typed container-query exceptions in styling lint rules.- Updated dependencies
22.4.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
22.3.0
Minor Changes
0075efb228821, (opens new window) - Autofix: barrel removal (imports + exports)
22.2.2
Patch Changes
af176c56bda07, (opens new window) - Document list-item motion guidance for Pressable consumers.- Updated dependencies
22.2.1
Patch Changes
-
fe3a9586700ef, (opens new window) - ##Add named exports for primitives subpath components while preserving default exports.
This update expands API availability for several component subpaths without breaking existing imports. Default imports continue to work, and named imports are now supported in the same entry-points.
What changed
The following public subpaths now support both default and named imports:
@atlaskit/primitives/anchor@atlaskit/primitives/flex@atlaskit/primitives/inline@atlaskit/primitives/metric-text@atlaskit/primitives/pressable@atlaskit/primitives/stack@atlaskit/primitives/text
Compatibility
Existing default imports remain valid:
import Text from '@atlaskit/primitives/text'; import Pressable from '@atlaskit/primitives/pressable'; import Anchor from '@atlaskit/primitives/anchor';Named imports are also supported:
import { Text } from '@atlaskit/primitives/text'; import { Pressable } from '@atlaskit/primitives/pressable'; import { Anchor } from '@atlaskit/primitives/anchor';Notes
- Package root named imports remain valid.
@atlaskit/primitives/boxcontinues to support a default import via its dedicated entry-point.
import { Text, Pressable, Anchor } from '@atlaskit/primitives';
22.2.0
Minor Changes
7044faff2ad80, (opens new window) - Internal refactor to improve tree-shaking. There should be no change to consumers.
22.1.1
Patch Changes
c6fd2ecdc1056, (opens new window) - Add Pressable button motion guidance
22.1.0
Minor Changes
-
b1453699ad8be, (opens new window) - Add semantic code syntax tokens:color.background.code.defaultcolor.background.code.guttercolor.background.code.highlightcolor.background.code.added.linecolor.background.code.added.highlightcolor.background.code.removed.linecolor.background.code.removed.highlightcolor.border.codecolor.text.code.defaultcolor.text.code.commentscolor.text.code.operatorscolor.text.code.keywordscolor.text.code.stringscolor.text.code.numberscolor.text.code.functionscolor.text.code.tagscolor.text.code.accent.1color.text.code.accent.2color.text.code.gutter
import { token } from '@atlaskit/tokens'; const keywordColor = token('color.text.code.keywords', '#AE2E24'); // Or via CSS variable: var(--ds-text-code-keywords)Update
BackgroundColorTokento support the new code background tokens.
Patch Changes
- Updated dependencies
22.0.0
Major Changes
ef6d52b95e6db, (opens new window) - Narrowed xcss font property types to only accept tokens and global values.
Patch Changes
- Updated dependencies
21.0.1
Patch Changes
- Updated dependencies
21.0.0
Major Changes
72302be55bf7a, (opens new window) - Narrowed xcss font property types to only accept tokens and global values.
Patch Changes
- Updated dependencies
20.6.0
Minor Changes
c98e0cf5cc4f6, (opens new window) - Autofix: add explicit package exports (barrel removal)
20.5.0
Minor Changes
2f56c78f969b8, (opens new window) - Update i18n NPM package versions for teamwork-graph (Group 16)
Patch Changes
- Updated dependencies
20.4.0
Minor Changes
eda41efb5e798, (opens new window) - Add React 19 as supported peer dependency.
20.3.0
Minor Changes
8f588905041f4, (opens new window) - Add two new interaction-state tokens for the neutral container surface:elevation.surface.container.hoveredandelevation.surface.container.pressed. Use these for hovered and pressed states of elements built onelevation.surface.container.
Patch Changes
- Updated dependencies
20.2.1
Patch Changes
86c21c639404f, (opens new window) - Runscoped-jsxcodemod, migrating atlaskit components and examples to import the JSX type from React and use logical CSS properties. The change is required for components to be compatible with React 19 version, which removed JSX from global scope.
20.2.0
Minor Changes
a02bbdc5849e2, (opens new window) - Promote compiled Flex and Grid primitives to general availability.
Patch Changes
- Updated dependencies
20.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
20.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
20.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
19.0.2
Patch Changes
-
71fee8de88abc, (opens new window) - Added new design tokens to support the Lozenge / Tag / Badge visual uplift:15 new
color.border.*.subtletokens for decorative borders that do not need to meet 3:1 contrast requirements:- 5 semantic:
danger,warning,success,discovery,information(noneutral.subtle— the defaultcolor.borderalready serves this case) - 10 accent:
red,orange,yellow,lime,green,teal,blue,purple,magenta,gray - Light theme maps to Color300; dark theme maps to Color800 (DarkNeutral400 for
accent.gray)
5 new
color.background.*.subtletokens for non-interactive elements (e.g. semantic badges, status pills, callout chips):danger,success,discovery,information— light theme maps to Color300, dark theme maps to Color800warning— light theme maps to Orange250, dark theme maps to Orange850 (different stops because Orange300 is already used bywarning.bold)
Note:
color.background.*.subtleis intentionally non-interactive only — no.hoveredor.pressedvariants are provided. For interactive surfaces, usecolor.background.<semantic>.boldorcolor.background.<semantic>.subtlerinstead. - 5 semantic:
-
Updated dependencies
19.0.1
Patch Changes
79f04a5184ece, (opens new window) - Apply a couple of minor fixes to the stage 1 codemod transform
19.0.0
Major Changes
72017386a0120, (opens new window) - Remove the deprecatedUNSAFE_smallsize for the Text primitive. Please migrate any remaining usages tosmall.
Patch Changes
- Updated dependencies
18.1.4
Patch Changes
- Updated dependencies
18.1.3
Patch Changes
02483200273ec, (opens new window) - Enrol all Design System UI packages into the React Compiler with platform gating via isReactCompilerActivePlatform.- Updated dependencies
18.1.2
Patch Changes
e2085d35701ca, (opens new window) - Internal changes to remove unnecessary token fallbacks and imports from@atlaskit/theme- Updated dependencies
18.1.1
Patch Changes
08170da1fbf62, (opens new window) - Migrate spacing prop usages on icons to Flex wrapper- Updated dependencies
18.1.0
Minor Changes
fea273dfe3229, (opens new window) - Autofix: add explicit package exports (barrel removal)
18.0.2
Patch Changes
- Updated dependencies
18.0.1
Patch Changes
5db9e3f21a52f, (opens new window) - Internal refactoring- Updated dependencies
18.0.0
Major Changes
2abd451d54eb2, (opens new window) - Removes atlassian-legacy-light/dark color themes from the tokens package. These themes are unused and non-functional in terms of color contrast. As a result some primitive components may recieve modern fallback color values in some scenarios, however these are inline with the latest token themes.
Patch Changes
- Updated dependencies
17.1.1
Patch Changes
f111803c4e253, (opens new window) - Updating typography fallbacks to refreshed typography values as the deprecated legacy typography theme has been removed.- Updated dependencies
17.1.0
Minor Changes
f9c6c17de4114, (opens new window) - Cleaning up platform_migrate_to_native_box and removing codegen Box
17.0.0
Major Changes
55546332d4ef4, (opens new window) - RestrictedborderRadiusxcss and cssMap types to only accept tokens, 0, and "inherit". RestrictedborderWidthtypes to only accept tokens and 0. Previously any string was allowed, this is no longer the case and will throw a type error.
Patch Changes
- Updated dependencies
16.4.4
Patch Changes
8f904ca860b20, (opens new window) - Fixed codegen script not respecting manual changes in partially codegen'd files.- Updated dependencies
16.4.3
Patch Changes
- Updated dependencies
16.4.2
Patch Changes
a60a82196851a, (opens new window) - Internal refactors to remove unused variables. No functional or public changes.- Updated dependencies
16.4.1
Patch Changes
0d73beb2f9401, (opens new window) - AddedfontVariantNumericas an allowed property to Text'sxcssprop to allow for tabular numbers and slashed zeros. This is only available to the Compiled version of the Text component.
16.4.0
Minor Changes
e45f66913297e, (opens new window) - Import emotion box into Forge UI Kit library
16.3.0
Minor Changes
-
644c0f593ae62, (opens new window) - Adds background color tokens to types. -
644c0f593ae62, (opens new window) - Adds new semantic background and text tokens.Background Tokens (
background.[semantics].subtler.*):Added
subtlervariants for semantic background colors with default, hovered, and pressed states:background.success.subtler.[default|hovered|pressed]background.warning.subtler.[default|hovered|pressed]background.danger.subtler.[default|hovered|pressed]background.information.subtler.[default|hovered|pressed]background.discovery.subtler.[default|hovered|pressed]
Text Tokens (
text.[semantics].bolder):Added
boldervariants for semantic text colors to ensure proper contrast on colored backgrounds:text.success.boldertext.warning.boldertext.danger.boldertext.information.boldertext.discovery.bolder
Patch Changes
- Updated dependencies
16.2.0
Minor Changes
d50ecf8e02d28, (opens new window) - Addedradius.xxlargetoken available for borderRadius inxcss.
Patch Changes
- Updated dependencies
16.1.1
Patch Changes
- Updated dependencies
16.1.0
Minor Changes
-
c9b86863a2583, (opens new window) - The Focusable component now resets the outline style when the element matches the pseudo-class:focusbut not:focus-visible. This is to ensure the focus ring is not applied when it should not be. Some apps have global styles targeting all buttons and anchors, adding an outline on:focus. This will unset that style.This change was previously behind a feature flag, which has now been removed.
16.0.2
Patch Changes
cd77e341e3aa0, (opens new window) - Markxcss()as deprecated. Please use@atlaskit/csswith@atlaskit/primitives/compiledinstead.
16.0.1
Patch Changes
e336b1e1861e5, (opens new window) - ts-expect-error was replaced with ts-ignore to fix typecheck issues with help-center local consumption
16.0.0
Major Changes
64bcecfcb59ac, (opens new window) - MetricText no longer accepts emotion-based xcss props only @atlaskit/css compiled-based props as per the Compiled variant API.
Patch Changes
- Updated dependencies
15.0.1
Patch Changes
75ba0401c1743, (opens new window) - Internal changes.- Updated dependencies
15.0.0
Major Changes
d65b31774de31, (opens new window) - Removed deprecated border radius and border width tokens from xcss type.
Patch Changes
- Updated dependencies
14.15.5
Patch Changes
9d6e4b66e81f9, (opens new window) - Internal changes.- Updated dependencies
14.15.4
Patch Changes
437668dfbdec9, (opens new window) - Add explicit types to a number of DST components- Updated dependencies
14.15.3
Patch Changes
39e543109ec09, (opens new window) - add type info to forwardRef components- Updated dependencies
14.15.2
Patch Changes
c72a8190e4e4f, (opens new window) - add types to generated code for tokens- Updated dependencies
14.15.1
Patch Changes
d92f75f49b03f, (opens new window) - added type definitions to return type of generated code- Updated dependencies
14.15.0
Minor Changes
-
fe9321ccb4bd7, (opens new window) - The Focusable component now resets theoutlinestyle when the element matches the pseudo-class:focusbut not:focus-visible. This is to ensure the focus ring is not applied when it should not be. Some apps have global styles targeting all buttons and anchors, adding anoutlineon:focus. This will unset that style.This change is behind a feature flag.
Patch Changes
- Updated dependencies
14.14.3
Patch Changes
248faa32d4835, (opens new window) - Internal changes to how borders are applied.
14.14.2
Patch Changes
f0662cd7a143e, (opens new window) - Internal changes to how borders are applied.- Updated dependencies
14.14.1
Patch Changes
e5f0ae472aa1f, (opens new window) - Fix issue with positioning in the anchor primitive.
14.14.0
Minor Changes
d4a45d8562c6d, (opens new window) - Addedradius.tiletoken to be used exclusively for creating tiles.
Patch Changes
- Updated dependencies
14.13.0
Minor Changes
b2cbc15f17d6a, (opens new window) - Addedradius.tiletoken to be used exclusively for creating tiles.
Patch Changes
- Updated dependencies
14.12.3
Patch Changes
255837cfba315, (opens new window) - Internal changes to how border radius is applied.- Updated dependencies
14.12.2
Patch Changes
23bcc5bbc9cee, (opens new window) - Internal changes to how border radius is applied.- Updated dependencies
14.12.1
Patch Changes
3b5b4a919aaaf, (opens new window) - Internal changes to how border radius is applied.- Updated dependencies
14.12.0
Minor Changes
fcd8f46058cd2, (opens new window) - Added new border radius tokens available via xcss.
Patch Changes
- Updated dependencies
14.11.4
Patch Changes
31c57f650ba07, (opens new window) - Improving tests for server side rendering and hydration- Updated dependencies
14.11.3
Patch Changes
- Updated dependencies
14.11.2
Patch Changes
- #193601, (opens new window)
d5503d3fc3717, (opens new window) - Fix issue with positioning in the anchor primitive.
14.11.1
Patch Changes
- #193214, (opens new window)
c661806a65543, (opens new window) - Internal changes to how border radius and border width values are applied. No visual change. - Updated dependencies
14.11.0
Minor Changes
- #192701, (opens new window)
4d5732a51de3b, (opens new window) - Flex, Inline, and Stack now support passing through native ARIA attributes. - #193136, (opens new window)
deefc1d6ebaa6, (opens new window) - [ux] Added HTML id attribute to Flex and Flex-based primitives
14.10.2
Patch Changes
- Updated dependencies
14.10.1
Patch Changes
- #188952, (opens new window)
1a88e6e2601ae, (opens new window) - Migrated usage of renamed/deprecated icons
14.10.0
Minor Changes
- #177956, (opens new window)
124aac4a851f1, (opens new window) - Added MetricText component which provides a convenient way to consume new metric typography tokens for charts and other numerical components. Made metric tokens available in xcss via the font shorthand property.
Patch Changes
- Updated dependencies
14.9.0
Minor Changes
- #172429, (opens new window)
324162357eb4d, (opens new window) - Added MetricText component which provides a convenient way to consume new metric typography tokens for charts and other numerical components. Made metric tokens available in xcss via the font shorthand property.
Patch Changes
- Updated dependencies
14.8.4
Patch Changes
- #165533, (opens new window)
7c5aef443de8b, (opens new window) - Updates codemod logic for the stage1 migration to account for various edge-cases
14.8.3
Patch Changes
- Updated dependencies
14.8.2
Patch Changes
- #160530, (opens new window)
6e9dfd5a51384, (opens new window) - ExportShowandHideresponsive components from the/compiledentrypoint.
14.8.1
Patch Changes
- #155802, (opens new window)
08019848e3eab, (opens new window) - Refreshed "issue" terminology. - Updated dependencies
14.8.0
Minor Changes
- #157071, (opens new window)
a149a0b1559ec, (opens new window) - We are testing the migration to the ADS Link component behind a feature flag. If this fix is successful it will be available in a later release.
Patch Changes
- Updated dependencies
14.7.3
Patch Changes
- #154215, (opens new window)
eccacf87bc9e5, (opens new window) - Tweaks formatting behaviour of the stage1 compiled codemod
14.7.2
Patch Changes
- #152840, (opens new window)
c6830ce5e4911, (opens new window) - Fix bug incompiled-fork-stage1codemod in which deprecated Pressable props were not being moved into thexcssprop.
14.7.1
Patch Changes
- #148964, (opens new window)
79dddcb8a67c0, (opens new window) - Add tabindex="0" to Pressable for Safari so that click events are fired - Updated dependencies
14.7.0
Minor Changes
- #146876, (opens new window)
1f9d7feceff9f, (opens new window) - Removed deprecated unsafe anchor and unsafe anchor props.
14.6.0
Minor Changes
- #148632, (opens new window)
9dd484b8a47eb, (opens new window) - Make<Pressable backgroundColor>and<Anchor backgroundColor>a deprecated prop to ease the migration to@atlaskit/primitives/compiledas including abackgroundColorstyle map for this component is a large bytesize impact and it may lead to bad patterns as you should typically also havebackgroundColorchanges in&:hoverand&:focusstates.
Patch Changes
- Updated dependencies
14.5.0
Minor Changes
- #148288, (opens new window)
c31c2fb751ae5, (opens new window) - AddbackgroundColorback toprops.styleandprops.xcssforBoxfrom@atlaskit/primitives/compiledto have a more iterative migration, but we still prefer theprops.backgroundColorvalue.
14.4.0
Minor Changes
- #138526, (opens new window)
1c66b8e32f30a, (opens new window) - [ux] Removed feature flagplatform-typography-improved-color-controlresulting in automatic color inversion based on bold surfaces will only affect the default color.
14.3.3
Patch Changes
- #138465, (opens new window)
5349bc88cca65, (opens new window) - Fix outlineOffset types in XCSS.
14.3.2
Patch Changes
- #138447, (opens new window)
0f50e1e11be49, (opens new window) - Bugfix tocompiled-fork-stage1codemod's handling of Grid props.
14.3.1
Patch Changes
- #137814, (opens new window)
d2a58e04ac617, (opens new window) - Fix bug incompiled-fork-stage1codemod in which Grid props would be transformed despite havingxcssprop.
14.3.0
Minor Changes
- #135655, (opens new window)
71f8afb32ade5, (opens new window) - Anchor will no longer render as a RouterLink for urls that use the blob: protocol.
Patch Changes
- Updated dependencies
14.2.3
Patch Changes
- #133540, (opens new window)
606c6a34e6c24, (opens new window) - Fix type ofseparatorin the Compiled variant of Inline.
14.2.2
Patch Changes
- #127093, (opens new window)
1378ea7a99ce1, (opens new window) - Upgradesjscodeshiftto handle generics properly. - Updated dependencies
14.2.1
Patch Changes
- #129972, (opens new window)
b2d69a39e6687, (opens new window) - Update@compiled/reactdependency for improved type checking support. - Updated dependencies
14.2.0
Minor Changes
- #128868, (opens new window)
b24df558e8edb, (opens new window) - Introduces codemod to support the first stage of the compiled migration. This codemod only migrates to the compiled variant if xcss is not used
14.1.4
Patch Changes
- #124329, (opens new window)
b0d988fe689d9, (opens new window) - Consolidate ADS themes by adding the icon.color.subtlest with the value equal to icon.color.subtle to non-brand-refresh themes - Updated dependencies
14.1.3
Patch Changes
- Updated dependencies
14.1.2
Patch Changes
- #119650, (opens new window)
51704d016e269, (opens new window) - Fix typo in documentation.
14.1.1
Patch Changes
- #119116, (opens new window)
96ff1753a7299, (opens new window) - Update dependencies and remove unused internal exports.
14.1.0
Minor Changes
- #118121, (opens new window)
4850fa1a503ba, (opens new window) - [ux] Automatic color inversion based on bold surfaces will only affect the default color behind a feature flag. If testing successful, this change will be made available in a later release.
Patch Changes
- Updated dependencies
14.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
13.6.0
Minor Changes
- #116138, (opens new window)
b50c5d5d65ae2, (opens new window) - Bump to the latest version of @compiled/react
Patch Changes
- Updated dependencies
13.5.1
Patch Changes
- #115124, (opens new window)
b6dd4e0fcdd67, (opens new window) - Added support for style overrides ofoverflowWrapandtextDecorationLinefor the compiled version of Text.
13.5.0
Minor Changes
- #112172, (opens new window)
54699aa47995b, (opens new window) - [ux] Removed feature flagplatform-primitives-nested-text-inherit-sizeresulting in Text to inherit size when nested in other Text component.
13.4.1
Patch Changes
- Updated dependencies
13.4.0
Minor Changes
- #109060, (opens new window)
4660ec858a305, (opens new window) - UpdateReactfrom v16 to v18
Patch Changes
- Updated dependencies
13.3.8
Patch Changes
- #103999, (opens new window)
9f62ecec4d422, (opens new window) - Update dependencies.
13.3.7
Patch Changes
- Updated dependencies
13.3.6
Patch Changes
- #99467, (opens new window)
118e81bbb4659, (opens new window) - Internal changes to typography.
13.3.5
Patch Changes
- #180173, (opens new window)
6be28a4ed15b1, (opens new window) - Fixing label text for compiled/anchor to be 1:1 with primitive as part of compiled migration
13.3.4
Patch Changes
- #178771, (opens new window)
77f2655aef31d, (opens new window) - Fixing label text for compiled/anchor to be 1:1 with primitive as part of compiled migration
13.3.3
Patch Changes
- #178053, (opens new window)
cb318c8c28c26, (opens new window) - Internal changes to typography.
13.3.2
Patch Changes
- #175552, (opens new window)
0384c8ac8996a, (opens new window) - Narrow down fontStyle type definition to only allownormalanditalic.
13.3.1
Patch Changes
- Updated dependencies
13.3.0
Minor Changes
- #165860, (opens new window)
c2dec1ca710f3, (opens new window) - Adds an experimental Focusable component under the Compiled entrypoint, which requires a specific setup.
13.2.0
Minor Changes
- #162507, (opens new window)
55f201f2b2d04, (opens new window) - [ux] Text to inherit size when nested in other Text component behind a feature flag. If testing successful, this change will be made available in a later release.
13.1.0
Minor Changes
- #161694, (opens new window)
22f69cdefebd9, (opens new window) - Add compiled.css sideEffect to @atlaskit/primitives to hint and fix bundlers to load these styles
13.0.0
Major Changes
-
#158114, (opens new window)
01676a379617b, (opens new window) - This generates a new entrypoint for opt-in to Compiled through@atlaskit/primitives/compiled.No documentation is currently available on how to use this, and this is for internal testing, use at your own risk.
Possibly BREAKING: In theory, this could have an impact depending on your bundling setup due to newly distributed
dist/cjs/compiled/box.compiled.csstype files—the most notable impact is in an extreme, Webpack may error if it was not expecting*.cssfiles (and then these files could be ignored for now following future updates), or are included but not used, increasing client-facing bundle size.
Minor Changes
- #158114, (opens new window)
01676a379617b, (opens new window) - Remove the UNSAFE_SurfaceContext export which was temporarily used internally and not documented for public use.
12.2.7
Patch Changes
- #155472, (opens new window)
3d80f6ab74b68, (opens new window) - Add zIndex: 1 to XCSS layer API.
12.2.6
Patch Changes
- Updated dependencies
12.2.5
Patch Changes
- #150360, (opens new window)
284490a8c1813, (opens new window) - Update codegen script to output into primitives-emotion-to-compiled codemod.
12.2.4
Patch Changes
- Updated dependencies
12.2.3
Patch Changes
- #148281, (opens new window)
3c4de48168ffe, (opens new window) - Update the import path ofuseId*from@atlaskit/ds-lib - Updated dependencies
12.2.2
Patch Changes
- #146405, (opens new window)
a92a52978058c, (opens new window) - Exports a temporary UNSAFE_SurfaceContext export that may be removed in a future minor version to decouple Compiled migrations from Primitives
12.2.1
Patch Changes
- Updated dependencies
12.2.0
Minor Changes
- #143323, (opens new window)
4fdf6347eb506, (opens new window) - Add new entrypoint called "use-layout-effect" to ds-lib and use it inside primitives pkg.
Patch Changes
- Updated dependencies
12.1.2
Patch Changes
- Updated dependencies
12.1.1
Patch Changes
- #137821, (opens new window)
94620325283df, (opens new window) - Removereact-uidand use an ID generator that is compatible with React16 and React 18; Strict React 18 behind a flag.
12.1.0
Minor Changes
e0c305a0be2ce, (opens new window) - Added support for typography tokens to XCSS.
12.0.1
Patch Changes
- Updated dependencies
12.0.0
Major Changes
-
#128232, (opens new window)
c97dfe9e5b27d, (opens new window) - Box no longer supports usage as an anchor tag (<a>). Use the Anchor primitive, (opens new window) instead, which is more specialized. This has benefits including:- Built-in event tracking support
- Default text underlines
- Automatic router link configuration from
@atlaskit/app-provider - Built-in accessible focus styles
- Warning screen-readers when links open in new windows
Migrating to Anchor
- First consider if another ADS link component such as
@atlaskit/linkis better suited rather than building a custom anchor. - Anchor has focus ring styles built-in, so remove existing styles including
@atlaskit/focus-ring. - Anchor has a default cursor (
cursor: pointer), so existing styles can be removed. - Anchor has a default link underline, so an existing style can be removed.
Before migration
import { Box, xcss } from '@atlaskit/primitives'; import FocusRing from '@atlaskit/focus-ring'; const anchorStyles = xcss({ cursor: 'pointer', color: 'color.link', textDecoration: 'underline', }); const MyApp = () => ( <FocusRing> <Box as="a" href="/foo" xcss={anchorStyles}> Hello </Box> </FocusRing> );After migration
import { Anchor, xcss } from '@atlaskit/primitives'; const anchorStyles = xcss({ color: 'color.link', }); const MyApp = () => ( <Anchor href="/foo" xcss={anchorStyles}> Hello </Anchor> );
11.1.2
Patch Changes
- Updated dependencies
11.1.1
Patch Changes
- #126649, (opens new window)
24092d9f293a1, (opens new window) - Removed development warnings from JSDoc comment for Anchor primitive.
11.1.0
Minor Changes
- #123719, (opens new window)
4de823258d64a, (opens new window) - Addeddlas a valid polymorphic element for both theInlineandStackprimitives.
11.0.2
Patch Changes
- #120336, (opens new window)
62381baf0d2e1, (opens new window) - Update 'opens new window' for anchor and link with a nicer AT announcement
11.0.1
Patch Changes
- #119548, (opens new window)
c99cce707b5cb, (opens new window) - The separator prop in the inline component has had its type expanded toReactNode. - Updated dependencies
11.0.0
Major Changes
-
#119014, (opens new window)
80c46fcb18957, (opens new window) - Increased type safety forxcss. In general, non-token values for the following properties are no longer allowed:marginmarginBlockmarginBlockEndmarginBlockStartmarginBottommarginInlinemarginInlineEndmarginInlineStartmarginLeftmarginRightmarginToppaddingBottompaddingLeftpaddingRightpaddingTop
Note: Logical properties for
padding, e.g.paddingInline, already prohibit non-token values.For example:
const styles = xcss({ padding: '8px', // <-- Type Error ^^^^^ });A few additional non-token values are still accepted:
margin:'0 auto'|'auto'|'0'marginBlock:'auto'|'0'marginBlockEnd:'auto'|'0'marginBlockStart:'auto'|'0'marginBottom:'auto'|'0'marginInline:'auto'|'0'marginInlineEnd:'auto'|'0'marginInlineStart:'auto'|'0'marginLeft:'auto'|'0'marginRight:'auto'|'0'marginTop:'auto'|'0'paddingBlock:'0'paddingBlockEnd:'0'paddingBlockStart:'0'paddingBottom:'0'paddingInline:'0'paddingInlineEnd:'0'paddingInlineStart:'0'paddingLeft:'0'paddingRight:'0'paddingTop:'0'
as well as global CSS properties:
'inherit'|'initial'|'revert'|'revert-layer'|'unset'
10.1.0
Minor Changes
b78fad249a1e7, (opens new window) - Allow Negative Spaces in OutlineOffset
10.0.0
Major Changes
- #115948, (opens new window)
1798755846b6d, (opens new window) - Released Anchor primitive to open beta.
9.0.0
Major Changes
- #114987, (opens new window)
d4d420c947747, (opens new window) - [ux] Pressable and Anchor primitives no longer support surface color detection to improve performance. These primitives don't contain nested layouts so this is not needed. Although this is a breaking change, the impact of this change is minimal as no usage of surface detection in these primitives has been observed.
8.2.1
Patch Changes
- #113600, (opens new window)
7ba62903cc2eb, (opens new window) - Internal changes to both Pressable and Anchor primitives. They no longer use the Box primitive. There are no changes for consumers.
8.2.0
Minor Changes
- #114203, (opens new window)
fb57afa892329, (opens new window) - Added:visited:hoverXCSS pseudo combination.
8.1.0
Minor Changes
- #113286, (opens new window)
7c318f9ea8f09, (opens new window) - Added support for skeleton color tokens as XCSS background colors.
Patch Changes
- Updated dependencies
8.0.1
Patch Changes
- #108692, (opens new window)
294e1a9116fce, (opens new window) - Updatecolor.skeletonandcolor.skeleton.subtleto be valid backgroundColor values on XCSS.
8.0.0
Major Changes
-
#109778, (opens new window)
d20b004b7c9dd, (opens new window) - Box no longer supports usage as a button. Use the Pressable primitive, (opens new window) instead, which is more specialized and has built-in event tracking support.- Pressable has focus ring styles built-in, so remove existing styles including
@atlaskit/focus-ring - Pressable has a default cursor (
cursor: pointer) built-in, so existing styles can be removed. - Pressable has a
isDisabledprop, rather than direct usage of thedisabledattribute. - Pressable is built on Box, so no visual changes are expected.
Before migration
import { Box, xcss } from '@atlaskit/primitives'; import FocusRing from '@atlaskit/focus-ring'; const buttonStyles = xcss({ cursor: 'pointer', backgroundColor: 'color.background.brand.bold', }); const MyApp = () => ( <FocusRing> <Box as="button" xcss={buttonStyles} disabled={isDisabled}> Hello </Box> </FocusRing> );After migration
import { Pressable, xcss } from '@atlaskit/primitives'; const buttonStyles = xcss({ backgroundColor: 'color.background.brand.bold', }); const MyApp = () => ( <Pressable xcss={buttonStyles} isDisabled={isDisabled}> Hello </Pressable> ); - Pressable has focus ring styles built-in, so remove existing styles including
Minor Changes
- #108386, (opens new window)
8f3fa9e80b93c, (opens new window) - Updated xl breakpoint to be 1768px instead of 1760px (110.5rem instead of 110rem) to match updated design guidance.
Patch Changes
- Updated dependencies
7.4.1
Patch Changes
- Updated dependencies
7.4.0
Minor Changes
- #110836, (opens new window)
a8bd419fd70b9, (opens new window) - Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime is implicitly set to automatic.
7.3.0
Minor Changes
- #111623, (opens new window)
0392b6e4d865a, (opens new window) - TheTextcomponent now apliesoverflow-wrap: anywhereby default to ensure text does not break out of fixed width containers. Be aware that if a single word is wider than its container width, the word will be broken over multiple lines.
7.2.0
Minor Changes
- #108733, (opens new window)
c414bbde52951, (opens new window) - Extends XCSS type to support:focus:not(:focus-visible)
Patch Changes
- #108733, (opens new window)
c414bbde52951, (opens new window) - Adds a:focusstyle reset toAnchorandPressableto prevent:focusstyles with lower specificity from leaking through.
7.1.0
Minor Changes
- #110702, (opens new window)
b8c2eefeb195b, (opens new window) - - Anchor and Pressable primitives no longer requirechildren, so labels can be supplied through aria attributes if required
Patch Changes
- #110702, (opens new window)
b8c2eefeb195b, (opens new window) - - Fixed a bug with Anchor, where the "(opens new window)" label was not being automatically appended toaria-labeloraria-labelledby.
7.0.3
Patch Changes
-
#110975, (opens new window)
c462a22b33940, (opens new window) - Removed type hinting for size values in the following properties in XCSS:- blockSize
- height
- inlineSize
- maxBlockSize
- maxHeight
- maxInlineSize
- maxWidth
- minBlockSize
- minHeight
- minInlineSize
- minWidth
- width
These properties optionally accept size values like
width: 'size.100'. Howeversizewill be deprecated in the future. Therefore, the type hinting that displayedsize.XXXhas been removed to discourage its usage until it is officially deprecated.No changes in functionality have been introduced. The syntax
width: 'size.100'remains valid for now, so existing code will not be broken. However, consumers are encouraged to use hard-coded values, likewidth: '8px', instead.
7.0.2
Patch Changes
- #110867, (opens new window)
dc7e72da70ef7, (opens new window) - Migrating instances ofUNSAFE_ANCHORprimitive imports to the new safe importAnchor, in preparation of Anchor open beta and removal of the unsafe export from@atlaskit/primitives
7.0.1
Patch Changes
- #110191, (opens new window)
c3dc02298f8aa, (opens new window) - [ux] Change heading xsmall lineheight from 16 to 20 for minor third theme. - Updated dependencies
7.0.0
Major Changes
-
#108387, (opens new window)
0f3b7b4c63c6d, (opens new window) -xcss: Restrict valid chained pseudo-selectors a limited subset::visited:active:active:visited:hover::before:hover::after:focus-visible::before:focus-visible::after
Previously, any combination of two pseudo-selectors was allowed. This decision was made to improve performance for TypeScript compilation and IDE type hinting.
6.5.0
Minor Changes
- #107382, (opens new window)
219600ccac79, (opens new window) - Adding safe exports forAnchorprimitive in preparation for open beta. TheUNSAFE_prefixed exports have been deprecated and will be removed in an upcoming major release.
6.4.0
Minor Changes
- #105558, (opens new window)
9e4502966543, (opens new window) - Relax type safety onborderWidth,borderRadius, and their variant properties onxcss. The tokens for those properties will be deprecated in future in favor of new border tokens.
6.3.0
Minor Changes
- #95202, (opens new window)
b28e3d55ab88, (opens new window) - Adds "Fill" to the set of exported style map types
Patch Changes
- Updated dependencies
6.2.0
Minor Changes
- #100442, (opens new window)
6b3630addb05, (opens new window) - Addxcssto responsive componentsShowandHide.
6.1.2
Patch Changes
- #98149, (opens new window)
45101e24202a, (opens new window) - Internal change only; update generated styles. - Updated dependencies
6.1.1
Patch Changes
- #97580, (opens new window)
496e5da89b3b, (opens new window) - Export unsafe surface APIs for use in heading component.
6.1.0
Minor Changes
- #96841, (opens new window)
6cca90095b7e, (opens new window) - - Pressable now accepts aroleattribute.- The
UNSAFE_PressablePropsexport has been renamed toPressableProps. This is unused in products.
- The
6.0.0
Major Changes
- #96847, (opens new window)
914419349eeb, (opens new window) - -Pressableprimitive is now in beta.- Pressable unsafe exports
UNSAFE_PRESSABLEandUNSAFE_PressablePropshave been removed.
- Pressable unsafe exports
5.7.0
Minor Changes
- #93706, (opens new window)
2e4fdfa436da, (opens new window) - Add support for React 18 in non-strict mode.
5.6.1
Patch Changes
- #94316, (opens new window)
35fd5ed8e1d7, (opens new window) - Upgrading internal dependencybind-event-listenerto@^3.0.0 - #93980, (opens new window)
0437b8b3c791, (opens new window) - Updated imports ofUNSAFE_PRESSABLEprimitive to newPressableexport
5.6.0
Minor Changes
- #93535, (opens new window)
e9177e2fdee3, (opens new window) - Adds new export for Pressable asPressablein preparation for open beta. The previousUNSAFE_PRESSABLEexport remains available while existing usages are migrated, and will be removed in an upcoming major release.
Patch Changes
- #92007, (opens new window)
85525725cb0d, (opens new window) - Migrated to the new button component
5.5.3
Patch Changes
- Updated dependencies
5.5.2
Patch Changes
- Updated dependencies
5.5.1
Patch Changes
- #88354, (opens new window)
4c87d9b4f0c2, (opens new window) - The internal composition of this component has changed. There is no expected change in behavior.
5.5.0
Minor Changes
- #86439, (opens new window)
43cd9551f332, (opens new window) - Removed deprecatedtextAlignprop from Text primitive component
5.4.0
Minor Changes
- #85745, (opens new window)
0e9c8c15ef86, (opens new window) - Extends XCSS selector types to allow up to two CSS psuedos to be used in combination. For example::visited:hover {}.
Patch Changes
- Updated dependencies
5.3.0
Minor Changes
- #86400, (opens new window)
92f574fd392d, (opens new window) - Anchor now suffixes the accessible label with visually hidden text "(opens new window)" whentargetis set to_blank. This improves accessibility for screen readers. - Anchor no longer automatically opens external links in new windows, which is a poor usability and
accessibility practice. Previously this involved applying default attributes
rel="noopener noreferrer"andtarget="_blank"when the link was detected to link externally.
5.2.0
Minor Changes
- #86279, (opens new window)
0988fda99a0d, (opens new window) - Renaming text alignment prop for Text component fromtextAligntoalign
5.1.2
Patch Changes
- #80174, (opens new window)
2a4fd6ccba31, (opens new window) - Add forwardRef to text component
5.1.1
Patch Changes
- #83116, (opens new window)
8d4e99057fe0, (opens new window) - Upgrade Typescript from4.9.5to5.4.2 - Updated dependencies
5.1.0
Minor Changes
- #78900, (opens new window)
6ea786dd8082, (opens new window) - Add UNSAFE_small fontsize token.
Patch Changes
- Updated dependencies
5.0.1
Patch Changes
- Updated dependencies
5.0.0
Major Changes
-
#81744, (opens new window)
30e3d8c81030, (opens new window) - ReplacedText'svariantprop with asizeprop. Thesizeprop takes three values:"small","medium"(default), and"large".Migration guide:
variant="body.small"->size="small"variant="body"->size="medium"(Note: Since medium is the default, the size prop can be omitted here)variant="body.large"->size="large"
4.1.1
Patch Changes
- #81644, (opens new window)
8ab7a816dca7, (opens new window) - Revert input border change from the previous version
4.1.0
Minor Changes
- #80528, (opens new window)
8877e9b57d55, (opens new window) - Addedsizeprop which will replacevariantprop in the next major version.
4.0.2
Patch Changes
- #80805, (opens new window)
427c2dd9e0d6, (opens new window) - Update input border color token and width to meet 3:1 color contrast - Updated dependencies
4.0.1
Patch Changes
- #79770, (opens new window)
542e29efe0ad, (opens new window) - Update imports from @atlaskit/tokens - Updated dependencies
4.0.0
Major Changes
- #77148, (opens new window)
473df43e816b, (opens new window) - Removeduivariant from Text component. Thebodyvariant should be used for all non-heading typography.
Patch Changes
- Updated dependencies
3.2.0
Minor Changes
- #77488, (opens new window)
9e119dcbfd60, (opens new window) - Thexcssprop on select components have had its type expanded to support styles being passed from Compiled CSS-in-JS. This is still experimental and something we'll be iterating on.
3.1.0
Minor Changes
- #76431, (opens new window)
c6819de73d02, (opens new window) - Default text color + allow color inheritance if explicitly defined
3.0.0
Major Changes
- #58240, (opens new window)
a45d2049a22c, (opens new window) - The "Link" primitive has been renamed to "Anchor" to avoid confusion with the upcoming "Link" component. Since Link is still in Alpha this should not cause any upgrade friction.
Minor Changes
- #58240, (opens new window)
75b2ade8b254, (opens new window) - Both the Pressable and Anchor primitives now support analytics tracking by default. - #58240, (opens new window)
39f3c929f0c4, (opens new window) - Add Pressable and Anchor primitives (in Alpha) to root export asUNSAFE_PRESSABLEandUNSAFE_LINK.
Patch Changes
- #58240, (opens new window)
4951390bc0ae, (opens new window) - [ux] Adds a default underline style to the Anchor primitive (Alpha)
2.1.0
Minor Changes
- #74930, (opens new window)
707a8fee2aee, (opens new window) - Both the Pressable and Anchor primitives (in Alpha) now support analytics tracking in the same fashion as@atlaskit/button. An additional propcomponentNameallows analytics to be configured if a parent component name is desired to be tracked rather than the primitive names. For the time being this tracking is opt-in via use of thecomponentNameprop. This will be made default behavior in an upcoming release once tracking is removed in the new Buttons, and@atlaskit/buttonis bumped to use the latest version of@atlaskit/primitives - #75221, (opens new window)
c15d58bff276, (opens new window) -Textinherits color by default ifcolorprop is not provided. Removed auto-collapsing behaviour ofText
2.0.3
Patch Changes
- #74836, (opens new window)
3963062ac997, (opens new window) - Codegen to add in new font family tokens. Not exposed in any components. - Updated dependencies
2.0.2
Patch Changes
- #72557, (opens new window)
0c78c9c18cb7, (opens new window) - Fix font family not preferencing apple system fonts on macOS
2.0.1
Patch Changes
- Updated dependencies
2.0.0
Major Changes
-
#68009, (opens new window)
1168354ed6ef, (opens new window) - We now ensure the specificity of ourxcss-based overrides are consistent across all primitives soxcsswill always override props.This resulted in a breaking change wtih Grid. For example,
<Grid templateAreas="…" xcss({ gridTemplateAreas: "…" })>will result in different styles resolution before and after this version. This applies totemplateAreas,templateColumns, andtemplateRows). From static analysis, we found only one known usage of this and it has been resolved.
1.20.0
Minor Changes
- #68163, (opens new window)
67d09e3f972d, (opens new window) -weightproperty added toTextto allow overriding text variant default font weight. - #69343, (opens new window)
77249f536425, (opens new window) -Textcolor prop defaults tocolor.textif not provided.
Patch Changes
- Updated dependencies
1.19.0
Minor Changes
- #66702, (opens new window)
5b6bbaf2d5fc, (opens new window) - AddedmaxLinesprop toTextcomponent, allowing truncation at a certain number of lines. This prop replacesshouldTruncateprop.
Patch Changes
- #67698, (opens new window)
175c07b58c52, (opens new window) - Export tokensMap object
1.18.0
Minor Changes
- #67463, (opens new window)
adf1c3ebf0fd, (opens new window) - Fixed an issue withTextwhere text could render incorrectly if a typography token theme was not present on a page.
Patch Changes
- Updated dependencies
1.17.0
Minor Changes
- #65770, (opens new window)
1e2db2714522, (opens new window) - TheshouldTruncateprop onTextis now only available forbodyvariants and cannot be used withuivariants.
1.16.0
Minor Changes
- #63526, (opens new window)
e8835feffae9, (opens new window) - Internal change to improve token sorting logic for typography tokens. Typography tokens are now marked as active though they are still in development and not recommend for use without prior approval from ADS.
Patch Changes
- Updated dependencies
1.15.2
Patch Changes
- #61090, (opens new window)
2e34d3535125, (opens new window) - - Fixed issue where using negative space tokens inxcsswouldn't apply.- Allow negative space tokens for position properties in
xcss(i.e. top, bottom, left, right, and inset-*).
- Allow negative space tokens for position properties in
1.15.1
Patch Changes
- #57241, (opens new window)
cae2e80ae968, (opens new window) - Migrate webdriver tests for @atlassian/product-search-dialog
1.15.0
Minor Changes
- #60570, (opens new window)
d74bd13bec9c, (opens new window) - Restrict usage of data-testid to primitives (testIdshould be used instead). This prop is currently silently ignored so this is just to follow the principle of least surprise when using primitives.
Patch Changes
- Updated dependencies
1.14.0
Minor Changes
- #58048, (opens new window)
cc9e9495e995, (opens new window) - Exportmedia.onlyandmedia.belowfor Compiled CSS-in-JS support.
1.13.1
Patch Changes
- #58444, (opens new window)
c0499565188d, (opens new window) - Update package.json documentation metadata.
1.13.0
Minor Changes
- #57795, (opens new window)
d2c06815d043, (opens new window) - - Inline: Allowroleprop to be passed through.rolealready existed in the type, but was not actually applied to the component.- Stack: Allow
roleprop to be passed through.rolealready existed in the type, but was not actually applied to the component. - Flex: Allow
roleprop to be passed through.rolealready existed in the type, but was not actually applied to the component. - Text: Omit
xcssfrom prop types.<Text xcss={yourStyles}></Text>will now throw a type error.xcsswas previously non-functional inText. So, this should not cause any behavior change. - xcss: Export XCSS type from main entry point. It is now possible to
import { xcss, type XCSS } from '@atlaskit/primitives'.
- Stack: Allow
1.12.0
Minor Changes
- #43616, (opens new window)
6a89d1fcf6b, (opens new window) - Add missing tokenised XCSS properties for borderBlockColor, borderBlockWidth, borderInlineColor, borderInlineWidth
1.11.1
Patch Changes
- #43455, (opens new window)
16586bd07a0, (opens new window) - Updatedfont.body.smallline height to 16px (1rem).
1.11.0
Minor Changes
- #43366, (opens new window)
f1d3719ea48, (opens new window) - Tokenised values are now accepted in all border-radius, border-width, border-color, and opacity CSS properties in XCSS.
1.10.1
Patch Changes
- #43018, (opens new window)
3cb6a290654, (opens new window) - Text component now hasmargin: 0to ensure no margins are inherited (for example from the CSS reset).
1.10.0
Minor Changes
- #42931, (opens new window)
5778f757885, (opens new window) - Added export for Text component. This component is currently in closed beta and is not intended for general use at this stage.
1.9.0
Minor Changes
- #42494, (opens new window)
8cc2926465e, (opens new window) - Removed the ability to use thestyleprop on primitives such as Inline, Stack, and Flex. This prop previously had no effect on these components and is now only allowed on Box.
1.8.0
Minor Changes
- #42305, (opens new window)
4c9d4a7be34, (opens new window) - - Link primitive will now throw an error if a router link configuration object is passed to thehrefprop when there is not a router link component set in the AppProvider
Patch Changes
- #42305, (opens new window)
4c9d4a7be34, (opens new window) - - Fixes a bug where Link primitive was not passing through router link configuration objects - Updated dependencies
1.7.0
Minor Changes
- #42130, (opens new window)
a64dc3026de, (opens new window) - Create the new Link primitive (Unsafe to use, still in Alpha)
1.6.8
Patch Changes
- #42012, (opens new window)
0a52fc9129e, (opens new window) - Internal change to themediaexport to ensure compatibility with Compiled, (opens new window). No change to public API.
1.6.7
Patch Changes
- #41516, (opens new window)
350e4081d89, (opens new window) - [ux] Regenerates codegen artifacts as a result of changes to color palettes and token values - Updated dependencies
1.6.6
Patch Changes
- #41440, (opens new window)
5c01cb4e16d, (opens new window) - Add surface color context to Box. Refine Text API.
1.6.5
Patch Changes
- #41563, (opens new window)
50de1ccacd7, (opens new window) - Additional documentation details for alignment props on Inline and Stack.
1.6.4
Patch Changes
- #40324, (opens new window)
8d123310957, (opens new window) - Minor internal changes. There is no expected behaviour change
1.6.3
Patch Changes
- #40299, (opens new window)
b1882fdd842, (opens new window) - Change typography token naming to be more verbose.
1.6.2
Patch Changes
- #40254, (opens new window)
c296560ae7e, (opens new window) - Removes unused experimental component.
1.6.1
Patch Changes
- #40041, (opens new window)
83cd2ae7c5a, (opens new window) - Regenerates codegen artifacts as a result of introducting new visited link token. - Updated dependencies
1.6.0
Minor Changes
- #40104, (opens new window)
9cd356f858a, (opens new window) - Negative space tokens can now be applied to margin properties viaxcss.
1.5.0
Minor Changes
- #39556, (opens new window)
fa6c592fdb2, (opens new window) - IntroduceHeadinginto package in immediate alpha state. This is more or less a port of@atlaskit/heading. Component is not yet stable and implementation is likely to change. - #39412, (opens new window)
c2e55a9b782, (opens new window) - Adds surface detection support to the Box primitive:- Enable a
Boxbackground colour to be set to theutility.elevation.surface.currenttoken. - Internally set the current surface CSS variable value when the background color of a Box is set
to a surface token (e.g.
elevation.surface.raised).
- Enable a
1.4.4
Patch Changes
- #39431, (opens new window)
4e58672502e, (opens new window) - Create text component.
1.4.3
Patch Changes
- #39787, (opens new window)
6900f89eb0e, (opens new window) - Internal changes to use space tokens. There is no expected visual or behaviour change.
1.4.2
Patch Changes
- #39808, (opens new window)
89ce462b216, (opens new window) - Fix for margin properties not being mapped to values correctly.
1.4.1
Patch Changes
- #39578, (opens new window)
da792e55f6f, (opens new window) - - Bleed now uses negative space tokens under the hood.- Fixed an issue where the wrong token would apply for space.025 in Bleed's
blockprop. - Fallback values for Bleed
blockandinlineprops now use rem instead of px - this is only applied if space tokens are not available on the page. Space tokens already use rem under the hood.
- Fixed an issue where the wrong token would apply for space.025 in Bleed's
- Updated dependencies
1.4.0
Minor Changes
- #39471, (opens new window)
9ac38d5c3e9, (opens new window) - All margin and padding properties now support autocomplete and token values in xcss.
1.3.1
Patch Changes
- #39430, (opens new window)
88e4ac397ea, (opens new window) - Regenerates codegen artifacts as a result of introducting new accent interaction tokens. - Updated dependencies
1.3.0
Minor Changes
- #39264, (opens new window)
abfe7585461, (opens new window) - Improved type safety for Box.
1.2.3
Patch Changes
- #38772, (opens new window)
dfd014c15b3, (opens new window) - [ux] Pressable primitive: Adds missing cursor stylenot-allowedfor disabled buttons
1.2.2
Patch Changes
- #39350, (opens new window)
9a3fd8455fb, (opens new window) - StackalignBlockprop now accepts'stretch'which is also the default value for thealignBlockprop.
1.2.1
Patch Changes
- #38530, (opens new window)
9a88d718e48, (opens new window) - This package is now onboarded onto the product push model.
1.2.0
Minor Changes
- #38293, (opens new window)
37e0d67942b, (opens new window) - - Add missingxcsstype export forTextColor- Fixes a bug where the
xcssfunction did not acceptcolor.linkorcolor.link.pressedtoken values for text color
- Fixes a bug where the
1.1.0
Minor Changes
- #37917, (opens new window)
0116391a81e, (opens new window) - - SupportxcssinPressable- Remove dependency on
@atlaskit/focus-ring
- Remove dependency on
1.0.11
Patch Changes
- #38239, (opens new window)
30fb9fe0ff4, (opens new window) - Mark Pressable exports as unsafe (for internal use only)
1.0.10
Patch Changes
- #38000, (opens new window)
ac645224013, (opens new window) - Removes generic forxcssfn. Adds support for otherAtTypes.
1.0.9
Patch Changes
- #37947, (opens new window)
1859bc0b8c7, (opens new window) - Update the casing onxcssto ensure consistency with the API and package consumption.
1.0.8
Patch Changes
- #37805, (opens new window)
8986cf1ed16, (opens new window) - Reverts a change that allowed className to be applied to Box.
1.0.7
Patch Changes
- #37419, (opens new window)
6070ef412be, (opens new window) - Box now accepts any HTML element for itsasprop. Fixed issue where types may be incorrect depending on element used for theasprop.
1.0.6
Patch Changes
- #37400, (opens new window)
aa8ec75ace3, (opens new window) - Simplify types forShowandHidecomponents. There should be no difference in behavior.
1.0.5
Patch Changes
- #37278, (opens new window)
3fadbb8bf73, (opens new window) - Internal changes.
1.0.4
Patch Changes
- #37182, (opens new window)
74f7af9882b, (opens new window) - [ux] correct fallback color of token color.border.focused to meet contrast requirement
1.0.3
Patch Changes
- #36967, (opens new window)
298df94426c, (opens new window) - Regenerates codegen'd artifacts as a result of introducting new brand background design tokens. - Updated dependencies
1.0.2
Patch Changes
- #36605, (opens new window)
45ff2cd234f, (opens new window) - Fixes missing type inFlexcomponent, addsGridcomponent.
1.0.1
Patch Changes
- #36261, (opens new window)
cac98ccfb7d, (opens new window) - Introduces Flex component as common component for Stack, Inline.
1.0.0
Major Changes
-
#36313, (opens new window)
fec62731e2e, (opens new window) - This package is now in open beta and is no longer considered experimental. We will be making iterative improvements until GA. While the API is likely to be stable, we reserve the right to make changes if required. This version contains no changes whatsoever.P.S. The reason for the change is to aid package deduplication in the product.
0.16.0
Minor Changes
- #34769, (opens new window)
fe3ef707163, (opens new window) - Initial Pressable primitive (not ready for production)
0.15.3
Patch Changes
- #36279, (opens new window)
27f6081edf2, (opens new window) - Regenerates codegen hashes to surface changes to tokens
0.15.2
Patch Changes
- #36230, (opens new window)
ab4938b0c32, (opens new window) - Remove runtime dev warning for invalid token aliases.
0.15.1
Patch Changes
- #36218, (opens new window)
7c1c449eb96, (opens new window) - Updated space token descriptions.
0.15.0
Minor Changes
-
#36050, (opens new window)
8b04f3e78bd, (opens new window) - Adds basic<Show>and<Hide>responsive primitive components to make consistent, composable UIs without writing a dozen lines for just onedisplay: nonecss rule.Additionally:
- Adds some further examples, tests, and VRs.
- Tweaks some internals around building these reusable media query maps.
0.14.3
Patch Changes
- #36141, (opens new window)
4c026f170d6, (opens new window) - Remove warnings for non-token values passed to xcss in non-development environments.
0.14.2
Patch Changes
- #36072, (opens new window)
267a88221e8, (opens new window) - Internal change to update codegen.
0.14.1
Patch Changes
- #35133, (opens new window)
d79b6172a93, (opens new window) - Add documentation for responsive xcss.
0.14.0
Minor Changes
- #35712, (opens new window)
5af07899f5b, (opens new window) - Loosens types to better reflectxcssAPI.
0.13.0
Minor Changes
- #35149, (opens new window)
455677dbd4c, (opens new window) - - Documents the responsive media helpers into an Alpha state.- BREAKING: Removes the
xxlbreakpoint from all media queries (should be unused). - Adds a new
mediaexport withoutmedia.belowintentionally omitted. Should be unused externally, but used internally and still available via the existingUNSAFE_mediaexport. - Changes the underlying media queries to be a bit safer against unexpected overlap. This changes the breakpoints ever-so-slightly, but given browsers round fractional rems, it's impractical that this will have any unintended impact—if anything, it may fix a bug.
- BREAKING: Removes the
0.12.6
Patch Changes
- #35592, (opens new window)
3be327cdd6a, (opens new window) - Allow styles to be applied to Inline through xcss.
0.12.5
Patch Changes
- #35526, (opens new window)
55be182b904, (opens new window) - Regenerates codegen'd artifacts as a result of introducting new design tokens. - Updated dependencies
0.12.4
Patch Changes
- #35270, (opens new window)
b2706220d22, (opens new window) - Adds an experimentalUNSAFE_useMediaQueryhook to utilize our media query breakpoints in JavaScript. This is not SSR-safe and will returnnullor perhaps incorrectly depending on your SSR environment.
0.12.3
Patch Changes
- #35385, (opens new window)
79e94411a9c, (opens new window) - Bump to account for regeneration of tokens artifacts. - Updated dependencies
0.12.2
Patch Changes
- #33287, (opens new window)
e278a3b0ea9, (opens new window) - Allow loose auto completion and less strict types for some xcss properties.
0.12.1
Patch Changes
- #35248, (opens new window)
3f273cdd54f, (opens new window) - Allow for an Inline list item.
0.12.0
Minor Changes
- #35158, (opens new window)
407853b7b26, (opens new window) - Inline now has a new default value for thealignBlockprop:start- the previous default,stretch, is now an option that can be set explicitly as well.
0.11.0
Minor Changes
- #33833, (opens new window)
8bd6dc6027f, (opens new window) - Box backgroundColor prop now accepts full token names, abbreviated forms will no longer work. xcss now accepts full token names, abbreviated forms will no longer work.
0.10.1
Patch Changes
- #34922, (opens new window)
b6302963111, (opens new window) - Change border.radius.normal to be 3px instead of 4px.display: gridis now accepted forxcss.
0.10.0
Minor Changes
- #34913, (opens new window)
313d71fce9c, (opens new window) - Allow media queries at predefined breakpoints to be applied through xcss.
0.9.5
Patch Changes
- #34443, (opens new window)
61cb5313358, (opens new window) - Removing unused dependencies and dev dependencies
0.9.4
Patch Changes
- #34217, (opens new window)
b19d5c53b64, (opens new window) - Internal changest to the primitives package related to token generated styles. 4c4dcc3d571, (opens new window) - Updates primitives internal style map.- Updated dependencies
0.9.3
Patch Changes
- #33793, (opens new window)
9d00501a414, (opens new window) - Ensure legacy types are published for TS 4.5-4.8 - #33693, (opens new window)
e06d56c5a3d, (opens new window) - Adds type hinting forfillCSS property.
0.9.2
Patch Changes
- #33649, (opens new window)
41fae2c6f68, (opens new window) - Upgrade Typescript from4.5.5to4.9.5
0.9.1
Patch Changes
- #33120, (opens new window)
5a9e73494eb, (opens new window) - Updates to internal documentation.
0.9.0
Minor Changes
- #33258, (opens new window)
56507598609, (opens new window) - Skip minor dependency bump
Patch Changes
- Updated dependencies
0.8.9
Patch Changes
- #33127, (opens new window)
da1727baf77, (opens new window) - Allow non tokenised values to be passed through for tokenisable properties likepadding. Adds type hinting for zIndex CSS property.
0.8.8
Patch Changes
- #33092, (opens new window)
5a134a5128a, (opens new window) - Adds type hinting for boxShadow CSS property. Fixes bug with token to CSS custom property transformation for gap, rowGap, columnGap.
0.8.7
Patch Changes
- #32798, (opens new window)
bad2da77917, (opens new window) - The Box primitive now accepts more elements for the 'as' prop
0.8.6
Patch Changes
- #33022, (opens new window)
b5b26f3d947, (opens new window) - Bugfix: 'padding' prop no longer takes (incorrect) precedence over any other padding props.
0.8.5
Patch Changes
- #32786, (opens new window)
0969a35c1b0, (opens new window) - Allow type hinting for nested styles inside pseudo-selectors.
0.8.4
Patch Changes
- #32594, (opens new window)
7127e85932a, (opens new window) - Update codegen to explicitly list spacing prop values as string unions for compatibility with extract-react-types.
0.8.3
Patch Changes
- #32600, (opens new window)
64e7c72773e, (opens new window) - Update type to allow typehints for CSS color property.
0.8.2
Patch Changes
- #32543, (opens new window)
983b1e61003, (opens new window) - Fix Primitives pages being shown in prod despite being marked as alpha.
0.8.1
Patch Changes
- #32424, (opens new window)
2e01c9c74b5, (opens new window) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
0.8.0
Minor Changes
-
#32281, (opens new window)
ac4c8695d3f, (opens new window) - Constrain CSS values of flex-direction to account for accessibility considerations. -
#32296, (opens new window)
4d19bdd2218, (opens new window) - Inline:spaceprop now accepts values in the formspace.XXX. For example:space="space.100".rowSpaceprop now accepts values in the formspace.XXX. For example:rowSpace="space.100".
Stack:
spaceprop now accepts values in the formspace.XXX. For example:space="space.100".
0.7.1
Patch Changes
- #32311, (opens new window)
a02eed2974e, (opens new window) - Move codegen into @atlassian scope to publish it to private registry
0.7.0
Minor Changes
- #31841, (opens new window)
7e17a8b8934, (opens new window) - Box:- Add xcss prop to enable token powered styling.
0.6.0
Minor Changes
- #31885, (opens new window)
4d60ec345a5, (opens new window) - Remove internal/exploratory responsive props available in BaseBox.
0.5.0
Minor Changes
- #31818, (opens new window)
e379d04c74a, (opens new window) - Expose a new form ofxcssthat is parameterised so it can be statically bound to the intended usage context.
0.4.2
Patch Changes
- #31711, (opens new window)
fa26963628c, (opens new window) - RemovescustomStylesin favour ofxcss.
0.4.1
Patch Changes
- #31691, (opens new window)
8e03331eb8b, (opens new window) - Introduce 'as' prop to Inline and Stack so the resulting element can be controlled.
0.4.0
Minor Changes
- #31378, (opens new window)
003c381e37d, (opens new window) - Applywidth: 100%to Inline and Stack whengrowprop is set tofill.
0.3.3
Patch Changes
- #31206, (opens new window)
261420360ec, (opens new window) - Upgrades component types to support React 18.
0.3.2
Patch Changes
- #31242, (opens new window)
e7b64da97a1, (opens new window) - AddrowSpaceprop to override thespaceprop's spacing between rows.
0.3.1
Patch Changes
- #31127, (opens new window)
114d6a73f72, (opens new window) - Cleanup the experimental responsive box utilizing our responsive helpers.
0.3.0
Minor Changes
- #30894, (opens new window)
7c280fead96, (opens new window) - Add new responsive helpers, breakpoints config, and types into@atlaskit/primitives/responsive. Exports are treated asUNSAFE_and experimental until modified as they're being worked on in parallel to our Alpha Grid.
0.2.2
Patch Changes
- #30708, (opens new window)
bf90d854748, (opens new window) - Internal representation of Box primitive now supports some responsive styles
0.2.1
Patch Changes
- #30440, (opens new window)
5b886634089, (opens new window) - [ux] Change Box to be the default export from@atlaskit/primitives/box. Fix the negative value ofmargin-inlinein Inlineseparatornot being applied properly.
0.2.0
Minor Changes
- #29774, (opens new window)
228cce759e8, (opens new window) - Create Box component.
0.1.1
Patch Changes
- #30055, (opens new window)
fe50d8cb56c, (opens new window) - Internal change to add shape tokens to primitives. - Updated dependencies
0.1.0
Minor Changes
- #29608, (opens new window)
eeb8baa5d74, (opens new window) - - CreateStackcomponent- Create
Inlinecomponent
- Create
0.0.2
Patch Changes
- #29387, (opens new window)
069494fbea6, (opens new window) - Internal change. There is no behaviour or visual change. - Updated dependencies
0.0.1
Patch Changes
- #29450, (opens new window)
87074bc6cb3, (opens new window) - Initial release of package scaffold.