@gitlab/ui 79.2.0 → 79.3.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 CHANGED
@@ -1,3 +1,10 @@
1
+ # [79.3.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v79.2.0...v79.3.0) (2024-04-25)
2
+
3
+
4
+ ### Features
5
+
6
+ * **DesignTokens:** add new text colors and deprecate pilot text colors ([818f109](https://gitlab.com/gitlab-org/gitlab-ui/commit/818f109b4151319a7d51025a8eae9bcf2a6e37e4))
7
+
1
8
  # [79.2.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v79.1.1...v79.2.0) (2024-04-24)
2
9
 
3
10
 
@@ -358,13 +358,13 @@ const __vue_script__ = script;
358
358
  var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isVisible)?_c('nav',{staticClass:"gl-pagination text-nowrap",attrs:{"aria-label":"Pagination"}},[_c('ul',{staticClass:"pagination",class:_vm.wrapperClasses},[_c('li',{staticClass:"page-item",class:{
359
359
  disabled: _vm.prevPageIsDisabled,
360
360
  'flex-fill': _vm.isFillAlign,
361
- },attrs:{"aria-hidden":_vm.prevPageIsDisabled}},[_c(_vm.prevPageIsDisabled ? 'span' : 'a',{tag:"component",staticClass:"gl-link page-link prev-page-item gl-display-flex",attrs:{"aria-label":_vm.prevPageAriaLabel,"href":_vm.prevPageHref},on:{"click":function($event){return _vm.handlePrevious($event, _vm.value - 1)}}},[_vm._t("previous",function(){return [_c('gl-icon',{attrs:{"name":"chevron-left"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.prevText))])]},null,{ page: _vm.value - 1, disabled: _vm.prevPageIsDisabled })],2)],1),_vm._v(" "),_vm._l((_vm.visibleItems),function(item){return _c('li',{key:item.key,staticClass:"page-item",class:{
361
+ },attrs:{"data-testid":"page-item","aria-hidden":_vm.prevPageIsDisabled}},[_c(_vm.prevPageIsDisabled ? 'span' : 'a',{tag:"component",staticClass:"gl-link page-link prev-page-item gl-display-flex",attrs:{"data-testid":"page-link","aria-label":_vm.prevPageAriaLabel,"href":_vm.prevPageHref},on:{"click":function($event){return _vm.handlePrevious($event, _vm.value - 1)}}},[_vm._t("previous",function(){return [_c('gl-icon',{attrs:{"name":"chevron-left"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.prevText))])]},null,{ page: _vm.value - 1, disabled: _vm.prevPageIsDisabled })],2)],1),_vm._v(" "),_vm._l((_vm.visibleItems),function(item){return _c('li',{key:item.key,staticClass:"page-item",class:{
362
362
  disabled: item.disabled,
363
363
  'flex-fill': _vm.isFillAlign,
364
- }},[_c(item.component,_vm._g(_vm._b({tag:"component",staticClass:"page-link",attrs:{"size":"md","aria-disabled":item.disabled}},'component',item.attrs,false),item.listeners),[_vm._t(item.slot,function(){return [_vm._v(_vm._s(item.content))]},null,item.slotData)],2)],1)}),_vm._v(" "),_c('li',{staticClass:"page-item",class:{
364
+ },attrs:{"data-testid":"page-item"}},[_c(item.component,_vm._g(_vm._b({tag:"component",staticClass:"page-link",attrs:{"data-testid":"page-link","size":"md","aria-disabled":item.disabled}},'component',item.attrs,false),item.listeners),[_vm._t(item.slot,function(){return [_vm._v(_vm._s(item.content))]},null,item.slotData)],2)],1)}),_vm._v(" "),_c('li',{staticClass:"page-item",class:{
365
365
  disabled: _vm.nextPageIsDisabled,
366
366
  'flex-fill': _vm.isFillAlign,
367
- },attrs:{"aria-hidden":_vm.nextPageIsDisabled}},[_c(_vm.nextPageIsDisabled ? 'span' : 'a',{tag:"component",staticClass:"gl-link page-link next-page-item gl-display-flex",attrs:{"aria-label":_vm.nextPageAriaLabel,"href":_vm.nextPageHref},on:{"click":function($event){return _vm.handleNext($event, _vm.value + 1)}}},[_vm._t("next",function(){return [_c('span',[_vm._v(_vm._s(_vm.nextText))]),_vm._v(" "),_c('gl-icon',{attrs:{"name":"chevron-right"}})]},null,{ page: _vm.value + 1, disabled: _vm.nextPageIsDisabled })],2)],1)],2)]):_vm._e()};
367
+ },attrs:{"data-testid":"page-item","aria-hidden":_vm.nextPageIsDisabled}},[_c(_vm.nextPageIsDisabled ? 'span' : 'a',{tag:"component",staticClass:"gl-link page-link next-page-item gl-display-flex",attrs:{"data-testid":"page-link","aria-label":_vm.nextPageAriaLabel,"href":_vm.nextPageHref},on:{"click":function($event){return _vm.handleNext($event, _vm.value + 1)}}},[_vm._t("next",function(){return [_c('span',[_vm._v(_vm._s(_vm.nextText))]),_vm._v(" "),_c('gl-icon',{attrs:{"name":"chevron-right"}})]},null,{ page: _vm.value + 1, disabled: _vm.nextPageIsDisabled })],2)],1)],2)]):_vm._e()};
368
368
  var __vue_staticRenderFns__ = [];
369
369
 
370
370
  /* style */
@@ -1,12 +1,20 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 24 Apr 2024 16:36:49 GMT
3
+ * Generated on Thu, 25 Apr 2024 08:42:27 GMT
4
4
  */
5
5
 
