@gitlab/ui 79.1.1 → 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 +19 -0
- package/dist/components/base/new_dropdowns/base_dropdown/base_dropdown.js +9 -6
- package/dist/components/base/new_dropdowns/constants.js +2 -2
- package/dist/components/base/pagination/pagination.js +3 -3
- package/dist/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.js +17 -8
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/tokens/css/tokens.css +12 -4
- package/dist/tokens/css/tokens.dark.css +10 -4
- package/dist/tokens/js/tokens.dark.js +10 -4
- package/dist/tokens/js/tokens.js +12 -4
- package/dist/tokens/json/tokens.dark.grouped.json +9 -1
- package/dist/tokens/json/tokens.dark.json +182 -0
- package/dist/tokens/json/tokens.grouped.json +9 -1
- package/dist/tokens/json/tokens.json +182 -0
- package/dist/tokens/scss/_tokens.dark.scss +10 -4
- package/dist/tokens/scss/_tokens.scss +12 -4
- package/dist/tokens/tokens_story.js +7 -1
- package/dist/utils/utils.js +19 -1
- package/package.json +1 -1
- package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.spec.js +31 -26
- package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.vue +16 -6
- package/src/components/base/new_dropdowns/constants.js +1 -1
- package/src/components/base/pagination/pagination.vue +6 -0
- package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.scss +15 -1
- package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.spec.js +51 -45
- package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.stories.js +8 -0
- package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.vue +52 -28
- package/src/tokens/text.dark.tokens.json +44 -0
- package/src/tokens/text.dark.tokens.stories.js +6 -1
- package/src/tokens/text.tokens.json +56 -0
- package/src/tokens/text.tokens.stories.js +6 -1
- package/src/tokens/tokens_story.vue +12 -1
- package/src/utils/utils.js +18 -0
- package/src/utils/utils.spec.js +52 -0
- package/tailwind.defaults.js +10 -5
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Thu, 25 Apr 2024 08:42:27 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
7
|
-
--gl-text-
|
|
8
|
-
--gl-text-
|
|
9
|
-
--gl-text-
|
|
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
|
|
3
|
+
* Generated on Thu, 25 Apr 2024 08:42:27 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root.gl-dark {
|
|
7
|
-
--gl-text-
|
|
8
|
-
--gl-text-
|
|
9
|
-
--gl-text-
|
|
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
|
|
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.
|
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, 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
|
|
3
|
+
// Generated on Thu, 25 Apr 2024 08:42:27 GMT
|
|
4
4
|
|
|
5
|
-
$gl-text-
|
|
6
|
-
$gl-text-
|
|
7
|
-
$gl-text-
|
|
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
|
|
3
|
+
// Generated on Thu, 25 Apr 2024 08:42:27 GMT
|
|
4
4
|
|
|
5
|
-
$gl-text-
|
|
6
|
-
$gl-text-
|
|
7
|
-
$gl-text-
|
|
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 */
|