@gitlab/ui 115.0.0 → 115.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.
Files changed (127) hide show
  1. package/bin/migrate_custom_utils_to_tw.bundled.mjs +172489 -139144
  2. package/dist/components/base/new_dropdowns/base_dropdown/base_dropdown.js +15 -3
  3. package/dist/components/base/new_dropdowns/constants.js +5 -2
  4. package/dist/components/dashboards/dashboard_layout/grid_layout/grid_layout.js +286 -0
  5. package/dist/components/dashboards/mock_data.js +49 -0
  6. package/dist/index.css +2 -2
  7. package/dist/index.css.map +1 -1
  8. package/dist/tailwind.css +1 -1
  9. package/dist/tailwind.css.map +1 -1
  10. package/dist/tokens/docs/tokens-tailwind-docs.dark.json +7986 -0
  11. package/dist/tokens/docs/tokens-tailwind-docs.json +7986 -0
  12. package/dist/tokens/figma/constants.tokens.json +944 -236
  13. package/dist/tokens/figma/contextual.tokens.json +2721 -418
  14. package/dist/tokens/figma/deprecated.tokens.json +664 -8
  15. package/dist/tokens/figma/semantic.tokens.json +1130 -169
  16. package/dist/tokens/js/tokens.dark.js +1089 -1047
  17. package/dist/tokens/js/tokens.js +1078 -1047
  18. package/dist/tokens/json/tokens.dark.json +9267 -3
  19. package/dist/tokens/json/tokens.json +9267 -3
  20. package/dist/tokens/tailwind/tokens.cjs +76 -407
  21. package/package.json +22 -49
  22. package/src/components/base/accordion/accordion_item.vue +1 -1
  23. package/src/components/base/avatar/avatar.vue +1 -1
  24. package/src/components/base/button/button.vue +1 -1
  25. package/src/components/base/dropdown/dropdown.vue +3 -1
  26. package/src/components/base/filtered_search/filtered_search.vue +1 -1
  27. package/src/components/base/filtered_search/filtered_search_suggestion_list.vue +1 -1
  28. package/src/components/base/filtered_search/filtered_search_token.vue +1 -1
  29. package/src/components/base/filtered_search/filtered_search_token_segment.vue +3 -3
  30. package/src/components/base/form/form_checkbox_tree/models/tree.js +1 -1
  31. package/src/components/base/form/form_date/form_date.vue +1 -1
  32. package/src/components/base/form/form_input/form_input.vue +1 -1
  33. package/src/components/base/form/form_select/form_select.vue +1 -1
  34. package/src/components/base/modal/modal.vue +2 -2
  35. package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.vue +23 -6
  36. package/src/components/base/new_dropdowns/constants.js +4 -1
  37. package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.md +1 -2
  38. package/src/components/base/new_dropdowns/listbox/listbox.vue +7 -7
  39. package/src/components/base/pagination/pagination.vue +2 -2
  40. package/src/components/base/path/path.vue +1 -1
  41. package/src/components/base/skeleton_loader/skeleton_loader.vue +9 -9
  42. package/src/components/base/table/table.md +1 -2
  43. package/src/components/base/table_lite/table_lite.md +1 -1
  44. package/src/components/base/tabs/tabs/tabs.vue +1 -1
  45. package/src/components/base/toast/toast.js +2 -2
  46. package/src/components/base/token_selector/token_container.vue +1 -1
  47. package/src/components/base/token_selector/token_selector.vue +2 -2
  48. package/src/components/base/token_selector/token_selector_dropdown.vue +1 -1
  49. package/src/components/charts/area/area.vue +3 -3
  50. package/src/components/charts/bar/bar.vue +2 -2
  51. package/src/components/charts/column/column.vue +2 -2
  52. package/src/components/charts/discrete_scatter/discrete_scatter.vue +2 -2
  53. package/src/components/charts/gauge/gauge.vue +1 -1
  54. package/src/components/charts/heatmap/heatmap.vue +2 -2
  55. package/src/components/charts/heatmap/index.js +1 -0
  56. package/src/components/charts/legend/legend.vue +1 -1
  57. package/src/components/charts/line/line.vue +3 -3
  58. package/src/components/charts/sparkline/sparkline.vue +1 -1
  59. package/src/components/charts/stacked_column/stacked_column.vue +1 -1
  60. package/src/components/dashboards/dashboard_layout/grid_layout/grid_layout.scss +1 -0
  61. package/src/components/dashboards/dashboard_layout/grid_layout/grid_layout.vue +247 -0
  62. package/src/components/dashboards/mock_data.js +40 -0
  63. package/src/components/mixins/tooltip_mixin.js +1 -1
  64. package/src/components/utilities/intersection_observer/intersection_observer.vue +1 -1
  65. package/src/components/utilities/intersperse/intersperse.vue +2 -2
  66. package/src/components/utilities/sprintf/sprintf.md +1 -1
  67. package/src/components/utilities/sprintf/sprintf.vue +1 -1
  68. package/src/components/utilities/truncate/truncate.vue +2 -2
  69. package/src/config.js +1 -1
  70. package/src/directives/outside/outside.js +4 -4
  71. package/src/directives/tooltip/tooltip.js +1 -1
  72. package/src/scss/components.scss +1 -0
  73. package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +7986 -0
  74. package/src/tokens/build/docs/tokens-tailwind-docs.json +7986 -0
  75. package/src/tokens/build/figma/constants.tokens.json +944 -236
  76. package/src/tokens/build/figma/contextual.tokens.json +2721 -418
  77. package/src/tokens/build/figma/deprecated.tokens.json +664 -8
  78. package/src/tokens/build/figma/semantic.tokens.json +1130 -169
  79. package/src/tokens/build/json/tokens.dark.json +9267 -3
  80. package/src/tokens/build/json/tokens.json +9267 -3
  81. package/src/tokens/constant/color.alpha.tokens.json +60 -15
  82. package/src/tokens/constant/color.tokens.json +844 -211
  83. package/src/tokens/constant/line_height.tokens.json +40 -10
  84. package/src/tokens/contextual/alert.tokens.json +119 -19
  85. package/src/tokens/contextual/avatar.tokens.json +90 -14
  86. package/src/tokens/contextual/badge.tokens.json +728 -112
  87. package/src/tokens/contextual/banner.tokens.json +19 -3
  88. package/src/tokens/contextual/breadcrumb.tokens.json +6 -1
  89. package/src/tokens/contextual/broadcast.tokens.json +301 -81
  90. package/src/tokens/contextual/button.tokens.json +793 -120
  91. package/src/tokens/contextual/chart.tokens.json +42 -7
  92. package/src/tokens/contextual/datepicker.tokens.json +13 -2
  93. package/src/tokens/contextual/dropdown.tokens.json +142 -21
  94. package/src/tokens/contextual/filtered-search.tokens.json +42 -6
  95. package/src/tokens/contextual/illustration.tokens.json +195 -33
  96. package/src/tokens/contextual/label.tokens.json +81 -12
  97. package/src/tokens/contextual/link.tokens.json +26 -4
  98. package/src/tokens/contextual/progress-bar.tokens.json +35 -5
  99. package/src/tokens/contextual/skeleton-loader.tokens.json +12 -2
  100. package/src/tokens/contextual/spinner.tokens.json +24 -4
  101. package/src/tokens/contextual/table.tokens.json +14 -2
  102. package/src/tokens/contextual/tabs.tokens.json +7 -1
  103. package/src/tokens/contextual/toggle.tokens.json +54 -9
  104. package/src/tokens/contextual/token-selector.tokens.json +7 -1
  105. package/src/tokens/contextual/token.tokens.json +14 -2
  106. package/src/tokens/deprecated/deprecated.color.data_viz.tokens.json +165 -0
  107. package/src/tokens/deprecated/deprecated.color.theme.tokens.json +216 -0
  108. package/src/tokens/deprecated/deprecated.color.tokens.json +240 -0
  109. package/src/tokens/deprecated/deprecated.color.transparency.tokens.json +39 -0
  110. package/src/tokens/semantic/action.tokens.json +500 -75
  111. package/src/tokens/semantic/background.tokens.json +49 -7
  112. package/src/tokens/semantic/border.tokens.json +30 -5
  113. package/src/tokens/semantic/control.tokens.json +129 -20
  114. package/src/tokens/semantic/feedback.tokens.json +126 -19
  115. package/src/tokens/semantic/focus-ring.tokens.json +12 -2
  116. package/src/tokens/semantic/highlight.tokens.json +26 -4
  117. package/src/tokens/semantic/icon.tokens.json +63 -9
  118. package/src/tokens/semantic/shadow.tokens.json +6 -1
  119. package/src/tokens/semantic/status.tokens.json +120 -18
  120. package/src/tokens/semantic/text.tokens.json +69 -9
  121. package/src/tokens/tokens_tailwind_table.vue +1 -1
  122. package/src/utils/charts/config.js +7 -7
  123. package/src/utils/charts/utils.js +1 -1
  124. package/src/utils/use_mock_intersection_observer.js +1 -1
  125. package/src/utils/utils.js +1 -1
  126. package/tailwind.defaults.js +1 -1
  127. package/translations.js +2 -2