6
6
  :root {
7
- --gl-text-tertiary: #89888d;
8
- --gl-text-secondary: #737278;
9
- --gl-text-primary: #333238;
7
+ --gl-text-color-disabled: #89888d; /* Used for disabled text. */
8
+ --gl-text-color-success: #217645; /* Used for text indicating success or validity. */
9
+ --gl-text-color-danger: #c91c00; /* Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination. */
10
+ --gl-text-color-link: #0b5cad; /* Used for default text links. */
11
+ --gl-text-color-heading: #1f1e24; /* Used for headings level 1-6. */
12
+ --gl-text-color-strong: #1f1e24; /* Used for text with the highest contrast. */
13
+ --gl-text-color-subtle: #626168; /* Used for supplemental text that doesn't need to be as prominent as other text. */
14
+ --gl-text-color-default: #434248; /* Used for the default text color. */
15
+ --gl-text-tertiary: #89888d; /* Use text.color.disabled instead */
16
+ --gl-text-secondary: #737278; /* Use text.color.subtle instead */
17
+ --gl-text-primary: #333238; /* Use text.color.strong instead */
10
18
  --gl-line-height-52: 3.25rem;
11
19
  --gl-line-height-44: 2.75rem;
12
20
  --gl-line-height-42: 2.625rem;
@@ -1,12 +1,18 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 24 Apr 2024 16:36:49 GMT
3
+ * Generated on Thu, 25 Apr 2024 08:42:27 GMT
4
4
  */
5
5
 
6
6
  :root.gl-dark {
7
- --gl-text-tertiary: #737278;
8
- --gl-text-secondary: #89888d;
9
- --gl-text-primary: #ececef;
7
+ --gl-text-color-disabled: #89888d; /* Used for disabled text. */
8
+ --gl-text-color-link: #63a6e9; /* Used for default text links. */
9
+ --gl-text-color-heading: #fff; /* Used for headings level 1-6. */
10
+ --gl-text-color-strong: #fff; /* Used for text with the highest contrast. */
11
+ --gl-text-color-subtle: #bfbfc3; /* Used for supplemental text that doesn't need to be as prominent as other text. */
12
+ --gl-text-color-default: #ececef; /* Used for the default text color. */
13
+ --gl-text-tertiary: #737278; /* Use text.color.disabled instead */
14
+ --gl-text-secondary: #89888d; /* Use text.color.subtle instead */
15
+ --gl-text-primary: #ececef; /* Use text.color.strong instead */
10
16
  --red-950: #fff4f3;
11
17
  --red-900: #fcf1ef;
12
18
  --red-800: #fdd4cd;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 24 Apr 2024 16:36:49 GMT
3
+ * Generated on Thu, 25 Apr 2024 08:42:27 GMT
4
4
  */
5
5
 
6
6
  export const DATA_VIZ_GREEN_50 = "#133a03";
@@ -199,6 +199,12 @@ export const RED_700 = "#fcb5aa";
199
199
  export const RED_800 = "#fdd4cd";
200
200
  export const RED_900 = "#fcf1ef";
201
201
  export const RED_950 = "#fff4f3";
202
- export const GL_TEXT_PRIMARY = "#ececef";
203
- export const GL_TEXT_SECONDARY = "#89888d";
204
- export const GL_TEXT_TERTIARY = "#737278";
202
+ export const GL_TEXT_PRIMARY = "#ececef"; // Use text.color.strong instead
203
+ export const GL_TEXT_SECONDARY = "#89888d"; // Use text.color.subtle instead
204
+ export const GL_TEXT_TERTIARY = "#737278"; // Use text.color.disabled instead
205
+ export const GL_TEXT_COLOR_DEFAULT = "#ececef"; // Used for the default text color.
206
+ export const GL_TEXT_COLOR_SUBTLE = "#bfbfc3"; // Used for supplemental text that doesn't need to be as prominent as other text.
207
+ export const GL_TEXT_COLOR_STRONG = "#fff"; // Used for text with the highest contrast.
208
+ export const GL_TEXT_COLOR_HEADING = "#fff"; // Used for headings level 1-6.
209
+ export const GL_TEXT_COLOR_LINK = "#63a6e9"; // Used for default text links.
210
+ export const GL_TEXT_COLOR_DISABLED = "#89888d"; // Used for disabled text.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 24 Apr 2024 16:36:49 GMT
3
+ * Generated on Thu, 25 Apr 2024 08:42:27 GMT
4
4
  */
5
5
 
6
6
  export const DATA_VIZ_GREEN_50 = "#ddfab7";
@@ -233,6 +233,14 @@ export const GL_LINE_HEIGHT_36 = "2.25rem";
233
233
  export const GL_LINE_HEIGHT_42 = "2.625rem";
234
234
  export const GL_LINE_HEIGHT_44 = "2.75rem";
235
235
  export const GL_LINE_HEIGHT_52 = "3.25rem";
236
- export const GL_TEXT_PRIMARY = "#333238";
237
- export const GL_TEXT_SECONDARY = "#737278";
238
- export const GL_TEXT_TERTIARY = "#89888d";
236
+ export const GL_TEXT_PRIMARY = "#333238"; // Use text.color.strong instead
237
+ export const GL_TEXT_SECONDARY = "#737278"; // Use text.color.subtle instead
238
+ export const GL_TEXT_TERTIARY = "#89888d"; // Use text.color.disabled instead
239
+ export const GL_TEXT_COLOR_DEFAULT = "#434248"; // Used for the default text color.
240
+ export const GL_TEXT_COLOR_SUBTLE = "#626168"; // Used for supplemental text that doesn't need to be as prominent as other text.
241
+ export const GL_TEXT_COLOR_STRONG = "#1f1e24"; // Used for text with the highest contrast.
242
+ export const GL_TEXT_COLOR_HEADING = "#1f1e24"; // Used for headings level 1-6.
243
+ export const GL_TEXT_COLOR_LINK = "#0b5cad"; // Used for default text links.
244
+ export const GL_TEXT_COLOR_DANGER = "#c91c00"; // Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.
245
+ export const GL_TEXT_COLOR_SUCCESS = "#217645"; // Used for text indicating success or validity.
246
+ export const GL_TEXT_COLOR_DISABLED = "#89888d"; // Used for disabled text.
@@ -222,7 +222,15 @@
222
222
  "t-white-a-08": "rgba(255, 255, 255, 0.08)",
223
223
  "text-primary": "#ececef",
224
224
  "text-secondary": "#89888d",
225
- "text-tertiary": "#737278"
225
+ "text-tertiary": "#737278",
226
+ "text-color-default": "#ececef",
227
+ "text-color-subtle": "#bfbfc3",
228
+ "text-color-strong": "#fff",
229
+ "text-color-heading": "#fff",
230
+ "text-color-link": "#63a6e9",
231
+ "text-color-danger": "#c91c00",
232
+ "text-color-success": "#217645",
233
+ "text-color-disabled": "#89888d"
226
234
  },
227
235
  "dimension": {
228
236
  "line-height-12": "0.75rem",
@@ -4800,12 +4800,16 @@
4800
4800
  "primary": {
4801
4801
  "value": "#ececef",
4802
4802
  "$type": "color",
4803
+ "comment": "Use text.color.strong instead",
4804
+ "deprecated": true,
4803
4805
  "themeable": true,
4804
4806
  "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.dark.tokens.json",
4805
4807
  "isSource": true,
4806
4808
  "original": {
4807
4809
  "value": "#ececef",
4808
4810
  "$type": "color",
4811
+ "comment": "Use text.color.strong instead",
4812
+ "deprecated": true,
4809
4813
  "themeable": true
4810
4814
  },
4811
4815
  "name": "TEXT_PRIMARY",
@@ -4818,12 +4822,16 @@
4818
4822
  "secondary": {
4819
4823
  "value": "#89888d",
4820
4824
  "$type": "color",
4825
+ "comment": "Use text.color.subtle instead",
4826
+ "deprecated": true,
4821
4827
  "themeable": true,
4822
4828
  "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.dark.tokens.json",
4823
4829
  "isSource": true,
4824
4830
  "original": {
4825
4831
  "value": "#89888d",
4826
4832
  "$type": "color",
4833
+ "comment": "Use text.color.subtle instead",
4834
+ "deprecated": true,
4827
4835
  "themeable": true
4828
4836
  },
4829
4837
  "name": "TEXT_SECONDARY",
@@ -4836,12 +4844,16 @@
4836
4844
  "tertiary": {
4837
4845
  "value": "#737278",
4838
4846
  "$type": "color",
4847
+ "comment": "Use text.color.disabled instead",
4848
+ "deprecated": true,
4839
4849
  "themeable": true,
4840
4850
  "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.dark.tokens.json",
4841
4851
  "isSource": true,
4842
4852
  "original": {
4843
4853
  "value": "#737278",
4844
4854
  "$type": "color",
4855
+ "comment": "Use text.color.disabled instead",
4856
+ "deprecated": true,
4845
4857
  "themeable": true
4846
4858
  },
4847
4859
  "name": "TEXT_TERTIARY",
@@ -4850,6 +4862,176 @@
4850
4862
  "text",
4851
4863
  "tertiary"
4852
4864
  ]
4865
+ },
4866
+ "color": {
4867
+ "default": {
4868
+ "value": "#ececef",
4869
+ "$type": "color",
4870
+ "comment": "Used for the default text color.",
4871
+ "themeable": true,
4872
+ "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.dark.tokens.json",
4873
+ "isSource": true,
4874
+ "original": {
4875
+ "value": "#ececef",
4876
+ "$type": "color",
4877
+ "comment": "Used for the default text color.",
4878
+ "themeable": true
4879
+ },
4880
+ "name": "TEXT_COLOR_DEFAULT",
4881
+ "attributes": {},
4882
+ "path": [
4883
+ "text",
4884
+ "color",
4885
+ "default"
4886
+ ]
4887
+ },
4888
+ "subtle": {
4889
+ "value": "#bfbfc3",
4890
+ "$type": "color",
4891
+ "comment": "Used for supplemental text that doesn't need to be as prominent as other text.",
4892
+ "themeable": true,
4893
+ "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.dark.tokens.json",
4894
+ "isSource": true,
4895
+ "original": {
4896
+ "value": "#bfbfc3",
4897
+ "$type": "color",
4898
+ "comment": "Used for supplemental text that doesn't need to be as prominent as other text.",
4899
+ "themeable": true
4900
+ },
4901
+ "name": "TEXT_COLOR_SUBTLE",
4902
+ "attributes": {},
4903
+ "path": [
4904
+ "text",
4905
+ "color",
4906
+ "subtle"
4907
+ ]
4908
+ },
4909
+ "strong": {
4910
+ "value": "#fff",
4911
+ "$type": "color",
4912
+ "comment": "Used for text with the highest contrast.",
4913
+ "themeable": true,
4914
+ "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.dark.tokens.json",
4915
+ "isSource": true,
4916
+ "original": {
4917
+ "value": "#fff",
4918
+ "$type": "color",
4919
+ "comment": "Used for text with the highest contrast.",
4920
+ "themeable": true
4921
+ },
4922
+ "name": "TEXT_COLOR_STRONG",
4923
+ "attributes": {},
4924
+ "path": [
4925
+ "text",
4926
+ "color",
4927
+ "strong"
4928
+ ]
4929
+ },
4930
+ "heading": {
4931
+ "value": "#fff",
4932
+ "$type": "color",
4933
+ "comment": "Used for headings level 1-6.",
4934
+ "themeable": true,
4935
+ "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.dark.tokens.json",
4936
+ "isSource": true,
4937
+ "original": {
4938
+ "value": "#fff",
4939
+ "$type": "color",
4940
+ "comment": "Used for headings level 1-6.",
4941
+ "themeable": true
4942
+ },
4943
+ "name": "TEXT_COLOR_HEADING",
4944
+ "attributes": {},
4945
+ "path": [
4946
+ "text",
4947
+ "color",
4948
+ "heading"
4949
+ ]
4950
+ },
4951
+ "link": {
4952
+ "value": "#63a6e9",
4953
+ "$type": "color",
4954
+ "comment": "Used for default text links.",
4955
+ "themeable": true,
4956
+ "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.dark.tokens.json",
4957
+ "isSource": true,
4958
+ "original": {
4959
+ "value": "#63a6e9",
4960
+ "$type": "color",
4961
+ "comment": "Used for default text links.",
4962
+ "themeable": true
4963
+ },
4964
+ "name": "TEXT_COLOR_LINK",
4965
+ "attributes": {},
4966
+ "path": [
4967
+ "text",
4968
+ "color",
4969
+ "link"
4970
+ ]
4971
+ },
4972
+ "danger": {
4973
+ "value": "#c91c00",
4974
+ "$type": "color",
4975
+ "comment": "Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.",
4976
+ "themeable": true,
4977
+ "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.tokens.json",
4978
+ "isSource": false,
4979
+ "original": {
4980
+ "value": "#c91c00",
4981
+ "$type": "color",
4982
+ "comment": "Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.",
4983
+ "themeable": true
4984
+ },
4985
+ "name": "TEXT_COLOR_DANGER",
4986
+ "attributes": {},
4987
+ "path": [
4988
+ "text",
4989
+ "color",
4990
+ "danger"
4991
+ ]
4992
+ },
4993
+ "success": {
4994
+ "value": "#217645",
4995
+ "$type": "color",
4996
+ "comment": "Used for text indicating success or validity.",
4997
+ "themeable": true,
4998
+ "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.tokens.json",
4999
+ "isSource": false,
5000
+ "original": {
5001
+ "value": "#217645",
5002
+ "$type": "color",
5003
+ "comment": "Used for text indicating success or validity.",
5004
+ "themeable": true
5005
+ },
5006
+ "name": "TEXT_COLOR_SUCCESS",
5007
+ "attributes": {},
5008
+ "path": [
5009
+ "text",
5010
+ "color",
5011
+ "success"
5012
+ ]
5013
+ },
5014
+ "disabled": {
5015
+ "value": "#89888d",
5016
+ "$type": "color",
5017
+ "comment": "Used for disabled text.",
5018
+ "themeable": true,
5019
+ "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.dark.tokens.json",
5020
+ "isSource": true,
5021
+ "original": {
5022
+ "value": "#89888d",
5023
+ "$type": "color",
5024
+ "comment": "Used for disabled text.",
5025
+ "themeable": true
5026
+ },
5027
+ "name": "TEXT_COLOR_DISABLED",
5028
+ "attributes": {},
5029
+ "path": [
5030
+ "text",
5031
+ "color",
5032
+ "disabled"
5033
+ ]
5034
+ }
4853
5035
  }
4854
5036
  }
4855
5037
  }
@@ -222,7 +222,15 @@
222
222
  "t-white-a-08": "rgba(255, 255, 255, 0.08)",
223
223
  "text-primary": "#333238",
224
224
  "text-secondary": "#737278",
225
- "text-tertiary": "#89888d"
225
+ "text-tertiary": "#89888d",
226
+ "text-color-default": "#434248",
227
+ "text-color-subtle": "#626168",
228
+ "text-color-strong": "#1f1e24",
229
+ "text-color-heading": "#1f1e24",
230
+ "text-color-link": "#0b5cad",
231
+ "text-color-danger": "#c91c00",
232
+ "text-color-success": "#217645",
233
+ "text-color-disabled": "#89888d"
226
234
  },
