@atlaskit/smart-card 17.4.2 → 17.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 +6 -0
- package/dist/cjs/utils/token.js +14 -24
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/utils/token.js +14 -22
- package/dist/es2019/version.json +1 -1
- package/dist/esm/utils/token.js +14 -22
- package/dist/esm/version.json +1 -1
- package/dist/types/utils/token.d.ts +13 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/cjs/utils/token.js
CHANGED
|
@@ -3,33 +3,23 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.tokens =
|
|
6
|
+
exports.tokens = void 0;
|
|
7
7
|
|
|
8
8
|
var _tokens = require("@atlaskit/tokens");
|
|
9
9
|
|
|
10
|
-
// Temporary safeguard while @atlaskit/tokens is being developed
|
|
11
|
-
var safeToken = function safeToken(path, fallback) {
|
|
12
|
-
try {
|
|
13
|
-
return (0, _tokens.token)(path, fallback);
|
|
14
|
-
} catch (e) {
|
|
15
|
-
return fallback;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
exports.safeToken = safeToken;
|
|
20
10
|
var tokens = {
|
|
21
|
-
actionIcon:
|
|
22
|
-
background:
|
|
23
|
-
badgeIcon:
|
|
24
|
-
badgeText:
|
|
25
|
-
blackLink:
|
|
26
|
-
blackLinkPressed:
|
|
27
|
-
blueLink:
|
|
28
|
-
blueLinkPressed:
|
|
29
|
-
elevation:
|
|
30
|
-
errorMessage:
|
|
31
|
-
errorMessageHover:
|
|
32
|
-
snippet:
|
|
33
|
-
text:
|
|
11
|
+
actionIcon: (0, _tokens.token)('color.icon', '#44546F'),
|
|
12
|
+
background: (0, _tokens.token)('elevation.surface', '#FFFFFF'),
|
|
13
|
+
badgeIcon: (0, _tokens.token)('color.icon.subtle', '#626F86'),
|
|
14
|
+
badgeText: (0, _tokens.token)('color.text.subtlest', '#626F86'),
|
|
15
|
+
blackLink: (0, _tokens.token)('color.text.subtle', '#44546F'),
|
|
16
|
+
blackLinkPressed: (0, _tokens.token)('color.text', '#172B4D'),
|
|
17
|
+
blueLink: (0, _tokens.token)('color.link', '#0C66E4'),
|
|
18
|
+
blueLinkPressed: (0, _tokens.token)('color.link.pressed', '#0055CC'),
|
|
19
|
+
elevation: (0, _tokens.token)('elevation.shadow.raised', '0px 1px 1px #091E4240, 0px 0px 1px #091E424F'),
|
|
20
|
+
errorMessage: (0, _tokens.token)('color.text.disabled', '#6B778C'),
|
|
21
|
+
errorMessageHover: (0, _tokens.token)('color.text.subtle', '#8993A4'),
|
|
22
|
+
snippet: (0, _tokens.token)('color.text', '#172B4D'),
|
|
23
|
+
text: (0, _tokens.token)('color.text.subtlest', '#626F86')
|
|
34
24
|
};
|
|
35
25
|
exports.tokens = tokens;
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
import { token } from '@atlaskit/tokens';
|
|
2
|
-
|
|
3
|
-
export const safeToken = (path, fallback) => {
|
|
4
|
-
try {
|
|
5
|
-
return token(path, fallback);
|
|
6
|
-
} catch (e) {
|
|
7
|
-
return fallback;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
1
|
+
import { token } from '@atlaskit/tokens';
|
|
10
2
|
export const tokens = {
|
|
11
|
-
actionIcon:
|
|
12
|
-
background:
|
|
13
|
-
badgeIcon:
|
|
14
|
-
badgeText:
|
|
15
|
-
blackLink:
|
|
16
|
-
blackLinkPressed:
|
|
17
|
-
blueLink:
|
|
18
|
-
blueLinkPressed:
|
|
19
|
-
elevation:
|
|
20
|
-
errorMessage:
|
|
21
|
-
errorMessageHover:
|
|
22
|
-
snippet:
|
|
23
|
-
text:
|
|
3
|
+
actionIcon: token('color.icon', '#44546F'),
|
|
4
|
+
background: token('elevation.surface', '#FFFFFF'),
|
|
5
|
+
badgeIcon: token('color.icon.subtle', '#626F86'),
|
|
6
|
+
badgeText: token('color.text.subtlest', '#626F86'),
|
|
7
|
+
blackLink: token('color.text.subtle', '#44546F'),
|
|
8
|
+
blackLinkPressed: token('color.text', '#172B4D'),
|
|
9
|
+
blueLink: token('color.link', '#0C66E4'),
|
|
10
|
+
blueLinkPressed: token('color.link.pressed', '#0055CC'),
|
|
11
|
+
elevation: token('elevation.shadow.raised', '0px 1px 1px #091E4240, 0px 0px 1px #091E424F'),
|
|
12
|
+
errorMessage: token('color.text.disabled', '#6B778C'),
|
|
13
|
+
errorMessageHover: token('color.text.subtle', '#8993A4'),
|
|
14
|
+
snippet: token('color.text', '#172B4D'),
|
|
15
|
+
text: token('color.text.subtlest', '#626F86')
|
|
24
16
|
};
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/utils/token.js
CHANGED
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
import { token } from '@atlaskit/tokens';
|
|
2
|
-
|
|
3
|
-
export var safeToken = function safeToken(path, fallback) {
|
|
4
|
-
try {
|
|
5
|
-
return token(path, fallback);
|
|
6
|
-
} catch (e) {
|
|
7
|
-
return fallback;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
1
|
+
import { token } from '@atlaskit/tokens';
|
|
10
2
|
export var tokens = {
|
|
11
|
-
actionIcon:
|
|
12
|
-
background:
|
|
13
|
-
badgeIcon:
|
|
14
|
-
badgeText:
|
|
15
|
-
blackLink:
|
|
16
|
-
blackLinkPressed:
|
|
17
|
-
blueLink:
|
|
18
|
-
blueLinkPressed:
|
|
19
|
-
elevation:
|
|
20
|
-
errorMessage:
|
|
21
|
-
errorMessageHover:
|
|
22
|
-
snippet:
|
|
23
|
-
text:
|
|
3
|
+
actionIcon: token('color.icon', '#44546F'),
|
|
4
|
+
background: token('elevation.surface', '#FFFFFF'),
|
|
5
|
+
badgeIcon: token('color.icon.subtle', '#626F86'),
|
|
6
|
+
badgeText: token('color.text.subtlest', '#626F86'),
|
|
7
|
+
blackLink: token('color.text.subtle', '#44546F'),
|
|
8
|
+
blackLinkPressed: token('color.text', '#172B4D'),
|
|
9
|
+
blueLink: token('color.link', '#0C66E4'),
|
|
10
|
+
blueLinkPressed: token('color.link.pressed', '#0055CC'),
|
|
11
|
+
elevation: token('elevation.shadow.raised', '0px 1px 1px #091E4240, 0px 0px 1px #091E424F'),
|
|
12
|
+
errorMessage: token('color.text.disabled', '#6B778C'),
|
|
13
|
+
errorMessageHover: token('color.text.subtle', '#8993A4'),
|
|
14
|
+
snippet: token('color.text', '#172B4D'),
|
|
15
|
+
text: token('color.text.subtlest', '#626F86')
|
|
24
16
|
};
|
package/dist/esm/version.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
export declare const safeToken: (path: string, fallback?: string | undefined) => any;
|
|
2
1
|
export declare const tokens: {
|
|
3
|
-
actionIcon:
|
|
4
|
-
background:
|
|
5
|
-
badgeIcon:
|
|
6
|
-
badgeText:
|
|
7
|
-
blackLink:
|
|
8
|
-
blackLinkPressed:
|
|
9
|
-
blueLink:
|
|
10
|
-
blueLinkPressed:
|
|
11
|
-
elevation:
|
|
12
|
-
errorMessage:
|
|
13
|
-
errorMessageHover:
|
|
14
|
-
snippet:
|
|
15
|
-
text:
|
|
2
|
+
actionIcon: "var(--ds-icon)";
|
|
3
|
+
background: "var(--ds-surface)";
|
|
4
|
+
badgeIcon: "var(--ds-icon-subtle)";
|
|
5
|
+
badgeText: "var(--ds-text-subtlest)";
|
|
6
|
+
blackLink: "var(--ds-text-subtle)";
|
|
7
|
+
blackLinkPressed: "var(--ds-text)";
|
|
8
|
+
blueLink: "var(--ds-link)";
|
|
9
|
+
blueLinkPressed: "var(--ds-link-pressed)";
|
|
10
|
+
elevation: "var(--ds-shadow-raised)";
|
|
11
|
+
errorMessage: "var(--ds-text-disabled)";
|
|
12
|
+
errorMessageHover: "var(--ds-text-subtle)";
|
|
13
|
+
snippet: "var(--ds-text)";
|
|
14
|
+
text: "var(--ds-text-subtlest)";
|
|
16
15
|
};
|