@@ -8,7 +8,13 @@
8
8
  "dark": "{color.neutral.800}"
9
9
  },
10
10
  "$type": "color",
11
- "$description": "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."
11
+ "$description": "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.",
12
+ "$extensions": {
13
+ "com.figma.scope": [
14
+ "FRAME_FILL",
15
+ "SHAPE_FILL"
16
+ ]
17
+ }
12
18
  }
13
19
  },
14
20
  "text": {
@@ -18,7 +24,12 @@
18
24
  "dark": "{color.neutral.200}"
19
25
  },
20
26
  "$type": "color",
21
- "$description": "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."
27
+ "$description": "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.",
28
+ "$extensions": {
29
+ "com.figma.scope": [
30
+ "TEXT_FILL"
31
+ ]
32
+ }
22
33
  }
23
34
  },
24
35
  "icon": {
@@ -28,7 +39,13 @@
28
39
  "dark": "{color.neutral.300}"
29
40
  },
30
41
  "$type": "color",
31
- "$description": "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."
42
+ "$description": "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.",
43
+ "$extensions": {
44
+ "com.figma.scope": [
45
+ "SHAPE_FILL",
46
+ "TEXT_FILL"
47
+ ]
48
+ }
32
49
  }
33
50
  }
34
51
  },
@@ -40,7 +57,13 @@
40
57
  "dark": "{color.blue.800}"