227
235
  "dimension": {
228
236
  "line-height-12": "0.75rem",
@@ -4800,12 +4800,16 @@
4800
4800
  "primary": {
4801
4801
  "value": "#333238",
4802
4802
  "$type": "color",
4803
+ "comment": "Use text.color.strong instead",
4804
+ "deprecated": true,
4803
4805
  "themeable": true,
4804
4806
  "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.tokens.json",
4805
4807
  "isSource": false,
4806
4808
  "original": {
4807
4809
  "value": "#333238",
4808
4810
  "$type": "color",
4811
+ "comment": "Use text.color.strong instead",
4812
+ "deprecated": true,
4809
4813
  "themeable": true
4810
4814
  },
4811
4815
  "name": "TEXT_PRIMARY",
@@ -4818,12 +4822,16 @@
4818
4822
  "secondary": {
4819
4823
  "value": "#737278",
4820
4824
  "$type": "color",
4825
+ "comment": "Use text.color.subtle instead",
4826
+ "deprecated": true,
4821
4827
  "themeable": true,
4822
4828
  "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.tokens.json",
4823
4829
  "isSource": false,
4824
4830
  "original": {
4825
4831
  "value": "#737278",
4826
4832
  "$type": "color",
4833
+ "comment": "Use text.color.subtle instead",
4834
+ "deprecated": true,
4827
4835
  "themeable": true
4828
4836
  },
4829
4837
  "name": "TEXT_SECONDARY",
@@ -4836,12 +4844,16 @@
4836
4844
  "tertiary": {
4837
4845
  "value": "#89888d",
4838
4846
  "$type": "color",
4847
+ "comment": "Use text.color.disabled instead",
4848
+ "deprecated": true,
4839
4849
  "themeable": true,
4840
4850
  "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.tokens.json",
4841
4851
  "isSource": false,
4842
4852
  "original": {
4843
4853
  "value": "#89888d",
4844
4854
  "$type": "color",
4855
+ "comment": "Use text.color.disabled instead",
4856
+ "deprecated": true,
4845
4857
  "themeable": true
4846
4858
  },
4847
4859
  "name": "TEXT_TERTIARY",
@@ -4850,6 +4862,176 @@
4850
4862
  "text",
4851
4863
  "tertiary"
4852
4864
  ]
4865
+ },
4866
+ "color": {
4867
+ "default": {
4868
+ "value": "#434248",
4869
+ "$type": "color",
4870
+ "comment": "Used for the default text color.",
4871
+ "themeable": true,
4872
+ "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.tokens.json",
4873
+ "isSource": false,
4874
+ "original": {
4875
+ "value": "#434248",
4876
+ "$type": "color",
4877
+ "comment": "Used for the default text color.",
4878
+ "themeable": true
4879
+ },
4880
+ "name": "TEXT_COLOR_DEFAULT",
4881
+ "attributes": {},
4882
+ "path": [
4883
+ "text",
4884
+ "color",
4885
+ "default"
4886
+ ]
4887
+ },
4888
+ "subtle": {
4889
+ "value": "#626168",
4890
+ "$type": "color",
4891
+ "comment": "Used for supplemental text that doesn't need to be as prominent as other text.",
4892
+ "themeable": true,
4893
+ "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.tokens.json",
4894
+ "isSource": false,
4895
+ "original": {
4896
+ "value": "#626168",
4897
+ "$type": "color",
4898
+ "comment": "Used for supplemental text that doesn't need to be as prominent as other text.",
4899
+ "themeable": true
4900
+ },
4901
+ "name": "TEXT_COLOR_SUBTLE",
4902
+ "attributes": {},
4903
+ "path": [
4904
+ "text",
4905
+ "color",
4906
+ "subtle"
4907
+ ]
4908
+ },
4909
+ "strong": {
4910
+ "value": "#1f1e24",
4911
+ "$type": "color",
4912
+ "comment": "Used for text with the highest contrast.",
4913
+ "themeable": true,
4914
+ "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.tokens.json",
4915
+ "isSource": false,
4916
+ "original": {
4917
+ "value": "#1f1e24",
4918
+ "$type": "color",
4919
+ "comment": "Used for text with the highest contrast.",
4920
+ "themeable": true
4921
+ },
4922
+ "name": "TEXT_COLOR_STRONG",
4923
+ "attributes": {},
4924
+ "path": [
4925
+ "text",
4926
+ "color",
4927
+ "strong"
4928
+ ]
4929
+ },
4930
+ "heading": {
4931
+ "value": "#1f1e24",
4932
+ "$type": "color",
4933
+ "comment": "Used for headings level 1-6.",
4934
+ "themeable": true,
4935
+ "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.tokens.json",
4936
+ "isSource": false,
4937
+ "original": {
4938
+ "value": "#1f1e24",
4939
+ "$type": "color",
4940
+ "comment": "Used for headings level 1-6.",
4941
+ "themeable": true
4942
+ },
4943
+ "name": "TEXT_COLOR_HEADING",
4944
+ "attributes": {},
4945
+ "path": [
4946
+ "text",
4947
+ "color",
4948
+ "heading"
4949
+ ]
4950
+ },
4951
+ "link": {
4952
+ "value": "#0b5cad",
4953
+ "$type": "color",
4954
+ "comment": "Used for default text links.",
4955
+ "themeable": true,
4956
+ "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.tokens.json",
4957
+ "isSource": false,
4958
+ "original": {
4959
+ "value": "#0b5cad",
4960
+ "$type": "color",
4961
+ "comment": "Used for default text links.",
4962
+ "themeable": true
4963
+ },
4964
+ "name": "TEXT_COLOR_LINK",
4965
+ "attributes": {},
4966
+ "path": [
4967
+ "text",
4968
+ "color",
4969
+ "link"
4970
+ ]
4971
+ },
4972
+ "danger": {
4973
+ "value": "#c91c00",
4974
+ "$type": "color",
4975
+ "comment": "Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.",
4976
+ "themeable": true,
4977
+ "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.tokens.json",
4978
+ "isSource": false,
4979
+ "original": {
4980
+ "value": "#c91c00",
4981
+ "$type": "color",
4982
+ "comment": "Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.",
4983
+ "themeable": true
4984
+ },
4985
+ "name": "TEXT_COLOR_DANGER",
4986
+ "attributes": {},
4987
+ "path": [
4988
+ "text",
4989
+ "color",
4990
+ "danger"
4991
+ ]
4992
+ },
4993
+ "success": {
4994
+ "value": "#217645",
4995
+ "$type": "color",
4996
+ "comment": "Used for text indicating success or validity.",
4997
+ "themeable": true,
4998
+ "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.tokens.json",
4999
+ "isSource": false,
5000
+ "original": {
5001
+ "value": "#217645",
5002
+ "$type": "color",
5003
+ "comment": "Used for text indicating success or validity.",
5004
+ "themeable": true
5005
+ },
5006
+ "name": "TEXT_COLOR_SUCCESS",
5007
+ "attributes": {},
5008
+ "path": [
5009
+ "text",
5010
+ "color",
5011
+ "success"
5012
+ ]
5013
+ },
5014
+ "disabled": {
5015
+ "value": "#89888d",
5016
+ "$type": "color",
5017
+ "comment": "Used for disabled text.",
5018
+ "themeable": true,
5019
+ "filePath": "/builds/gitlab-org/gitlab-ui/src/tokens/text.tokens.json",
5020
+ "isSource": false,
5021
+ "original": {
5022
+ "value": "#89888d",
5023
+ "$type": "color",
5024
+ "comment": "Used for disabled text.",
5025
+ "themeable": true
5026
+ },
5027
+ "name": "TEXT_COLOR_DISABLED",
5028
+ "attributes": {},
5029
+ "path": [
5030
+ "text",
5031
+ "color",
5032
+ "disabled"
5033
+ ]
5034
+ }
4853
5035
  }
4854
5036
  }
4855
5037
  }
