@atlaskit/adf-schema 56.3.0 → 56.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 +13 -0
- package/dist/cjs/entry-points/schema-tableNodes.js +0 -6
- package/dist/cjs/entry-points/tableNodes.js +0 -6
- package/dist/cjs/index.js +0 -6
- package/dist/cjs/schema/index.js +0 -6
- package/dist/cjs/schema/nodes/index.js +0 -6
- package/dist/cjs/schema/nodes/tableNodes.js +2 -20
- package/dist/cjs/utils/colors.js +1 -14
- package/dist/cjs/utils/editor-palette.js +3 -121
- package/dist/es2019/entry-points/schema-tableNodes.js +1 -1
- package/dist/es2019/entry-points/tableNodes.js +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/index.js +1 -1
- package/dist/es2019/schema/nodes/tableNodes.js +2 -17
- package/dist/es2019/utils/colors.js +0 -13
- package/dist/es2019/utils/editor-palette.js +3 -89
- package/dist/esm/entry-points/schema-tableNodes.js +1 -1
- package/dist/esm/entry-points/tableNodes.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/index.js +1 -1
- package/dist/esm/schema/nodes/tableNodes.js +2 -20
- package/dist/esm/utils/colors.js +0 -13
- package/dist/esm/utils/editor-palette.js +3 -121
- package/dist/types/entry-points/schema-tableNodes.d.ts +1 -1
- package/dist/types/entry-points/tableNodes.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/index.d.ts +1 -1
- package/dist/types/schema/nodes/tableNodes.d.ts +0 -6
- package/dist/types/utils/colors.d.ts +0 -13
- package/dist/types/utils/editor-palette.d.ts +0 -80
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/adf-schema
|
|
2
2
|
|
|
3
|
+
## 56.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 56.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`7cecf41634d18`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7cecf41634d18) -
|
|
14
|
+
Revert the lime, orange, and magenta table cell background color options.
|
|
15
|
+
|
|
3
16
|
## 56.3.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -39,12 +39,6 @@ Object.defineProperty(exports, "tableBackgroundColorPalette", {
|
|
|
39
39
|
return _tableNodes.tableBackgroundColorPalette;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
Object.defineProperty(exports, "tableBackgroundColorPaletteNew", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function get() {
|
|
45
|
-
return _tableNodes.tableBackgroundColorPaletteNew;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
42
|
Object.defineProperty(exports, "tableCell", {
|
|
49
43
|
enumerable: true,
|
|
50
44
|
get: function get() {
|
|
@@ -39,12 +39,6 @@ Object.defineProperty(exports, "tableBackgroundColorPalette", {
|
|
|
39
39
|
return _tableNodes.tableBackgroundColorPalette;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
Object.defineProperty(exports, "tableBackgroundColorPaletteNew", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function get() {
|
|
45
|
-
return _tableNodes.tableBackgroundColorPaletteNew;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
42
|
Object.defineProperty(exports, "tableCell", {
|
|
49
43
|
enumerable: true,
|
|
50
44
|
get: function get() {
|
package/dist/cjs/index.js
CHANGED
|
@@ -1101,12 +1101,6 @@ Object.defineProperty(exports, "tableBackgroundColorPalette", {
|
|
|
1101
1101
|
return _schema.tableBackgroundColorPalette;
|
|
1102
1102
|
}
|
|
1103
1103
|
});
|
|
1104
|
-
Object.defineProperty(exports, "tableBackgroundColorPaletteNew", {
|
|
1105
|
-
enumerable: true,
|
|
1106
|
-
get: function get() {
|
|
1107
|
-
return _schema.tableBackgroundColorPaletteNew;
|
|
1108
|
-
}
|
|
1109
|
-
});
|
|
1110
1104
|
Object.defineProperty(exports, "tableCell", {
|
|
1111
1105
|
enumerable: true,
|
|
1112
1106
|
get: function get() {
|
package/dist/cjs/schema/index.js
CHANGED
|
@@ -753,12 +753,6 @@ Object.defineProperty(exports, "tableBackgroundColorPalette", {
|
|
|
753
753
|
return _nodes.tableBackgroundColorPalette;
|
|
754
754
|
}
|
|
755
755
|
});
|
|
756
|
-
Object.defineProperty(exports, "tableBackgroundColorPaletteNew", {
|
|
757
|
-
enumerable: true,
|
|
758
|
-
get: function get() {
|
|
759
|
-
return _nodes.tableBackgroundColorPaletteNew;
|
|
760
|
-
}
|
|
761
|
-
});
|
|
762
756
|
Object.defineProperty(exports, "tableCell", {
|
|
763
757
|
enumerable: true,
|
|
764
758
|
get: function get() {
|
|
@@ -556,12 +556,6 @@ Object.defineProperty(exports, "tableBackgroundColorPalette", {
|
|
|
556
556
|
return _tableNodes.tableBackgroundColorPalette;
|
|
557
557
|
}
|
|
558
558
|
});
|
|
559
|
-
Object.defineProperty(exports, "tableBackgroundColorPaletteNew", {
|
|
560
|
-
enumerable: true,
|
|
561
|
-
get: function get() {
|
|
562
|
-
return _tableNodes.tableBackgroundColorPaletteNew;
|
|
563
|
-
}
|
|
564
|
-
});
|
|
565
559
|
Object.defineProperty(exports, "tableCell", {
|
|
566
560
|
enumerable: true,
|
|
567
561
|
get: function get() {
|
|
@@ -4,12 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.toJSONTableHeader = exports.toJSONTableCell = exports.tableWithNestedTable = exports.tableWithCustomWidth = exports.tableToJSON = exports.tableStage0 = exports.tableRowWithNestedTableWithLocalId = exports.tableRowWithNestedTable = exports.tableRowWithLocalId = exports.tableRow = exports.tablePrefixSelector = exports.tableHeaderWithNestedTableWithLocalId = exports.tableHeaderWithNestedTableStage0 = exports.tableHeaderWithNestedTable = exports.tableHeaderWithLocalId = exports.tableHeaderStage0 = exports.tableHeaderSelector = exports.tableHeader = exports.tableCellWithNestedTableWithLocalId = exports.tableCellWithNestedTableStage0 = exports.tableCellWithNestedTable = exports.tableCellWithLocalId = exports.tableCellStage0 = exports.tableCellSelector = exports.tableCellContentWrapperSelector = exports.tableCellContentDomSelector = exports.tableCell = exports.
|
|
7
|
+
exports.toJSONTableHeader = exports.toJSONTableCell = exports.tableWithNestedTable = exports.tableWithCustomWidth = exports.tableToJSON = exports.tableStage0 = exports.tableRowWithNestedTableWithLocalId = exports.tableRowWithNestedTable = exports.tableRowWithLocalId = exports.tableRow = exports.tablePrefixSelector = exports.tableHeaderWithNestedTableWithLocalId = exports.tableHeaderWithNestedTableStage0 = exports.tableHeaderWithNestedTable = exports.tableHeaderWithLocalId = exports.tableHeaderStage0 = exports.tableHeaderSelector = exports.tableHeader = exports.tableCellWithNestedTableWithLocalId = exports.tableCellWithNestedTableStage0 = exports.tableCellWithNestedTable = exports.tableCellWithLocalId = exports.tableCellStage0 = exports.tableCellSelector = exports.tableCellContentWrapperSelector = exports.tableCellContentDomSelector = exports.tableCell = exports.tableBackgroundColorPalette = exports.tableBackgroundColorNames = exports.tableBackgroundBorderColor = exports.table = exports.setGlobalTheme = exports.getCellDomAttrs = exports.getCellAttrs = void 0;
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _editorPalette = require("../../utils/editor-palette");
|
|
11
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
11
|
var _colors = require("../../utils/colors");
|
|
14
12
|
var _uuid = require("../../utils/uuid");
|
|
15
13
|
var _lchColorInversion = require("../../utils/lch-color-inversion");
|
|
@@ -184,8 +182,7 @@ var getCellDomAttrs = exports.getCellDomAttrs = function getCellDomAttrs(node) {
|
|
|
184
182
|
attrs['data-cell-background'] = color;
|
|
185
183
|
}
|
|
186
184
|
if (typeof color === 'string') {
|
|
187
|
-
|
|
188
|
-
attrs.colorname = palette.get(color.toLowerCase());
|
|
185
|
+
attrs.colorname = tableBackgroundColorPalette.get(color.toLowerCase());
|
|
189
186
|
}
|
|
190
187
|
}
|
|
191
188
|
}
|
|
@@ -203,28 +200,13 @@ var getCellDomAttrs = exports.getCellDomAttrs = function getCellDomAttrs(node) {
|
|
|
203
200
|
return attrs;
|
|
204
201
|
};
|
|
205
202
|
var tableBackgroundColorPalette = exports.tableBackgroundColorPalette = new Map();
|
|
206
|
-
/**
|
|
207
|
-
* Expanded 10-column (30-entry) palette that adds lime, orange, and magenta columns
|
|
208
|
-
* and updates the bold row to use `subtler.hovered` design tokens.
|
|
209
|
-
* This is a superset of {@link tableBackgroundColorPalette}.
|
|
210
|
-
*/
|
|
211
|
-
var tableBackgroundColorPaletteNew = exports.tableBackgroundColorPaletteNew = new Map();
|
|
212
203
|
var tableBackgroundBorderColor = exports.tableBackgroundBorderColor = (0, _colors.hexToRgba)(_colors.N800, 0.12) || _colors.N0;
|
|
213
204
|
var tableBackgroundColorNames = exports.tableBackgroundColorNames = new Map();
|
|
214
|
-
|
|
215
|
-
// Original 7-column palette — kept as the default export so external consumers
|
|
216
|
-
// are not broken. When cleaning up the platform_editor_lovability_text_bg_color experiment, check if this can be removed
|
|
217
205
|
[[_colors.N0, 'White'], [_colors.B50, 'Light blue'], [_colors.T50, 'Light teal'], [_colors.G50, 'Light green'], [_colors.Y50, 'Light yellow'], [_colors.R50, 'Light red'], [_colors.P50, 'Light purple'], [_colors.N20, 'Light gray'], [_colors.B75, 'Blue'], [_colors.T75, 'Teal'], [_colors.G75, 'Green'], [_colors.Y75, 'Yellow'], [_colors.R75, 'Red'], [_colors.P75, 'Purple'], [_colors.N60, 'Gray'], [_colors.B100, 'Dark blue'], [_colors.T100, 'Dark teal'], [_colors.G200, 'Dark green'], [_colors.Y200, 'Dark yellow'], [_colors.R100, 'Dark red'], [_colors.P100, 'Dark purple']].forEach(function (_ref) {
|
|
218
206
|
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
|
219
207
|
colorValue = _ref2[0],
|
|
220
208
|
colorName = _ref2[1];
|
|
221
209
|
tableBackgroundColorPalette.set(colorValue.toLowerCase(), colorName);
|
|
222
|
-
});
|
|
223
|
-
[[_colors.N0, 'White'], [_colors.B50, 'Light blue'], [_colors.T50, 'Light teal'], [_colors.G50, 'Light green'], [_colors.L50, 'Subtle lime'], [_colors.Y50, 'Light yellow'], [_colors.Orange50, 'Subtle orange'], [_colors.R50, 'Light red'], [_colors.M50, 'Subtle magenta'], [_colors.P50, 'Light purple'], [_colors.N20, 'Light gray'], [_colors.B75, 'Blue'], [_colors.T75, 'Teal'], [_colors.G75, 'Green'], [_colors.L200, 'Lime'], [_colors.Y75, 'Yellow'], [_colors.Orange200, 'Orange'], [_colors.R75, 'Red'], [_colors.M200, 'Magenta'], [_colors.P75, 'Purple'], [_colors.GrayBold, 'Bold gray'], [_colors.BlueBold, 'Bold blue'], [_colors.TealBold, 'Bold teal'], [_colors.GreenBold, 'Bold green'], [_colors.L400, 'Bold lime'], [_colors.YellowBold, 'Bold yellow'], [_colors.Orange400, 'Bold orange'], [_colors.RedBold, 'Bold red'], [_colors.M400, 'Bold magenta'], [_colors.PurpleBold, 'Bold purple']].forEach(function (_ref3) {
|
|
224
|
-
var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
|
|
225
|
-
colorValue = _ref4[0],
|
|
226
|
-
colorName = _ref4[1];
|
|
227
|
-
tableBackgroundColorPaletteNew.set(colorValue.toLowerCase(), colorName);
|
|
228
210
|
tableBackgroundColorNames.set(colorName.toLowerCase(), colorValue.toLowerCase());
|
|
229
211
|
});
|
|
230
212
|
|
package/dist/cjs/utils/colors.js
CHANGED
|
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.Yellow200 = exports.Y800 = exports.Y75 = exports.Y600 = exports.Y500 = exports.Y50 = exports.Y400 = exports.Y200 = exports.T75 = exports.T500 = exports.T50 = exports.T300 = exports.T200 = exports.T100 = exports.R75 = exports.R500 = exports.R50 = exports.R400 = exports.R300 = exports.R200 = exports.R100 = exports.P75 = exports.P500 = exports.P50 = exports.P400 = exports.P300 = exports.P200 = exports.P100 = exports.Orange200 = exports.O800 = exports.O600 = exports.O200 = exports.Neutral300 = exports.N90 = exports.N800 = exports.N80 = exports.N600 = exports.N60 = exports.N500 = exports.N50 = exports.N40 = exports.N300A = exports.N300 = exports.N30 = exports.N200 = exports.N20 = exports.N1000 = exports.N0 = exports.M800 = exports.M600 = exports.M200 = exports.L800 = exports.L600 = exports.L200 = exports.G75 = exports.G500 = exports.G50 = exports.G400 = exports.G300 = exports.G200 = exports.B75 = exports.B500 = exports.B50 = exports.B400 = exports.B100 = void 0;
|
|
9
9
|
exports.hexToRgb = hexToRgb;
|
|
10
10
|
exports.hexToRgba = hexToRgba;
|
|
11
11
|
exports.isHex = isHex;
|
|
@@ -28,7 +28,6 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
28
28
|
var R50 = exports.R50 = '#FFEBE6';
|
|
29
29
|
var R75 = exports.R75 = '#FFBDAD';
|
|
30
30
|
var R100 = exports.R100 = '#FF8F73';
|
|
31
|
-
var RedBold = exports.RedBold = '#FFB8B2';
|
|
32
31
|
var R200 = exports.R200 = '#FFD5D2';
|
|
33
32
|
var R300 = exports.R300 = '#FF5630';
|
|
34
33
|
var R400 = exports.R400 = '#DE350B';
|
|
@@ -36,7 +35,6 @@ var R500 = exports.R500 = '#BF2600';
|
|
|
36
35
|
var Y50 = exports.Y50 = '#FFFAE6';
|
|
37
36
|
var Y75 = exports.Y75 = '#FFF0B3';
|
|
38
37
|
var Y200 = exports.Y200 = '#FFC400';
|
|
39
|
-
var YellowBold = exports.YellowBold = '#EFDD4E';
|
|
40
38
|
var Yellow200 = exports.Yellow200 = '#F8E6A0';
|
|
41
39
|
var Y400 = exports.Y400 = '#FF991F';
|
|
42
40
|
var Y500 = exports.Y500 = '#FF8B00';
|
|
@@ -45,19 +43,15 @@ var Y800 = exports.Y800 = '#7F5F01';
|
|
|
45
43
|
var G50 = exports.G50 = '#E3FCEF';
|
|
46
44
|
var G75 = exports.G75 = '#ABF5D1';
|
|
47
45
|
var G200 = exports.G200 = '#57D9A3';
|
|
48
|
-
var GreenBold = exports.GreenBold = '#97EDC9';
|
|
49
46
|
var G300 = exports.G300 = '#36B37E';
|
|
50
47
|
var G400 = exports.G400 = '#00875A';
|
|
51
48
|
var G500 = exports.G500 = '#006644';
|
|
52
49
|
var B50 = exports.B50 = '#DEEBFF';
|
|
53
50
|
var B75 = exports.B75 = '#B3D4FF';
|
|
54
51
|
var B100 = exports.B100 = '#4C9AFF';
|
|
55
|
-
var BlueBold = exports.BlueBold = '#ADCBFB';
|
|
56
52
|
var B400 = exports.B400 = '#0052CC';
|
|
57
53
|
var B500 = exports.B500 = '#0747A6';
|
|
58
|
-
var L50 = exports.L50 = '#EFFFD6';
|
|
59
54
|
var L200 = exports.L200 = '#D3F1A7';
|
|
60
|
-
var L400 = exports.L400 = '#BDE97C';
|
|
61
55
|
var L600 = exports.L600 = '#6A9A23';
|
|
62
56
|
var L800 = exports.L800 = '#4C6B1F';
|
|
63
57
|
var N0 = exports.N0 = '#FFFFFF';
|
|
@@ -66,7 +60,6 @@ var N30 = exports.N30 = '#EBECF0';
|
|
|
66
60
|
var N40 = exports.N40 = '#DFE1E6';
|
|
67
61
|
var N50 = exports.N50 = '#C1C7D0';
|
|
68
62
|
var N60 = exports.N60 = '#B3BAC5';
|
|
69
|
-
var GrayBold = exports.GrayBold = '#B7B9BE';
|
|
70
63
|
var N80 = exports.N80 = '#97A0AF';
|
|
71
64
|
var N90 = exports.N90 = '#8993A4';
|
|
72
65
|
var N200 = exports.N200 = '#6B778C';
|
|
@@ -77,21 +70,16 @@ var N500 = exports.N500 = '#42526E';
|
|
|
77
70
|
var N600 = exports.N600 = '#758195';
|
|
78
71
|
var N800 = exports.N800 = '#172B4D';
|
|
79
72
|
var N1000 = exports.N1000 = '#172B4D';
|
|
80
|
-
var M50 = exports.M50 = '#FFECF8';
|
|
81
73
|
var M200 = exports.M200 = '#FDD0EC';
|
|
82
|
-
var M400 = exports.M400 = '#FCB6E1';
|
|
83
74
|
var M600 = exports.M600 = '#CD519D';
|
|
84
75
|
var M800 = exports.M800 = '#943D73';
|
|
85
76
|
var O200 = exports.O200 = '#FEDEC8';
|
|
86
|
-
var Orange50 = exports.Orange50 = '#FFF5DB';
|
|
87
77
|
var Orange200 = exports.Orange200 = '#FCE4A6';
|
|
88
|
-
var Orange400 = exports.Orange400 = '#FBD779';
|
|
89
78
|
var O600 = exports.O600 = '#E06C00';
|
|
90
79
|
var O800 = exports.O800 = '#9E4C00';
|
|
91
80
|
var P50 = exports.P50 = '#EAE6FF';
|
|
92
81
|
var P75 = exports.P75 = '#C0B6F2';
|
|
93
82
|
var P100 = exports.P100 = '#998DD9';
|
|
94
|
-
var PurpleBold = exports.PurpleBold = '#E3BDFA';
|
|
95
83
|
var P200 = exports.P200 = '#DFD8FD';
|
|
96
84
|
var P300 = exports.P300 = '#6554C0';
|
|
97
85
|
var P400 = exports.P400 = '#5243AA';
|
|
@@ -99,7 +87,6 @@ var P500 = exports.P500 = '#403294';
|
|
|
99
87
|
var T50 = exports.T50 = '#E6FCFF';
|
|
100
88
|
var T75 = exports.T75 = '#B3F5FF';
|
|
101
89
|
var T100 = exports.T100 = '#79E2F2';
|
|
102
|
-
var TealBold = exports.TealBold = '#B1E4F7';
|
|
103
90
|
var T200 = exports.T200 = '#C6EDFB';
|
|
104
91
|
var T300 = exports.T300 = '#00B8D9';
|
|
105
92
|
var T500 = exports.T500 = '#008DA6';
|
|
@@ -156,11 +156,8 @@ var editorTextPalette = exports.editorTextPalette = (0, _defineProperty2.default
|
|
|
156
156
|
function hexToEditorTextBackgroundPaletteColor(hexColor) {
|
|
157
157
|
// Ts ignore was used to allow use of conditional return type
|
|
158
158
|
// (preferring better type on consumption over safety in implementation)
|
|
159
|
-
return hexColor ?
|
|
160
159
|
// @ts-expect-error
|
|
161
|
-
textBackgroundColorPalette[hexColor.toUpperCase()] :
|
|
162
|
-
// @ts-expect-error
|
|
163
|
-
undefined;
|
|
160
|
+
return hexColor ? textBackgroundColorPalette[hexColor.toUpperCase()] : undefined;
|
|
164
161
|
}
|
|
165
162
|
var textBackgroundColorPalette = exports.textBackgroundColorPalette = {
|
|
166
163
|
/** Gray - light */
|
|
@@ -200,9 +197,8 @@ var textBackgroundColorPalette = exports.textBackgroundColorPalette = {
|
|
|
200
197
|
function hexToEditorBackgroundPaletteRawValue(hexColor) {
|
|
201
198
|
// Ts ignore was used to allow use of conditional return type
|
|
202
199
|
// (preferencing better type on consumption over safety in implementation)
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
editorBackgroundPalette[hexColor.toUpperCase()] : undefined;
|
|
200
|
+
// @ts-ignore
|
|
201
|
+
var tokenData = hexColor ? editorBackgroundPalette[hexColor.toUpperCase()] : undefined;
|
|
206
202
|
// @ts-expect-error
|
|
207
203
|
return tokenData ? tokenData.getValue(hexColor) : undefined;
|
|
208
204
|
}
|
|
@@ -358,119 +354,5 @@ var editorBackgroundPalette = exports.editorBackgroundPalette = {
|
|
|
358
354
|
return '#B3BAC5';
|
|
359
355
|
},
|
|
360
356
|
token: 'var(--ds-background-accent-gray-subtle, #B3BAC5)'
|
|
361
|
-
},
|
|
362
|
-
/** lime - light */
|
|
363
|
-
'#EFFFD6': {
|
|
364
|
-
getValue: function getValue() {
|
|
365
|
-
return '#EFFFD6';
|
|
366
|
-
},
|
|
367
|
-
token: 'var(--ds-background-accent-lime-subtlest, #EFFFD6)'
|
|
368
|
-
},
|
|
369
|
-
/** lime - medium */
|
|
370
|
-
'#D3F1A7': {
|
|
371
|
-
getValue: function getValue() {
|
|
372
|
-
return '#D3F1A7';
|
|
373
|
-
},
|
|
374
|
-
token: 'var(--ds-background-accent-lime-subtler, #D3F1A7)'
|
|
375
|
-
},
|
|
376
|
-
/** lime - bold */
|
|
377
|
-
'#BDE97C': {
|
|
378
|
-
getValue: function getValue() {
|
|
379
|
-
return '#BDE97C';
|
|
380
|
-
},
|
|
381
|
-
token: 'var(--ds-background-accent-lime-subtler-hovered, #BDE97C)'
|
|
382
|
-
},
|
|
383
|
-
/** orange - light */
|
|
384
|
-
'#FFF5DB': {
|
|
385
|
-
getValue: function getValue() {
|
|
386
|
-
return '#FFF5DB';
|
|
387
|
-
},
|
|
388
|
-
token: 'var(--ds-background-accent-orange-subtlest, #FFF5DB)'
|
|
389
|
-
},
|
|
390
|
-
/** orange - medium */
|
|
391
|
-
'#FCE4A6': {
|
|
392
|
-
getValue: function getValue() {
|
|
393
|
-
return '#FCE4A6';
|
|
394
|
-
},
|
|
395
|
-
token: 'var(--ds-background-accent-orange-subtler, #FCE4A6)'
|
|
396
|
-
},
|
|
397
|
-
/** orange - bold */
|
|
398
|
-
'#FBD779': {
|
|
399
|
-
getValue: function getValue() {
|
|
400
|
-
return '#FBD779';
|
|
401
|
-
},
|
|
402
|
-
token: 'var(--ds-background-accent-orange-subtler-hovered, #FBD779)'
|
|
403
|
-
},
|
|
404
|
-
/** magenta - light */
|
|
405
|
-
'#FFECF8': {
|
|
406
|
-
getValue: function getValue() {
|
|
407
|
-
return '#FFECF8';
|
|
408
|
-
},
|
|
409
|
-
token: 'var(--ds-background-accent-magenta-subtlest, #FFECF8)'
|
|
410
|
-
},
|
|
411
|
-
/** magenta - medium */
|
|
412
|
-
'#FDD0EC': {
|
|
413
|
-
getValue: function getValue() {
|
|
414
|
-
return '#FDD0EC';
|
|
415
|
-
},
|
|
416
|
-
token: 'var(--ds-background-accent-magenta-subtler, #FDD0EC)'
|
|
417
|
-
},
|
|
418
|
-
/** magenta - bold */
|
|
419
|
-
'#FCB6E1': {
|
|
420
|
-
getValue: function getValue() {
|
|
421
|
-
return '#FCB6E1';
|
|
422
|
-
},
|
|
423
|
-
token: 'var(--ds-background-accent-magenta-subtler-hovered, #FCB6E1)'
|
|
424
|
-
},
|
|
425
|
-
// Bold row mappings using subtler.hovered tokens. These use new hex codes
|
|
426
|
-
// so pre-existing documents keep their old subtle-token mappings above.
|
|
427
|
-
/** blue - bold */
|
|
428
|
-
'#ADCBFB': {
|
|
429
|
-
getValue: function getValue() {
|
|
430
|
-
return '#ADCBFB';
|
|
431
|
-
},
|
|
432
|
-
token: 'var(--ds-background-accent-blue-subtler-hovered, #ADCBFB)'
|
|
433
|
-
},
|
|
434
|
-
/** teal - bold */
|
|
435
|
-
'#B1E4F7': {
|
|
436
|
-
getValue: function getValue() {
|
|
437
|
-
return '#B1E4F7';
|
|
438
|
-
},
|
|
439
|
-
token: 'var(--ds-background-accent-teal-subtler-hovered, #B1E4F7)'
|
|
440
|
-
},
|
|
441
|
-
/** green - bold */
|
|
442
|
-
'#97EDC9': {
|
|
443
|
-
getValue: function getValue() {
|
|
444
|
-
return '#97EDC9';
|
|
445
|
-
},
|
|
446
|
-
token: 'var(--ds-background-accent-green-subtler-hovered, #97EDC9)'
|
|
447
|
-
},
|
|
448
|
-
/** yellow - bold */
|
|
449
|
-
'#EFDD4E': {
|
|
450
|
-
getValue: function getValue() {
|
|
451
|
-
return '#EFDD4E';
|
|
452
|
-
},
|
|
453
|
-
token: 'var(--ds-background-accent-yellow-subtler-hovered, #EFDD4E)'
|
|
454
|
-
},
|
|
455
|
-
/** red - bold */
|
|
456
|
-
'#FFB8B2': {
|
|
457
|
-
getValue: function getValue() {
|
|
458
|
-
return '#FFB8B2';
|
|
459
|
-
},
|
|
460
|
-
token: 'var(--ds-background-accent-red-subtler-hovered, #FFB8B2)'
|
|
461
|
-
},
|
|
462
|
-
/** purple - bold */
|
|
463
|
-
'#E3BDFA': {
|
|
464
|
-
getValue: function getValue() {
|
|
465
|
-
return '#E3BDFA';
|
|
466
|
-
},
|
|
467
|
-
token: 'var(--ds-background-accent-purple-subtler-hovered, #E3BDFA)'
|
|
468
|
-
},
|
|
469
|
-
/** gray - bold */
|
|
470
|
-
'#B7B9BE': {
|
|
471
|
-
getValue: function getValue() {
|
|
472
|
-
return '#B7B9BE';
|
|
473
|
-
},
|
|
474
|
-
token: 'var(--ds-background-accent-gray-subtler-hovered, #B7B9BE)'
|
|
475
357
|
}
|
|
476
358
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
-
export { getCellAttrs, getCellDomAttrs, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette,
|
|
2
|
+
export { getCellAttrs, getCellDomAttrs, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, toJSONTableCell, toJSONTableHeader, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from '../schema/nodes/tableNodes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
-
export { getCellAttrs, getCellDomAttrs, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette,
|
|
2
|
+
export { getCellAttrs, getCellDomAttrs, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, toJSONTableCell, toJSONTableHeader, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from '../schema/nodes/tableNodes';
|
package/dist/es2019/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, fontSize, breakout, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, code, codeBlock, codeBlockWithLocalId, codeBlockToJSON, colorPalette,
|
|
3
3
|
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
|
|
4
4
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
|
5
|
-
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineCardWithLocalId, inlineExtension, inlineNodes, layoutColumn, layoutColumnStage0, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, link, linkToJSON, listItem, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelC1, extendedPanelC1WithLocalId, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette,
|
|
5
|
+
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineCardWithLocalId, inlineExtension, inlineNodes, layoutColumn, layoutColumnStage0, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, link, linkToJSON, listItem, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelC1, extendedPanelC1WithLocalId, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from './schema';
|
|
6
6
|
export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, getDarkModeLCHColor } from './utils';
|
|
7
7
|
|
|
8
8
|
// ADF createPMSpecFactory
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
-
export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnStage0, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelC1, extendedPanelC1WithLocalId, extendedPanelRootOnlyStage0, extendedPanelC1RootOnlyStage0, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette,
|
|
2
|
+
export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnStage0, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelC1, extendedPanelC1WithLocalId, extendedPanelRootOnlyStage0, extendedPanelC1RootOnlyStage0, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from './nodes';
|
|
3
3
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, fontSize, breakout, code, colorPalette, colorPaletteNew,
|
|
4
4
|
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
|
|
5
5
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
|
@@ -24,7 +24,7 @@ export { media, copyPrivateAttributes as copyPrivateMediaAttributes, toJSON as m
|
|
|
24
24
|
export { mediaGroup } from './media-group';
|
|
25
25
|
export { mediaInline } from './media-inline';
|
|
26
26
|
export { mediaSingle, mediaSingleSpec, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, toJSON as mediaSingleToJSON } from './media-single';
|
|
27
|
-
export { table, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, tableStage0, tableWithCustomWidth, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette,
|
|
27
|
+
export { table, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, tableStage0, tableWithCustomWidth, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColor, tableBackgroundColorNames, getCellAttrs, getCellDomAttrs, tablePrefixSelector, tableCellSelector, tableHeaderSelector, tableCellContentWrapperSelector, tableCellContentDomSelector } from './tableNodes';
|
|
28
28
|
export { decisionList, decisionListSelector } from './decision-list';
|
|
29
29
|
export { decisionItem } from './decision-item';
|
|
30
30
|
export { taskList, taskListSelector } from './task-list';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { hexToEditorBackgroundPaletteRawValue } from '../../utils/editor-palette';
|
|
2
|
-
import {
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
import { B100, B50, B75, BlueBold, G200, G50, G75, GrayBold, GreenBold, hexToRgba, isHex, isRgb, L200, L400, L50, M200, M400, M50, N0, N20, N60, N800, Orange200, Orange400, Orange50, P100, P50, P75, PurpleBold, R100, R50, R75, RedBold, rgbToHex, T100, T50, T75, TealBold, Y200, Y50, Y75, YellowBold } from '../../utils/colors';
|
|
2
|
+
import { B100, B50, B75, G200, G50, G75, hexToRgba, isHex, isRgb, N0, N20, N60, N800, P100, P50, P75, R100, R50, R75, rgbToHex, T100, T50, T75, Y200, Y50, Y75 } from '../../utils/colors';
|
|
5
3
|
import { uuid } from '../../utils/uuid';
|
|
6
4
|
import { getDarkModeLCHColor } from '../../utils/lch-color-inversion';
|
|
7
5
|
import { table as tableFactory, tableWithNestedTable as tableWithNestedTableFactory, tableRow as tableRowFactory, tableRowWithNestedTable as tableRowWithNestedTableFactory, tableHeader as tableHeaderFactory, tableHeaderWithNestedTable as tableHeaderWithNestedTableFactory, tableCell as tableCellFactory, tableCellWithNestedTable as tableCellWithNestedTableFactory } from '../../next-schema/generated/nodeTypes';
|
|
@@ -176,8 +174,7 @@ export const getCellDomAttrs = node => {
|
|
|
176
174
|
attrs['data-cell-background'] = color;
|
|
177
175
|
}
|
|
178
176
|
if (typeof color === 'string') {
|
|
179
|
-
|
|
180
|
-
attrs.colorname = palette.get(color.toLowerCase());
|
|
177
|
+
attrs.colorname = tableBackgroundColorPalette.get(color.toLowerCase());
|
|
181
178
|
}
|
|
182
179
|
}
|
|
183
180
|
}
|
|
@@ -195,22 +192,10 @@ export const getCellDomAttrs = node => {
|
|
|
195
192
|
return attrs;
|
|
196
193
|
};
|
|
197
194
|
export const tableBackgroundColorPalette = new Map();
|
|
198
|
-
/**
|
|
199
|
-
* Expanded 10-column (30-entry) palette that adds lime, orange, and magenta columns
|
|
200
|
-
* and updates the bold row to use `subtler.hovered` design tokens.
|
|
201
|
-
* This is a superset of {@link tableBackgroundColorPalette}.
|
|
202
|
-
*/
|
|
203
|
-
export const tableBackgroundColorPaletteNew = new Map();
|
|
204
195
|
export const tableBackgroundBorderColor = hexToRgba(N800, 0.12) || N0;
|
|
205
196
|
export const tableBackgroundColorNames = new Map();
|
|
206
|
-
|
|
207
|
-
// Original 7-column palette — kept as the default export so external consumers
|
|
208
|
-
// are not broken. When cleaning up the platform_editor_lovability_text_bg_color experiment, check if this can be removed
|
|
209
197
|
[[N0, 'White'], [B50, 'Light blue'], [T50, 'Light teal'], [G50, 'Light green'], [Y50, 'Light yellow'], [R50, 'Light red'], [P50, 'Light purple'], [N20, 'Light gray'], [B75, 'Blue'], [T75, 'Teal'], [G75, 'Green'], [Y75, 'Yellow'], [R75, 'Red'], [P75, 'Purple'], [N60, 'Gray'], [B100, 'Dark blue'], [T100, 'Dark teal'], [G200, 'Dark green'], [Y200, 'Dark yellow'], [R100, 'Dark red'], [P100, 'Dark purple']].forEach(([colorValue, colorName]) => {
|
|
210
198
|
tableBackgroundColorPalette.set(colorValue.toLowerCase(), colorName);
|
|
211
|
-
});
|
|
212
|
-
[[N0, 'White'], [B50, 'Light blue'], [T50, 'Light teal'], [G50, 'Light green'], [L50, 'Subtle lime'], [Y50, 'Light yellow'], [Orange50, 'Subtle orange'], [R50, 'Light red'], [M50, 'Subtle magenta'], [P50, 'Light purple'], [N20, 'Light gray'], [B75, 'Blue'], [T75, 'Teal'], [G75, 'Green'], [L200, 'Lime'], [Y75, 'Yellow'], [Orange200, 'Orange'], [R75, 'Red'], [M200, 'Magenta'], [P75, 'Purple'], [GrayBold, 'Bold gray'], [BlueBold, 'Bold blue'], [TealBold, 'Bold teal'], [GreenBold, 'Bold green'], [L400, 'Bold lime'], [YellowBold, 'Bold yellow'], [Orange400, 'Bold orange'], [RedBold, 'Bold red'], [M400, 'Bold magenta'], [PurpleBold, 'Bold purple']].forEach(([colorValue, colorName]) => {
|
|
213
|
-
tableBackgroundColorPaletteNew.set(colorValue.toLowerCase(), colorName);
|
|
214
199
|
tableBackgroundColorNames.set(colorName.toLowerCase(), colorValue.toLowerCase());
|
|
215
200
|
});
|
|
216
201
|
|
|
@@ -12,7 +12,6 @@ import * as namedColors from 'css-color-names';
|
|
|
12
12
|
export const R50 = '#FFEBE6';
|
|
13
13
|
export const R75 = '#FFBDAD';
|
|
14
14
|
export const R100 = '#FF8F73';
|
|
15
|
-
export const RedBold = '#FFB8B2';
|
|
16
15
|
export const R200 = '#FFD5D2';
|
|
17
16
|
export const R300 = '#FF5630';
|
|
18
17
|
export const R400 = '#DE350B';
|
|
@@ -20,7 +19,6 @@ export const R500 = '#BF2600';
|
|
|
20
19
|
export const Y50 = '#FFFAE6';
|
|
21
20
|
export const Y75 = '#FFF0B3';
|
|
22
21
|
export const Y200 = '#FFC400';
|
|
23
|
-
export const YellowBold = '#EFDD4E';
|
|
24
22
|
export const Yellow200 = '#F8E6A0';
|
|
25
23
|
export const Y400 = '#FF991F';
|
|
26
24
|
export const Y500 = '#FF8B00';
|
|
@@ -29,19 +27,15 @@ export const Y800 = '#7F5F01';
|
|
|
29
27
|
export const G50 = '#E3FCEF';
|
|
30
28
|
export const G75 = '#ABF5D1';
|
|
31
29
|
export const G200 = '#57D9A3';
|
|
32
|
-
export const GreenBold = '#97EDC9';
|
|
33
30
|
export const G300 = '#36B37E';
|
|
34
31
|
export const G400 = '#00875A';
|
|
35
32
|
export const G500 = '#006644';
|
|
36
33
|
export const B50 = '#DEEBFF';
|
|
37
34
|
export const B75 = '#B3D4FF';
|
|
38
35
|
export const B100 = '#4C9AFF';
|
|
39
|
-
export const BlueBold = '#ADCBFB';
|
|
40
36
|
export const B400 = '#0052CC';
|
|
41
37
|
export const B500 = '#0747A6';
|
|
42
|
-
export const L50 = '#EFFFD6';
|
|
43
38
|
export const L200 = '#D3F1A7';
|
|
44
|
-
export const L400 = '#BDE97C';
|
|
45
39
|
export const L600 = '#6A9A23';
|
|
46
40
|
export const L800 = '#4C6B1F';
|
|
47
41
|
export const N0 = '#FFFFFF';
|
|
@@ -50,7 +44,6 @@ export const N30 = '#EBECF0';
|
|
|
50
44
|
export const N40 = '#DFE1E6';
|
|
51
45
|
export const N50 = '#C1C7D0';
|
|
52
46
|
export const N60 = '#B3BAC5';
|
|
53
|
-
export const GrayBold = '#B7B9BE';
|
|
54
47
|
export const N80 = '#97A0AF';
|
|
55
48
|
export const N90 = '#8993A4';
|
|
56
49
|
export const N200 = '#6B778C';
|
|
@@ -61,21 +54,16 @@ export const N500 = '#42526E';
|
|
|
61
54
|
export const N600 = '#758195';
|
|
62
55
|
export const N800 = '#172B4D';
|
|
63
56
|
export const N1000 = '#172B4D';
|
|
64
|
-
export const M50 = '#FFECF8';
|
|
65
57
|
export const M200 = '#FDD0EC';
|
|
66
|
-
export const M400 = '#FCB6E1';
|
|
67
58
|
export const M600 = '#CD519D';
|
|
68
59
|
export const M800 = '#943D73';
|
|
69
60
|
export const O200 = '#FEDEC8';
|
|
70
|
-
export const Orange50 = '#FFF5DB';
|
|
71
61
|
export const Orange200 = '#FCE4A6';
|
|
72
|
-
export const Orange400 = '#FBD779';
|
|
73
62
|
export const O600 = '#E06C00';
|
|
74
63
|
export const O800 = '#9E4C00';
|
|
75
64
|
export const P50 = '#EAE6FF';
|
|
76
65
|
export const P75 = '#C0B6F2';
|
|
77
66
|
export const P100 = '#998DD9';
|
|
78
|
-
export const PurpleBold = '#E3BDFA';
|
|
79
67
|
export const P200 = '#DFD8FD';
|
|
80
68
|
export const P300 = '#6554C0';
|
|
81
69
|
export const P400 = '#5243AA';
|
|
@@ -83,7 +71,6 @@ export const P500 = '#403294';
|
|
|
83
71
|
export const T50 = '#E6FCFF';
|
|
84
72
|
export const T75 = '#B3F5FF';
|
|
85
73
|
export const T100 = '#79E2F2';
|
|
86
|
-
export const TealBold = '#B1E4F7';
|
|
87
74
|
export const T200 = '#C6EDFB';
|
|
88
75
|
export const T300 = '#00B8D9';
|
|
89
76
|
export const T500 = '#008DA6';
|