41
58
  },
42
59
  "$type": "color",
43
- "$description": "Used for the background of an informational status item when indicating a noteworthy ongoing condition or a state of active progress."
60
+ "$description": "Used for the background of an informational status item when indicating a noteworthy ongoing condition or a state of active progress.",
61
+ "$extensions": {
62
+ "com.figma.scope": [
63
+ "FRAME_FILL",
64
+ "SHAPE_FILL"
65
+ ]
66
+ }
44
67
  }
45
68
  },
46
69
  "text": {
@@ -50,7 +73,12 @@
50
73
  "dark": "{color.blue.200}"
51
74
  },
52
75
  "$type": "color",
53
- "$description": "Used for the text of an informational status item when indicating a noteworthy ongoing condition or a state of active progress."
76
+ "$description": "Used for the text of an informational status item when indicating a noteworthy ongoing condition or a state of active progress.",
77
+ "$extensions": {
78
+ "com.figma.scope": [
79
+ "TEXT_FILL"
80
+ ]
81
+ }
54
82
  }
55
83
  },
56
84
  "icon": {
@@ -60,7 +88,13 @@
60
88
  "dark": "{color.blue.300}"
61
89
  },
62
90
  "$type": "color",
63
- "$description": "Used for the icon of an informational status item when indicating a noteworthy ongoing condition or a state of active progress."
91
+ "$description": "Used for the icon of an informational status item when indicating a noteworthy ongoing condition or a state of active progress.",
92
+ "$extensions": {
93
+ "com.figma.scope": [
94
+ "SHAPE_FILL",
95
+ "TEXT_FILL"
96
+ ]
97
+ }
64
98
  }