@@ -1,10 +1,16 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Wed, 24 Apr 2024 16:36:49 GMT
3
+ // Generated on Thu, 25 Apr 2024 08:42:27 GMT
4
4
 
5
- $gl-text-tertiary: #737278 !default;
6
- $gl-text-secondary: #89888d !default;
7
- $gl-text-primary: #ececef !default;
5
+ $gl-text-color-disabled: #89888d !default; // Used for disabled text.
6
+ $gl-text-color-link: #63a6e9 !default; // Used for default text links.
7
+ $gl-text-color-heading: #fff !default; // Used for headings level 1-6.
8
+ $gl-text-color-strong: #fff !default; // Used for text with the highest contrast.
9
+ $gl-text-color-subtle: #bfbfc3 !default; // Used for supplemental text that doesn't need to be as prominent as other text.
10
+ $gl-text-color-default: #ececef !default; // Used for the default text color.
11
+ $gl-text-tertiary: #737278 !default; // Use text.color.disabled instead
12
+ $gl-text-secondary: #89888d !default; // Use text.color.subtle instead
13
+ $gl-text-primary: #ececef !default; // Use text.color.strong instead
8
14
  $red-950: #fff4f3;
9
15
  $red-900: #fcf1ef;
10
16
  $red-800: #fdd4cd;
