@gitlab/ui 85.7.0 → 85.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/index.css +2 -2
  3. package/dist/index.css.map +1 -1
  4. package/dist/tokens/build/js/tokens.dark.js +9 -1
  5. package/dist/tokens/build/js/tokens.js +9 -1
  6. package/dist/tokens/css/tokens.css +8 -0
  7. package/dist/tokens/css/tokens.dark.css +8 -0
  8. package/dist/tokens/js/tokens.dark.js +8 -0
  9. package/dist/tokens/js/tokens.js +8 -0
  10. package/dist/tokens/json/tokens.dark.json +196 -0
  11. package/dist/tokens/json/tokens.json +196 -0
  12. package/dist/tokens/scss/_tokens.dark.scss +8 -0
  13. package/dist/tokens/scss/_tokens.scss +8 -0
  14. package/dist/tokens/scss/_tokens_custom_properties.scss +8 -0
  15. package/package.json +1 -1
  16. package/src/components/base/avatar/avatar.scss +15 -4
  17. package/src/components/base/avatar_labeled/avatar_labeled.scss +3 -3
  18. package/src/components/base/avatar_link/avatar_link.scss +1 -1
  19. package/src/components/base/avatars_inline/avatars_inline.scss +3 -3
  20. package/src/components/base/form/form_input/form_input.scss +16 -11
  21. package/src/tokens/build/css/tokens.css +8 -0
  22. package/src/tokens/build/css/tokens.dark.css +8 -0
  23. package/src/tokens/build/js/tokens.dark.js +8 -0
  24. package/src/tokens/build/js/tokens.js +8 -0
  25. package/src/tokens/build/json/tokens.dark.json +196 -0
  26. package/src/tokens/build/json/tokens.json +196 -0
  27. package/src/tokens/build/scss/_tokens.dark.scss +8 -0
  28. package/src/tokens/build/scss/_tokens.scss +8 -0
  29. package/src/tokens/build/scss/_tokens_custom_properties.scss +8 -0
  30. package/src/tokens/contextual/avatar.tokens.json +72 -0
@@ -8943,6 +8943,202 @@
8943
8943
  ]
8944
8944
  }
8945
8945
  },