65
99
  }
66
100
  },
@@ -72,7 +106,13 @@
72
106
  "dark": "{color.green.800}"
73
107
  },
74
108
  "$type": "color",
75
- "$description": "Used for the background of a success status item when indicating a positive outcome, completion, or desired state. Clearly conveys a positive connotation."
109
+ "$description": "Used for the background of a success status item when indicating a positive outcome, completion, or desired state. Clearly conveys a positive connotation.",
110
+ "$extensions": {
111
+ "com.figma.scope": [
112
+ "FRAME_FILL",
113
+ "SHAPE_FILL"
114
+ ]
115
+ }
76
116
  }
77
117
  },
78
118
  "text": {
@@ -82,7 +122,12 @@
82
122
  "dark": "{color.green.200}"
83
123
  },
84
124
  "$type": "color",
85
- "$description": "Used for the text of a success status item when indicating a positive outcome, completion, or desired state. Clearly conveys a positive connotation."
125
+ "$description": "Used for the text of a success status item when indicating a positive outcome, completion, or desired state. Clearly conveys a positive connotation.",
126
+ "$extensions": {
127
+ "com.figma.scope": [
128
+ "TEXT_FILL"
129
+ ]
130
+ }
86
131
  }
87
132
  },
88
133
  "icon": {
@@ -92,7 +137,13 @@
92
137
  "dark": "{color.green.300}"
93
138
  },
94
139
  "$type": "color",
95
- "$description": "Used for the icon of a success status item when indicating a positive outcome, completion, or desired state. Clearly conveys a positive connotation."
140
+ "$description": "Used for the icon of a success status item when indicating a positive outcome, completion, or desired state. Clearly conveys a positive connotation.",
141
+ "$extensions": {
142
+ "com.figma.scope": [
143
+ "SHAPE_FILL",
144
+ "TEXT_FILL"
145
+ ]
146
+ }
96
147
  }
97
148
  }
98
149
  },
@@ -104,7 +155,13 @@
104
155
  "dark": "{color.orange.800}"
105
156
  },
106
157
  "$type": "color",
107
- "$description": "Used for the background of a warning status item when indicating a state that requires heightened awareness or caution, but is not necessarily problematic. Represents a state that warrants extra attention or care when interacting with the item."
158
+ "$description": "Used for the background of a warning status item when indicating a state that requires heightened awareness or caution, but is not necessarily problematic. Represents a state that warrants extra attention or care when interacting with the item.",
159
+ "$extensions": {
160
+ "com.figma.scope": [
161
+ "FRAME_FILL",
162
+ "SHAPE_FILL"
163
+ ]
164
+ }
108
165
  }
109
166
  },
110
167
  "text": {
@@ -114,7 +171,12 @@
114
171
  "dark": "{color.orange.200}"
115
172
  },
116
173
  "$type": "color",
117
- "$description": "Used for the text of a warning status item when indicating a state that requires heightened awareness or caution, but is not necessarily problematic. Represents a state that warrants extra attention or care when interacting with the item."
174
+ "$description": "Used for the text of a warning status item when indicating a state that requires heightened awareness or caution, but is not necessarily problematic. Represents a state that warrants extra attention or care when interacting with the item.",
175
+ "$extensions": {
176
+ "com.figma.scope": [
177
+ "TEXT_FILL"
178
+ ]
179
+ }
118
180
  }