@@ -1,10 +1,18 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Wed, 24 Apr 2024 16:36:49 GMT
3
+ // Generated on Thu, 25 Apr 2024 08:42:27 GMT
4
4
 
5
- $gl-text-tertiary: #89888d !default;
6
- $gl-text-secondary: #737278 !default;
7
- $gl-text-primary: #333238 !default;
5
+ $gl-text-color-disabled: #89888d !default; // Used for disabled text.
6
+ $gl-text-color-success: #217645 !default; // Used for text indicating success or validity.
7
+ $gl-text-color-danger: #c91c00 !default; // Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.
8
+ $gl-text-color-link: #0b5cad !default; // Used for default text links.
9
+ $gl-text-color-heading: #1f1e24 !default; // Used for headings level 1-6.
10
+ $gl-text-color-strong: #1f1e24 !default; // Used for text with the highest contrast.
11
+ $gl-text-color-subtle: #626168 !default; // Used for supplemental text that doesn't need to be as prominent as other text.
12
+ $gl-text-color-default: #434248 !default; // Used for the default text color.
13
+ $gl-text-tertiary: #89888d !default; // Use text.color.disabled instead
14
+ $gl-text-secondary: #737278 !default; // Use text.color.subtle instead
15
+ $gl-text-primary: #333238 !default; // Use text.color.strong instead
8
16
  $gl-line-height-52: 3.25rem;
