@atlaskit/tokens 11.0.0 → 11.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/codemods/css-to-design-tokens/lib/colors.tsx +6 -6
- package/codemods/css-to-design-tokens/lib/declaration.tsx +5 -5
- package/codemods/css-to-design-tokens/lib/meta.tsx +4 -4
- package/codemods/css-to-design-tokens/lib/tokens.tsx +1 -1
- package/codemods/css-to-design-tokens/transform.tsx +1 -1
- package/codemods/hypermod.config.tsx +7 -1
- package/codemods/remove-fallbacks-color/transform.tsx +1 -1
- package/codemods/theme-to-design-tokens/transform.tsx +5 -2
- package/codemods/theme-to-design-tokens/utils/ast-meta.tsx +1 -1
- package/codemods/theme-to-design-tokens/utils/ast.tsx +1 -1
- package/codemods/theme-to-design-tokens/utils/color.tsx +7 -5
- package/codemods/theme-to-design-tokens/utils/css-utils.tsx +1 -1
- package/codemods/theme-to-design-tokens/utils/fuzzy-search.tsx +6 -1
- package/codemods/theme-to-design-tokens/utils/legacy-colors.tsx +2 -2
- package/codemods/theme-to-design-tokens/utils/named-colors.tsx +1 -1
- package/codemods/theme-to-design-tokens/utils/string-utils.tsx +1 -1
- package/codemods/utils/tokens.tsx +2 -2
- package/dist/types/constants.d.ts +2 -2
- package/dist/types/theme-config.d.ts +11 -1
- package/dist/types/utils/color-mode-listeners.d.ts +1 -1
- package/dist/types/utils/contrast-mode-listeners.d.ts +1 -1
- package/dist/types-ts4.5/constants.d.ts +2 -2
- package/dist/types-ts4.5/theme-config.d.ts +9 -9
- package/dist/types-ts4.5/utils/color-mode-listeners.d.ts +1 -1
- package/dist/types-ts4.5/utils/contrast-mode-listeners.d.ts +1 -1
- package/offerings.json +16 -4
- package/package.json +9 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/tokens
|
|
2
2
|
|
|
3
|
+
## 11.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`18a6ca6a0c98c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/18a6ca6a0c98c) -
|
|
8
|
+
Widen React peer dependency from ^18.2.0 to ^18.2.0 || ^19.0.0 to support React 19
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 11.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`5db9e3f21a52f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5db9e3f21a52f) -
|
|
16
|
+
Internal refactoring
|
|
17
|
+
|
|
3
18
|
## 11.0.0
|
|
4
19
|
|
|
5
20
|
### Major Changes
|
|
@@ -48,22 +48,22 @@ const REGEXES = {
|
|
|
48
48
|
/^\s*(#([0-9a-f]{3}){1,2}|(rgba|hsla)\(\s*\d{1,3}%?\s*(,\s*\d{1,3}%?\s*){2},\s*-?\d*\.?\d+\s*\)|(rgb|hsl)\(\s*\d{1,3}%?\s*(,\s*\d{1,3}%?\s*){2}\)\s*|(lab|lch)\(\s*\d{1,3}%?\s+\d{1,3}%?\s+\d{1,3}%?\s*\)|hwb\(\s*\d{1,3}\s+\d{1,3}%?\s+\d{1,3}%?\s*\))\s*$/i,
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
export function isKnownCssVariable(value: string) {
|
|
51
|
+
export function isKnownCssVariable(value: string): boolean {
|
|
52
52
|
return value in knownVariables;
|
|
53
53
|
}
|
|
54
|
-
export function isRawColor(value: string) {
|
|
54
|
+
export function isRawColor(value: string): boolean {
|
|
55
55
|
return REGEXES.RAW_COLOR.test(value);
|
|
56
56
|
}
|
|
57
|
-
export function isNamedColor(value: string) {
|
|
57
|
+
export function isNamedColor(value: string): boolean {
|
|
58
58
|
return NAMED_COLORS.includes(value);
|
|
59
59
|
}
|
|
60
|
-
export function isGradient(value: string) {
|
|
60
|
+
export function isGradient(value: string): boolean {
|
|
61
61
|
return GRADIENT_TYPES.some((gradient) => value.startsWith(`${gradient}-gradient(`));
|
|
62
62
|
}
|
|
63
|
-
export function extractBetweenParentheses(value: string) {
|
|
63
|
+
export function extractBetweenParentheses(value: string): string {
|
|
64
64
|
const match = value.match(/\((.*?)\)/);
|
|
65
65
|
return match ? match[1] : '';
|
|
66
66
|
}
|
|
67
|
-
export function isLessFunction(value: string) {
|
|
67
|
+
export function isLessFunction(value: string): boolean {
|
|
68
68
|
return LESS_COLOR_FUNCTIONS.some((func) => value.startsWith(`${func}(`));
|
|
69
69
|
}
|
|
@@ -21,23 +21,23 @@ const COLOR_PROPERTIES = [
|
|
|
21
21
|
'text-stroke',
|
|
22
22
|
] as const;
|
|
23
23
|
|
|
24
|
-
export function isColorRelatedProperty(prop: string) {
|
|
24
|
+
export function isColorRelatedProperty(prop: string): boolean {
|
|
25
25
|
return COLOR_PROPERTIES.some((property) => property === prop);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export function isCssDeclaration(prop: string) {
|
|
28
|
+
export function isCssDeclaration(prop: string): boolean {
|
|
29
29
|
return prop.startsWith('--');
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export function extractCssVarName(prop: string) {
|
|
32
|
+
export function extractCssVarName(prop: string): string {
|
|
33
33
|
return prop.substring(prop.indexOf('(') + 1).split(/\,|\)/)[0];
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export function extractLessVarName(prop: string) {
|
|
36
|
+
export function extractLessVarName(prop: string): string {
|
|
37
37
|
return prop.substring(1);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export function splitCssValue(value: string) {
|
|
40
|
+
export function splitCssValue(value: string): RegExpMatchArray | null {
|
|
41
41
|
const regex = /(?:[^\s()]+|\((?:[^()]+|\([^()]*\))*\))+/g;
|
|
42
42
|
return value.match(regex);
|
|
43
43
|
}
|
|
@@ -65,7 +65,7 @@ const ADDITIONAL_META: Record<string, string> = {
|
|
|
65
65
|
red: 'danger',
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
export function cleanMeta(meta: string[]) {
|
|
68
|
+
export function cleanMeta(meta: string[]): string[] {
|
|
69
69
|
const cleanMeta = meta
|
|
70
70
|
.reduce(
|
|
71
71
|
(accum: string[], val: string) => [
|
|
@@ -141,7 +141,7 @@ function getParentSelectors(node: Node): string {
|
|
|
141
141
|
return '';
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
export function getCssVarMeta(cssVariable: string) {
|
|
144
|
+
export function getCssVarMeta(cssVariable: string): string[] {
|
|
145
145
|
const tokenName = extractCssVarName(cssVariable);
|
|
146
146
|
const meta = knownVariables[tokenName];
|
|
147
147
|
|
|
@@ -152,7 +152,7 @@ export function getCssVarMeta(cssVariable: string) {
|
|
|
152
152
|
return meta;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
export function getRawColorMeta(rawColor: string) {
|
|
155
|
+
export function getRawColorMeta(rawColor: string): string[] {
|
|
156
156
|
let cleanColor = rawColor.toLowerCase();
|
|
157
157
|
|
|
158
158
|
if (cleanColor.length === 4) {
|
|
@@ -162,6 +162,6 @@ export function getRawColorMeta(rawColor: string) {
|
|
|
162
162
|
return knownRawColors[cleanColor] ?? [];
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
export function getNamedColorMeta(namedColor: string) {
|
|
165
|
+
export function getNamedColorMeta(namedColor: string): string[] {
|
|
166
166
|
return knownNamedColors[namedColor] ?? [];
|
|
167
167
|
}
|
|
@@ -31,7 +31,7 @@ function tokenToVar(token: string) {
|
|
|
31
31
|
return `--ds-${token.replace(/\./g, '-').replace('color-', '').replace('elevation-', '')}`;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
export default function findToken(meta: string[]) {
|
|
34
|
+
export default function findToken(meta: string[]): string {
|
|
35
35
|
const filteredTokens = filterTokens(meta);
|
|
36
36
|
const tokenFuzzySearch = Search(filteredTokens, false);
|
|
37
37
|
const cleanSearchTerms = cleanMeta(meta).join(' ');
|
|
@@ -87,7 +87,7 @@ const plugin = (): Plugin => {
|
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
-
export default async function transformer(file: FileInfo | string) {
|
|
90
|
+
export default async function transformer(file: FileInfo | string): Promise<string> {
|
|
91
91
|
const processor = postcss([plugin()]);
|
|
92
92
|
const src = typeof file === 'string' ? file : file.source;
|
|
93
93
|
const { css } = await processor.process(src, POSTCSS_OPTIONS);
|
|
@@ -2,7 +2,13 @@ import cssToDesignTokens from './css-to-design-tokens/transform';
|
|
|
2
2
|
import removeFallbacksColor from './remove-fallbacks-color/transform';
|
|
3
3
|
import themeToDesignTokens from './theme-to-design-tokens/transform';
|
|
4
4
|
|
|
5
|
-
const config
|
|
5
|
+
const config: {
|
|
6
|
+
presets: {
|
|
7
|
+
'theme-to-design-tokens': typeof themeToDesignTokens;
|
|
8
|
+
'css-to-design-tokens': typeof cssToDesignTokens;
|
|
9
|
+
'remove-fallbacks-color': typeof removeFallbacksColor;
|
|
10
|
+
};
|
|
11
|
+
} = {
|
|
6
12
|
presets: {
|
|
7
13
|
'theme-to-design-tokens': themeToDesignTokens,
|
|
8
14
|
'css-to-design-tokens': cssToDesignTokens,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { hasImportDeclaration } from '@hypermod/utils';
|
|
2
2
|
import type { API, FileInfo } from 'jscodeshift';
|
|
3
3
|
|
|
4
|
-
export default async function transformer(file: FileInfo, api: API) {
|
|
4
|
+
export default async function transformer(file: FileInfo, api: API): Promise<string> {
|
|
5
5
|
const j = api.jscodeshift;
|
|
6
6
|
const source = j(file.source);
|
|
7
7
|
|
|
@@ -239,8 +239,11 @@ function parseCSSPropertyName(cssString: string) {
|
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
export default async function transformer(
|
|
243
|
+
file: FileInfo,
|
|
244
|
+
api: API,
|
|
245
|
+
_debug = false,
|
|
246
|
+
): Promise<string> {
|
|
244
247
|
const j = api.jscodeshift;
|
|
245
248
|
const source = j(file.source);
|
|
246
249
|
let transformed = false;
|
|
@@ -26,7 +26,7 @@ export function isParentOfToken(j: JSCodeshift, path: any): boolean {
|
|
|
26
26
|
return j(path).find(j.CallExpression, { callee: { name: 'token' } }).length > 0;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
export function getClosestDecendantOfType(j: JSCodeshift, path: ASTPath<any>, type: any) {
|
|
29
|
+
export function getClosestDecendantOfType(j: JSCodeshift, path: ASTPath<any>, type: any): any {
|
|
30
30
|
if (!isDecendantOfType(j, path, type)) {
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { legacyColorMixins, legacyColors } from './legacy-colors';
|
|
2
2
|
import { namedColors } from './named-colors';
|
|
3
3
|
|
|
4
|
-
export const isLegacyColor
|
|
4
|
+
export const isLegacyColor: (value: string) => boolean = (value: string) =>
|
|
5
|
+
legacyColors.includes(value);
|
|
5
6
|
|
|
6
|
-
export const isLegacyNamedColor
|
|
7
|
+
export const isLegacyNamedColor: (value: string) => boolean = (value: string) =>
|
|
8
|
+
legacyColorMixins.includes(value);
|
|
7
9
|
|
|
8
10
|
const colorRegexp =
|
|
9
11
|
/#(?:[a-f0-9]{3}|[a-f0-9]{6}|[a-f0-9]{8})\b|(?:rgb|rgba|hsl|hsla|lch|lab|color)\([^\)]*\)/;
|
|
10
12
|
|
|
11
|
-
export const includesHardCodedColor = (raw: string) => {
|
|
13
|
+
export const includesHardCodedColor: (raw: string) => boolean = (raw: string) => {
|
|
12
14
|
const value = raw.toLowerCase();
|
|
13
15
|
if (colorRegexp.exec(value)) {
|
|
14
16
|
return true;
|
|
@@ -23,7 +25,7 @@ export const includesHardCodedColor = (raw: string) => {
|
|
|
23
25
|
return false;
|
|
24
26
|
};
|
|
25
27
|
|
|
26
|
-
export const isHardCodedColor = (raw: string) => {
|
|
28
|
+
export const isHardCodedColor: (raw: string) => boolean = (raw: string) => {
|
|
27
29
|
const value = raw.toLowerCase();
|
|
28
30
|
|
|
29
31
|
if (namedColors.includes(value)) {
|
|
@@ -38,7 +40,7 @@ export const isHardCodedColor = (raw: string) => {
|
|
|
38
40
|
return false;
|
|
39
41
|
};
|
|
40
42
|
|
|
41
|
-
export function isBoldColor(color: string) {
|
|
43
|
+
export function isBoldColor(color: string): boolean {
|
|
42
44
|
const number = parseInt(color.replace(/^./, ''), 10);
|
|
43
45
|
return number > 300;
|
|
44
46
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isColorRelatedProperty } from '../../css-to-design-tokens/lib/declaration';
|
|
2
2
|
|
|
3
|
-
export function containsReplaceableCSSDeclarations(input: string) {
|
|
3
|
+
export function containsReplaceableCSSDeclarations(input: string): boolean {
|
|
4
4
|
const cssPattern = /(\S+)\s*:/g;
|
|
5
5
|
|
|
6
6
|
let match;
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Fuzzy search ripped from the internet.
|
|
5
5
|
*/
|
|
6
|
-
const FuzzySet
|
|
6
|
+
const FuzzySet: (
|
|
7
|
+
arr?: string[],
|
|
8
|
+
useLevenshtein?: boolean,
|
|
9
|
+
gramSizeLower?: number,
|
|
10
|
+
gramSizeUpper?: number,
|
|
11
|
+
) => any = function (
|
|
7
12
|
arr: string[] = [],
|
|
8
13
|
useLevenshtein?: boolean,
|
|
9
14
|
gramSizeLower: number = 2,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const legacyColors = [
|
|
1
|
+
export const legacyColors: string[] = [
|
|
2
2
|
'R50',
|
|
3
3
|
'R75',
|
|
4
4
|
'R100',
|
|
@@ -115,7 +115,7 @@ export const legacyColors = [
|
|
|
115
115
|
'DN10A',
|
|
116
116
|
];
|
|
117
117
|
|
|
118
|
-
export const legacyColorMixins = [
|
|
118
|
+
export const legacyColorMixins: string[] = [
|
|
119
119
|
'background',
|
|
120
120
|
'backgroundActive',
|
|
121
121
|
'backgroundHover',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const kebabize = (str: string) =>
|
|
1
|
+
export const kebabize: (str: string) => string = (str: string) =>
|
|
2
2
|
str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, ($, ofs) => (ofs ? '-' : '') + $.toLowerCase());
|
|
3
3
|
|
|
4
4
|
export function findFirstNonspaceIndexAfter(text: string, index: number): number {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const activeTokens = [
|
|
1
|
+
export const activeTokens: string[] = [
|
|
2
2
|
'color.text',
|
|
3
3
|
'color.text.accent.lime',
|
|
4
4
|
'color.text.accent.lime.bolder',
|
|
@@ -283,7 +283,7 @@ export const activeTokens = [
|
|
|
283
283
|
'utility.elevation.surface.current',
|
|
284
284
|
];
|
|
285
285
|
|
|
286
|
-
export const uniqueWordsFromTokens = [
|
|
286
|
+
export const uniqueWordsFromTokens: string[] = [
|
|
287
287
|
'color',
|
|
288
288
|
'text',
|
|
289
289
|
'accent',
|
|
@@ -5,5 +5,5 @@ export declare const CONTRAST_MODE_ATTRIBUTE = "data-contrast-mode";
|
|
|
5
5
|
export declare const CUSTOM_THEME_ATTRIBUTE = "data-custom-theme";
|
|
6
6
|
export declare const CSS_PREFIX = "ds";
|
|
7
7
|
export declare const CSS_VAR_FULL: string[];
|
|
8
|
-
export declare const TOKEN_NOT_FOUND_CSS_VAR
|
|
9
|
-
export declare const CURRENT_SURFACE_CSS_VAR:
|
|
8
|
+
export declare const TOKEN_NOT_FOUND_CSS_VAR: '--ds-token-not-found';
|
|
9
|
+
export declare const CURRENT_SURFACE_CSS_VAR: '--ds-elevation-surface-current';
|
|
@@ -50,7 +50,17 @@ export type ThemeIds = (typeof themeIds)[number];
|
|
|
50
50
|
*/
|
|
51
51
|
declare const themeOverrideIds: readonly [];
|
|
52
52
|
export type ThemeOverrideIds = (typeof themeOverrideIds)[number];
|
|
53
|
-
export declare const themeIdsWithOverrides: readonly [
|
|
53
|
+
export declare const themeIdsWithOverrides: readonly [
|
|
54
|
+
'light-increased-contrast',
|
|
55
|
+
'light',
|
|
56
|
+
'light-future',
|
|
57
|
+
'dark',
|
|
58
|
+
'dark-future',
|
|
59
|
+
'dark-increased-contrast',
|
|
60
|
+
'spacing',
|
|
61
|
+
'shape',
|
|
62
|
+
'typography'
|
|
63
|
+
];
|
|
54
64
|
export type ThemeIdsWithOverrides = (typeof themeIdsWithOverrides)[number];
|
|
55
65
|
/**
|
|
56
66
|
* Theme to use a base. This will create the theme as
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type UnbindFn } from 'bind-event-listener';
|
|
2
2
|
declare class ContrastModeObserver {
|
|
3
3
|
unbindContrastChangeListener: UnbindFn | null;
|
|
4
|
-
getContrastMode():
|
|
4
|
+
getContrastMode(): 'more' | 'no-preference';
|
|
5
5
|
bind(): void;
|
|
6
6
|
unbind(): void;
|
|
7
7
|
}
|
|
@@ -5,5 +5,5 @@ export declare const CONTRAST_MODE_ATTRIBUTE = "data-contrast-mode";
|
|
|
5
5
|
export declare const CUSTOM_THEME_ATTRIBUTE = "data-custom-theme";
|
|
6
6
|
export declare const CSS_PREFIX = "ds";
|
|
7
7
|
export declare const CSS_VAR_FULL: string[];
|
|
8
|
-
export declare const TOKEN_NOT_FOUND_CSS_VAR
|
|
9
|
-
export declare const CURRENT_SURFACE_CSS_VAR:
|
|
8
|
+
export declare const TOKEN_NOT_FOUND_CSS_VAR: '--ds-token-not-found';
|
|
9
|
+
export declare const CURRENT_SURFACE_CSS_VAR: '--ds-elevation-surface-current';
|
|
@@ -70,15 +70,15 @@ declare const themeOverrideIds: readonly [
|
|
|
70
70
|
];
|
|
71
71
|
export type ThemeOverrideIds = (typeof themeOverrideIds)[number];
|
|
72
72
|
export declare const themeIdsWithOverrides: readonly [
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
73
|
+
'light-increased-contrast',
|
|
74
|
+
'light',
|
|
75
|
+
'light-future',
|
|
76
|
+
'dark',
|
|
77
|
+
'dark-future',
|
|
78
|
+
'dark-increased-contrast',
|
|
79
|
+
'spacing',
|
|
80
|
+
'shape',
|
|
81
|
+
'typography'
|
|
82
82
|
];
|
|
83
83
|
export type ThemeIdsWithOverrides = (typeof themeIdsWithOverrides)[number];
|
|
84
84
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type UnbindFn } from 'bind-event-listener';
|
|
2
2
|
declare class ContrastModeObserver {
|
|
3
3
|
unbindContrastChangeListener: UnbindFn | null;
|
|
4
|
-
getContrastMode():
|
|
4
|
+
getContrastMode(): 'more' | 'no-preference';
|
|
5
5
|
bind(): void;
|
|
6
6
|
unbind(): void;
|
|
7
7
|
}
|
package/offerings.json
CHANGED
|
@@ -8,7 +8,19 @@
|
|
|
8
8
|
"type": "named"
|
|
9
9
|
},
|
|
10
10
|
"type": "function",
|
|
11
|
-
"keywords": [
|
|
11
|
+
"keywords": [
|
|
12
|
+
"token",
|
|
13
|
+
"design",
|
|
14
|
+
"system",
|
|
15
|
+
"color",
|
|
16
|
+
"spacing",
|
|
17
|
+
"typography",
|
|
18
|
+
"radius",
|
|
19
|
+
"theme",
|
|
20
|
+
"css",
|
|
21
|
+
"style",
|
|
22
|
+
"variable"
|
|
23
|
+
],
|
|
12
24
|
"categories": ["tokens"],
|
|
13
25
|
"shortDescription": "Design tokens provide consistent, semantic values for colors, spacing, typography, and other design properties across the Atlassian Design System. Use tokens instead of hardcoded values to ensure consistency and proper theming.",
|
|
14
26
|
"status": "general-availability",
|
|
@@ -18,8 +30,8 @@
|
|
|
18
30
|
"Use semantic color names (success, warning, danger) for better meaning"
|
|
19
31
|
],
|
|
20
32
|
"usageGuidelines": [
|
|
21
|
-
"AVOID hardcoding any CSS values where a token exists for that type; in
|
|
22
|
-
"Use the `token()` function with
|
|
33
|
+
"AVOID hardcoding any CSS values where a token exists for that type; in many cases you may be forced to use a token",
|
|
34
|
+
"Use the `token()` function with CSS-in-JS",
|
|
23
35
|
"Use semantic token names for better maintainability"
|
|
24
36
|
],
|
|
25
37
|
"generativeInstructions": [
|
|
@@ -27,6 +39,6 @@
|
|
|
27
39
|
"./docs/ai/spacing-instructions.md",
|
|
28
40
|
"./docs/ai/border-radius-instructions.md"
|
|
29
41
|
],
|
|
30
|
-
"examples": ["./examples/ai/
|
|
42
|
+
"examples": ["./examples/ai/basic.tsx"]
|
|
31
43
|
}
|
|
32
44
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tokens",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.2",
|
|
4
4
|
"description": "Design tokens are the single source of truth to name and store design decisions.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,33 +38,33 @@
|
|
|
38
38
|
"bind-event-listener": "^3.0.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"react": "^18.2.0"
|
|
41
|
+
"react": "^18.2.0 || ^19.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@af/formatting": "workspace:^",
|
|
45
45
|
"@af/visual-regression": "workspace:^",
|
|
46
|
-
"@atlaskit/avatar": "^25.
|
|
46
|
+
"@atlaskit/avatar": "^25.8.0",
|
|
47
47
|
"@atlaskit/button": "^23.9.0",
|
|
48
48
|
"@atlaskit/calendar": "^17.2.0",
|
|
49
49
|
"@atlaskit/checkbox": "^17.3.0",
|
|
50
50
|
"@atlaskit/code": "^17.4.0",
|
|
51
51
|
"@atlaskit/css": "^0.19.0",
|
|
52
|
-
"@atlaskit/docs": "^11.
|
|
53
|
-
"@atlaskit/dropdown-menu": "^16.
|
|
52
|
+
"@atlaskit/docs": "^11.5.0",
|
|
53
|
+
"@atlaskit/dropdown-menu": "^16.5.0",
|
|
54
54
|
"@atlaskit/dynamic-table": "^18.3.0",
|
|
55
55
|
"@atlaskit/form": "^15.3.0",
|
|
56
56
|
"@atlaskit/grid": "^0.18.0",
|
|
57
|
-
"@atlaskit/heading": "^5.
|
|
58
|
-
"@atlaskit/icon": "^
|
|
57
|
+
"@atlaskit/heading": "^5.3.0",
|
|
58
|
+
"@atlaskit/icon": "^32.0.0",
|
|
59
59
|
"@atlaskit/inline-message": "^15.5.0",
|
|
60
60
|
"@atlaskit/link": "^3.3.0",
|
|
61
|
-
"@atlaskit/lozenge": "^13.
|
|
61
|
+
"@atlaskit/lozenge": "^13.4.0",
|
|
62
62
|
"@atlaskit/popup": "^4.13.0",
|
|
63
63
|
"@atlaskit/primitives": "^18.0.0",
|
|
64
64
|
"@atlaskit/radio": "^8.4.0",
|
|
65
65
|
"@atlaskit/section-message": "^8.12.0",
|
|
66
66
|
"@atlaskit/select": "^21.7.0",
|
|
67
|
-
"@atlaskit/tag": "^14.
|
|
67
|
+
"@atlaskit/tag": "^14.5.0",
|
|
68
68
|
"@atlaskit/textarea": "^8.2.0",
|
|
69
69
|
"@atlaskit/textfield": "^8.2.0",
|
|
70
70
|
"@atlaskit/theme": "^21.0.0",
|
|
@@ -122,9 +122,6 @@
|
|
|
122
122
|
"platform_increased-contrast-themes": {
|
|
123
123
|
"type": "boolean"
|
|
124
124
|
},
|
|
125
|
-
"should-render-to-parent-should-be-true-design-syst": {
|
|
126
|
-
"type": "boolean"
|
|
127
|
-
},
|
|
128
125
|
"platform-dst-shape-theme-default": {
|
|
129
126
|
"type": "boolean"
|
|
130
127
|
},
|