119
181
  },
120
182
  "icon": {
@@ -124,7 +186,13 @@
124
186
  "dark": "{color.orange.300}"
125
187
  },
126
188
  "$type": "color",
127
- "$description": "Used for the icon of a warning status item when indicating a state that requires heightened awareness or caution, but is not necessarily problematic. Represents a state that warrants extra attention or care when interacting with the item."
189
+ "$description": "Used for the icon of a warning status item when indicating a state that requires heightened awareness or caution, but is not necessarily problematic. Represents a state that warrants extra attention or care when interacting with the item.",
190
+ "$extensions": {
191
+ "com.figma.scope": [
192
+ "SHAPE_FILL",
193
+ "TEXT_FILL"
194
+ ]
195
+ }
128
196
  }
129
197
  }
130
198
  },
@@ -136,7 +204,13 @@
136
204
  "dark": "{color.red.800}"
137
205
  },
138
206
  "$type": "color",
139
- "$description": "Used for the background of a danger status item when indicating a critical or severely problematic current state. Clearly conveys a negative connotation, representing a serious, ongoing issue or undesired condition."
207
+ "$description": "Used for the background of a danger status item when indicating a critical or severely problematic current state. Clearly conveys a negative connotation, representing a serious, ongoing issue or undesired condition.",
208
+ "$extensions": {
209
+ "com.figma.scope": [
210
+ "FRAME_FILL",
211
+ "SHAPE_FILL"
212
+ ]
213
+ }
140
214
  }
141
215
  },
142
216
  "text": {
@@ -146,7 +220,12 @@
146
220
  "dark": "{color.red.200}"
147
221
  },
148
222
  "$type": "color",
149
- "$description": "Used for the text of a danger status item when indicating a critical or severely problematic current state. Clearly conveys a negative connotation, representing a serious, ongoing issue or undesired condition."
223
+ "$description": "Used for the text of a danger status item when indicating a critical or severely problematic current state. Clearly conveys a negative connotation, representing a serious, ongoing issue or undesired condition.",
224
+ "$extensions": {
225
+ "com.figma.scope": [
226
+ "TEXT_FILL"
227
+ ]
228
+ }
150
229
  }
151
230
  },
152
231
  "icon": {
@@ -156,7 +235,13 @@
156
235
  "dark": "{color.red.300}"
157
236
  },
158
237
  "$type": "color",
159
- "$description": "Used for the icon of a danger status item when indicating a critical or severely problematic current state. Clearly conveys a negative connotation, representing a serious, ongoing issue or undesired condition."
238
+ "$description": "Used for the icon of a danger status item when indicating a critical or severely problematic current state. Clearly conveys a negative connotation, representing a serious, ongoing issue or undesired condition.",
239
+ "$extensions": {
240
+ "com.figma.scope": [
241
+ "SHAPE_FILL",
242
+ "TEXT_FILL"
243
+ ]
244
+ }
160
245
  }
161
246
  }
162
247
  },
@@ -168,7 +253,13 @@
168
253
  "dark": "{color.purple.900}"
169
254
  },
170
255
  "$type": "color",
171
- "$description": "Used for the background of a brand-related status item when highlighting the state of unique features or elements specific to the GitLab brand identity. Helps distinguish and emphasize brand-specific elements within the interface."
256
+ "$description": "Used for the background of a brand-related status item when highlighting the state of unique features or elements specific to the GitLab brand identity. Helps distinguish and emphasize brand-specific elements within the interface.",
257
+ "$extensions": {
258
+ "com.figma.scope": [
259
+ "FRAME_FILL",
260
+ "SHAPE_FILL"
261
+ ]
262
+ }
172
263
  }
173
264
  },
174
265
  "text": {
@@ -178,7 +269,12 @@
178
269
  "dark": "{color.purple.300}"
179
270
  },