9
17
  $gl-line-height-44: 2.75rem;
10
18
  $gl-line-height-42: 2.625rem;
@@ -1,12 +1,18 @@
1
1
  import { colorFromBackground } from '../utils/utils';
2
+ import { GlTooltipDirective } from '../directives/tooltip';
3
+ import GlBadge from '../components/base/badge/badge';
2
4
  import GlColorContrast from '../internal/color_contrast/color_contrast';
3
5
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
4
6
 
5
7
  var script = {
6
8
  name: 'TokensStory',
7
9
  components: {
10
+ GlBadge,
8
11
  GlColorContrast
9
12
  },
13
+ directives: {
14
+ GlTooltip: GlTooltipDirective
15
+ },
10
16
  inject: ['isBackgroundColorStory', 'lightBackground', 'darkBackground', 'containerClass'],
11
17
  props: {
12
18
  tokens: {
@@ -48,7 +54,7 @@ var script = {
48
54
  const __vue_script__ = script;
49
55
 
50
56
  /* template */
51
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.containerClass},[_c('ul',{staticClass:"gl-list-style-none gl-m-0 gl-p-0"},_vm._l((_vm.tokens),function(token){return _c('li',{key:token.name,staticClass:"gl-display-flex gl-flex-wrap gl-align-items-center gl-justify-content-space-between gl-gap-3 gl-p-3",class:_vm.getClasses(token.value),style:(_vm.getStyle(token.value))},[_c('code',{staticClass:"gl-reset-color"},[_vm._v(_vm._s(_vm.getTokenName(token)))]),_vm._v(" "),_c('div',{staticClass:"gl-display-flex gl-align-items-center gl-gap-3"},[_c('code',{staticClass:"gl-reset-color"},[_vm._v(_vm._s(token.value))]),_vm._v(" "),(!_vm.isAlpha(token.value))?_c('gl-color-contrast',{attrs:{"foreground":token.value,"background":_vm.darkBackground}}):_vm._e(),_vm._v(" "),(!_vm.isAlpha(token.value))?_c('gl-color-contrast',{attrs:{"foreground":token.value,"background":_vm.lightBackground}}):_vm._e()],1)])}),0)])};
57
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.containerClass},[_c('ul',{staticClass:"gl-list-style-none gl-m-0 gl-p-0"},_vm._l((_vm.tokens),function(token){return _c('li',{key:token.name,staticClass:"gl-display-flex gl-flex-wrap gl-align-items-center gl-justify-content-space-between gl-gap-3 gl-p-3",class:_vm.getClasses(token.value),style:(_vm.getStyle(token.value))},[_c('code',{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip"}],staticClass:"gl-reset-color",attrs:{"title":token.comment}},[_vm._v("\n "+_vm._s(_vm.getTokenName(token))+"\n ")]),_vm._v(" "),_c('div',{staticClass:"gl-display-flex gl-align-items-center gl-gap-3"},[(token.deprecated)?_c('gl-badge',{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip"}],attrs:{"title":token.comment,"variant":"danger"}},[_vm._v("\n Deprecated\n ")]):_vm._e(),_vm._v(" "),_c('code',{staticClass:"gl-reset-color"},[_vm._v(_vm._s(token.value))]),_vm._v(" "),(!_vm.isAlpha(token.value))?_c('gl-color-contrast',{attrs:{"foreground":token.value,"background":_vm.darkBackground}}):_vm._e(),_vm._v(" "),(!_vm.isAlpha(token.value))?_c('gl-color-contrast',{attrs:{"foreground":token.value,"background":_vm.lightBackground}}):_vm._e()],1)])}),0)])};
52
58
  var __vue_staticRenderFns__ = [];
