@atlaskit/tokens 2.4.1 → 2.4.3
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 +16 -0
- package/dist/cjs/artifacts/palettes-raw/typography-palette.js +16 -1
- package/dist/cjs/artifacts/themes/atlassian-typography-refreshed.js +2 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-refreshed.js +5 -5
- package/dist/cjs/get-theme-html-attrs.js +1 -2
- package/dist/cjs/theme-mutation-observer.js +1 -2
- package/dist/cjs/utils/color-mode-listeners.js +1 -2
- package/dist/cjs/utils/contrast-mode-listeners.js +1 -2
- package/dist/cjs/utils/hct-color-utils/contrast.js +1 -2
- package/dist/cjs/utils/hct-color-utils/hct.js +7 -11
- package/dist/es2019/artifacts/palettes-raw/typography-palette.js +16 -1
- package/dist/es2019/artifacts/themes/atlassian-typography-refreshed.js +3 -3
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-refreshed.js +5 -5
- package/dist/es2019/utils/hct-color-utils/hct.js +3 -3
- package/dist/esm/artifacts/palettes-raw/typography-palette.js +16 -1
- package/dist/esm/artifacts/themes/atlassian-typography-refreshed.js +2 -2
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-refreshed.js +5 -5
- package/dist/esm/get-theme-html-attrs.js +1 -2
- package/dist/esm/theme-mutation-observer.js +1 -2
- package/dist/esm/utils/color-mode-listeners.js +1 -2
- package/dist/esm/utils/contrast-mode-listeners.js +1 -2
- package/dist/esm/utils/hct-color-utils/contrast.js +1 -2
- package/dist/esm/utils/hct-color-utils/hct.js +7 -11
- package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +1 -1
- package/dist/types/artifacts/themes/atlassian-typography-refreshed.d.ts +2 -2
- package/dist/types/artifacts/tokens-raw/atlassian-typography-refreshed.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography-refreshed.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-refreshed.d.ts +1 -1
- package/figma/atlassian-typography-refreshed.json +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/tokens
|
|
2
2
|
|
|
3
|
+
## 2.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#174905](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/174905)
|
|
8
|
+
[`4d46b49f15e36`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4d46b49f15e36) -
|
|
9
|
+
Added Atlassian Mono font to typography refreshed theme.
|
|
10
|
+
|
|
11
|
+
## 2.4.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#178053](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/178053)
|
|
16
|
+
[`cb318c8c28c26`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cb318c8c28c26) -
|
|
17
|
+
Internal changes to typography.
|
|
18
|
+
|
|
3
19
|
## 2.4.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::e4e9ea6d283fd02d4b56206ad5eaabdc>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
12
|
var tokens = [{
|
|
@@ -84,6 +84,21 @@ var tokens = [{
|
|
|
84
84
|
},
|
|
85
85
|
"name": "typography.fontFamily.FontFamilyWebMono",
|
|
86
86
|
"path": ["typography", "fontFamily", "FontFamilyWebMono"]
|
|
87
|
+
}, {
|
|
88
|
+
"value": "\"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
89
|
+
"attributes": {
|
|
90
|
+
"group": "fontFamily"
|
|
91
|
+
},
|
|
92
|
+
"filePath": "schema/palettes/typography-palette.tsx",
|
|
93
|
+
"isSource": true,
|
|
94
|
+
"original": {
|
|
95
|
+
"value": "\"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
96
|
+
"attributes": {
|
|
97
|
+
"group": "fontFamily"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"name": "typography.fontFamily.FontFamilyWebMonoRefreshed",
|
|
101
|
+
"path": ["typography", "fontFamily", "FontFamilyWebMonoRefreshed"]
|
|
87
102
|
}, {
|
|
88
103
|
"value": "ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif",
|
|
89
104
|
"attributes": {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::5b1e15ab87e3accd8905d047a0de4bd7>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
|
-
var _default = exports.default = "\nhtml[data-theme~=\"typography:typography-refreshed\"] {\n --ds-UNSAFE-textTransformUppercase: uppercase;\n --ds-font-letterSpacing-0: 0;\n --ds-font-letterSpacing-100: 0;\n --ds-font-letterSpacing-200: 0;\n --ds-font-letterSpacing-300: 0;\n --ds-font-letterSpacing-400: 0;\n --ds-font-heading-xxlarge: normal 700 2rem/2.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xlarge: normal 700 1.75rem/2rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-large: normal 700 1.5rem/1.75rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-medium: normal 700 1.25rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-small: normal 700 1rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xsmall: normal 700 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xxsmall: normal 700 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-large: normal 400 1rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body: normal 400 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-UNSAFE_small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-code: normal 400 0.875em/1 ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-weight-regular: 400;\n --ds-font-weight-medium: 500;\n --ds-font-weight-semibold: 600;\n --ds-font-weight-bold: 700;\n --ds-font-family-heading: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-body: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-code: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-monospace: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-sans: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-heading: \"Charlie Display\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-body: \"Charlie Text\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n}\n";
|
|
12
|
+
var _default = exports.default = "\nhtml[data-theme~=\"typography:typography-refreshed\"] {\n --ds-UNSAFE-textTransformUppercase: uppercase;\n --ds-font-letterSpacing-0: 0;\n --ds-font-letterSpacing-100: 0;\n --ds-font-letterSpacing-200: 0;\n --ds-font-letterSpacing-300: 0;\n --ds-font-letterSpacing-400: 0;\n --ds-font-heading-xxlarge: normal 700 2rem/2.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xlarge: normal 700 1.75rem/2rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-large: normal 700 1.5rem/1.75rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-medium: normal 700 1.25rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-small: normal 700 1rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xsmall: normal 700 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xxsmall: normal 700 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-large: normal 400 1rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body: normal 400 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-UNSAFE_small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-code: normal 400 0.875em/1 ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-weight-regular: 400;\n --ds-font-weight-medium: 500;\n --ds-font-weight-semibold: 600;\n --ds-font-weight-bold: 700;\n --ds-font-family-heading: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-body: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-code: \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-monospace: \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-sans: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-heading: \"Charlie Display\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-body: \"Charlie Text\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n}\n";
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::6058c6751a5967271869a82517102e49>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
12
|
var tokens = [{
|
|
@@ -638,7 +638,7 @@ var tokens = [{
|
|
|
638
638
|
"introduced": "1.14.0",
|
|
639
639
|
"description": "For representing code only."
|
|
640
640
|
},
|
|
641
|
-
"value": "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
641
|
+
"value": "\"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
642
642
|
"filePath": "schema/themes/atlassian-typography-refreshed/font-family.tsx",
|
|
643
643
|
"isSource": true,
|
|
644
644
|
"original": {
|
|
@@ -648,7 +648,7 @@ var tokens = [{
|
|
|
648
648
|
"introduced": "1.14.0",
|
|
649
649
|
"description": "For representing code only."
|
|
650
650
|
},
|
|
651
|
-
"value": "
|
|
651
|
+
"value": "FontFamilyWebMonoRefreshed"
|
|
652
652
|
},
|
|
653
653
|
"name": "font.family.code",
|
|
654
654
|
"path": ["font", "family", "code"],
|
|
@@ -661,7 +661,7 @@ var tokens = [{
|
|
|
661
661
|
"description": "For representing code only.",
|
|
662
662
|
"deprecated": "1.29.0"
|
|
663
663
|
},
|
|
664
|
-
"value": "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
664
|
+
"value": "\"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
665
665
|
"filePath": "schema/themes/atlassian-typography-refreshed/font-family.tsx",
|
|
666
666
|
"isSource": true,
|
|
667
667
|
"original": {
|
|
@@ -672,7 +672,7 @@ var tokens = [{
|
|
|
672
672
|
"description": "For representing code only.",
|
|
673
673
|
"deprecated": "1.29.0"
|
|
674
674
|
},
|
|
675
|
-
"value": "
|
|
675
|
+
"value": "FontFamilyWebMonoRefreshed"
|
|
676
676
|
},
|
|
677
677
|
"name": "font.family.monospace",
|
|
678
678
|
"path": ["font", "family", "monospace"],
|
|
@@ -32,7 +32,6 @@ var defaultContrastMode = 'no-preference';
|
|
|
32
32
|
* @returns {Object} Object of HTML attributes to be applied to the document root
|
|
33
33
|
*/
|
|
34
34
|
var getThemeHtmlAttrs = function getThemeHtmlAttrs() {
|
|
35
|
-
var _result;
|
|
36
35
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
37
36
|
_ref$colorMode = _ref.colorMode,
|
|
38
37
|
colorMode = _ref$colorMode === void 0 ? _themeConfig.themeStateDefaults['colorMode'] : _ref$colorMode,
|
|
@@ -57,7 +56,7 @@ var getThemeHtmlAttrs = function getThemeHtmlAttrs() {
|
|
|
57
56
|
spacing: spacing,
|
|
58
57
|
typography: typography
|
|
59
58
|
});
|
|
60
|
-
var result = (
|
|
59
|
+
var result = (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _constants.THEME_DATA_ATTRIBUTE, themeAttribute), _constants.COLOR_MODE_ATTRIBUTE, colorMode === 'auto' ? defaultColorMode : colorMode);
|
|
61
60
|
if ((0, _platformFeatureFlags.fg)('platform_increased-contrast-themes')) {
|
|
62
61
|
result = _objectSpread(_objectSpread({}, result), {}, (0, _defineProperty2.default)({}, _constants.CONTRAST_MODE_ATTRIBUTE, contrastMode === 'auto' ? defaultContrastMode : contrastMode));
|
|
63
62
|
}
|
|
@@ -30,7 +30,7 @@ var ThemeMutationObserver = exports.default = /*#__PURE__*/function () {
|
|
|
30
30
|
this.callback = callback;
|
|
31
31
|
ThemeMutationObserver.callbacks.add(callback);
|
|
32
32
|
}
|
|
33
|
-
(0, _createClass2.default)(ThemeMutationObserver, [{
|
|
33
|
+
return (0, _createClass2.default)(ThemeMutationObserver, [{
|
|
34
34
|
key: "observe",
|
|
35
35
|
value: function observe() {
|
|
36
36
|
if (!ThemeMutationObserver.observer) {
|
|
@@ -58,7 +58,6 @@ var ThemeMutationObserver = exports.default = /*#__PURE__*/function () {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}]);
|
|
61
|
-
return ThemeMutationObserver;
|
|
62
61
|
}();
|
|
63
62
|
(0, _defineProperty2.default)(ThemeMutationObserver, "observer", null);
|
|
64
63
|
(0, _defineProperty2.default)(ThemeMutationObserver, "callbacks", new Set());
|
|
@@ -28,7 +28,7 @@ var ColorModeObserver = /*#__PURE__*/function () {
|
|
|
28
28
|
(0, _classCallCheck2.default)(this, ColorModeObserver);
|
|
29
29
|
(0, _defineProperty2.default)(this, "unbindThemeChangeListener", null);
|
|
30
30
|
}
|
|
31
|
-
(0, _createClass2.default)(ColorModeObserver, [{
|
|
31
|
+
return (0, _createClass2.default)(ColorModeObserver, [{
|
|
32
32
|
key: "getColorMode",
|
|
33
33
|
value: function getColorMode() {
|
|
34
34
|
if (!darkModeMql) {
|
|
@@ -55,7 +55,6 @@ var ColorModeObserver = /*#__PURE__*/function () {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}]);
|
|
58
|
-
return ColorModeObserver;
|
|
59
58
|
}();
|
|
60
59
|
/**
|
|
61
60
|
* A singleton color mode observer - binds "auto" switching logic to a single `mediaQueryList` listener
|
|
@@ -28,7 +28,7 @@ var ContrastModeObserver = /*#__PURE__*/function () {
|
|
|
28
28
|
(0, _classCallCheck2.default)(this, ContrastModeObserver);
|
|
29
29
|
(0, _defineProperty2.default)(this, "unbindContrastChangeListener", null);
|
|
30
30
|
}
|
|
31
|
-
(0, _createClass2.default)(ContrastModeObserver, [{
|
|
31
|
+
return (0, _createClass2.default)(ContrastModeObserver, [{
|
|
32
32
|
key: "getContrastMode",
|
|
33
33
|
value: function getContrastMode() {
|
|
34
34
|
if (!contrastModeMql) {
|
|
@@ -55,7 +55,6 @@ var ContrastModeObserver = /*#__PURE__*/function () {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}]);
|
|
58
|
-
return ContrastModeObserver;
|
|
59
58
|
}();
|
|
60
59
|
/**
|
|
61
60
|
* A singleton contrast mode observer - binds "auto" switching logic to a single `mediaQueryList` listener
|
|
@@ -53,7 +53,7 @@ var Contrast = exports.Contrast = /*#__PURE__*/function () {
|
|
|
53
53
|
function Contrast() {
|
|
54
54
|
(0, _classCallCheck2.default)(this, Contrast);
|
|
55
55
|
}
|
|
56
|
-
(0, _createClass2.default)(Contrast, null, [{
|
|
56
|
+
return (0, _createClass2.default)(Contrast, null, [{
|
|
57
57
|
key: "ratioOfTones",
|
|
58
58
|
value:
|
|
59
59
|
/**
|
|
@@ -183,5 +183,4 @@ var Contrast = exports.Contrast = /*#__PURE__*/function () {
|
|
|
183
183
|
return darkerSafe < 0.0 ? 0.0 : darkerSafe;
|
|
184
184
|
}
|
|
185
185
|
}]);
|
|
186
|
-
return Contrast;
|
|
187
186
|
}();
|
|
@@ -11,7 +11,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
12
|
var utils = _interopRequireWildcard(require("./color-utils"));
|
|
13
13
|
var math = _interopRequireWildcard(require("./math-utils"));
|
|
14
|
-
var
|
|
14
|
+
var _ViewingConditions;
|
|
15
15
|
/**
|
|
16
16
|
* Below lines are copied from @material/material-color-utilities.
|
|
17
17
|
* Do not modify it.
|
|
@@ -64,7 +64,7 @@ var Hct = exports.Hct = /*#__PURE__*/function () {
|
|
|
64
64
|
this.internalTone = utils.lstarFromArgb(argb);
|
|
65
65
|
this.argb = argb;
|
|
66
66
|
}
|
|
67
|
-
(0, _createClass2.default)(Hct, [{
|
|
67
|
+
return (0, _createClass2.default)(Hct, [{
|
|
68
68
|
key: "toInt",
|
|
69
69
|
value: function toInt() {
|
|
70
70
|
return this.argb;
|
|
@@ -186,7 +186,6 @@ var Hct = exports.Hct = /*#__PURE__*/function () {
|
|
|
186
186
|
return new Hct(argb);
|
|
187
187
|
}
|
|
188
188
|
}]);
|
|
189
|
-
return Hct;
|
|
190
189
|
}();
|
|
191
190
|
/**
|
|
192
191
|
* CAM16, a color appearance model. Colors are not just defined by their hex
|
|
@@ -244,7 +243,7 @@ var Cam16 = /*#__PURE__*/function () {
|
|
|
244
243
|
* a*, b*, or jstar, astar, bstar in code. CAM16-UCS is included in the CAM16
|
|
245
244
|
* specification, and is used to measure distances between colors.
|
|
246
245
|
*/
|
|
247
|
-
(0, _createClass2.default)(Cam16, [{
|
|
246
|
+
return (0, _createClass2.default)(Cam16, [{
|
|
248
247
|
key: "distance",
|
|
249
248
|
value: function distance(other) {
|
|
250
249
|
var dJ = this.jstar - other.jstar;
|
|
@@ -540,7 +539,6 @@ var Cam16 = /*#__PURE__*/function () {
|
|
|
540
539
|
return new Cam16(hue, C, J, Q, M, s, jstar, astar, bstar);
|
|
541
540
|
}
|
|
542
541
|
}]);
|
|
543
|
-
return Cam16;
|
|
544
542
|
}(); // This file is automatically generated. Do not modify it.
|
|
545
543
|
// material_color_utilities is designed to have a consistent API across
|
|
546
544
|
// platforms and modular components that can be moved around easily. Using a
|
|
@@ -554,7 +552,7 @@ var HctSolver = /*#__PURE__*/function () {
|
|
|
554
552
|
function HctSolver() {
|
|
555
553
|
(0, _classCallCheck2.default)(this, HctSolver);
|
|
556
554
|
}
|
|
557
|
-
(0, _createClass2.default)(HctSolver, null, [{
|
|
555
|
+
return (0, _createClass2.default)(HctSolver, null, [{
|
|
558
556
|
key: "sanitizeRadians",
|
|
559
557
|
value:
|
|
560
558
|
/**
|
|
@@ -945,7 +943,6 @@ var HctSolver = /*#__PURE__*/function () {
|
|
|
945
943
|
return Cam16.fromInt(HctSolver.solveToInt(hueDegrees, chroma, lstar));
|
|
946
944
|
}
|
|
947
945
|
}]);
|
|
948
|
-
return HctSolver;
|
|
949
946
|
}();
|
|
950
947
|
(0, _defineProperty2.default)(HctSolver, "SCALED_DISCOUNT_FROM_LINRGB", [[0.001200833568784504, 0.002389694492170889, 0.0002795742885861124], [0.0005891086651375999, 0.0029785502573438758, 0.0003270666104008398], [0.00010146692491640572, 0.0005364214359186694, 0.0032979401770712076]]);
|
|
951
948
|
(0, _defineProperty2.default)(HctSolver, "LINRGB_FROM_SCALED_DISCOUNT", [[1373.2198709594231, -1100.4251190754821, -7.278681089101213], [-271.815969077903, 559.6580465940733, -32.46047482791194], [1.9622899599665666, -57.173814538844006, 308.7233197812385]]);
|
|
@@ -972,7 +969,7 @@ var ViewingConditions = exports.ViewingConditions = /*#__PURE__*/function () {
|
|
|
972
969
|
this.fLRoot = fLRoot;
|
|
973
970
|
this.z = z;
|
|
974
971
|
}
|
|
975
|
-
(0, _createClass2.default)(ViewingConditions, null, [{
|
|
972
|
+
return (0, _createClass2.default)(ViewingConditions, null, [{
|
|
976
973
|
key: "make",
|
|
977
974
|
value:
|
|
978
975
|
/**
|
|
@@ -1027,10 +1024,9 @@ var ViewingConditions = exports.ViewingConditions = /*#__PURE__*/function () {
|
|
|
1027
1024
|
return new ViewingConditions(n, aw, nbb, ncb, c, nc, rgbD, fl, Math.pow(fl, 0.25), z);
|
|
1028
1025
|
}
|
|
1029
1026
|
}]);
|
|
1030
|
-
return ViewingConditions;
|
|
1031
1027
|
}();
|
|
1032
|
-
|
|
1028
|
+
_ViewingConditions = ViewingConditions;
|
|
1033
1029
|
/**
|
|
1034
1030
|
* sRGB-like viewing conditions.
|
|
1035
1031
|
*/
|
|
1036
|
-
(0, _defineProperty2.default)(ViewingConditions, "DEFAULT",
|
|
1032
|
+
(0, _defineProperty2.default)(ViewingConditions, "DEFAULT", _ViewingConditions.make());
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::e4e9ea6d283fd02d4b56206ad5eaabdc>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
@@ -78,6 +78,21 @@ const tokens = [{
|
|
|
78
78
|
},
|
|
79
79
|
"name": "typography.fontFamily.FontFamilyWebMono",
|
|
80
80
|
"path": ["typography", "fontFamily", "FontFamilyWebMono"]
|
|
81
|
+
}, {
|
|
82
|
+
"value": "\"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
83
|
+
"attributes": {
|
|
84
|
+
"group": "fontFamily"
|
|
85
|
+
},
|
|
86
|
+
"filePath": "schema/palettes/typography-palette.tsx",
|
|
87
|
+
"isSource": true,
|
|
88
|
+
"original": {
|
|
89
|
+
"value": "\"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
90
|
+
"attributes": {
|
|
91
|
+
"group": "fontFamily"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"name": "typography.fontFamily.FontFamilyWebMonoRefreshed",
|
|
95
|
+
"path": ["typography", "fontFamily", "FontFamilyWebMonoRefreshed"]
|
|
81
96
|
}, {
|
|
82
97
|
"value": "ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif",
|
|
83
98
|
"attributes": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::5b1e15ab87e3accd8905d047a0de4bd7>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
export default `
|
|
@@ -29,8 +29,8 @@ html[data-theme~="typography:typography-refreshed"] {
|
|
|
29
29
|
--ds-font-weight-bold: 700;
|
|
30
30
|
--ds-font-family-heading: "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, system-ui, "Helvetica Neue", sans-serif;
|
|
31
31
|
--ds-font-family-body: "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, system-ui, "Helvetica Neue", sans-serif;
|
|
32
|
-
--ds-font-family-code: ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace;
|
|
33
|
-
--ds-font-family-monospace: ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace;
|
|
32
|
+
--ds-font-family-code: "Atlassian Mono", ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace;
|
|
33
|
+
--ds-font-family-monospace: "Atlassian Mono", ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace;
|
|
34
34
|
--ds-font-family-sans: "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, system-ui, "Helvetica Neue", sans-serif;
|
|
35
35
|
--ds-font-family-brand-heading: "Charlie Display", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, system-ui, "Helvetica Neue", sans-serif;
|
|
36
36
|
--ds-font-family-brand-body: "Charlie Text", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, system-ui, "Helvetica Neue", sans-serif;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::6058c6751a5967271869a82517102e49>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
@@ -632,7 +632,7 @@ const tokens = [{
|
|
|
632
632
|
"introduced": "1.14.0",
|
|
633
633
|
"description": "For representing code only."
|
|
634
634
|
},
|
|
635
|
-
"value": "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
635
|
+
"value": "\"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
636
636
|
"filePath": "schema/themes/atlassian-typography-refreshed/font-family.tsx",
|
|
637
637
|
"isSource": true,
|
|
638
638
|
"original": {
|
|
@@ -642,7 +642,7 @@ const tokens = [{
|
|
|
642
642
|
"introduced": "1.14.0",
|
|
643
643
|
"description": "For representing code only."
|
|
644
644
|
},
|
|
645
|
-
"value": "
|
|
645
|
+
"value": "FontFamilyWebMonoRefreshed"
|
|
646
646
|
},
|
|
647
647
|
"name": "font.family.code",
|
|
648
648
|
"path": ["font", "family", "code"],
|
|
@@ -655,7 +655,7 @@ const tokens = [{
|
|
|
655
655
|
"description": "For representing code only.",
|
|
656
656
|
"deprecated": "1.29.0"
|
|
657
657
|
},
|
|
658
|
-
"value": "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
658
|
+
"value": "\"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
659
659
|
"filePath": "schema/themes/atlassian-typography-refreshed/font-family.tsx",
|
|
660
660
|
"isSource": true,
|
|
661
661
|
"original": {
|
|
@@ -666,7 +666,7 @@ const tokens = [{
|
|
|
666
666
|
"description": "For representing code only.",
|
|
667
667
|
"deprecated": "1.29.0"
|
|
668
668
|
},
|
|
669
|
-
"value": "
|
|
669
|
+
"value": "FontFamilyWebMonoRefreshed"
|
|
670
670
|
},
|
|
671
671
|
"name": "font.family.monospace",
|
|
672
672
|
"path": ["font", "family", "monospace"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
var
|
|
2
|
+
var _ViewingConditions;
|
|
3
3
|
/**
|
|
4
4
|
* Below lines are copied from @material/material-color-utilities.
|
|
5
5
|
* Do not modify it.
|
|
@@ -926,8 +926,8 @@ export class ViewingConditions {
|
|
|
926
926
|
this.z = z;
|
|
927
927
|
}
|
|
928
928
|
}
|
|
929
|
-
|
|
929
|
+
_ViewingConditions = ViewingConditions;
|
|
930
930
|
/**
|
|
931
931
|
* sRGB-like viewing conditions.
|
|
932
932
|
*/
|
|
933
|
-
_defineProperty(ViewingConditions, "DEFAULT",
|
|
933
|
+
_defineProperty(ViewingConditions, "DEFAULT", _ViewingConditions.make());
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::e4e9ea6d283fd02d4b56206ad5eaabdc>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
var tokens = [{
|
|
@@ -78,6 +78,21 @@ var tokens = [{
|
|
|
78
78
|
},
|
|
79
79
|
"name": "typography.fontFamily.FontFamilyWebMono",
|
|
80
80
|
"path": ["typography", "fontFamily", "FontFamilyWebMono"]
|
|
81
|
+
}, {
|
|
82
|
+
"value": "\"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
83
|
+
"attributes": {
|
|
84
|
+
"group": "fontFamily"
|
|
85
|
+
},
|
|
86
|
+
"filePath": "schema/palettes/typography-palette.tsx",
|
|
87
|
+
"isSource": true,
|
|
88
|
+
"original": {
|
|
89
|
+
"value": "\"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
90
|
+
"attributes": {
|
|
91
|
+
"group": "fontFamily"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"name": "typography.fontFamily.FontFamilyWebMonoRefreshed",
|
|
95
|
+
"path": ["typography", "fontFamily", "FontFamilyWebMonoRefreshed"]
|
|
81
96
|
}, {
|
|
82
97
|
"value": "ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif",
|
|
83
98
|
"attributes": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::5b1e15ab87e3accd8905d047a0de4bd7>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
export default "\nhtml[data-theme~=\"typography:typography-refreshed\"] {\n --ds-UNSAFE-textTransformUppercase: uppercase;\n --ds-font-letterSpacing-0: 0;\n --ds-font-letterSpacing-100: 0;\n --ds-font-letterSpacing-200: 0;\n --ds-font-letterSpacing-300: 0;\n --ds-font-letterSpacing-400: 0;\n --ds-font-heading-xxlarge: normal 700 2rem/2.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xlarge: normal 700 1.75rem/2rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-large: normal 700 1.5rem/1.75rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-medium: normal 700 1.25rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-small: normal 700 1rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xsmall: normal 700 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xxsmall: normal 700 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-large: normal 400 1rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body: normal 400 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-UNSAFE_small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-code: normal 400 0.875em/1 ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-weight-regular: 400;\n --ds-font-weight-medium: 500;\n --ds-font-weight-semibold: 600;\n --ds-font-weight-bold: 700;\n --ds-font-family-heading: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-body: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-code: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-monospace: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-sans: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-heading: \"Charlie Display\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-body: \"Charlie Text\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n}\n";
|
|
6
|
+
export default "\nhtml[data-theme~=\"typography:typography-refreshed\"] {\n --ds-UNSAFE-textTransformUppercase: uppercase;\n --ds-font-letterSpacing-0: 0;\n --ds-font-letterSpacing-100: 0;\n --ds-font-letterSpacing-200: 0;\n --ds-font-letterSpacing-300: 0;\n --ds-font-letterSpacing-400: 0;\n --ds-font-heading-xxlarge: normal 700 2rem/2.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xlarge: normal 700 1.75rem/2rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-large: normal 700 1.5rem/1.75rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-medium: normal 700 1.25rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-small: normal 700 1rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xsmall: normal 700 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xxsmall: normal 700 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-large: normal 400 1rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body: normal 400 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-UNSAFE_small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-code: normal 400 0.875em/1 ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-weight-regular: 400;\n --ds-font-weight-medium: 500;\n --ds-font-weight-semibold: 600;\n --ds-font-weight-bold: 700;\n --ds-font-family-heading: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-body: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-code: \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-monospace: \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-sans: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-heading: \"Charlie Display\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-body: \"Charlie Text\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n}\n";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::6058c6751a5967271869a82517102e49>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
var tokens = [{
|
|
@@ -632,7 +632,7 @@ var tokens = [{
|
|
|
632
632
|
"introduced": "1.14.0",
|
|
633
633
|
"description": "For representing code only."
|
|
634
634
|
},
|
|
635
|
-
"value": "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
635
|
+
"value": "\"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
636
636
|
"filePath": "schema/themes/atlassian-typography-refreshed/font-family.tsx",
|
|
637
637
|
"isSource": true,
|
|
638
638
|
"original": {
|
|
@@ -642,7 +642,7 @@ var tokens = [{
|
|
|
642
642
|
"introduced": "1.14.0",
|
|
643
643
|
"description": "For representing code only."
|
|
644
644
|
},
|
|
645
|
-
"value": "
|
|
645
|
+
"value": "FontFamilyWebMonoRefreshed"
|
|
646
646
|
},
|
|
647
647
|
"name": "font.family.code",
|
|
648
648
|
"path": ["font", "family", "code"],
|
|
@@ -655,7 +655,7 @@ var tokens = [{
|
|
|
655
655
|
"description": "For representing code only.",
|
|
656
656
|
"deprecated": "1.29.0"
|
|
657
657
|
},
|
|
658
|
-
"value": "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
658
|
+
"value": "\"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
659
659
|
"filePath": "schema/themes/atlassian-typography-refreshed/font-family.tsx",
|
|
660
660
|
"isSource": true,
|
|
661
661
|
"original": {
|
|
@@ -666,7 +666,7 @@ var tokens = [{
|
|
|
666
666
|
"description": "For representing code only.",
|
|
667
667
|
"deprecated": "1.29.0"
|
|
668
668
|
},
|
|
669
|
-
"value": "
|
|
669
|
+
"value": "FontFamilyWebMonoRefreshed"
|
|
670
670
|
},
|
|
671
671
|
"name": "font.family.monospace",
|
|
672
672
|
"path": ["font", "family", "monospace"],
|
|
@@ -25,7 +25,6 @@ var defaultContrastMode = 'no-preference';
|
|
|
25
25
|
* @returns {Object} Object of HTML attributes to be applied to the document root
|
|
26
26
|
*/
|
|
27
27
|
var getThemeHtmlAttrs = function getThemeHtmlAttrs() {
|
|
28
|
-
var _result;
|
|
29
28
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
30
29
|
_ref$colorMode = _ref.colorMode,
|
|
31
30
|
colorMode = _ref$colorMode === void 0 ? themeStateDefaults['colorMode'] : _ref$colorMode,
|
|
@@ -50,7 +49,7 @@ var getThemeHtmlAttrs = function getThemeHtmlAttrs() {
|
|
|
50
49
|
spacing: spacing,
|
|
51
50
|
typography: typography
|
|
52
51
|
});
|
|
53
|
-
var result = (
|
|
52
|
+
var result = _defineProperty(_defineProperty({}, THEME_DATA_ATTRIBUTE, themeAttribute), COLOR_MODE_ATTRIBUTE, colorMode === 'auto' ? defaultColorMode : colorMode);
|
|
54
53
|
if (fg('platform_increased-contrast-themes')) {
|
|
55
54
|
result = _objectSpread(_objectSpread({}, result), {}, _defineProperty({}, CONTRAST_MODE_ATTRIBUTE, contrastMode === 'auto' ? defaultContrastMode : contrastMode));
|
|
56
55
|
}
|
|
@@ -23,7 +23,7 @@ var ThemeMutationObserver = /*#__PURE__*/function () {
|
|
|
23
23
|
this.callback = callback;
|
|
24
24
|
ThemeMutationObserver.callbacks.add(callback);
|
|
25
25
|
}
|
|
26
|
-
_createClass(ThemeMutationObserver, [{
|
|
26
|
+
return _createClass(ThemeMutationObserver, [{
|
|
27
27
|
key: "observe",
|
|
28
28
|
value: function observe() {
|
|
29
29
|
if (!ThemeMutationObserver.observer) {
|
|
@@ -51,7 +51,6 @@ var ThemeMutationObserver = /*#__PURE__*/function () {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
}]);
|
|
54
|
-
return ThemeMutationObserver;
|
|
55
54
|
}();
|
|
56
55
|
_defineProperty(ThemeMutationObserver, "observer", null);
|
|
57
56
|
_defineProperty(ThemeMutationObserver, "callbacks", new Set());
|
|
@@ -21,7 +21,7 @@ var ColorModeObserver = /*#__PURE__*/function () {
|
|
|
21
21
|
_classCallCheck(this, ColorModeObserver);
|
|
22
22
|
_defineProperty(this, "unbindThemeChangeListener", null);
|
|
23
23
|
}
|
|
24
|
-
_createClass(ColorModeObserver, [{
|
|
24
|
+
return _createClass(ColorModeObserver, [{
|
|
25
25
|
key: "getColorMode",
|
|
26
26
|
value: function getColorMode() {
|
|
27
27
|
if (!darkModeMql) {
|
|
@@ -48,7 +48,6 @@ var ColorModeObserver = /*#__PURE__*/function () {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}]);
|
|
51
|
-
return ColorModeObserver;
|
|
52
51
|
}();
|
|
53
52
|
/**
|
|
54
53
|
* A singleton color mode observer - binds "auto" switching logic to a single `mediaQueryList` listener
|
|
@@ -21,7 +21,7 @@ var ContrastModeObserver = /*#__PURE__*/function () {
|
|
|
21
21
|
_classCallCheck(this, ContrastModeObserver);
|
|
22
22
|
_defineProperty(this, "unbindContrastChangeListener", null);
|
|
23
23
|
}
|
|
24
|
-
_createClass(ContrastModeObserver, [{
|
|
24
|
+
return _createClass(ContrastModeObserver, [{
|
|
25
25
|
key: "getContrastMode",
|
|
26
26
|
value: function getContrastMode() {
|
|
27
27
|
if (!contrastModeMql) {
|
|
@@ -48,7 +48,6 @@ var ContrastModeObserver = /*#__PURE__*/function () {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}]);
|
|
51
|
-
return ContrastModeObserver;
|
|
52
51
|
}();
|
|
53
52
|
/**
|
|
54
53
|
* A singleton contrast mode observer - binds "auto" switching logic to a single `mediaQueryList` listener
|
|
@@ -47,7 +47,7 @@ export var Contrast = /*#__PURE__*/function () {
|
|
|
47
47
|
function Contrast() {
|
|
48
48
|
_classCallCheck(this, Contrast);
|
|
49
49
|
}
|
|
50
|
-
_createClass(Contrast, null, [{
|
|
50
|
+
return _createClass(Contrast, null, [{
|
|
51
51
|
key: "ratioOfTones",
|
|
52
52
|
value:
|
|
53
53
|
/**
|
|
@@ -177,5 +177,4 @@ export var Contrast = /*#__PURE__*/function () {
|
|
|
177
177
|
return darkerSafe < 0.0 ? 0.0 : darkerSafe;
|
|
178
178
|
}
|
|
179
179
|
}]);
|
|
180
|
-
return Contrast;
|
|
181
180
|
}();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
|
-
var
|
|
4
|
+
var _ViewingConditions;
|
|
5
5
|
/**
|
|
6
6
|
* Below lines are copied from @material/material-color-utilities.
|
|
7
7
|
* Do not modify it.
|
|
@@ -58,7 +58,7 @@ export var Hct = /*#__PURE__*/function () {
|
|
|
58
58
|
this.internalTone = utils.lstarFromArgb(argb);
|
|
59
59
|
this.argb = argb;
|
|
60
60
|
}
|
|
61
|
-
_createClass(Hct, [{
|
|
61
|
+
return _createClass(Hct, [{
|
|
62
62
|
key: "toInt",
|
|
63
63
|
value: function toInt() {
|
|
64
64
|
return this.argb;
|
|
@@ -180,7 +180,6 @@ export var Hct = /*#__PURE__*/function () {
|
|
|
180
180
|
return new Hct(argb);
|
|
181
181
|
}
|
|
182
182
|
}]);
|
|
183
|
-
return Hct;
|
|
184
183
|
}();
|
|
185
184
|
|
|
186
185
|
/**
|
|
@@ -239,7 +238,7 @@ var Cam16 = /*#__PURE__*/function () {
|
|
|
239
238
|
* a*, b*, or jstar, astar, bstar in code. CAM16-UCS is included in the CAM16
|
|
240
239
|
* specification, and is used to measure distances between colors.
|
|
241
240
|
*/
|
|
242
|
-
_createClass(Cam16, [{
|
|
241
|
+
return _createClass(Cam16, [{
|
|
243
242
|
key: "distance",
|
|
244
243
|
value: function distance(other) {
|
|
245
244
|
var dJ = this.jstar - other.jstar;
|
|
@@ -535,7 +534,6 @@ var Cam16 = /*#__PURE__*/function () {
|
|
|
535
534
|
return new Cam16(hue, C, J, Q, M, s, jstar, astar, bstar);
|
|
536
535
|
}
|
|
537
536
|
}]);
|
|
538
|
-
return Cam16;
|
|
539
537
|
}(); // This file is automatically generated. Do not modify it.
|
|
540
538
|
// material_color_utilities is designed to have a consistent API across
|
|
541
539
|
// platforms and modular components that can be moved around easily. Using a
|
|
@@ -549,7 +547,7 @@ var HctSolver = /*#__PURE__*/function () {
|
|
|
549
547
|
function HctSolver() {
|
|
550
548
|
_classCallCheck(this, HctSolver);
|
|
551
549
|
}
|
|
552
|
-
_createClass(HctSolver, null, [{
|
|
550
|
+
return _createClass(HctSolver, null, [{
|
|
553
551
|
key: "sanitizeRadians",
|
|
554
552
|
value:
|
|
555
553
|
/**
|
|
@@ -940,7 +938,6 @@ var HctSolver = /*#__PURE__*/function () {
|
|
|
940
938
|
return Cam16.fromInt(HctSolver.solveToInt(hueDegrees, chroma, lstar));
|
|
941
939
|
}
|
|
942
940
|
}]);
|
|
943
|
-
return HctSolver;
|
|
944
941
|
}();
|
|
945
942
|
_defineProperty(HctSolver, "SCALED_DISCOUNT_FROM_LINRGB", [[0.001200833568784504, 0.002389694492170889, 0.0002795742885861124], [0.0005891086651375999, 0.0029785502573438758, 0.0003270666104008398], [0.00010146692491640572, 0.0005364214359186694, 0.0032979401770712076]]);
|
|
946
943
|
_defineProperty(HctSolver, "LINRGB_FROM_SCALED_DISCOUNT", [[1373.2198709594231, -1100.4251190754821, -7.278681089101213], [-271.815969077903, 559.6580465940733, -32.46047482791194], [1.9622899599665666, -57.173814538844006, 308.7233197812385]]);
|
|
@@ -967,7 +964,7 @@ export var ViewingConditions = /*#__PURE__*/function () {
|
|
|
967
964
|
this.fLRoot = fLRoot;
|
|
968
965
|
this.z = z;
|
|
969
966
|
}
|
|
970
|
-
_createClass(ViewingConditions, null, [{
|
|
967
|
+
return _createClass(ViewingConditions, null, [{
|
|
971
968
|
key: "make",
|
|
972
969
|
value:
|
|
973
970
|
/**
|
|
@@ -1022,10 +1019,9 @@ export var ViewingConditions = /*#__PURE__*/function () {
|
|
|
1022
1019
|
return new ViewingConditions(n, aw, nbb, ncb, c, nc, rgbD, fl, Math.pow(fl, 0.25), z);
|
|
1023
1020
|
}
|
|
1024
1021
|
}]);
|
|
1025
|
-
return ViewingConditions;
|
|
1026
1022
|
}();
|
|
1027
|
-
|
|
1023
|
+
_ViewingConditions = ViewingConditions;
|
|
1028
1024
|
/**
|
|
1029
1025
|
* sRGB-like viewing conditions.
|
|
1030
1026
|
*/
|
|
1031
|
-
_defineProperty(ViewingConditions, "DEFAULT",
|
|
1027
|
+
_defineProperty(ViewingConditions, "DEFAULT", _ViewingConditions.make());
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::e4e9ea6d283fd02d4b56206ad5eaabdc>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::5b1e15ab87e3accd8905d047a0de4bd7>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
declare const _default: "\nhtml[data-theme~=\"typography:typography-refreshed\"] {\n --ds-UNSAFE-textTransformUppercase: uppercase;\n --ds-font-letterSpacing-0: 0;\n --ds-font-letterSpacing-100: 0;\n --ds-font-letterSpacing-200: 0;\n --ds-font-letterSpacing-300: 0;\n --ds-font-letterSpacing-400: 0;\n --ds-font-heading-xxlarge: normal 700 2rem/2.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xlarge: normal 700 1.75rem/2rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-large: normal 700 1.5rem/1.75rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-medium: normal 700 1.25rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-small: normal 700 1rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xsmall: normal 700 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xxsmall: normal 700 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-large: normal 400 1rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body: normal 400 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-UNSAFE_small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-code: normal 400 0.875em/1 ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-weight-regular: 400;\n --ds-font-weight-medium: 500;\n --ds-font-weight-semibold: 600;\n --ds-font-weight-bold: 700;\n --ds-font-family-heading: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-body: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-code: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-monospace: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-sans: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-heading: \"Charlie Display\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-body: \"Charlie Text\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n}\n";
|
|
6
|
+
declare const _default: "\nhtml[data-theme~=\"typography:typography-refreshed\"] {\n --ds-UNSAFE-textTransformUppercase: uppercase;\n --ds-font-letterSpacing-0: 0;\n --ds-font-letterSpacing-100: 0;\n --ds-font-letterSpacing-200: 0;\n --ds-font-letterSpacing-300: 0;\n --ds-font-letterSpacing-400: 0;\n --ds-font-heading-xxlarge: normal 700 2rem/2.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xlarge: normal 700 1.75rem/2rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-large: normal 700 1.5rem/1.75rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-medium: normal 700 1.25rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-small: normal 700 1rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xsmall: normal 700 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xxsmall: normal 700 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-large: normal 400 1rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body: normal 400 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-UNSAFE_small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-code: normal 400 0.875em/1 ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-weight-regular: 400;\n --ds-font-weight-medium: 500;\n --ds-font-weight-semibold: 600;\n --ds-font-weight-bold: 700;\n --ds-font-family-heading: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-body: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-code: \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-monospace: \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-sans: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-heading: \"Charlie Display\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-body: \"Charlie Text\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n}\n";
|
|
7
7
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::6058c6751a5967271869a82517102e49>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::e4e9ea6d283fd02d4b56206ad5eaabdc>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::5b1e15ab87e3accd8905d047a0de4bd7>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
declare const _default: "\nhtml[data-theme~=\"typography:typography-refreshed\"] {\n --ds-UNSAFE-textTransformUppercase: uppercase;\n --ds-font-letterSpacing-0: 0;\n --ds-font-letterSpacing-100: 0;\n --ds-font-letterSpacing-200: 0;\n --ds-font-letterSpacing-300: 0;\n --ds-font-letterSpacing-400: 0;\n --ds-font-heading-xxlarge: normal 700 2rem/2.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xlarge: normal 700 1.75rem/2rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-large: normal 700 1.5rem/1.75rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-medium: normal 700 1.25rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-small: normal 700 1rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xsmall: normal 700 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xxsmall: normal 700 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-large: normal 400 1rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body: normal 400 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-UNSAFE_small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-code: normal 400 0.875em/1 ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-weight-regular: 400;\n --ds-font-weight-medium: 500;\n --ds-font-weight-semibold: 600;\n --ds-font-weight-bold: 700;\n --ds-font-family-heading: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-body: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-code: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-monospace: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-sans: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-heading: \"Charlie Display\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-body: \"Charlie Text\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n}\n";
|
|
6
|
+
declare const _default: "\nhtml[data-theme~=\"typography:typography-refreshed\"] {\n --ds-UNSAFE-textTransformUppercase: uppercase;\n --ds-font-letterSpacing-0: 0;\n --ds-font-letterSpacing-100: 0;\n --ds-font-letterSpacing-200: 0;\n --ds-font-letterSpacing-300: 0;\n --ds-font-letterSpacing-400: 0;\n --ds-font-heading-xxlarge: normal 700 2rem/2.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xlarge: normal 700 1.75rem/2rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-large: normal 700 1.5rem/1.75rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-medium: normal 700 1.25rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-small: normal 700 1rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xsmall: normal 700 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xxsmall: normal 700 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-large: normal 400 1rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body: normal 400 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-UNSAFE_small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-code: normal 400 0.875em/1 ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-weight-regular: 400;\n --ds-font-weight-medium: 500;\n --ds-font-weight-semibold: 600;\n --ds-font-weight-bold: 700;\n --ds-font-family-heading: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-body: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-code: \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-monospace: \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-sans: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-heading: \"Charlie Display\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-body: \"Charlie Text\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n}\n";
|
|
7
7
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::6058c6751a5967271869a82517102e49>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: ({
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"introduced": "1.14.0",
|
|
63
63
|
"description": "For representing code only."
|
|
64
64
|
},
|
|
65
|
-
"value": "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace"
|
|
65
|
+
"value": "\"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace"
|
|
66
66
|
},
|
|
67
67
|
"Typography refreshed/font.family.brand.heading": {
|
|
68
68
|
"attributes": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tokens",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
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/"
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"@af/accessibility-testing": "*",
|
|
46
46
|
"@af/formatting": "*",
|
|
47
47
|
"@atlaskit/button": "^20.3.0",
|
|
48
|
-
"@atlaskit/calendar": "^
|
|
48
|
+
"@atlaskit/calendar": "^16.0.0",
|
|
49
49
|
"@atlaskit/checkbox": "^15.2.0",
|
|
50
|
-
"@atlaskit/radio": "^
|
|
50
|
+
"@atlaskit/radio": "^7.0.0",
|
|
51
51
|
"@atlaskit/textfield": "^6.7.0",
|
|
52
|
-
"@atlaskit/tooltip": "^
|
|
52
|
+
"@atlaskit/tooltip": "^19.0.0",
|
|
53
53
|
"@atlaskit/visual-regression": "*",
|
|
54
54
|
"@atlassian/codegen": "^0.1.0",
|
|
55
55
|
"@atlassian/feature-flags-test-utils": "*",
|