180
271
  "$type": "color",
181
- "$description": "Used for the text of a brand-related status item when highlighting the state of unique features or elements specific to the GitLab brand identity. Helps distinguish and emphasize brand-specific elements within the interface."
272
+ "$description": "Used for the text of a brand-related status item when highlighting the state of unique features or elements specific to the GitLab brand identity. Helps distinguish and emphasize brand-specific elements within the interface.",
273
+ "$extensions": {
274
+ "com.figma.scope": [
275
+ "TEXT_FILL"
276
+ ]
277
+ }
182
278
  }
183
279
  },
184
280
  "icon": {
@@ -188,7 +284,13 @@
188
284
  "dark": "{color.purple.500}"
189
285
  },
190
286
  "$type": "color",
191
- "$description": "Used for the icon of a brand-related status item when highlighting the state of unique features or elements specific to the GitLab brand identity. Helps distinguish and emphasize brand-specific elements within the interface."
287
+ "$description": "Used for the icon of a brand-related status item when highlighting the state of unique features or elements specific to the GitLab brand identity. Helps distinguish and emphasize brand-specific elements within the interface.",
288
+ "$extensions": {
289
+ "com.figma.scope": [
290
+ "SHAPE_FILL",
291
+ "TEXT_FILL"
292
+ ]
293
+ }
192
294
  }
193
295
  }
194
296
  }
@@ -7,6 +7,11 @@
7
7
  },
8
8
  "$type": "color",
9
9
  "$description": "Use text.color.default instead.",
10
+ "$extensions": {
11
+ "com.figma.scope": [
12
+ "TEXT_FILL"
13
+ ]
14
+ },
10
15
  "deprecated": true
11
16
  },
12
17
  "secondary": {
@@ -16,6 +21,11 @@
16
21
  },
17
22
  "$type": "color",
18
23
  "$description": "Use text.color.subtle instead.",
24
+ "$extensions": {
25
+ "com.figma.scope": [
26
+ "TEXT_FILL"
27
+ ]
28
+ },
19
29
  "deprecated": true
20
30
  },
21
31
  "tertiary": {
@@ -25,6 +35,11 @@
25
35
  },
26
36
  "$type": "color",
27
37
  "$description": "Use text.color.disabled instead.",
38
+ "$extensions": {
39
+ "com.figma.scope": [
40
+ "TEXT_FILL"
41
+ ]
42
+ },
28
43
  "deprecated": true
29
44
  },
30
45
  "color": {
@@ -34,7 +49,12 @@
34
49
  "dark": "{color.neutral.50}"
35
50
  },
36
51
  "$type": "color",
37
- "$description": "Used for the default text color."
52
+ "$description": "Used for the default text color.",
53
+ "$extensions": {
54
+ "com.figma.scope": [
55
+ "TEXT_FILL"
56
+ ]
57
+ }
38
58
  },
39
59
  "subtle": {
40
60
  "$value": {
@@ -42,7 +62,12 @@
42
62
  "dark": "{color.neutral.200}"
43
63
  },
44
64
  "$type": "color",
45
- "$description": "Used for supplemental text that doesn't need to be as prominent as other text."
65
+ "$description": "Used for supplemental text that doesn't need to be as prominent as other text.",
66
+ "$extensions": {
67
+ "com.figma.scope": [
68
+ "TEXT_FILL"
69
+ ]
70
+ }
46
71
  },
47
72
  "strong": {
48
73
  "$value": {
@@ -50,7 +75,12 @@
50
75
  "dark": "{color.neutral.0}"
51
76
  },
52
77
  "$type": "color",
53
- "$description": "Used for text with the highest contrast."
78
+ "$description": "Used for text with the highest contrast.",
79
+ "$extensions": {
80
+ "com.figma.scope": [
81
+ "TEXT_FILL"
82
+ ]
83
+ }
54
84
  },
