@gitlab/ui 71.9.1 → 71.11.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/CHANGELOG.md +15 -0
- package/dist/components/charts/area/area.js +11 -22
- package/dist/components/charts/bar/bar.js +3 -4
- package/dist/components/charts/column/column.js +5 -22
- package/dist/components/charts/heatmap/heatmap.js +4 -9
- package/dist/components/charts/line/line.js +11 -22
- package/dist/components/experimental/duo/chat/duo_chat.js +9 -5
- package/dist/tokens/common_story_options.js +1 -0
- package/dist/tokens/css/tokens.css +14 -1
- package/dist/tokens/css/tokens.dark.css +1 -1
- package/dist/tokens/js/tokens.dark.js +1 -1
- package/dist/tokens/js/tokens.js +14 -1
- package/dist/tokens/json/tokens.dark.grouped.json +14 -1
- package/dist/tokens/json/tokens.dark.json +264 -0
- package/dist/tokens/json/tokens.grouped.json +14 -1
- package/dist/tokens/json/tokens.json +264 -0
- package/dist/tokens/scss/_tokens.dark.scss +1 -1
- package/dist/tokens/scss/_tokens.scss +14 -1
- package/package.json +1 -1
- package/src/components/charts/area/area.spec.js +82 -7
- package/src/components/charts/area/area.stories.js +24 -6
- package/src/components/charts/area/area.vue +21 -27
- package/src/components/charts/bar/bar.spec.js +7 -43
- package/src/components/charts/bar/bar.vue +3 -4
- package/src/components/charts/column/__snapshots__/column_chart.spec.js.snap +0 -12
- package/src/components/charts/column/column.vue +1 -23
- package/src/components/charts/column/column_chart.spec.js +13 -27
- package/src/components/charts/heatmap/heatmap.vue +4 -14
- package/src/components/charts/line/line.spec.js +120 -38
- package/src/components/charts/line/line.stories.js +21 -4
- package/src/components/charts/line/line.vue +21 -32
- package/src/components/experimental/duo/chat/duo_chat.spec.js +18 -0
- package/src/components/experimental/duo/chat/duo_chat.vue +11 -5
- package/src/scss/variables.scss +0 -7
- package/src/tokens/color.transparency.tokens.json +84 -0
- package/src/tokens/color.transparency.tokens.stories.js +26 -0
- package/src/tokens/common_story_options.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [71.11.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v71.10.0...v71.11.0) (2023-12-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **DesignTokens:** add transparency values as design tokens ([c4f5232](https://gitlab.com/gitlab-org/gitlab-ui/commit/c4f523206e3c4cbc607bea6445c16e4069c835f0))
|
|
7
|
+
* **GlDuoChat:** promote "/" commands ([8d3239b](https://gitlab.com/gitlab-org/gitlab-ui/commit/8d3239b85b0dd68a79ee4e7e61162ddad15f5e72))
|
|
8
|
+
|
|
9
|
+
# [71.10.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v71.9.1...v71.10.0) (2023-12-13)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **GlLineChart, GlAreaChart:** Simplify chart tooltip API ([3658fb6](https://gitlab.com/gitlab-org/gitlab-ui/commit/3658fb6b3efb4a396703e7697d415541ec3aa417))
|
|
15
|
+
|
|
1
16
|
## [71.9.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v71.9.0...v71.9.1) (2023-12-13)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import merge from 'lodash/merge';
|
|
2
|
-
import { defaultAreaOpacity, lineStyle, getThresholdConfig, generateAnnotationSeries, defaultChartOptions, dataZoomAdjustments, mergeSeriesToOptions, mergeAnnotationAxisToOptions, grid
|
|
2
|
+
import { defaultAreaOpacity, lineStyle, getThresholdConfig, generateAnnotationSeries, defaultChartOptions, dataZoomAdjustments, mergeSeriesToOptions, mergeAnnotationAxisToOptions, grid } from '../../../utils/charts/config';
|
|
3
3
|
import { LEGEND_AVERAGE_TEXT, LEGEND_MAX_TEXT, LEGEND_MIN_TEXT, LEGEND_CURRENT_TEXT, LEGEND_LAYOUT_INLINE, LEGEND_LAYOUT_TABLE, HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
4
4
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
5
5
|
import { seriesHasAnnotations, isDataPointAnnotation } from '../../../utils/charts/utils';
|
|
6
|
-
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
|
|
7
6
|
import Chart from '../chart/chart';
|
|
8
7
|
import ChartLegend from '../legend/legend';
|
|
9
8
|
import ChartTooltip from '../tooltip/tooltip';
|
|
@@ -15,8 +14,7 @@ var script = {
|
|
|
15
14
|
components: {
|
|
16
15
|
Chart,
|
|
17
16
|
ChartLegend,
|
|
18
|
-
ChartTooltip
|
|
19
|
-
TooltipDefaultFormat
|
|
17
|
+
ChartTooltip
|
|
20
18
|
},
|
|
21
19
|
inheritAttrs: false,
|
|
22
20
|
props: {
|
|
@@ -49,6 +47,12 @@ var script = {
|
|
|
49
47
|
required: false,
|
|
50
48
|
default: null
|
|
51
49
|
},
|
|
50
|
+
/**
|
|
51
|
+
* Callback called when showing or refreshing a tooltip.
|
|
52
|
+
* **Deprecated:** Use slots `#tooltip-title`, `#tooltip-content` or `#tooltip-value`.
|
|
53
|
+
*
|
|
54
|
+
* @deprecated Use slots `#tooltip-title`, `#tooltip-content` or `#tooltip-value`.
|
|
55
|
+
*/
|
|
52
56
|
formatTooltipText: {
|
|
53
57
|
type: Function,
|
|
54
58
|
required: false,
|
|
@@ -103,16 +107,13 @@ var script = {
|
|
|
103
107
|
// https://gitlab.com/gitlab-org/gitlab-ui/-/issues/618
|
|
104
108
|
return {
|
|
105
109
|
chart: null,
|
|
106
|
-
dataTooltipTitle: '',
|
|
107
|
-
dataTooltipContent: {},
|
|
108
110
|
showAnnotationsTooltip: false,
|
|
109
111
|
annotationsTooltipTitle: '',
|
|
110
112
|
annotationsTooltipContent: '',
|
|
111
113
|
annotationsTooltipPosition: {
|
|
112
114
|
left: '0',
|
|
113
115
|
top: '0'
|
|
114
|
-
}
|
|
115
|
-
selectedFormatTooltipText: this.formatTooltipText || this.defaultFormatTooltipText
|
|
116
|
+
}
|
|
116
117
|
};
|
|
117
118
|
},
|
|
118
119
|
computed: {
|
|
@@ -153,7 +154,7 @@ var script = {
|
|
|
153
154
|
type: 'solid'
|
|
154
155
|
},
|
|
155
156
|
label: {
|
|
156
|
-
formatter: this.
|
|
157
|
+
formatter: this.formatTooltipText
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
160
|
},
|
|
@@ -215,15 +216,6 @@ var script = {
|
|
|
215
216
|
this.chart.off('mouseover', this.onChartMouseOver);
|
|
216
217
|
},
|
|
217
218
|
methods: {
|
|
218
|
-
defaultFormatTooltipText(params) {
|
|
219
|
-
// eslint-disable-next-line import/no-deprecated
|
|
220
|
-
const {
|
|
221
|
-
xLabels,
|
|
222
|
-
tooltipContent
|
|
223
|
-
} = getDefaultTooltipContent(params, this.options.yAxis.name);
|
|
224
|
-
this.$set(this, 'dataTooltipContent', tooltipContent);
|
|
225
|
-
this.dataTooltipTitle = xLabels.join(', ');
|
|
226
|
-
},
|
|
227
219
|
defaultAnnotationTooltipText(params) {
|
|
228
220
|
var _params$data$tooltipD;
|
|
229
221
|
return {
|
|
@@ -273,9 +265,6 @@ var script = {
|
|
|
273
265
|
top: `${event.event.zrY}px`
|
|
274
266
|
};
|
|
275
267
|
}
|
|
276
|
-
},
|
|
277
|
-
onLabelChange(params) {
|
|
278
|
-
this.selectedFormatTooltipText(params);
|
|
279
268
|
}
|
|
280
269
|
},
|
|
281
270
|
HEIGHT_AUTO_CLASSES
|
|
@@ -287,7 +276,7 @@ const __vue_script__ = script;
|
|
|
287
276
|
/* template */
|
|
288
277
|
var __vue_render__ = function () {
|
|
289
278
|
var _obj;
|
|
290
|
-
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"position-relative",class:( _obj = {}, _obj[_vm.$options.HEIGHT_AUTO_CLASSES] = _vm.autoHeight, _obj )},[_c('chart',_vm._g(_vm._b({class:{ 'gl-flex-grow-1': _vm.autoHeight },attrs:{"height":_vm.height,"options":_vm.options},on:{"created":_vm.onCreated}},'chart',_vm.$attrs,false),_vm.$listeners)),_vm._v(" "),(_vm.shouldShowAnnotationsTooltip)?_c('chart-tooltip',{ref:"annotationsTooltip",attrs:{"id":"annotationsTooltip","show":_vm.showAnnotationsTooltip,"top":_vm.annotationsTooltipPosition.top,"left":_vm.annotationsTooltipPosition.left,"chart":_vm.chart,"placement":"bottom"},scopedSlots:_vm._u([{key:"title",fn:function(){return [_c('div',[_vm._v(_vm._s(_vm.annotationsTooltipTitle))])]},proxy:true}],null,false,1889294429)},[_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.annotationsTooltipContent))])]):_vm._e(),_vm._v(" "),(_vm.chart)?_c('chart-tooltip',{ref:"dataTooltip",attrs:{"chart":_vm.chart},scopedSlots:_vm._u([{key:"title",fn:function(){return [
|
|
279
|
+
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"position-relative",class:( _obj = {}, _obj[_vm.$options.HEIGHT_AUTO_CLASSES] = _vm.autoHeight, _obj )},[_c('chart',_vm._g(_vm._b({class:{ 'gl-flex-grow-1': _vm.autoHeight },attrs:{"height":_vm.height,"options":_vm.options},on:{"created":_vm.onCreated}},'chart',_vm.$attrs,false),_vm.$listeners)),_vm._v(" "),(_vm.shouldShowAnnotationsTooltip)?_c('chart-tooltip',{ref:"annotationsTooltip",attrs:{"id":"annotationsTooltip","show":_vm.showAnnotationsTooltip,"top":_vm.annotationsTooltipPosition.top,"left":_vm.annotationsTooltipPosition.left,"chart":_vm.chart,"placement":"bottom"},scopedSlots:_vm._u([{key:"title",fn:function(){return [_c('div',[_vm._v(_vm._s(_vm.annotationsTooltipTitle))])]},proxy:true}],null,false,1889294429)},[_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.annotationsTooltipContent))])]):_vm._e(),_vm._v(" "),(_vm.chart)?_c('chart-tooltip',{ref:"dataTooltip",attrs:{"chart":_vm.chart,"use-default-tooltip-formatter":!_vm.formatTooltipText},scopedSlots:_vm._u([(_vm.$scopedSlots['tooltip-title'])?{key:"title",fn:function(scope){return [_vm._t("tooltip-title",null,null,scope)]}}:null,(_vm.$scopedSlots['tooltip-content'])?{key:"default",fn:function(scope){return [_vm._t("tooltip-content",null,null,scope)]}}:null,(_vm.$scopedSlots['tooltip-value'])?{key:"tooltip-value",fn:function(scope){return [_vm._t("tooltip-value",null,null,scope)]}}:null],null,true)}):_vm._e(),_vm._v(" "),(_vm.compiledOptions)?_c('chart-legend',{style:(_vm.legendStyle),attrs:{"chart":_vm.chart,"series-info":_vm.seriesInfo,"text-style":_vm.compiledOptions.textStyle,"min-text":_vm.legendMinText,"max-text":_vm.legendMaxText,"average-text":_vm.legendAverageText,"current-text":_vm.legendCurrentText,"layout":_vm.legendLayout}}):_vm._e()],1)};
|
|
291
280
|
var __vue_staticRenderFns__ = [];
|
|
292
281
|
|
|
293
282
|
/* style */
|
|
@@ -168,20 +168,19 @@ var script = {
|
|
|
168
168
|
const {
|
|
169
169
|
yLabels,
|
|
170
170
|
tooltipContent
|
|
171
|
-
} = this.
|
|
171
|
+
} = this.getTooltipContent(params, this.xAxisTitle);
|
|
172
172
|
this.$set(this, 'tooltipContent', tooltipContent);
|
|
173
173
|
this.tooltipTitle = yLabels.join(', ');
|
|
174
174
|
},
|
|
175
175
|
/**
|
|
176
|
-
*
|
|
177
|
-
* However, for bar charts, the tooltip should be against x-axis values.
|
|
176
|
+
* For bar charts, the tooltip should be against x-axis values.
|
|
178
177
|
* This method will be removed after https://gitlab.com/gitlab-org/gitlab-ui/-/issues/674
|
|
179
178
|
*
|
|
180
179
|
* @param {Object} params series data
|
|
181
180
|
* @param {String} xAxisTitle x-axis title
|
|
182
181
|
* @returns {Object} tooltip title and content
|
|
183
182
|
*/
|
|
184
|
-
|
|
183
|
+
getTooltipContent(params) {
|
|
185
184
|
let xAxisTitle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
186
185
|
const seriesDataLength = params.seriesData.length;
|
|
187
186
|
const {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import merge from 'lodash/merge';
|
|
2
|
-
import { yAxis, generateBarSeries, generateLineSeries, defaultChartOptions, gridWithSecondaryYAxis, grid, dataZoomAdjustments, mergeSeriesToOptions
|
|
2
|
+
import { yAxis, generateBarSeries, generateLineSeries, defaultChartOptions, gridWithSecondaryYAxis, grid, dataZoomAdjustments, mergeSeriesToOptions } from '../../../utils/charts/config';
|
|
3
3
|
import { CHART_TYPE_LINE, HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
4
4
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
5
5
|
import { columnOptions } from '../../../utils/constants';
|
|
6
|
-
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
|
|
7
6
|
import Chart from '../chart/chart';
|
|
8
7
|
import ChartTooltip from '../tooltip/tooltip';
|
|
9
8
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
@@ -20,8 +19,7 @@ var script = {
|
|
|
20
19
|
name: 'GlColumnChart',
|
|
21
20
|
components: {
|
|
22
21
|
Chart,
|
|
23
|
-
ChartTooltip
|
|
24
|
-
TooltipDefaultFormat
|
|
22
|
+
ChartTooltip
|
|
25
23
|
},
|
|
26
24
|
inheritAttrs: false,
|
|
27
25
|
props: {
|
|
@@ -74,9 +72,7 @@ var script = {
|
|
|
74
72
|
},
|
|
75
73
|
data() {
|
|
76
74
|
return {
|
|
77
|
-
chart: null
|
|
78
|
-
tooltipTitle: '',
|
|
79
|
-
tooltipContent: {}
|
|
75
|
+
chart: null
|
|
80
76
|
};
|
|
81
77
|
},
|
|
82
78
|
computed: {
|
|
@@ -158,11 +154,7 @@ var script = {
|
|
|
158
154
|
show: false
|
|
159
155
|
},
|
|
160
156
|
axisPointer: {
|
|
161
|
-
|
|
162
|
-
type: 'none',
|
|
163
|
-
label: {
|
|
164
|
-
formatter: this.onLabelChange
|
|
165
|
-
}
|
|
157
|
+
type: 'none'
|
|
166
158
|
},
|
|
167
159
|
name: this.xAxisTitle,
|
|
168
160
|
type: this.xAxisType
|
|
@@ -188,15 +180,6 @@ var script = {
|
|
|
188
180
|
onCreated(chart) {
|
|
189
181
|
this.chart = chart;
|
|
190
182
|
this.$emit('created', chart);
|
|
191
|
-
},
|
|
192
|
-
onLabelChange(params) {
|
|
193
|
-
// eslint-disable-next-line import/no-deprecated
|
|
194
|
-
const {
|
|
195
|
-
xLabels,
|
|
196
|
-
tooltipContent
|
|
197
|
-
} = getDefaultTooltipContent(params, this.yAxisTitle);
|
|
198
|
-
this.$set(this, 'tooltipContent', tooltipContent);
|
|
199
|
-
this.tooltipTitle = xLabels.join(', ');
|
|
200
183
|
}
|
|
201
184
|
},
|
|
202
185
|
HEIGHT_AUTO_CLASSES
|
|
@@ -208,7 +191,7 @@ const __vue_script__ = script;
|
|
|
208
191
|
/* template */
|
|
209
192
|
var __vue_render__ = function () {
|
|
210
193
|
var _obj;
|
|
211
|
-
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"position-relative",class:( _obj = {}, _obj[_vm.$options.HEIGHT_AUTO_CLASSES] = _vm.autoHeight, _obj )},[_c('chart',_vm._g(_vm._b({class:{ 'gl-flex-grow-1': _vm.autoHeight },attrs:{"height":_vm.height,"options":_vm.options},on:{"created":_vm.onCreated}},'chart',_vm.$attrs,false),_vm.$listeners)),_vm._v(" "),(_vm.chart)?_c('chart-tooltip',{attrs:{"chart":_vm.chart
|
|
194
|
+
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"position-relative",class:( _obj = {}, _obj[_vm.$options.HEIGHT_AUTO_CLASSES] = _vm.autoHeight, _obj )},[_c('chart',_vm._g(_vm._b({class:{ 'gl-flex-grow-1': _vm.autoHeight },attrs:{"height":_vm.height,"options":_vm.options},on:{"created":_vm.onCreated}},'chart',_vm.$attrs,false),_vm.$listeners)),_vm._v(" "),(_vm.chart)?_c('chart-tooltip',{attrs:{"chart":_vm.chart,"use-default-tooltip-formatter":true}}):_vm._e()],1)};
|
|
212
195
|
var __vue_staticRenderFns__ = [];
|
|
213
196
|
|
|
214
197
|
/* style */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import merge from 'lodash/merge';
|
|
2
2
|
import { GRAY_100, WHITE } from '../../../../dist/tokens/js/tokens';
|
|
3
|
-
import {
|
|
3
|
+
import { getTooltipTitle, getTooltipContent } from '../../../utils/charts/config';
|
|
4
4
|
import { HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
5
5
|
import { heatmapHues } from '../../../utils/charts/theme';
|
|
6
6
|
import { engineeringNotation } from '../../../utils/number_utils';
|
|
@@ -223,13 +223,8 @@ var script = {
|
|
|
223
223
|
},
|
|
224
224
|
methods: {
|
|
225
225
|
defaultFormatTooltipText(params) {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
xLabels,
|
|
229
|
-
tooltipContent
|
|
230
|
-
} = getDefaultTooltipContent(params, this.computedOptions.yAxis.name);
|
|
231
|
-
this.$set(this.tooltip, 'content', tooltipContent);
|
|
232
|
-
this.tooltip.title = xLabels.join(', ');
|
|
226
|
+
this.tooltip.title = getTooltipTitle(params, this.computedOptions.xAxis.name);
|
|
227
|
+
this.tooltip.content = getTooltipContent(params, this.computedOptions.yAxis.name);
|
|
233
228
|
},
|
|
234
229
|
onCreated(chart) {
|
|
235
230
|
this.chart = chart;
|
|
@@ -265,7 +260,7 @@ const __vue_script__ = script;
|
|
|
265
260
|
/* template */
|
|
266
261
|
var __vue_render__ = function () {
|
|
267
262
|
var _obj;
|
|
268
|
-
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-heatmap",class:( _obj = {}, _obj[_vm.$options.HEIGHT_AUTO_CLASSES] = _vm.autoHeight, _obj )},[_c('chart',_vm._g(_vm._b({class:{ 'gl-flex-grow-1': _vm.autoHeight },attrs:{"height":_vm.height,"options":_vm.computedOptions},on:{"created":_vm.onCreated}},'chart',_vm.$attrs,false),_vm.$listeners)),_vm._v(" "),(_vm.chart)?_c('chart-tooltip',{attrs:{"chart":_vm.chart,"top":_vm.tooltip.top,"left":_vm.tooltip.left},scopedSlots:_vm._u([{key:"title",fn:function(){return [(_vm.formatTooltipText)?_vm._t("tooltip-title"):_c('div',[_vm._v(
|
|
263
|
+
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-heatmap",class:( _obj = {}, _obj[_vm.$options.HEIGHT_AUTO_CLASSES] = _vm.autoHeight, _obj )},[_c('chart',_vm._g(_vm._b({class:{ 'gl-flex-grow-1': _vm.autoHeight },attrs:{"height":_vm.height,"options":_vm.computedOptions},on:{"created":_vm.onCreated}},'chart',_vm.$attrs,false),_vm.$listeners)),_vm._v(" "),(_vm.chart)?_c('chart-tooltip',{attrs:{"chart":_vm.chart,"top":_vm.tooltip.top,"left":_vm.tooltip.left},scopedSlots:_vm._u([{key:"title",fn:function(){return [(_vm.formatTooltipText)?_vm._t("tooltip-title"):_c('div',[_vm._v(_vm._s(_vm.tooltip.title))])]},proxy:true}],null,true)},[_vm._v(" "),(_vm.formatTooltipText)?_vm._t("tooltip-content"):_c('tooltip-default-format',{attrs:{"tooltip-content":_vm.tooltip.content}})],2):_vm._e(),_vm._v(" "),(_vm.compiledOptions)?_c('chart-legend',{style:(_vm.legendStyle),attrs:{"chart":_vm.chart,"series-info":_vm.seriesInfo,"text-style":_vm.compiledOptions.textStyle,"max-text":_vm.legendMaxText,"average-text":_vm.legendAverageText}}):_vm._e()],1)};
|
|
269
264
|
var __vue_staticRenderFns__ = [];
|
|
270
265
|
|
|
271
266
|
/* style */
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import merge from 'lodash/merge';
|
|
2
2
|
import { GRAY_200 } from '../../../../dist/tokens/js/tokens';
|
|
3
|
-
import { symbolSize, lineStyle, getThresholdConfig, generateAnnotationSeries, defaultChartOptions, dataZoomAdjustments, mergeSeriesToOptions, mergeAnnotationAxisToOptions, grid
|
|
3
|
+
import { symbolSize, lineStyle, getThresholdConfig, generateAnnotationSeries, defaultChartOptions, dataZoomAdjustments, mergeSeriesToOptions, mergeAnnotationAxisToOptions, grid } from '../../../utils/charts/config';
|
|
4
4
|
import { LEGEND_AVERAGE_TEXT, LEGEND_MAX_TEXT, LEGEND_MIN_TEXT, LEGEND_CURRENT_TEXT, LEGEND_LAYOUT_INLINE, LEGEND_LAYOUT_TABLE, HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
5
5
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
6
6
|
import { seriesHasAnnotations, isDataPointAnnotation } from '../../../utils/charts/utils';
|
|
7
|
-
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
|
|
8
7
|
import Chart from '../chart/chart';
|
|
9
8
|
import ChartLegend from '../legend/legend';
|
|
10
9
|
import ChartTooltip from '../tooltip/tooltip';
|
|
@@ -16,8 +15,7 @@ var script = {
|
|
|
16
15
|
components: {
|
|
17
16
|
Chart,
|
|
18
17
|
ChartLegend,
|
|
19
|
-
ChartTooltip
|
|
20
|
-
TooltipDefaultFormat
|
|
18
|
+
ChartTooltip
|
|
21
19
|
},
|
|
22
20
|
inheritAttrs: false,
|
|
23
21
|
props: {
|
|
@@ -45,6 +43,12 @@ var script = {
|
|
|
45
43
|
required: false,
|
|
46
44
|
default: true
|
|
47
45
|
},
|
|
46
|
+
/**
|
|
47
|
+
* Callback called when showing or refreshing a tooltip.
|
|
48
|
+
* **Deprecated:** Use slots `#tooltip-title`, `#tooltip-content` or `#tooltip-value`.
|
|
49
|
+
*
|
|
50
|
+
* @deprecated Use slots `#tooltip-title`, `#tooltip-content` or `#tooltip-value`.
|
|
51
|
+
*/
|
|
48
52
|
formatTooltipText: {
|
|
49
53
|
type: Function,
|
|
50
54
|
required: false,
|
|
@@ -99,16 +103,13 @@ var script = {
|
|
|
99
103
|
// https://gitlab.com/gitlab-org/gitlab-ui/-/issues/618
|
|
100
104
|
return {
|
|
101
105
|
chart: null,
|
|
102
|
-
dataTooltipTitle: '',
|
|
103
|
-
dataTooltipContent: {},
|
|
104
106
|
showAnnotationsTooltip: false,
|
|
105
107
|
annotationsTooltipTitle: '',
|
|
106
108
|
annotationsTooltipContent: '',
|
|
107
109
|
annotationsTooltipPosition: {
|
|
108
110
|
left: '0',
|
|
109
111
|
top: '0'
|
|
110
|
-
}
|
|
111
|
-
selectedFormatTooltipText: this.formatTooltipText || this.defaultFormatTooltipText
|
|
112
|
+
}
|
|
112
113
|
};
|
|
113
114
|
},
|
|
114
115
|
computed: {
|
|
@@ -145,7 +146,7 @@ var script = {
|
|
|
145
146
|
axisPointer: {
|
|
146
147
|
show: true,
|
|
147
148
|
label: {
|
|
148
|
-
formatter: this.
|
|
149
|
+
formatter: this.formatTooltipText
|
|
149
150
|
}
|
|
150
151
|
},
|
|
151
152
|
axisTick: {
|
|
@@ -211,15 +212,6 @@ var script = {
|
|
|
211
212
|
this.chart.off('mouseover', this.onChartDataPointMouseOver);
|
|
212
213
|
},
|
|
213
214
|
methods: {
|
|
214
|
-
defaultFormatTooltipText(params) {
|
|
215
|
-
// eslint-disable-next-line import/no-deprecated
|
|
216
|
-
const {
|
|
217
|
-
xLabels,
|
|
218
|
-
tooltipContent
|
|
219
|
-
} = getDefaultTooltipContent(params, this.options.yAxis.name);
|
|
220
|
-
this.$set(this, 'dataTooltipContent', tooltipContent);
|
|
221
|
-
this.dataTooltipTitle = xLabels.join(', ');
|
|
222
|
-
},
|
|
223
215
|
defaultAnnotationTooltipText(params) {
|
|
224
216
|
var _params$data$tooltipD;
|
|
225
217
|
return {
|
|
@@ -270,9 +262,6 @@ var script = {
|
|
|
270
262
|
top: `${event.event.zrY}px`
|
|
271
263
|
};
|
|
272
264
|
}
|
|
273
|
-
},
|
|
274
|
-
onLabelChange(params) {
|
|
275
|
-
this.selectedFormatTooltipText(params);
|
|
276
265
|
}
|
|
277
266
|
},
|
|
278
267
|
HEIGHT_AUTO_CLASSES
|
|
@@ -284,7 +273,7 @@ const __vue_script__ = script;
|
|
|
284
273
|
/* template */
|
|
285
274
|
var __vue_render__ = function () {
|
|
286
275
|
var _obj;
|
|
287
|
-
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"position-relative",class:( _obj = {}, _obj[_vm.$options.HEIGHT_AUTO_CLASSES] = _vm.autoHeight, _obj )},[_c('chart',_vm._g(_vm._b({class:{ 'gl-flex-grow-1': _vm.autoHeight },attrs:{"height":_vm.height,"options":_vm.options},on:{"created":_vm.onCreated}},'chart',_vm.$attrs,false),_vm.$listeners)),_vm._v(" "),(_vm.shouldShowAnnotationsTooltip)?_c('chart-tooltip',{ref:"annotationsTooltip",attrs:{"id":"annotationsTooltip","show":_vm.showAnnotationsTooltip,"chart":_vm.chart,"top":_vm.annotationsTooltipPosition.top,"left":_vm.annotationsTooltipPosition.left,"placement":"bottom"},scopedSlots:_vm._u([{key:"title",fn:function(){return [_c('div',[_vm._v(_vm._s(_vm.annotationsTooltipTitle))])]},proxy:true}],null,false,1889294429)},[_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.annotationsTooltipContent))])]):_vm._e(),_vm._v(" "),(_vm.chart)?_c('chart-tooltip',{ref:"dataTooltip",attrs:{"chart":_vm.chart},scopedSlots:_vm._u([{key:"title",fn:function(){return [
|
|
276
|
+
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"position-relative",class:( _obj = {}, _obj[_vm.$options.HEIGHT_AUTO_CLASSES] = _vm.autoHeight, _obj )},[_c('chart',_vm._g(_vm._b({class:{ 'gl-flex-grow-1': _vm.autoHeight },attrs:{"height":_vm.height,"options":_vm.options},on:{"created":_vm.onCreated}},'chart',_vm.$attrs,false),_vm.$listeners)),_vm._v(" "),(_vm.shouldShowAnnotationsTooltip)?_c('chart-tooltip',{ref:"annotationsTooltip",attrs:{"id":"annotationsTooltip","show":_vm.showAnnotationsTooltip,"chart":_vm.chart,"top":_vm.annotationsTooltipPosition.top,"left":_vm.annotationsTooltipPosition.left,"placement":"bottom"},scopedSlots:_vm._u([{key:"title",fn:function(){return [_c('div',[_vm._v(_vm._s(_vm.annotationsTooltipTitle))])]},proxy:true}],null,false,1889294429)},[_vm._v(" "),_c('div',[_vm._v(_vm._s(_vm.annotationsTooltipContent))])]):_vm._e(),_vm._v(" "),(_vm.chart)?_c('chart-tooltip',{ref:"dataTooltip",attrs:{"chart":_vm.chart,"use-default-tooltip-formatter":!_vm.formatTooltipText},scopedSlots:_vm._u([(_vm.$scopedSlots['tooltip-title'])?{key:"title",fn:function(scope){return [_vm._t("tooltip-title",null,null,scope)]}}:null,(_vm.$scopedSlots['tooltip-content'])?{key:"default",fn:function(scope){return [_vm._t("tooltip-content",null,null,scope)]}}:null,(_vm.$scopedSlots['tooltip-value'])?{key:"tooltip-value",fn:function(scope){return [_vm._t("tooltip-value",null,null,scope)]}}:null],null,true)}):_vm._e(),_vm._v(" "),(_vm.hasLegend)?_c('chart-legend',{style:(_vm.legendStyle),attrs:{"chart":_vm.chart,"series-info":_vm.seriesInfo,"text-style":_vm.compiledOptions.textStyle,"min-text":_vm.legendMinText,"max-text":_vm.legendMaxText,"average-text":_vm.legendAverageText,"current-text":_vm.legendCurrentText,"layout":_vm.legendLayout}}):_vm._e()],1)};
|
|
288
277
|
var __vue_staticRenderFns__ = [];
|
|
289
278
|
|
|
290
279
|
/* style */
|
|
@@ -24,7 +24,8 @@ const i18n = {
|
|
|
24
24
|
CHAT_LEGAL_GENERATED_BY_AI: 'Responses generated by AI',
|
|
25
25
|
CHAT_EMPTY_STATE_TITLE: 'Ask a question',
|
|
26
26
|
CHAT_EMPTY_STATE_DESC: 'AI generated explanations will appear here.',
|
|
27
|
-
|
|
27
|
+
CHAT_PROMPT_PLACEHOLDER_DEFAULT: 'GitLab Duo Chat',
|
|
28
|
+
CHAT_PROMPT_PLACEHOLDER_WITH_COMMANDS: 'Type "/" for slash commands',
|
|
28
29
|
CHAT_SUBMIT_LABEL: 'Send chat message.',
|
|
29
30
|
CHAT_LEGAL_DISCLAIMER: "May provide inappropriate responses not representative of GitLab's views. Do not input personal data.",
|
|
30
31
|
CHAT_DEFAULT_PREDEFINED_PROMPTS: ['How do I change my password in GitLab?', 'How do I fork a project?', 'How do I clone a repository?', 'How do I create a template?']
|
|
@@ -36,15 +37,15 @@ const slashCommands = [{
|
|
|
36
37
|
}, {
|
|
37
38
|
name: '/tests',
|
|
38
39
|
shouldSubmit: false,
|
|
39
|
-
description: 'Write tests for the
|
|
40
|
+
description: 'Write tests for the selected snippet.'
|
|
40
41
|
}, {
|
|
41
42
|
name: '/refactor',
|
|
42
43
|
shouldSubmit: false,
|
|
43
|
-
description: 'Refactor the
|
|
44
|
+
description: 'Refactor the selected snippet.'
|
|
44
45
|
}, {
|
|
45
46
|
name: '/explain',
|
|
46
47
|
shouldSubmit: false,
|
|
47
|
-
description: 'Explain the
|
|
48
|
+
description: 'Explain the selected snippet.'
|
|
48
49
|
}];
|
|
49
50
|
const isMessage = item => Boolean(item) && (item === null || item === void 0 ? void 0 : item.role);
|
|
50
51
|
const itemsValidator = items => items.every(isMessage);
|
|
@@ -193,6 +194,9 @@ var script = {
|
|
|
193
194
|
const startsWithSlash = caseInsensitivePrompt.startsWith('/');
|
|
194
195
|
const startsWithSlashCommand = slashCommands.some(c => caseInsensitivePrompt.startsWith(c.name));
|
|
195
196
|
return startsWithSlash && this.filteredSlashCommands.length && !startsWithSlashCommand;
|
|
197
|
+
},
|
|
198
|
+
inputPlaceholder() {
|
|
199
|
+
return this.withSlashCommands ? i18n.CHAT_PROMPT_PLACEHOLDER_WITH_COMMANDS : i18n.CHAT_PROMPT_PLACEHOLDER_DEFAULT;
|
|
196
200
|
}
|
|
197
201
|
},
|
|
198
202
|
watch: {
|
|
@@ -317,7 +321,7 @@ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=
|
|
|
317
321
|
{
|
|
318
322
|
'gl-h-full': !_vm.hasMessages,
|
|
319
323
|
'gl-h-auto': _vm.hasMessages,
|
|
320
|
-
} ],attrs:{"tag":"div","name":"message"}},[_vm._l((_vm.conversations),function(conversation,index){return _c('gl-duo-chat-conversation',{key:("conversation-" + index),attrs:{"messages":conversation,"show-delimiter":index > 0},on:{"track-feedback":_vm.onTrackFeedback}})}),_vm._v(" "),(!_vm.hasMessages && !_vm.isLoading)?[_c('div',{key:"empty-state",staticClass:"gl-display-flex gl-flex-grow-1 gl-mr-auto gl-ml-auto"},[_c('gl-empty-state',{staticClass:"gl-align-self-center",attrs:{"svg-path":_vm.$options.emptySvg,"svg-height":145,"title":_vm.$options.i18n.CHAT_EMPTY_STATE_TITLE,"description":_vm.$options.i18n.CHAT_EMPTY_STATE_DESC}})],1),_vm._v(" "),_c('gl-duo-chat-predefined-prompts',{key:"predefined-prompts",attrs:{"prompts":_vm.predefinedPrompts},on:{"click":_vm.sendPredefinedPrompt}})]:_vm._e()],2),_vm._v(" "),_c('transition',{attrs:{"name":"loader"}},[(_vm.isLoading)?_c('gl-duo-chat-loader',{staticClass:"gl-px-0!",attrs:{"tool-name":_vm.toolName}}):_vm._e()],1)],1)],2),_vm._v(" "),(_vm.isChatAvailable)?_c('footer',{staticClass:"gl-drawer-footer gl-drawer-footer-sticky gl-p-5 gl-border-t gl-bg-gray-10",class:{ 'gl-drawer-body-scrim-on-footer': !_vm.scrolledToBottom },attrs:{"data-testid":"chat-footer"}},[_c('gl-form',{attrs:{"data-testid":"chat-prompt-form"},on:{"submit":function($event){$event.stopPropagation();$event.preventDefault();return _vm.sendChatPrompt.apply(null, arguments)}}},[_c('gl-form-input-group',{scopedSlots:_vm._u([{key:"append",fn:function(){return [_c('gl-button',{staticClass:"gl-absolute! gl-bottom-2 gl-right-2 gl-rounded-base!",attrs:{"icon":"paper-airplane","category":"primary","variant":"confirm","type":"submit","aria-label":_vm.$options.i18n.CHAT_SUBMIT_LABEL,"disabled":_vm.isLoading}})]},proxy:true}],null,false,2232229068)},[_c('div',{staticClass:"duo-chat-input gl-flex-grow-1 gl-vertical-align-top gl-max-w-full gl-min-h-8 gl-inset-border-1-gray-400 gl-rounded-base gl-bg-white",attrs:{"data-value":_vm.prompt}},[(_vm.shouldShowSlashCommands)?_c('gl-card',{ref:"commands",staticClass:"slash-commands gl-absolute! gl-translate-y-n100 gl-list-style-none gl-pl-0 gl-w-full gl-shadow-md",attrs:{"body-class":"gl-p-2!"}},_vm._l((_vm.filteredSlashCommands),function(command,index){return _c('gl-dropdown-item',{key:command.name,class:{ 'active-command': index === _vm.activeCommandIndex },on:{"click":function($event){return _vm.selectSlashCommand(index)}},nativeOn:{"mouseenter":function($event){_vm.activeCommandIndex = index;}}},[_c('span',{staticClass:"gl-display-flex gl-justify-content-space-between"},[_c('span',{staticClass:"gl-display-block"},[_vm._v(_vm._s(command.name))]),_vm._v(" "),_c('small',{staticClass:"gl-text-gray-500 gl-font-style-italic gl-text-right gl-pl-3"},[_vm._v(_vm._s(command.description))])])])}),1):_vm._e(),_vm._v(" "),_c('gl-form-textarea',{ref:"prompt",staticClass:"gl-absolute gl-h-full! gl-py-4! gl-bg-transparent! gl-rounded-top-right-none gl-rounded-bottom-right-none gl-shadow-none!",class:{ 'gl-text-truncate': !_vm.prompt },attrs:{"data-testid":"chat-prompt-input","placeholder":_vm
|
|
324
|
+
} ],attrs:{"tag":"div","name":"message"}},[_vm._l((_vm.conversations),function(conversation,index){return _c('gl-duo-chat-conversation',{key:("conversation-" + index),attrs:{"messages":conversation,"show-delimiter":index > 0},on:{"track-feedback":_vm.onTrackFeedback}})}),_vm._v(" "),(!_vm.hasMessages && !_vm.isLoading)?[_c('div',{key:"empty-state",staticClass:"gl-display-flex gl-flex-grow-1 gl-mr-auto gl-ml-auto"},[_c('gl-empty-state',{staticClass:"gl-align-self-center",attrs:{"svg-path":_vm.$options.emptySvg,"svg-height":145,"title":_vm.$options.i18n.CHAT_EMPTY_STATE_TITLE,"description":_vm.$options.i18n.CHAT_EMPTY_STATE_DESC}})],1),_vm._v(" "),_c('gl-duo-chat-predefined-prompts',{key:"predefined-prompts",attrs:{"prompts":_vm.predefinedPrompts},on:{"click":_vm.sendPredefinedPrompt}})]:_vm._e()],2),_vm._v(" "),_c('transition',{attrs:{"name":"loader"}},[(_vm.isLoading)?_c('gl-duo-chat-loader',{staticClass:"gl-px-0!",attrs:{"tool-name":_vm.toolName}}):_vm._e()],1)],1)],2),_vm._v(" "),(_vm.isChatAvailable)?_c('footer',{staticClass:"gl-drawer-footer gl-drawer-footer-sticky gl-p-5 gl-border-t gl-bg-gray-10",class:{ 'gl-drawer-body-scrim-on-footer': !_vm.scrolledToBottom },attrs:{"data-testid":"chat-footer"}},[_c('gl-form',{attrs:{"data-testid":"chat-prompt-form"},on:{"submit":function($event){$event.stopPropagation();$event.preventDefault();return _vm.sendChatPrompt.apply(null, arguments)}}},[_c('gl-form-input-group',{scopedSlots:_vm._u([{key:"append",fn:function(){return [_c('gl-button',{staticClass:"gl-absolute! gl-bottom-2 gl-right-2 gl-rounded-base!",attrs:{"icon":"paper-airplane","category":"primary","variant":"confirm","type":"submit","aria-label":_vm.$options.i18n.CHAT_SUBMIT_LABEL,"disabled":_vm.isLoading}})]},proxy:true}],null,false,2232229068)},[_c('div',{staticClass:"duo-chat-input gl-flex-grow-1 gl-vertical-align-top gl-max-w-full gl-min-h-8 gl-inset-border-1-gray-400 gl-rounded-base gl-bg-white",attrs:{"data-value":_vm.prompt}},[(_vm.shouldShowSlashCommands)?_c('gl-card',{ref:"commands",staticClass:"slash-commands gl-absolute! gl-translate-y-n100 gl-list-style-none gl-pl-0 gl-w-full gl-shadow-md",attrs:{"body-class":"gl-p-2!"}},_vm._l((_vm.filteredSlashCommands),function(command,index){return _c('gl-dropdown-item',{key:command.name,class:{ 'active-command': index === _vm.activeCommandIndex },on:{"click":function($event){return _vm.selectSlashCommand(index)}},nativeOn:{"mouseenter":function($event){_vm.activeCommandIndex = index;}}},[_c('span',{staticClass:"gl-display-flex gl-justify-content-space-between"},[_c('span',{staticClass:"gl-display-block"},[_vm._v(_vm._s(command.name))]),_vm._v(" "),_c('small',{staticClass:"gl-text-gray-500 gl-font-style-italic gl-text-right gl-pl-3"},[_vm._v(_vm._s(command.description))])])])}),1):_vm._e(),_vm._v(" "),_c('gl-form-textarea',{ref:"prompt",staticClass:"gl-absolute gl-h-full! gl-py-4! gl-bg-transparent! gl-rounded-top-right-none gl-rounded-bottom-right-none gl-shadow-none!",class:{ 'gl-text-truncate': !_vm.prompt },attrs:{"data-testid":"chat-prompt-input","placeholder":_vm.inputPlaceholder,"disabled":_vm.isLoading,"autofocus":""},nativeOn:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }if($event.ctrlKey||$event.shiftKey||$event.altKey||$event.metaKey){ return null; }$event.preventDefault();},"keyup":function($event){return _vm.onInputKeyup.apply(null, arguments)}},model:{value:(_vm.prompt),callback:function ($$v) {_vm.prompt=$$v;},expression:"prompt"}})],1)]),_vm._v(" "),_c('gl-form-text',{staticClass:"gl-text-gray-400 gl-line-height-20 gl-mt-3",attrs:{"data-testid":"chat-legal-disclaimer"}},[_vm._v(_vm._s(_vm.$options.i18n.CHAT_LEGAL_DISCLAIMER))])],1)],1):_vm._e()]):_vm._e()};
|
|
321
325
|
var __vue_staticRenderFns__ = [];
|
|
322
326
|
|
|
323
327
|
/* style */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Thu, 14 Dec 2023 19:07:24 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -14,6 +14,19 @@
|
|
|
14
14
|
--gl-line-height-20: 1.25rem;
|
|
15
15
|
--gl-line-height-16: 1rem;
|
|
16
16
|
--gl-line-height-12: 0.75rem;
|
|
17
|
+
--t-white-a-08: rgba(255, 255, 255, 0.08);
|
|
18
|
+
--t-white-a-06: rgba(255, 255, 255, 0.06);
|
|
19
|
+
--t-white-a-04: rgba(255, 255, 255, 0.04);
|
|
20
|
+
--t-white-a-02: rgba(255, 255, 255, 0.02);
|
|
21
|
+
--t-white-a-36: rgba(255, 255, 255, 0.36);
|
|
22
|
+
--t-white-a-24: rgba(255, 255, 255, 0.24);
|
|
23
|
+
--t-white-a-16: rgba(255, 255, 255, 0.16);
|
|
24
|
+
--t-gray-a-08: rgba(31, 30, 36, 0.08);
|
|
25
|
+
--t-gray-a-06: rgba(31, 30, 36, 0.06);
|
|
26
|
+
--t-gray-a-04: rgba(31, 30, 36, 0.04);
|
|
27
|
+
--t-gray-a-02: rgba(31, 30, 36, 0.02);
|
|
28
|
+
--t-gray-a-24: rgba(31, 30, 36, 0.24);
|
|
29
|
+
--t-gray-a-16: rgba(31, 30, 36, 0.16);
|
|
17
30
|
--brand-gray-05: #2b2838;
|
|
18
31
|
--brand-gray-04: #45424d;
|
|
19
32
|
--brand-gray-03: #74717a;
|
package/dist/tokens/js/tokens.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Thu, 14 Dec 2023 19:07:24 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export const DATA_VIZ_GREEN_50 = "#ddfab7";
|
|
@@ -204,6 +204,19 @@ export const BRAND_GRAY_02 = "#a2a1a6";
|
|
|
204
204
|
export const BRAND_GRAY_03 = "#74717a";
|
|
205
205
|
export const BRAND_GRAY_04 = "#45424d";
|
|
206
206
|
export const BRAND_GRAY_05 = "#2b2838";
|
|
207
|
+
export const T_GRAY_A_16 = "rgba(31, 30, 36, 0.16)";
|
|
208
|
+
export const T_GRAY_A_24 = "rgba(31, 30, 36, 0.24)";
|
|
209
|
+
export const T_GRAY_A_02 = "rgba(31, 30, 36, 0.02)";
|
|
210
|
+
export const T_GRAY_A_04 = "rgba(31, 30, 36, 0.04)";
|
|
211
|
+
export const T_GRAY_A_06 = "rgba(31, 30, 36, 0.06)";
|
|
212
|
+
export const T_GRAY_A_08 = "rgba(31, 30, 36, 0.08)";
|
|
213
|
+
export const T_WHITE_A_16 = "rgba(255, 255, 255, 0.16)";
|
|
214
|
+
export const T_WHITE_A_24 = "rgba(255, 255, 255, 0.24)";
|
|
215
|
+
export const T_WHITE_A_36 = "rgba(255, 255, 255, 0.36)";
|
|
216
|
+
export const T_WHITE_A_02 = "rgba(255, 255, 255, 0.02)";
|
|
217
|
+
export const T_WHITE_A_04 = "rgba(255, 255, 255, 0.04)";
|
|
218
|
+
export const T_WHITE_A_06 = "rgba(255, 255, 255, 0.06)";
|
|
219
|
+
export const T_WHITE_A_08 = "rgba(255, 255, 255, 0.08)";
|
|
207
220
|
export const GL_LINE_HEIGHT_12 = "0.75rem";
|
|
208
221
|
export const GL_LINE_HEIGHT_16 = "1rem";
|
|
209
222
|
export const GL_LINE_HEIGHT_20 = "1.25rem";
|
|
@@ -200,7 +200,20 @@
|
|
|
200
200
|
"brand-gray-02": "#a2a1a6",
|
|
201
201
|
"brand-gray-03": "#74717a",
|
|
202
202
|
"brand-gray-04": "#45424d",
|
|
203
|
-
"brand-gray-05": "#2b2838"
|
|
203
|
+
"brand-gray-05": "#2b2838",
|
|
204
|
+
"t-gray-a-16": "rgba(31, 30, 36, 0.16)",
|
|
205
|
+
"t-gray-a-24": "rgba(31, 30, 36, 0.24)",
|
|
206
|
+
"t-gray-a-02": "rgba(31, 30, 36, 0.02)",
|
|
207
|
+
"t-gray-a-04": "rgba(31, 30, 36, 0.04)",
|
|
208
|
+
"t-gray-a-06": "rgba(31, 30, 36, 0.06)",
|
|
209
|
+
"t-gray-a-08": "rgba(31, 30, 36, 0.08)",
|
|
210
|
+
"t-white-a-16": "rgba(255, 255, 255, 0.16)",
|
|
211
|
+
"t-white-a-24": "rgba(255, 255, 255, 0.24)",
|
|
212
|
+
"t-white-a-36": "rgba(255, 255, 255, 0.36)",
|
|
213
|
+
"t-white-a-02": "rgba(255, 255, 255, 0.02)",
|
|
214
|
+
"t-white-a-04": "rgba(255, 255, 255, 0.04)",
|
|
215
|
+
"t-white-a-06": "rgba(255, 255, 255, 0.06)",
|
|
216
|
+
"t-white-a-08": "rgba(255, 255, 255, 0.08)"
|
|
204
217
|
},
|
|
205
218
|
"dimension": {
|
|
206
219
|
"line-height-12": "0.75rem",
|