@gitlab/ui 122.14.0 → 123.1.0
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/dist/components/base/avatar/avatar.js +22 -12
- package/dist/components/base/avatar/utils.js +17 -0
- package/dist/components/base/avatar_labeled/avatar_labeled.js +83 -2
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +53 -2
- package/dist/tokens/build/js/tokens.js +53 -2
- package/dist/tokens/css/tokens.css +4 -1
- package/dist/tokens/css/tokens.dark.css +4 -1
- package/dist/tokens/docs/tokens-tailwind-docs.dark.json +201 -0
- package/dist/tokens/docs/tokens-tailwind-docs.json +201 -0
- package/dist/tokens/figma/constants.tokens.json +85 -0
- package/dist/tokens/js/tokens.dark.js +63 -1
- package/dist/tokens/js/tokens.js +63 -1
- package/dist/tokens/json/tokens.dark.json +234 -38
- package/dist/tokens/json/tokens.json +234 -38
- package/dist/tokens/scss/_tokens.dark.scss +4 -1
- package/dist/tokens/scss/_tokens.scss +4 -1
- package/dist/tokens/scss/_tokens_custom_properties.scss +4 -1
- package/dist/tokens/tailwind/tokens.cjs +2 -0
- package/package.json +2 -5
- package/src/components/base/avatar/avatar.vue +22 -16
- package/src/components/base/avatar/utils.js +19 -0
- package/src/components/base/avatar_labeled/avatar_labeled.vue +83 -2
- package/src/tokens/build/css/tokens.css +4 -1
- package/src/tokens/build/css/tokens.dark.css +4 -1
- package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +201 -0
- package/src/tokens/build/docs/tokens-tailwind-docs.json +201 -0
- package/src/tokens/build/figma/constants.tokens.json +85 -0
- package/src/tokens/build/js/tokens.dark.js +63 -1
- package/src/tokens/build/js/tokens.js +63 -1
- package/src/tokens/build/json/tokens.dark.json +234 -38
- package/src/tokens/build/json/tokens.json +234 -38
- package/src/tokens/build/scss/_tokens.dark.scss +4 -1
- package/src/tokens/build/scss/_tokens.scss +4 -1
- package/src/tokens/build/scss/_tokens_custom_properties.scss +4 -1
- package/src/tokens/build/tailwind/tokens.cjs +6 -0
- package/src/tokens/constant/shadow.tokens.json +87 -0
- package/tailwind.defaults.js +3 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "123.1.0",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -64,9 +64,7 @@
|
|
|
64
64
|
"test:visual": "./bin/run-visual-tests.sh 'test-storybook --browsers firefox --verbose --url http://${STORYBOOK_HOST:-localhost}:${STORYBOOK_PORT:-9001}'",
|
|
65
65
|
"test:visual:update": "./bin/run-visual-tests.sh 'test-storybook -u --browsers firefox --verbose --url http://${STORYBOOK_HOST:-localhost}:${STORYBOOK_PORT:-9001}'",
|
|
66
66
|
"test:visual:internal": "NODE_ENV=test IS_VISUAL_TEST=true start-test storybook:run http-get://${STORYBOOK_HOST:-localhost}:${STORYBOOK_PORT:-9001}/iframe.html",
|
|
67
|
-
"translations:collect": "make translations.js"
|
|
68
|
-
"tailwind-config-viewer:start": "tailwind-config-viewer -o",
|
|
69
|
-
"tailwind-config-viewer:export": "tailwind-config-viewer export ./tailwind-config-viewer-static"
|
|
67
|
+
"translations:collect": "make translations.js"
|
|
70
68
|
},
|
|
71
69
|
"dependencies": {
|
|
72
70
|
"@floating-ui/dom": "1.7.4",
|
|
@@ -173,7 +171,6 @@
|
|
|
173
171
|
"storybook-dark-mode": "4.0.2",
|
|
174
172
|
"style-dictionary": "^5.0.4",
|
|
175
173
|
"style-loader": "^4",
|
|
176
|
-
"tailwind-config-viewer": "2.0.4",
|
|
177
174
|
"tailwindcss": "3.4.17",
|
|
178
175
|
"vue": "2.7.16",
|
|
179
176
|
"vue-docgen-loader": "1.5.1",
|
|
@@ -3,22 +3,32 @@
|
|
|
3
3
|
import isNumber from 'lodash/isNumber';
|
|
4
4
|
import { avatarShapeOptions, avatarSizeOptions } from '../../../utils/constants';
|
|
5
5
|
import { getAvatarChar } from '../../../utils/string_utils';
|
|
6
|
+
import { avatarSizeValidator } from './utils';
|
|
6
7
|
|
|
7
8
|
const IDENTICON_BG_COUNT = 7;
|
|
8
9
|
|
|
9
10
|
export default {
|
|
10
11
|
name: 'GlAvatar',
|
|
11
12
|
props: {
|
|
13
|
+
/**
|
|
14
|
+
* ID of the entity, used to generate a unique placeholder avatar.
|
|
15
|
+
*/
|
|
12
16
|
entityId: {
|
|
13
17
|
type: Number,
|
|
14
18
|
required: false,
|
|
15
19
|
default: 0,
|
|
16
20
|
},
|
|
21
|
+
/**
|
|
22
|
+
* Name of the entity, used to generate a unique placeholder avatar.
|
|
23
|
+
*/
|
|
17
24
|
entityName: {
|
|
18
25
|
type: String,
|
|
19
26
|
required: false,
|
|
20
27
|
default: '',
|
|
21
28
|
},
|
|
29
|
+
/**
|
|
30
|
+
* Avatar image src.
|
|
31
|
+
*/
|
|
22
32
|
src: {
|
|
23
33
|
type: String,
|
|
24
34
|
required: false,
|
|
@@ -32,32 +42,28 @@ export default {
|
|
|
32
42
|
required: false,
|
|
33
43
|
default: false,
|
|
34
44
|
},
|
|
45
|
+
/**
|
|
46
|
+
* Alt text for the img tag.
|
|
47
|
+
*/
|
|
35
48
|
alt: {
|
|
36
49
|
type: String,
|
|
37
50
|
required: false,
|
|
38
51
|
default: 'avatar',
|
|
39
52
|
},
|
|
53
|
+
/**
|
|
54
|
+
* Size of the avatar.
|
|
55
|
+
* Available sizes are 96, 64, 48, 32, 24, 16.
|
|
56
|
+
*/
|
|
40
57
|
size: {
|
|
41
58
|
type: [Number, Object],
|
|
42
59
|
required: false,
|
|
43
60
|
default: avatarSizeOptions[1],
|
|
44
|
-
validator:
|
|
45
|
-
const sizes = isNumber(value) ? [value] : Object.values(value);
|
|
46
|
-
|
|
47
|
-
const areValidSizes = sizes.every((size) => {
|
|
48
|
-
const isValidSize = avatarSizeOptions.includes(size);
|
|
49
|
-
|
|
50
|
-
if (!isValidSize) {
|
|
51
|
-
/* eslint-disable-next-line no-console */
|
|
52
|
-
console.error(`Avatar size should be one of [${avatarSizeOptions}], received: ${size}`);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
return isValidSize;
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
return areValidSizes;
|
|
59
|
-
},
|
|
61
|
+
validator: avatarSizeValidator,
|
|
60
62
|
},
|
|
63
|
+
/**
|
|
64
|
+
* Shape of the avatar.
|
|
65
|
+
* Available shapes are `circle` and `rect`.
|
|
66
|
+
*/
|
|
61
67
|
shape: {
|
|
62
68
|
type: String,
|
|
63
69
|
required: false,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import isNumber from 'lodash/isNumber';
|
|
2
|
+
import { avatarSizeOptions } from '../../../utils/constants';
|
|
3
|
+
|
|
4
|
+
export const avatarSizeValidator = (value) => {
|
|
5
|
+
const sizes = isNumber(value) ? [value] : Object.values(value);
|
|
6
|
+
|
|
7
|
+
const areValidSizes = sizes.every((size) => {
|
|
8
|
+
const isValidSize = avatarSizeOptions.includes(size);
|
|
9
|
+
|
|
10
|
+
if (!isValidSize) {
|
|
11
|
+
/* eslint-disable-next-line no-console */
|
|
12
|
+
console.error(`Avatar size should be one of [${avatarSizeOptions}], received: ${size}`);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return isValidSize;
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
return areValidSizes;
|
|
19
|
+
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import GlAvatar from '../avatar/avatar.vue';
|
|
3
3
|
import GlLink from '../link/link.vue';
|
|
4
|
+
import { avatarShapeOptions, avatarSizeOptions } from '../../../utils/constants';
|
|
5
|
+
import { avatarSizeValidator } from '../avatar/utils';
|
|
4
6
|
|
|
5
7
|
export default {
|
|
6
8
|
name: 'GlAvatarLabeled',
|
|
@@ -8,23 +10,34 @@ export default {
|
|
|
8
10
|
GlAvatar,
|
|
9
11
|
GlLink,
|
|
10
12
|
},
|
|
13
|
+
inheritAttrs: false,
|
|
11
14
|
props: {
|
|
15
|
+
/**
|
|
16
|
+
* Label displayed to the right of the avatar.
|
|
17
|
+
*/
|
|
12
18
|
label: {
|
|
13
19
|
type: String,
|
|
14
20
|
required: true,
|
|
15
21
|
},
|
|
22
|
+
/**
|
|
23
|
+
* Sub-label displayed below the label when inlineLabels is false.
|
|
24
|
+
* Displayed to the right of label when inlineLabels is true.
|
|
25
|
+
*/
|
|
16
26
|
subLabel: {
|
|
17
27
|
type: String,
|
|
18
28
|
required: false,
|
|
19
29
|
default: '',
|
|
20
30
|
},
|
|
31
|
+
/**
|
|
32
|
+
* Link for the label.
|
|
33
|
+
*/
|
|
21
34
|
labelLink: {
|
|
22
35
|
type: String,
|
|
23
36
|
required: false,
|
|
24
37
|
default: '',
|
|
25
38
|
},
|
|
26
39
|
/**
|
|
27
|
-
* Attributes to pass to the label link
|
|
40
|
+
* Attributes to pass to the label link.
|
|
28
41
|
*/
|
|
29
42
|
labelLinkAttrs: {
|
|
30
43
|
type: Object,
|
|
@@ -33,16 +46,73 @@ export default {
|
|
|
33
46
|
return {};
|
|
34
47
|
},
|
|
35
48
|
},
|
|
49
|
+
/**
|
|
50
|
+
* Link for the sub-label.
|
|
51
|
+
*/
|
|
36
52
|
subLabelLink: {
|
|
37
53
|
type: String,
|
|
38
54
|
required: false,
|
|
39
55
|
default: '',
|
|
40
56
|
},
|
|
57
|
+
/**
|
|
58
|
+
* Display label and sub-label inline.
|
|
59
|
+
*/
|
|
41
60
|
inlineLabels: {
|
|
42
61
|
type: Boolean,
|
|
43
62
|
required: false,
|
|
44
63
|
default: false,
|
|
45
64
|
},
|
|
65
|
+
/**
|
|
66
|
+
* ID of the entity, used to generate a unique placeholder avatar.
|
|
67
|
+
*/
|
|
68
|
+
entityId: {
|
|
69
|
+
type: Number,
|
|
70
|
+
required: false,
|
|
71
|
+
default: 0,
|
|
72
|
+
},
|
|
73
|
+
/**
|
|
74
|
+
* Name of the entity, used to generate a unique placeholder avatar.
|
|
75
|
+
*/
|
|
76
|
+
entityName: {
|
|
77
|
+
type: String,
|
|
78
|
+
required: false,
|
|
79
|
+
default: '',
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* Avatar image src.
|
|
83
|
+
*/
|
|
84
|
+
src: {
|
|
85
|
+
type: String,
|
|
86
|
+
required: false,
|
|
87
|
+
default: '',
|
|
88
|
+
},
|
|
89
|
+
/**
|
|
90
|
+
* Show fallback identicon when image fails to load
|
|
91
|
+
*/
|
|
92
|
+
fallbackOnError: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
required: false,
|
|
95
|
+
default: false,
|
|
96
|
+
},
|
|
97
|
+
/**
|
|
98
|
+
* Size of the avatar.
|
|
99
|
+
* Available sizes are 96, 64, 48, 32, 24, 16.
|
|
100
|
+
*/
|
|
101
|
+
size: {
|
|
102
|
+
type: [Number, Object],
|
|
103
|
+
required: false,
|
|
104
|
+
default: avatarSizeOptions[1],
|
|
105
|
+
validator: avatarSizeValidator,
|
|
106
|
+
},
|
|
107
|
+
/**
|
|
108
|
+
* Shape of the avatar.
|
|
109
|
+
* Available shapes are `circle` and `rect`.
|
|
110
|
+
*/
|
|
111
|
+
shape: {
|
|
112
|
+
type: String,
|
|
113
|
+
required: false,
|
|
114
|
+
default: avatarShapeOptions.circle,
|
|
115
|
+
},
|
|
46
116
|
},
|
|
47
117
|
computed: {
|
|
48
118
|
hasLabelLink() {
|
|
@@ -71,6 +141,17 @@ export default {
|
|
|
71
141
|
'inline-labels': this.inlineLabels,
|
|
72
142
|
};
|
|
73
143
|
},
|
|
144
|
+
avatarPropsAndAttrs() {
|
|
145
|
+
return {
|
|
146
|
+
...this.$attrs,
|
|
147
|
+
entityId: this.entityId,
|
|
148
|
+
entityName: this.entityName,
|
|
149
|
+
src: this.src,
|
|
150
|
+
fallbackOnError: this.fallbackOnError,
|
|
151
|
+
size: this.size,
|
|
152
|
+
shape: this.shape,
|
|
153
|
+
};
|
|
154
|
+
},
|
|
74
155
|
},
|
|
75
156
|
methods: {
|
|
76
157
|
onAvatarClick() {
|
|
@@ -81,7 +162,7 @@ export default {
|
|
|
81
162
|
</script>
|
|
82
163
|
<template>
|
|
83
164
|
<div class="gl-avatar-labeled">
|
|
84
|
-
<gl-avatar v-bind="
|
|
165
|
+
<gl-avatar v-bind="avatarPropsAndAttrs" :class="avatarCssClasses" alt v-on="avatarListeners" />
|
|
85
166
|
<div class="gl-avatar-labeled-labels !gl-text-left" :class="avatarRowLayoutClass">
|
|
86
167
|
<div class="-gl-mx-1 -gl-my-1 gl-flex gl-flex-wrap gl-items-center !gl-text-left">
|
|
87
168
|
<gl-link
|
|
@@ -573,6 +573,7 @@
|
|
|
573
573
|
--gl-border-color-subtle: var(--gl-color-neutral-50); /** Used for a subtle border in combination with the default background. */
|
|
574
574
|
--gl-border-color-strong: var(--gl-color-neutral-200); /** Used for a distinct border that emphasizes an edge or boundaries. */
|
|
575
575
|
--gl-border-color-transparent: var(--gl-color-alpha-0); /** Used when a border needs to be present, but not visibly perceived. */
|
|
576
|
+
--gl-shadow-color-default: var(--gl-color-alpha-dark-16); /** Used for the default shadow color. */
|
|
576
577
|
--gl-alert-neutral-border-top-color: var(--gl-color-alpha-0); /** Used for the border center color of a neutral alert. */
|
|
577
578
|
--gl-alert-neutral-border-bottom-color: var(--gl-color-alpha-0); /** Used for the border bottom color of a neutral alert. */
|
|
578
579
|
--gl-alert-info-border-top-color: var(--gl-color-alpha-0); /** Used for the border color of an info alert. */
|
|
@@ -895,7 +896,6 @@
|
|
|
895
896
|
--gl-highlight-target-background-color: var(--gl-color-blue-50); /** Used for temporary visual emphasis for backgrounds of referenced elements (for example URL anchors, hover states) or to show relationships between content without implying status or requiring action. */
|
|
896
897
|
--gl-highlight-target-border-color: var(--gl-color-blue-200); /** Used to provide additional visual emphasis for borders of temporarily targeted elements or when visualizing connections between related content, distinct from persistent states. */
|
|
897
898
|
--gl-icon-color-info: var(--gl-color-blue-700); /** Used for an icon associated with information or help. */
|
|
898
|
-
--gl-shadow-color-default: var(--gl-color-alpha-dark-16); /** Used for the default shadow color. */
|
|
899
899
|
--gl-status-neutral-background-color: var(--gl-color-neutral-100); /** Used for the background of a neutral status item when the status is neither positive nor negative, or when indicating a special but stable state. */
|
|
900
900
|
--gl-status-neutral-text-color: var(--gl-color-neutral-700); /** Used for the text of a neutral status item when the status is neither positive nor negative, or when indicating a special but stable state. */
|
|
901
901
|
--gl-status-neutral-icon-color: var(--gl-color-neutral-500); /** Used for the icon of a neutral status item when the status is neither positive nor negative, or when indicating a special but stable state. */
|
|
@@ -925,6 +925,9 @@
|
|
|
925
925
|
--gl-text-color-disabled: var(--gl-color-neutral-400); /** Used for disabled text. */
|
|
926
926
|
--gl-border-radius-default: var(--gl-border-radius-md);
|
|
927
927
|
--gl-border-color-section: var(--gl-border-color-default); /** Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page. */
|
|
928
|
+
--gl-shadow-sm: 0 0 2px var(--gl-shadow-color-default), 0 1px 4px var(--gl-shadow-color-default); /** Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board. */
|
|
929
|
+
--gl-shadow-md: 0 0 1px var(--gl-shadow-color-default), 0 0 2px var(--gl-shadow-color-default), 0 2px 8px var(--gl-shadow-color-default); /** Used for surfaces that need boundary definition and appear on hover. For example, popovers. */
|
|
930
|
+
--gl-shadow-lg: 0 0 2px var(--gl-shadow-color-default), 0 0 2px var(--gl-shadow-color-default), 0 4px 12px var(--gl-shadow-color-default); /** Used for large surfaces that present additional context to the user. */
|
|
928
931
|
--gl-alert-neutral-title-color: var(--gl-text-color-heading); /** Used for the title color of a neutral alert. */
|
|
929
932
|
--gl-alert-neutral-background-color: var(--gl-feedback-neutral-background-color); /** Used for the background color of a neutral alert. */
|
|
930
933
|
--gl-alert-info-title-color: var(--gl-text-color-heading); /** Used for the title color of an info alert. */
|
|
@@ -573,6 +573,7 @@
|
|
|
573
573
|
--gl-border-color-subtle: var(--gl-color-neutral-800); /** Used for a subtle border in combination with the default background. */
|
|
574
574
|
--gl-border-color-strong: var(--gl-color-neutral-600); /** Used for a distinct border that emphasizes an edge or boundaries. */
|
|
575
575
|
--gl-border-color-transparent: var(--gl-color-alpha-0); /** Used when a border needs to be present, but not visibly perceived. */
|
|
576
|
+
--gl-shadow-color-default: var(--gl-color-alpha-dark-40); /** Used for the default shadow color. */
|
|
576
577
|
--gl-alert-neutral-border-top-color: var(--gl-color-neutral-400); /** Used for the border center color of a neutral alert. */
|
|
577
578
|
--gl-alert-neutral-border-bottom-color: var(--gl-color-alpha-0); /** Used for the border bottom color of a neutral alert. */
|
|
578
579
|
--gl-alert-info-border-top-color: var(--gl-color-blue-400); /** Used for the border color of an info alert. */
|
|
@@ -895,7 +896,6 @@
|
|
|
895
896
|
--gl-highlight-target-background-color: var(--gl-color-blue-950); /** Used for temporary visual emphasis for backgrounds of referenced elements (for example URL anchors, hover states) or to show relationships between content without implying status or requiring action. */
|
|
896
897
|
--gl-highlight-target-border-color: var(--gl-color-blue-700); /** Used to provide additional visual emphasis for borders of temporarily targeted elements or when visualizing connections between related content, distinct from persistent states. */
|
|
897
898
|
--gl-icon-color-info: var(--gl-color-blue-200); /** Used for an icon associated with information or help. */
|
|
898
|
-
--gl-shadow-color-default: var(--gl-color-alpha-dark-40); /** Used for the default shadow color. */
|
|
899
899
|
--gl-status-neutral-background-color: var(--gl-color-neutral-800); /** Used for the background of a neutral status item when the status is neither positive nor negative, or when indicating a special but stable state. */
|
|
900
900
|
--gl-status-neutral-text-color: var(--gl-color-neutral-200); /** Used for the text of a neutral status item when the status is neither positive nor negative, or when indicating a special but stable state. */
|
|
901
901
|
--gl-status-neutral-icon-color: var(--gl-color-neutral-300); /** Used for the icon of a neutral status item when the status is neither positive nor negative, or when indicating a special but stable state. */
|
|
@@ -925,6 +925,9 @@
|
|
|
925
925
|
--gl-text-color-disabled: var(--gl-color-neutral-400); /** Used for disabled text. */
|
|
926
926
|
--gl-border-radius-default: var(--gl-border-radius-md);
|
|
927
927
|
--gl-border-color-section: var(--gl-background-color-default); /** Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page. */
|
|
928
|
+
--gl-shadow-sm: 0 0 2px var(--gl-shadow-color-default), 0 1px 4px var(--gl-shadow-color-default); /** Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board. */
|
|
929
|
+
--gl-shadow-md: 0 0 1px var(--gl-shadow-color-default), 0 0 2px var(--gl-shadow-color-default), 0 2px 8px var(--gl-shadow-color-default); /** Used for surfaces that need boundary definition and appear on hover. For example, popovers. */
|
|
930
|
+
--gl-shadow-lg: 0 0 2px var(--gl-shadow-color-default), 0 0 2px var(--gl-shadow-color-default), 0 4px 12px var(--gl-shadow-color-default); /** Used for large surfaces that present additional context to the user. */
|
|
928
931
|
--gl-alert-neutral-title-color: var(--gl-text-color-heading); /** Used for the title color of a neutral alert. */
|
|
929
932
|
--gl-alert-neutral-background-color: var(--gl-feedback-neutral-background-color); /** Used for the background color of a neutral alert. */
|
|
930
933
|
--gl-alert-info-title-color: var(--gl-color-blue-300); /** Used for the title color of an info alert. */
|
|
@@ -44512,5 +44512,206 @@
|
|
|
44512
44512
|
],
|
|
44513
44513
|
"cssWithValue": "var(--gl-zindex-9999, 9999)"
|
|
44514
44514
|
}
|
|
44515
|
+
},
|
|
44516
|
+
"boxShadow": {
|
|
44517
|
+
"sm": {
|
|
44518
|
+
"key": "{shadow.sm}",
|
|
44519
|
+
"$value": [
|
|
44520
|
+
{
|
|
44521
|
+
"color": "rgba(05, 05, 06, 0.4)",
|
|
44522
|
+
"offsetX": 0,
|
|
44523
|
+
"offsetY": 0,
|
|
44524
|
+
"blur": "2px",
|
|
44525
|
+
"spread": 0
|
|
44526
|
+
},
|
|
44527
|
+
{
|
|
44528
|
+
"color": "rgba(05, 05, 06, 0.4)",
|
|
44529
|
+
"offsetX": 0,
|
|
44530
|
+
"offsetY": "1px",
|
|
44531
|
+
"blur": "4px",
|
|
44532
|
+
"spread": 0
|
|
44533
|
+
}
|
|
44534
|
+
],
|
|
44535
|
+
"$type": "shadow",
|
|
44536
|
+
"$description": "Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board.",
|
|
44537
|
+
"$extensions": {
|
|
44538
|
+
"com.figma.scope": []
|
|
44539
|
+
},
|
|
44540
|
+
"filePath": "src/tokens/constant/shadow.tokens.json",
|
|
44541
|
+
"isSource": true,
|
|
44542
|
+
"original": {
|
|
44543
|
+
"$value": [
|
|
44544
|
+
{
|
|
44545
|
+
"color": "{shadow.color.default}",
|
|
44546
|
+
"offsetX": 0,
|
|
44547
|
+
"offsetY": 0,
|
|
44548
|
+
"blur": "2px",
|
|
44549
|
+
"spread": 0
|
|
44550
|
+
},
|
|
44551
|
+
{
|
|
44552
|
+
"color": "{shadow.color.default}",
|
|
44553
|
+
"offsetX": 0,
|
|
44554
|
+
"offsetY": "1px",
|
|
44555
|
+
"blur": "4px",
|
|
44556
|
+
"spread": 0
|
|
44557
|
+
}
|
|
44558
|
+
],
|
|
44559
|
+
"$type": "shadow",
|
|
44560
|
+
"$description": "Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board.",
|
|
44561
|
+
"$extensions": {
|
|
44562
|
+
"com.figma.scope": []
|
|
44563
|
+
},
|
|
44564
|
+
"key": "{shadow.sm}"
|
|
44565
|
+
},
|
|
44566
|
+
"name": "SHADOW_SM",
|
|
44567
|
+
"attributes": {},
|
|
44568
|
+
"path": [
|
|
44569
|
+
"shadow",
|
|
44570
|
+
"sm"
|
|
44571
|
+
],
|
|
44572
|
+
"cssWithValue": "var(--gl-shadow-sm)"
|
|
44573
|
+
},
|
|
44574
|
+
"md": {
|
|
44575
|
+
"key": "{shadow.md}",
|
|
44576
|
+
"$value": [
|
|
44577
|
+
{
|
|
44578
|
+
"color": "rgba(05, 05, 06, 0.4)",
|
|
44579
|
+
"offsetX": 0,
|
|
44580
|
+
"offsetY": 0,
|
|
44581
|
+
"blur": "1px",
|
|
44582
|
+
"spread": 0
|
|
44583
|
+
},
|
|
44584
|
+
{
|
|
44585
|
+
"color": "rgba(05, 05, 06, 0.4)",
|
|
44586
|
+
"offsetX": 0,
|
|
44587
|
+
"offsetY": 0,
|
|
44588
|
+
"blur": "2px",
|
|
44589
|
+
"spread": 0
|
|
44590
|
+
},
|
|
44591
|
+
{
|
|
44592
|
+
"color": "rgba(05, 05, 06, 0.4)",
|
|
44593
|
+
"offsetX": 0,
|
|
44594
|
+
"offsetY": "2px",
|
|
44595
|
+
"blur": "8px",
|
|
44596
|
+
"spread": 0
|
|
44597
|
+
}
|
|
44598
|
+
],
|
|
44599
|
+
"$type": "shadow",
|
|
44600
|
+
"$description": "Used for surfaces that need boundary definition and appear on hover. For example, popovers.",
|
|
44601
|
+
"$extensions": {
|
|
44602
|
+
"com.figma.scope": []
|
|
44603
|
+
},
|
|
44604
|
+
"filePath": "src/tokens/constant/shadow.tokens.json",
|
|
44605
|
+
"isSource": true,
|
|
44606
|
+
"original": {
|
|
44607
|
+
"$value": [
|
|
44608
|
+
{
|
|
44609
|
+
"color": "{shadow.color.default}",
|
|
44610
|
+
"offsetX": 0,
|
|
44611
|
+
"offsetY": 0,
|
|
44612
|
+
"blur": "1px",
|
|
44613
|
+
"spread": 0
|
|
44614
|
+
},
|
|
44615
|
+
{
|
|
44616
|
+
"color": "{shadow.color.default}",
|
|
44617
|
+
"offsetX": 0,
|
|
44618
|
+
"offsetY": 0,
|
|
44619
|
+
"blur": "2px",
|
|
44620
|
+
"spread": 0
|
|
44621
|
+
},
|
|
44622
|
+
{
|
|
44623
|
+
"color": "{shadow.color.default}",
|
|
44624
|
+
"offsetX": 0,
|
|
44625
|
+
"offsetY": "2px",
|
|
44626
|
+
"blur": "8px",
|
|
44627
|
+
"spread": 0
|
|
44628
|
+
}
|
|
44629
|
+
],
|
|
44630
|
+
"$type": "shadow",
|
|
44631
|
+
"$description": "Used for surfaces that need boundary definition and appear on hover. For example, popovers.",
|
|
44632
|
+
"$extensions": {
|
|
44633
|
+
"com.figma.scope": []
|
|
44634
|
+
},
|
|
44635
|
+
"key": "{shadow.md}"
|
|
44636
|
+
},
|
|
44637
|
+
"name": "SHADOW_MD",
|
|
44638
|
+
"attributes": {},
|
|
44639
|
+
"path": [
|
|
44640
|
+
"shadow",
|
|
44641
|
+
"md"
|
|
44642
|
+
],
|
|
44643
|
+
"cssWithValue": "var(--gl-shadow-md)"
|
|
44644
|
+
},
|
|
44645
|
+
"lg": {
|
|
44646
|
+
"key": "{shadow.lg}",
|
|
44647
|
+
"$value": [
|
|
44648
|
+
{
|
|
44649
|
+
"color": "rgba(05, 05, 06, 0.4)",
|
|
44650
|
+
"offsetX": 0,
|
|
44651
|
+
"offsetY": 0,
|
|
44652
|
+
"blur": "2px",
|
|
44653
|
+
"spread": 0
|
|
44654
|
+
},
|
|
44655
|
+
{
|
|
44656
|
+
"color": "rgba(05, 05, 06, 0.4)",
|
|
44657
|
+
"offsetX": 0,
|
|
44658
|
+
"offsetY": 0,
|
|
44659
|
+
"blur": "2px",
|
|
44660
|
+
"spread": 0
|
|
44661
|
+
},
|
|
44662
|
+
{
|
|
44663
|
+
"color": "rgba(05, 05, 06, 0.4)",
|
|
44664
|
+
"offsetX": 0,
|
|
44665
|
+
"offsetY": "4px",
|
|
44666
|
+
"blur": "12px",
|
|
44667
|
+
"spread": 0
|
|
44668
|
+
}
|
|
44669
|
+
],
|
|
44670
|
+
"$type": "shadow",
|
|
44671
|
+
"$description": "Used for large surfaces that present additional context to the user.",
|
|
44672
|
+
"$extensions": {
|
|
44673
|
+
"com.figma.scope": []
|
|
44674
|
+
},
|
|
44675
|
+
"filePath": "src/tokens/constant/shadow.tokens.json",
|
|
44676
|
+
"isSource": true,
|
|
44677
|
+
"original": {
|
|
44678
|
+
"$value": [
|
|
44679
|
+
{
|
|
44680
|
+
"color": "{shadow.color.default}",
|
|
44681
|
+
"offsetX": 0,
|
|
44682
|
+
"offsetY": 0,
|
|
44683
|
+
"blur": "2px",
|
|
44684
|
+
"spread": 0
|
|
44685
|
+
},
|
|
44686
|
+
{
|
|
44687
|
+
"color": "{shadow.color.default}",
|
|
44688
|
+
"offsetX": 0,
|
|
44689
|
+
"offsetY": 0,
|
|
44690
|
+
"blur": "2px",
|
|
44691
|
+
"spread": 0
|
|
44692
|
+
},
|
|
44693
|
+
{
|
|
44694
|
+
"color": "{shadow.color.default}",
|
|
44695
|
+
"offsetX": 0,
|
|
44696
|
+
"offsetY": "4px",
|
|
44697
|
+
"blur": "12px",
|
|
44698
|
+
"spread": 0
|
|
44699
|
+
}
|
|
44700
|
+
],
|
|
44701
|
+
"$type": "shadow",
|
|
44702
|
+
"$description": "Used for large surfaces that present additional context to the user.",
|
|
44703
|
+
"$extensions": {
|
|
44704
|
+
"com.figma.scope": []
|
|
44705
|
+
},
|
|
44706
|
+
"key": "{shadow.lg}"
|
|
44707
|
+
},
|
|
44708
|
+
"name": "SHADOW_LG",
|
|
44709
|
+
"attributes": {},
|
|
44710
|
+
"path": [
|
|
44711
|
+
"shadow",
|
|
44712
|
+
"lg"
|
|
44713
|
+
],
|
|
44714
|
+
"cssWithValue": "var(--gl-shadow-lg)"
|
|
44715
|
+
}
|
|
44515
44716
|
}
|
|
44516
44717
|
}
|