55
85
  "heading": {
56
86
  "$value": {
@@ -58,7 +88,12 @@
58
88
  "dark": "{color.neutral.0}"
59
89
  },
60
90
  "$type": "color",
61
- "$description": "Used for headings level 1-6."
91
+ "$description": "Used for headings level 1-6.",
92
+ "$extensions": {
93
+ "com.figma.scope": [
94
+ "TEXT_FILL"
95
+ ]
96
+ }
62
97
  },
63
98
  "link": {
64
99
  "$value": {
@@ -66,7 +101,12 @@
66
101
  "dark": "{color.blue.200}"
67
102
  },
68
103
  "$type": "color",
69
- "$description": "Used for default text links."
104
+ "$description": "Used for default text links.",
105
+ "$extensions": {
106
+ "com.figma.scope": [
107
+ "TEXT_FILL"
108
+ ]
109
+ }
70
110
  },
71
111
  "warning": {
72
112
  "$value": {
@@ -74,7 +114,12 @@
74
114
  "dark": "{color.orange.300}"
75
115
  },
76
116
  "$type": "color",
77
- "$description": "Used for text that requires caution or careful attention."
117
+ "$description": "Used for text that requires caution or careful attention.",
118
+ "$extensions": {
119
+ "com.figma.scope": [
120
+ "TEXT_FILL"
121
+ ]
122
+ }
78
123
  },
79
124
  "danger": {
80
125
  "$value": {
@@ -82,7 +127,12 @@
82
127
  "dark": "{color.red.300}"
83
128
  },
84
129
  "$type": "color",
85
- "$description": "Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination."
130
+ "$description": "Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.",
131
+ "$extensions": {
132
+ "com.figma.scope": [
133
+ "TEXT_FILL"
134
+ ]
135
+ }
86
136
  },
87
137
  "success": {
88
138
  "$value": {
@@ -90,7 +140,12 @@
90
140
  "dark": "{color.green.300}"
91
141
  },
92
142
  "$type": "color",
93
- "$description": "Used for text indicating success, completion, approval, addition, or validity."
143
+ "$description": "Used for text indicating success, completion, approval, addition, or validity.",
144
+ "$extensions": {
145
+ "com.figma.scope": [
146
+ "TEXT_FILL"
147
+ ]
148
+ }
94
149
  },
95
150
  "disabled": {
96
151
  "$value": {
@@ -98,7 +153,12 @@
98
153
  "dark": "{color.neutral.400}"
99
154
  },
100
155
  "$type": "color",
101
- "$description": "Used for disabled text."
156
+ "$description": "Used for disabled text.",
157
+ "$extensions": {
158
+ "com.figma.scope": [
159
+ "TEXT_FILL"
160
+ ]
161
+ }
102
162
  }
103
163
  }
104
164
  }
@@ -150,7 +150,7 @@ export default {
150
150
  const token = tokens[key];
151
151
  if (token.$value) {
152
152
  tokensArray.push(
153
- this.transformTokenToTableColumns({ ...token, context: [...context, key] })
153
+ this.transformTokenToTableColumns({ ...token, context: [...context, key] }),
154
154
  );
155
155
  } else if (key !== 'colors') {
156
156
  tokensArray.push(...this.transformTokensToTableRows(token, [...context, key]));
@@ -255,26 +255,26 @@ export function getThresholdConfig(thresholds) {
255
255
  generateMarkArea({
256
256
  min: threshold,
257
257
  max: Infinity,
258
- })
258
+ }),
259
259
  );
260
260
  } else if (LESS_THAN.includes(operator)) {
261
261
  acc.areas.push(
262
262
  generateMarkArea({
263
263
  min: Number.NEGATIVE_INFINITY,
264
264
  max: threshold,
265
- })
265
+ }),
266
266
  );
267
267
  }
268
268
 
269
269
  acc.lines.push(
270
270
  generateMarkLines({
271
271
  max: threshold,
272
- })
272
+ }),
273
273
  );
