@atlaskit/editor-palette 1.4.0 → 1.4.1
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 +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/background.d.ts +3 -3
- package/dist/types/border.d.ts +2 -2
- package/dist/types/table-charts.d.ts +3 -3
- package/dist/types/text.d.ts +2 -2
- package/package.json +11 -3
package/CHANGELOG.md
CHANGED
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
*/
|
|
20
20
|
export declare function hexToEditorBackgroundPaletteColor<HexColor extends string>(hexColor: HexColor): HexColor extends EditorBackgroundPaletteKey ? EditorBackgroundPalette[HexColor]['token'] : string | undefined;
|
|
21
21
|
export declare function hexToEditorBackgroundPaletteColorTokenName<HexColor extends string>(hexColor: HexColor): HexColor extends EditorBackgroundPaletteKey ? EditorBackgroundPalette[HexColor]['tokenName'] : EditorBackgroundPaletteTokenNames | undefined;
|
|
22
|
-
|
|
23
|
-
export
|
|
22
|
+
type EditorBackgroundPalette = typeof editorBackgroundPalette;
|
|
23
|
+
export type EditorBackgroundPaletteKey = keyof EditorBackgroundPalette;
|
|
24
24
|
export declare const editorBackgroundPalette: {
|
|
25
25
|
/** blue - light */
|
|
26
26
|
"#DEEBFF": {
|
|
@@ -129,5 +129,5 @@ export declare const editorBackgroundPalette: {
|
|
|
129
129
|
};
|
|
130
130
|
};
|
|
131
131
|
declare const tokenNames: ("color.background.accent.blue.subtlest" | "color.background.accent.blue.subtler" | "color.background.accent.blue.subtle" | "color.background.accent.teal.subtlest" | "color.background.accent.teal.subtler" | "color.background.accent.teal.subtle" | "color.background.accent.green.subtlest" | "color.background.accent.green.subtler" | "color.background.accent.green.subtle" | "color.background.accent.yellow.subtlest" | "color.background.accent.yellow.subtler" | "color.background.accent.orange.subtle" | "color.background.accent.red.subtlest" | "color.background.accent.red.subtler" | "color.background.accent.red.subtle" | "color.background.accent.purple.subtlest" | "color.background.accent.purple.subtler" | "color.background.accent.purple.subtle" | "elevation.surface" | "color.background.accent.gray.subtlest" | "color.background.accent.gray.subtle")[];
|
|
132
|
-
export
|
|
132
|
+
export type EditorBackgroundPaletteTokenNames = (typeof tokenNames)[number];
|
|
133
133
|
export {};
|
package/dist/types/border.d.ts
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
* - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
|
|
17
17
|
*/
|
|
18
18
|
export declare function hexToEditorBorderPaletteColor<HexColor extends string>(hexColor: HexColor): HexColor extends EditorBorderPaletteKey ? EditorBorderPalette[HexColor] : string | undefined;
|
|
19
|
-
|
|
20
|
-
export
|
|
19
|
+
type EditorBorderPalette = typeof editorBorderPalette;
|
|
20
|
+
export type EditorBorderPaletteKey = keyof EditorBorderPalette;
|
|
21
21
|
export declare const editorBorderPalette: {
|
|
22
22
|
/** gray - subtle */
|
|
23
23
|
"#091E4224": "var(--ds-border, #091E4224)";
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
*/
|
|
20
20
|
export declare function hexToEditorTableChartsPaletteColor<HexColor extends string>(hexColor: HexColor): HexColor extends EditorTableChartsPaletteKey ? EditorTableChartsPalette[HexColor]['token'] : string | undefined;
|
|
21
21
|
export declare function hexToEditorTableChartsPaletteColorTokenName<HexColor extends string>(hexColor: HexColor): HexColor extends EditorTableChartsPaletteKey ? EditorTableChartsPalette[HexColor]['tokenName'] : EditorBackgroundPaletteTokenNames | undefined;
|
|
22
|
-
|
|
23
|
-
export
|
|
22
|
+
type EditorTableChartsPalette = typeof editorTableChartsPalette;
|
|
23
|
+
export type EditorTableChartsPaletteKey = keyof EditorTableChartsPalette;
|
|
24
24
|
/**
|
|
25
25
|
* Tokenize hex codes into DST chart colors or
|
|
26
26
|
* into DST background.accent colors.
|
|
@@ -178,5 +178,5 @@ declare const editorTableChartsPalette: {
|
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
declare const tokenNames: ("color.background.accent.blue.subtle" | "color.background.accent.teal.subtle" | "color.background.accent.green.subtle" | "color.background.accent.orange.subtle" | "color.background.accent.red.subtle" | "color.background.accent.purple.subtle" | "color.background.accent.yellow.subtle" | "color.background.accent.magenta.subtle" | "color.background.accent.gray.subtler" | "color.chart.blue.bold" | "color.chart.teal.bold" | "color.chart.green.bold" | "color.chart.yellow.bold" | "color.chart.orange.bold" | "color.chart.red.bold" | "color.chart.magenta.bold" | "color.chart.purple.bold" | "color.chart.gray.bold" | "color.chart.blue.bolder" | "color.chart.teal.bolder" | "color.chart.green.bolder" | "color.chart.yellow.bolder" | "color.chart.orange.bolder" | "color.chart.red.bolder" | "color.chart.magenta.bolder" | "color.chart.purple.bolder" | "color.chart.gray.bolder" | "color.chart.blue.boldest" | "color.chart.teal.boldest" | "color.chart.green.boldest" | "color.chart.yellow.boldest" | "color.chart.orange.boldest" | "color.chart.red.boldest" | "color.chart.magenta.boldest" | "color.chart.purple.boldest" | "color.chart.gray.boldest")[];
|
|
181
|
-
export
|
|
181
|
+
export type EditorBackgroundPaletteTokenNames = (typeof tokenNames)[number];
|
|
182
182
|
export {};
|
package/dist/types/text.d.ts
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
* - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
|
|
17
17
|
*/
|
|
18
18
|
export declare function hexToEditorTextPaletteColor<HexColor extends string>(hexColor: HexColor): HexColor extends EditorTextPaletteKey ? EditorTextPalette[HexColor] : string | undefined;
|
|
19
|
-
|
|
20
|
-
export
|
|
19
|
+
type EditorTextPalette = typeof editorTextPalette;
|
|
20
|
+
export type EditorTextPaletteKey = keyof EditorTextPalette;
|
|
21
21
|
export declare const editorTextPalette: {
|
|
22
22
|
/** blue - light */
|
|
23
23
|
"#B3D4FF": "var(--ds-background-accent-blue-subtler, #B3D4FF)";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-palette",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "The editor palette",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,6 +19,14 @@
|
|
|
19
19
|
"module": "dist/esm/index.js",
|
|
20
20
|
"module:es2019": "dist/es2019/index.js",
|
|
21
21
|
"types": "dist/types/index.d.ts",
|
|
22
|
+
"typesVersions": {
|
|
23
|
+
">=4.5 <4.9": {
|
|
24
|
+
"*": [
|
|
25
|
+
"dist/types-ts4.5/*",
|
|
26
|
+
"dist/types-ts4.5/index.d.ts"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
22
30
|
"sideEffects": false,
|
|
23
31
|
"atlaskit:src": "src/index.ts",
|
|
24
32
|
"af:exports": {
|
|
@@ -31,14 +39,14 @@
|
|
|
31
39
|
"@atlaskit/docs": "*",
|
|
32
40
|
"@atlaskit/section-message": "^6.4.0",
|
|
33
41
|
"@atlaskit/ssr": "*",
|
|
34
|
-
"@atlaskit/tokens": "^1.
|
|
42
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
35
43
|
"@atlaskit/visual-regression": "*",
|
|
36
44
|
"@atlaskit/webdriver-runner": "*",
|
|
37
45
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
38
46
|
"@testing-library/react": "^12.1.5",
|
|
39
47
|
"react": "^16.8.0",
|
|
40
48
|
"react-dom": "^16.8.0",
|
|
41
|
-
"typescript": "4.
|
|
49
|
+
"typescript": "~4.9.5",
|
|
42
50
|
"wait-for-expect": "^1.2.0"
|
|
43
51
|
},
|
|
44
52
|
"techstack": {
|