53
59
 
54
60
  /* style */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "79.2.0",
3
+ "version": "79.3.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -379,6 +379,7 @@ export default {
379
379
  <ul class="pagination" :class="wrapperClasses">
380
380
  <li
381
381
  class="page-item"
382
+ data-testid="page-item"
382
383
  :class="{
383
384
  disabled: prevPageIsDisabled,
384
385
  'flex-fill': isFillAlign,
@@ -387,6 +388,7 @@ export default {
387
388
  >
388
389
  <component
389
390
  :is="prevPageIsDisabled ? 'span' : 'a'"
391
+ data-testid="page-link"
390
392
  class="gl-link page-link prev-page-item gl-display-flex"
391
393
  :aria-label="prevPageAriaLabel"
392
394
  :href="prevPageHref"
@@ -408,6 +410,7 @@ export default {
408
410
  v-for="item in visibleItems"
409
411
  :key="item.key"
410
412
  class="page-item"
413
+ data-testid="page-item"
411
414
  :class="{
412
415
  disabled: item.disabled,
413
416
  'flex-fill': isFillAlign,
@@ -415,6 +418,7 @@ export default {
415
418
  >
416
419
  <component
417
420
  :is="item.component"
421
+ data-testid="page-link"
418
422
  size="md"
419
423
  :aria-disabled="item.disabled"
420
424
  class="page-link"
@@ -442,6 +446,7 @@ export default {
442
446
 
443
447
  <li
444
448
  class="page-item"
449
+ data-testid="page-item"
445
450
  :class="{
446
451
  disabled: nextPageIsDisabled,
447
452
  'flex-fill': isFillAlign,
@@ -450,6 +455,7 @@ export default {
450
455
  >
451
456
  <component
452
457
  :is="nextPageIsDisabled ? 'span' : 'a'"
458
+ data-testid="page-link"
453
459
  class="gl-link page-link next-page-item gl-display-flex"
454
460
  :aria-label="nextPageAriaLabel"
455
461
  :href="nextPageHref"
@@ -3,17 +3,61 @@
3
3
  "primary": {
4
4
  "$value": "#ececef",
5
5
  "$type": "color",
6
+ "$description": "Use text.color.strong instead",
7
+ "deprecated": true,
6
8
  "themeable": true
7
9
  },
8
10
  "secondary": {
9
11
  "$value": "#89888d",
10
12
  "$type": "color",
13
+ "$description": "Use text.color.subtle instead",
14
+ "deprecated": true,
11
15
  "themeable": true
12
16
  },
13
17
  "tertiary": {
14
18
  "$value": "#737278",
15
19
  "$type": "color",
20
+ "$description": "Use text.color.disabled instead",
21
+ "deprecated": true,
16
22
  "themeable": true
23
+ },
24
+ "color": {
25
+ "default": {
26
+ "$value": "#ececef",
27
+ "$type": "color",
28
+ "$description": "Used for the default text color.",
29
+ "themeable": true
30
+ },
31
+ "subtle": {
32
+ "$value": "#bfbfc3",
33
+ "$type": "color",
34
+ "$description": "Used for supplemental text that doesn't need to be as prominent as other text.",
35
+ "themeable": true
36
+ },
37
+ "strong": {
38
+ "$value": "#fff",
39
+ "$type": "color",
40
+ "$description": "Used for text with the highest contrast.",
41
+ "themeable": true
42
+ },
43
+ "heading": {
44
+ "$value": "#fff",
45
+ "$type": "color",
46
+ "$description": "Used for headings level 1-6.",
47
+ "themeable": true
48
+ },
49
+ "link": {
50
+ "$value": "#63a6e9",
51
+ "$type": "color",
52
+ "$description": "Used for default text links.",
53
+ "themeable": true
54
+ },
55
+ "disabled": {
56
+ "$value": "#89888d",
57
+ "$type": "color",
58
+ "$description": "Used for disabled text.",
59
+ "themeable": true
60
+ }
17
61
  }
18
62
  }
19
63
  }
@@ -3,7 +3,12 @@ import { createDesignTokenStory } from './common_story_options';
3
3
 
4
4
  export const Default = createDesignTokenStory({
5
5
  containerClass: 'gl-bg-gray-950',
6
- tokens: COMPILED_TOKENS.text,
6
+ tokens: {
7
+ primary: COMPILED_TOKENS.text.primary,
8
+ secondary: COMPILED_TOKENS.text.secondary,
9
+ tertiary: COMPILED_TOKENS.text.tertiary,
10
+ ...COMPILED_TOKENS.text.color,
11
+ },
7
12
  isBackgroundColorStory: false,
8
13
  });
9
14
 
@@ -3,17 +3,73 @@
3
3
  "primary": {
4
4
  "$value": "#333238",
5
5
  "$type": "color",
6
+ "$description": "Use text.color.strong instead",
7
+ "deprecated": true,
6
8
  "themeable": true
7
9
  },
8
10
  "secondary": {
9
11
  "$value": "#737278",
10
12
  "$type": "color",
13
+ "$description": "Use text.color.subtle instead",
14
+ "deprecated": true,
11
15
  "themeable": true
12
16
  },
13
17
  "tertiary": {
14
18
  "$value": "#89888d",
15
19
  "$type": "color",
20
+ "$description": "Use text.color.disabled instead",
21
+ "deprecated": true,
16
22
  "themeable": true
23
+ },
24
+ "color": {
25
+ "default": {
26
+ "$value": "#434248",
27
+ "$type": "color",
28
+ "$description": "Used for the default text color.",
29
+ "themeable": true
30
+ },
31
+ "subtle": {
32
+ "$value": "#626168",
33
+ "$type": "color",
34
+ "$description": "Used for supplemental text that doesn't need to be as prominent as other text.",
35
+ "themeable": true
36
+ },
37
+ "strong": {
38
+ "$value": "#1f1e24",
39
+ "$type": "color",
40
+ "$description": "Used for text with the highest contrast.",
41
+ "themeable": true
42
+ },
43
+ "heading": {
44
+ "$value": "#1f1e24",
45
+ "$type": "color",
46
+ "$description": "Used for headings level 1-6.",
47
+ "themeable": true
48
+ },
49
+ "link": {
50
+ "$value": "#0b5cad",
51
+ "$type": "color",
52
+ "$description": "Used for default text links.",
53
+ "themeable": true
54
+ },
55
+ "danger": {
56
+ "$value": "#c91c00",
57
+ "$type": "color",
58
+ "$description": "Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.",
59
+ "themeable": true
60
+ },
61
+ "success": {
62
+ "$value": "#217645",
63
+ "$type": "color",
64
+ "$description": "Used for text indicating success or validity.",
65
+ "themeable": true
66
+ },
67
+ "disabled": {
68
+ "$value": "#89888d",
69
+ "$type": "color",
70
+ "$description": "Used for disabled text.",
71
+ "themeable": true
72
+ }
17
73
  }
18
74
  }
19
75
  }
@@ -2,7 +2,12 @@ import COMPILED_TOKENS from '../../dist/tokens/json/tokens.json';
2
2
  import { createDesignTokenStory } from './common_story_options';
3
3
 
4
4
  export const Default = createDesignTokenStory({
5
- tokens: COMPILED_TOKENS.text,
5
+ tokens: {
6
+ primary: COMPILED_TOKENS.text.primary,
7
+ secondary: COMPILED_TOKENS.text.secondary,
8
+ tertiary: COMPILED_TOKENS.text.tertiary,
9
+ ...COMPILED_TOKENS.text.color,
10
+ },
6
11
  isBackgroundColorStory: false,
7
12
  });
8
13
 
@@ -1,12 +1,18 @@
1
1
  <script>
2
2
  import { colorFromBackground } from '../utils/utils';
3
+ import { GlTooltipDirective } from '../directives/tooltip';
4
+ import GlBadge from '../components/base/badge/badge.vue';
3
5
  import GlColorContrast from '../internal/color_contrast/color_contrast.vue';
4
6
 
5
7
  export default {
6
8
  name: 'TokensStory',
7
9
  components: {
10
+ GlBadge,
8
11
  GlColorContrast,
9
12
  },
13
+ directives: {
14
+ GlTooltip: GlTooltipDirective,
15
+ },
10
16
  inject: ['isBackgroundColorStory', 'lightBackground', 'darkBackground', 'containerClass'],
11
17
  props: {
12
18
  tokens: {
@@ -53,8 +59,13 @@ export default {
53
59
  :class="getClasses(token.value)"
54
60
  :style="getStyle(token.value)"
55
61
  >
56
- <code class="gl-reset-color">{{ getTokenName(token) }}</code>
62
+ <code v-gl-tooltip :title="token.comment" class="gl-reset-color">
63
+ {{ getTokenName(token) }}
64
+ </code>
57
65
  <div class="gl-display-flex gl-align-items-center gl-gap-3">
66
+ <gl-badge v-if="token.deprecated" v-gl-tooltip :title="token.comment" variant="danger">
67
+ Deprecated
68
+ </gl-badge>
58
69
  <code class="gl-reset-color">{{ token.value }}</code>
59
70
  <gl-color-contrast
60
71
  v-if="!isAlpha(token.value)"
@@ -26,7 +26,7 @@ const dataVizColors = Object.entries(COMPILED_TOKENS['data-viz']).reduce((acc, [
26
26
  return acc;
27
27
  }, {});
28
28
 
29
- const textColors = Object.entries(COMPILED_TOKENS.text).reduce((acc, [scale, token]) => {
29
+ const textColors = Object.entries(COMPILED_TOKENS.text.color).reduce((acc, [scale, token]) => {
30
30
  acc[scale] = cssCustomPropertyWithValue(token);
31
31
  return acc;
32
32
  }, {});
@@ -40,6 +40,14 @@ const colors = {
40
40
  ...dataVizColors,
41
41
  };
42
42
 
43
+ const textColor = {
44
+ ...colors,
45
+ ...textColors,
46
+ primary: cssCustomPropertyWithValue(COMPILED_TOKENS.text.primary),
47
+ secondary: cssCustomPropertyWithValue(COMPILED_TOKENS.text.secondary),
48
+ tertiary: cssCustomPropertyWithValue(COMPILED_TOKENS.text.tertiary),
49
+ };
50
+
43
51
  const gridSize = 0.5; // rem
44
52
  const spacing = {
45
53
  0: '0',
@@ -102,9 +110,6 @@ module.exports = {
102
110
  semibold: 500,
103
111
  bold: 600,
104
112
  },
105
- textColor: {
106
- ...colors,
107
- ...textColors,
108
- },
113
+ textColor,
109
114
  },
110
115
  };