274
274
 
275
275
  return acc;
276
276
  },
277
- { lines: [], areas: [] }
277
+ { lines: [], areas: [] },
278
278
  );
279
279
 
280
280
  return {
@@ -314,7 +314,7 @@ export const parseAnnotations = (annotations) =>
314
314
  acc.areas.push(generateMarkArea(annotation, 'xAxis'));
315
315
  return acc;
316
316
  },
317
- { areas: [], lines: [], points: [] }
317
+ { areas: [], lines: [], points: [] },
318
318
  );
319
319
 
320
320
  /**
@@ -379,7 +379,7 @@ export const generateAnnotationSeries = (annotations, yAxisIndex = 1) => {
379
379
  type: 'scatter',
380
380
  data: [],
381
381
  },
382
- getAnnotationsConfig(annotations)
382
+ getAnnotationsConfig(annotations),
383
383
  );
384
384
  };
385
385
 
@@ -507,7 +507,7 @@ export const getDefaultTooltipContent = (params, yAxisTitle = null) => {
507
507
  {
508
508
  xLabels: [],
509
509
  tooltipContent: {},
510
- }
510
+ },
511
511
  );
512
512
 
513
513
  return { xLabels, tooltipContent };
@@ -12,7 +12,7 @@ export const seriesHasAnnotations = (series = []) =>
12
12
  (series || []).filter(
13
13
  (seriesData) =>
14
14
  seriesData.name === ANNOTATIONS_SERIES_NAME &&
15
- seriesData[ANNOTATIONS_COMPONENT_TYPE]?.data?.length
15
+ seriesData[ANNOTATIONS_COMPONENT_TYPE]?.data?.length,
16
16
  ).length !== 0;
17
17
 
18
18
  /**
@@ -39,7 +39,7 @@ class MockObserver {
39
39
 
40
40
  $_hasObserver(node, options = {}) {
41
41
  return this.$_observers.some(
42
- ([obvNode, obvOptions]) => node === obvNode && isMatch(options, obvOptions)
42
+ ([obvNode, obvOptions]) => node === obvNode && isMatch(options, obvOptions),
43
43
  );
44
44
  }
45
45
 
@@ -187,7 +187,7 @@ export function logWarning(message = '', element = '') {
187
187
  */
188
188
  export function stopEvent(
189
189
  event,
190
- { preventDefault = true, stopPropagation = true, stopImmediatePropagation = false } = {}
190
+ { preventDefault = true, stopPropagation = true, stopImmediatePropagation = false } = {},
191
191
  ) {
192
192
  if (preventDefault) {
193
193
  event.preventDefault();
@@ -43,7 +43,7 @@ const spacing = {
43
43
  88: 88,
44
44
  }).map(([scale, factor]) => {
45
45
  return [scale, `${factor * gridSize}rem`];
46
- })
46
+ }),
47
47
  ),
48
48
  };
49
49
 
package/translations.js CHANGED
@@ -31,10 +31,10 @@ export default {
31
31
  'GlProgressBar.ariaLabel': 'Progress bar',
32
32
  'GlSearchBoxByType.clearButtonTitle': 'Clear',
33
33
  'GlSearchBoxByType.input.placeholder': 'Search',
34
- 'GlSorting.sortByLabel': 'Sort by:',
35
34
  'GlSorting.sortAscending': 'Sort direction: ascending',
35
+ 'GlSorting.sortByLabel': 'Sort by:',
36
36
  'GlSorting.sortDescending': 'Sort direction: descending',
37
- 'GlToken.closeButtonTitle': 'Remove',
38
37
  'GlTabs.GlScrollableTabs.scrollLeftLabel': 'Scroll left',
39
38
  'GlTabs.GlScrollableTabs.scrollRightLabel': 'Scroll right',
39
+ 'GlToken.closeButtonTitle': 'Remove',
40
40
  };