8946
+ "avatar": {
8947
+ "border": {
8948
+ "color": {
8949
+ "default": {
8950
+ "value": "rgba(31, 30, 36, 0.08)",
8951
+ "$type": "color",
8952
+ "comment": "Used to define the edge of an avatar.",
8953
+ "filePath": "src/tokens/contextual/avatar.tokens.json",
8954
+ "isSource": true,
8955
+ "original": {
8956
+ "value": "{color.alpha.dark.8}",
8957
+ "$type": "color",
8958
+ "comment": "Used to define the edge of an avatar."
8959
+ },
8960
+ "name": "AVATAR_BORDER_COLOR_DEFAULT",
8961
+ "attributes": {},
8962
+ "path": [
8963
+ "avatar",
8964
+ "border",
8965
+ "color",
8966
+ "default"
8967
+ ]
8968
+ },
8969
+ "hover": {
8970
+ "value": "rgba(31, 30, 36, 0.24)",
8971
+ "$type": "color",
8972
+ "comment": "Used to increase the edge definition of an avatar in the hover state.",
8973
+ "filePath": "src/tokens/contextual/avatar.tokens.json",
8974
+ "isSource": true,
8975
+ "original": {
8976
+ "value": "{color.alpha.dark.24}",
8977
+ "$type": "color",
8978
+ "comment": "Used to increase the edge definition of an avatar in the hover state."
8979
+ },
8980
+ "name": "AVATAR_BORDER_COLOR_HOVER",
8981
+ "attributes": {},
8982
+ "path": [
8983
+ "avatar",
8984
+ "border",
8985
+ "color",
8986
+ "hover"
8987
+ ]
8988
+ }
8989
+ }
8990
+ },
8991
+ "fallback": {
8992
+ "background": {
8993
+ "color": {
8994
+ "red": {
8995
+ "value": "#fcf1ef",
8996
+ "$type": "color",
8997
+ "comment": "Red background for avatar fallback with no particular meaning.",
8998
+ "filePath": "src/tokens/contextual/avatar.tokens.json",
8999
+ "isSource": true,
9000
+ "original": {
9001
+ "value": {
9002
+ "default": "{color.red.50}",
9003
+ "dark": "{color.red.900}"
9004
+ },
9005
+ "$type": "color",
9006
+ "comment": "Red background for avatar fallback with no particular meaning."
9007
+ },
9008
+ "name": "AVATAR_FALLBACK_BACKGROUND_COLOR_RED",
9009
+ "attributes": {},
9010
+ "path": [
9011
+ "avatar",
9012
+ "fallback",
9013
+ "background",
9014
+ "color",
9015
+ "red"
9016
+ ]
9017
+ },
9018
+ "purple": {
9019
+ "value": "#f4f0ff",
9020
+ "$type": "color",
9021
+ "comment": "Purple background for avatar fallback with no particular meaning.",
9022
+ "filePath": "src/tokens/contextual/avatar.tokens.json",
9023
+ "isSource": true,
9024
+ "original": {
9025
+ "value": {
9026
+ "default": "{color.purple.50}",
9027
+ "dark": "{color.purple.950}"
9028
+ },
9029
+ "$type": "color",
9030
+ "comment": "Purple background for avatar fallback with no particular meaning."
9031
+ },
9032
+ "name": "AVATAR_FALLBACK_BACKGROUND_COLOR_PURPLE",
9033
+ "attributes": {},
9034
+ "path": [
9035
+ "avatar",
9036
+ "fallback",
9037
+ "background",
9038
+ "color",
9039
+ "purple"
9040
+ ]
9041
+ },
9042
+ "blue": {
9043
+ "value": "#e9f3fc",
9044
+ "$type": "color",
9045
+ "comment": "Blue background for avatar fallback with no particular meaning.",
9046
+ "filePath": "src/tokens/contextual/avatar.tokens.json",
9047
+ "isSource": true,
9048
+ "original": {
9049
+ "value": {
9050
+ "default": "{color.blue.50}",
9051
+ "dark": "{color.blue.900}"
9052
+ },
9053
+ "$type": "color",
9054
+ "comment": "Blue background for avatar fallback with no particular meaning."
9055
+ },
9056
+ "name": "AVATAR_FALLBACK_BACKGROUND_COLOR_BLUE",
9057
+ "attributes": {},
9058
+ "path": [
9059
+ "avatar",
9060
+ "fallback",
9061
+ "background",
9062
+ "color",
9063
+ "blue"
9064
+ ]
9065
+ },
9066
+ "green": {
9067
+ "value": "#ecf4ee",
9068
+ "$type": "color",
9069
+ "comment": "Green background for avatar fallback with no particular meaning.",
9070
+ "filePath": "src/tokens/contextual/avatar.tokens.json",
9071
+ "isSource": true,
9072
+ "original": {
9073
+ "value": {
9074
+ "default": "{color.green.50}",
9075
+ "dark": "{color.green.900}"
9076
+ },
9077
+ "$type": "color",
9078
+ "comment": "Green background for avatar fallback with no particular meaning."
9079
+ },
9080
+ "name": "AVATAR_FALLBACK_BACKGROUND_COLOR_GREEN",
9081
+ "attributes": {},
9082
+ "path": [
9083
+ "avatar",
9084
+ "fallback",
9085
+ "background",
9086
+ "color",
9087
+ "green"
9088
+ ]
9089
+ },
9090
+ "orange": {
9091
+ "value": "#fdf1dd",
9092
+ "$type": "color",
9093
+ "comment": "Orange background for avatar fallback with no particular meaning.",
9094
+ "filePath": "src/tokens/contextual/avatar.tokens.json",
9095
+ "isSource": true,
9096
+ "original": {
9097
+ "value": {
9098
+ "default": "{color.orange.50}",
9099
+ "dark": "{color.orange.900}"
9100
+ },
9101
+ "$type": "color",
9102
+ "comment": "Orange background for avatar fallback with no particular meaning."
9103
+ },
9104
+ "name": "AVATAR_FALLBACK_BACKGROUND_COLOR_ORANGE",
9105
+ "attributes": {},
9106
+ "path": [
9107
+ "avatar",
9108
+ "fallback",
9109
+ "background",
9110
+ "color",
9111
+ "orange"
9112
+ ]
9113
+ },
9114
+ "neutral": {
9115
+ "value": "#ececef",
9116
+ "$type": "color",
9117
+ "comment": "Neutral background for avatar fallback with no particular meaning.",
9118
+ "filePath": "src/tokens/contextual/avatar.tokens.json",
9119
+ "isSource": true,
9120
+ "original": {
9121
+ "value": {
9122
+ "default": "{color.neutral.50}",
9123
+ "dark": "{color.neutral.900}"
9124
+ },
9125
+ "$type": "color",
9126
+ "comment": "Neutral background for avatar fallback with no particular meaning."
9127
+ },
9128
+ "name": "AVATAR_FALLBACK_BACKGROUND_COLOR_NEUTRAL",
9129
+ "attributes": {},
9130
+ "path": [
9131
+ "avatar",
9132
+ "fallback",
9133
+ "background",
9134
+ "color",
9135
+ "neutral"
9136
+ ]
9137
+ }
9138
+ }
9139
+ }
9140
+ }
9141
+ },
8946
9142
  "banner": {
8947
9143
  "intro": {
8948
9144
  "border": {
@@ -518,6 +518,14 @@ $gl-popover-background-color: $gl-color-neutral-900; // Used for the background
518
518
  $gl-breadcrumb-separator-color: $gl-color-neutral-700; // Used for the breadcrumb level separator.
519
519
  $gl-banner-promo-background-color: $gl-color-neutral-900; // Used as background for the default banner type.
520
520
  $gl-banner-intro-border-color: $gl-color-blue-600; // Used to compliment the info banner.
521
+ $gl-avatar-fallback-background-color-neutral: $gl-color-neutral-900; // Neutral background for avatar fallback with no particular meaning.
522
+ $gl-avatar-fallback-background-color-orange: $gl-color-orange-900; // Orange background for avatar fallback with no particular meaning.
523
+ $gl-avatar-fallback-background-color-green: $gl-color-green-900; // Green background for avatar fallback with no particular meaning.
524
+ $gl-avatar-fallback-background-color-blue: $gl-color-blue-900; // Blue background for avatar fallback with no particular meaning.
525
+ $gl-avatar-fallback-background-color-purple: $gl-color-purple-950; // Purple background for avatar fallback with no particular meaning.
526
+ $gl-avatar-fallback-background-color-red: $gl-color-red-900; // Red background for avatar fallback with no particular meaning.
527
+ $gl-avatar-border-color-hover: $gl-color-alpha-dark-24; // Used to increase the edge definition of an avatar in the hover state.
528
+ $gl-avatar-border-color-default: $gl-color-alpha-dark-8; // Used to define the edge of an avatar.
521
529
  $gl-border-color-transparent: $gl-color-alpha-0; // Used when a border needs to be present, but not visibly perceived.
522
530
  $gl-border-color-strong: $gl-color-neutral-400; // Used for a distinct border that emphasizes an edge or boundaries.
523
531
  $gl-border-color-subtle: $gl-color-neutral-900; // Used for a border that has a little more definition, or is used in combination with a subtle background.
@@ -518,6 +518,14 @@ $gl-popover-background-color: $gl-color-neutral-0; // Used for the background co
518
518
  $gl-breadcrumb-separator-color: $gl-color-neutral-200; // Used for the breadcrumb level separator.
519
519
  $gl-banner-promo-background-color: $gl-color-neutral-10; // Used as background for the default banner type.
520
520
  $gl-banner-intro-border-color: $gl-color-blue-300; // Used to compliment the info banner.
521
+ $gl-avatar-fallback-background-color-neutral: $gl-color-neutral-50; // Neutral background for avatar fallback with no particular meaning.
522
+ $gl-avatar-fallback-background-color-orange: $gl-color-orange-50; // Orange background for avatar fallback with no particular meaning.
523
+ $gl-avatar-fallback-background-color-green: $gl-color-green-50; // Green background for avatar fallback with no particular meaning.
524
+ $gl-avatar-fallback-background-color-blue: $gl-color-blue-50; // Blue background for avatar fallback with no particular meaning.
525
+ $gl-avatar-fallback-background-color-purple: $gl-color-purple-50; // Purple background for avatar fallback with no particular meaning.
526
+ $gl-avatar-fallback-background-color-red: $gl-color-red-50; // Red background for avatar fallback with no particular meaning.
527
+ $gl-avatar-border-color-hover: $gl-color-alpha-dark-24; // Used to increase the edge definition of an avatar in the hover state.
528
+ $gl-avatar-border-color-default: $gl-color-alpha-dark-8; // Used to define the edge of an avatar.
521
529
  $gl-border-color-transparent: $gl-color-alpha-0; // Used when a border needs to be present, but not visibly perceived.
522
530
  $gl-border-color-strong: $gl-color-neutral-400; // Used for a distinct border that emphasizes an edge or boundaries.
523
531
  $gl-border-color-subtle: $gl-color-neutral-50; // Used for a border that has a little more definition, or is used in combination with a subtle background.
@@ -421,6 +421,14 @@ $t-white-a-02: var(--t-white-a-02);
421
421
  $t-white-a-04: var(--t-white-a-04);
422
422
  $t-white-a-06: var(--t-white-a-06);
423
423
  $t-white-a-08: var(--t-white-a-08);
424
+ $gl-avatar-border-color-default: var(--gl-avatar-border-color-default);
425
+ $gl-avatar-border-color-hover: var(--gl-avatar-border-color-hover);
426
+ $gl-avatar-fallback-background-color-red: var(--gl-avatar-fallback-background-color-red);
427
+ $gl-avatar-fallback-background-color-purple: var(--gl-avatar-fallback-background-color-purple);
428
+ $gl-avatar-fallback-background-color-blue: var(--gl-avatar-fallback-background-color-blue);
429
+ $gl-avatar-fallback-background-color-green: var(--gl-avatar-fallback-background-color-green);
430
+ $gl-avatar-fallback-background-color-orange: var(--gl-avatar-fallback-background-color-orange);
431
+ $gl-avatar-fallback-background-color-neutral: var(--gl-avatar-fallback-background-color-neutral);
424
432
  $gl-banner-intro-border-color: var(--gl-banner-intro-border-color);
425
433
  $gl-banner-promo-background-color: var(--gl-banner-promo-background-color);
426
434
  $gl-breadcrumb-separator-color: var(--gl-breadcrumb-separator-color);
@@ -0,0 +1,72 @@
1
+ {
2
+ "avatar": {
3
+ "border": {
4
+ "color": {
5
+ "default": {
6
+ "$value": "{color.alpha.dark.8}",
7
+ "$type": "color",
8
+ "$description": "Used to define the edge of an avatar."
9
+ },
10
+ "hover": {
11
+ "$value": "{color.alpha.dark.24}",
12
+ "$type": "color",
13
+ "$description": "Used to increase the edge definition of an avatar in the hover state."
14
+ }
15
+ }
16
+ },
17
+ "fallback": {
18
+ "background": {
19
+ "color": {
20
+ "red": {
21
+ "$value": {
22
+ "default": "{color.red.50}",
23
+ "dark": "{color.red.900}"
24
+ },
25
+ "$type": "color",
26
+ "$description": "Red background for avatar fallback with no particular meaning."
27
+ },
28
+ "purple": {
29
+ "$value": {
30
+ "default": "{color.purple.50}",
31
+ "dark": "{color.purple.950}"
32
+ },
33
+ "$type": "color",
34
+ "$description": "Purple background for avatar fallback with no particular meaning."
35
+ },
36
+ "blue": {
37
+ "$value": {
38
+ "default": "{color.blue.50}",
39
+ "dark": "{color.blue.900}"
40
+ },
41
+ "$type": "color",
42
+ "$description": "Blue background for avatar fallback with no particular meaning."
43
+ },
44
+ "green": {
45
+ "$value": {
46
+ "default": "{color.green.50}",
47
+ "dark": "{color.green.900}"
48
+ },
49
+ "$type": "color",
50
+ "$description": "Green background for avatar fallback with no particular meaning."
51
+ },
52
+ "orange": {
53
+ "$value": {
54
+ "default": "{color.orange.50}",
55
+ "dark": "{color.orange.900}"
56
+ },
57
+ "$type": "color",
58
+ "$description": "Orange background for avatar fallback with no particular meaning."
59
+ },
60
+ "neutral": {
61
+ "$value": {
62
+ "default": "{color.neutral.50}",
63
+ "dark": "{color.neutral.900}"
64
+ },
65
+ "$type": "color",
66
+ "$description": "Neutral background for avatar fallback with no particular meaning."
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }