@gitlab/ui 93.1.0 → 93.2.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 +7 -0
- package/dist/components/base/alert/alert.js +1 -0
- package/dist/components/base/avatar/avatar.js +7 -1
- package/dist/components/base/datepicker/datepicker.js +3 -1
- package/dist/components/base/drawer/drawer.js +1 -0
- package/dist/components/base/form/form_input/form_input.js +7 -1
- package/dist/components/base/form/form_select/form_select.js +7 -1
- package/dist/components/base/toast/toast.js +1 -0
- package/dist/components/base/token/token.js +1 -0
- package/dist/index.css +3 -3
- package/dist/index.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +2 -1
- package/dist/tokens/build/js/tokens.js +2 -1
- package/dist/tokens/css/tokens.css +1 -0
- package/dist/tokens/css/tokens.dark.css +1 -0
- package/dist/tokens/js/tokens.dark.js +1 -0
- package/dist/tokens/js/tokens.js +1 -0
- package/dist/tokens/json/tokens.dark.json +22 -0
- package/dist/tokens/json/tokens.json +22 -0
- package/dist/tokens/scss/_tokens.dark.scss +1 -0
- package/dist/tokens/scss/_tokens.scss +1 -0
- package/dist/tokens/scss/_tokens_custom_properties.scss +1 -0
- package/dist/tokens/tailwind/tokens.cjs +1 -0
- package/package.json +1 -1
- package/src/components/base/accordion/accordion_item.scss +1 -1
- package/src/components/base/alert/alert.scss +8 -8
- package/src/components/base/alert/alert.vue +1 -0
- package/src/components/base/avatar/avatar.scss +6 -6
- package/src/components/base/avatar/avatar.vue +4 -0
- package/src/components/base/avatar_labeled/avatar_labeled.scss +9 -9
- package/src/components/base/avatar_link/avatar_link.scss +6 -6
- package/src/components/base/avatars_inline/avatars_inline.scss +9 -9
- package/src/components/base/badge/badge.scss +6 -6
- package/src/components/base/banner/banner.scss +1 -1
- package/src/components/base/breadcrumb/breadcrumb.scss +8 -8
- package/src/components/base/broadcast_message/broadcast_message.scss +9 -9
- package/src/components/base/button/button.scss +18 -18
- package/src/components/base/card/card.scss +4 -4
- package/src/components/base/datepicker/datepicker.scss +14 -14
- package/src/components/base/datepicker/datepicker.vue +1 -0
- package/src/components/base/daterange_picker/daterange_picker.scss +7 -7
- package/src/components/base/drawer/drawer.scss +14 -14
- package/src/components/base/drawer/drawer.vue +1 -0
- package/src/components/base/dropdown/dropdown.scss +15 -15
- package/src/components/base/dropdown/dropdown_item.scss +15 -15
- package/src/components/base/dropdown/dropdown_section_header.scss +4 -4
- package/src/components/base/filtered_search/filtered_search.scss +9 -9
- package/src/components/base/filtered_search/filtered_search_suggestion.scss +2 -2
- package/src/components/base/filtered_search/filtered_search_suggestion_list.scss +2 -2
- package/src/components/base/filtered_search/filtered_search_token.scss +9 -9
- package/src/components/base/filtered_search/filtered_search_token_segment.scss +3 -3
- package/src/components/base/form/form_checkbox/form_checkbox.scss +10 -10
- package/src/components/base/form/form_group/form_group.scss +6 -6
- package/src/components/base/form/form_input/form_input.scss +2 -2
- package/src/components/base/form/form_input/form_input.vue +3 -0
- package/src/components/base/form/form_radio_group/form_radio_group.scss +2 -2
- package/src/components/base/form/form_select/form_select.scss +3 -3
- package/src/components/base/form/form_select/form_select.vue +3 -0
- package/src/components/base/infinite_scroll/infinite_scroll.scss +2 -2
- package/src/components/base/label/label.scss +12 -12
- package/src/components/base/link/link.scss +1 -1
- package/src/components/base/loading_icon/loading_icon.scss +4 -4
- package/src/components/base/markdown/markdown.scss +14 -14
- package/src/components/base/modal/modal.scss +12 -12
- package/src/components/base/new_dropdowns/dropdown.scss +17 -17
- package/src/components/base/new_dropdowns/dropdown_item.scss +10 -10
- package/src/components/base/new_dropdowns/listbox/listbox.scss +4 -4
- package/src/components/base/pagination/pagination.scss +5 -5
- package/src/components/base/path/path.scss +11 -11
- package/src/components/base/popover/popover.scss +1 -1
- package/src/components/base/search_box_by_click/search_box_by_click.scss +5 -5
- package/src/components/base/search_box_by_type/search_box_by_type.scss +9 -9
- package/src/components/base/segmented_control/segmented_control.scss +4 -4
- package/src/components/base/table/table.scss +6 -6
- package/src/components/base/tabs/tabs/tabs.scss +18 -18
- package/src/components/base/toast/toast.js +1 -0
- package/src/components/base/toast/toast.scss +10 -10
- package/src/components/base/toggle/toggle.scss +17 -17
- package/src/components/base/token/token.scss +13 -13
- package/src/components/base/token/token.vue +1 -0
- package/src/components/base/tooltip/tooltip.scss +3 -3
- package/src/components/charts/legend/legend.scss +17 -17
- package/src/components/charts/series_label/series_label.scss +6 -6
- package/src/components/charts/single_stat/single_stat.scss +1 -1
- package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.scss +1 -1
- package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.scss +4 -4
- package/src/components/experimental/duo/chat/duo_chat.scss +15 -15
- package/src/components/shared_components/charts/tooltip_default_format.scss +5 -5
- package/src/scss/typescale/_index.scss +15 -15
- package/src/tokens/build/css/tokens.css +1 -0
- package/src/tokens/build/css/tokens.dark.css +1 -0
- package/src/tokens/build/js/tokens.dark.js +1 -0
- package/src/tokens/build/js/tokens.js +1 -0
- package/src/tokens/build/json/tokens.dark.json +22 -0
- package/src/tokens/build/json/tokens.json +22 -0
- package/src/tokens/build/scss/_tokens.dark.scss +1 -0
- package/src/tokens/build/scss/_tokens.scss +1 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +1 -0
- package/src/tokens/build/tailwind/tokens.cjs +1 -0
- package/src/tokens/text.tokens.json +8 -0
|
@@ -23,9 +23,9 @@ $toggle-translate-width: 2 * $grid-size;
|
|
|
23
23
|
$toggle-height: 2.5 * $grid-size;
|
|
24
24
|
|
|
25
25
|
.gl-toggle-wrapper {
|
|
26
|
-
@
|
|
27
|
-
@
|
|
28
|
-
@
|
|
26
|
+
@apply gl-leading-normal;
|
|
27
|
+
@apply gl-font-normal;
|
|
28
|
+
@apply gl-inline-flex;
|
|
29
29
|
|
|
30
30
|
&.is-disabled {
|
|
31
31
|
@include gl-cursor-not-allowed;
|
|
@@ -57,15 +57,15 @@ $toggle-height: 2.5 * $grid-size;
|
|
|
57
57
|
.gl-help-label {
|
|
58
58
|
@apply gl-mt-3;
|
|
59
59
|
@include gl-text-gray-500;
|
|
60
|
-
@
|
|
60
|
+
@apply gl-font-normal;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.gl-toggle-label-inline {
|
|
64
|
-
@
|
|
65
|
-
@
|
|
64
|
+
@apply gl-flex-row;
|
|
65
|
+
@apply gl-items-center;
|
|
66
66
|
|
|
67
67
|
.gl-toggle-label {
|
|
68
|
-
@
|
|
68
|
+
@apply gl-whitespace-nowrap;
|
|
69
69
|
@apply gl-mb-0;
|
|
70
70
|
@apply gl-mr-3;
|
|
71
71
|
}
|
|
@@ -77,13 +77,13 @@ $toggle-height: 2.5 * $grid-size;
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.gl-toggle-label {
|
|
80
|
-
@
|
|
80
|
+
@apply gl-font-bold;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.gl-toggle {
|
|
84
|
-
@
|
|
85
|
-
@
|
|
86
|
-
@
|
|
84
|
+
@apply gl-inline-flex;
|
|
85
|
+
@apply gl-items-center;
|
|
86
|
+
@apply gl-justify-center;
|
|
87
87
|
@apply gl-border-0;
|
|
88
88
|
@include gl-cursor-pointer;
|
|
89
89
|
@include gl-bg-gray-600;
|
|
@@ -94,12 +94,12 @@ $toggle-height: 2.5 * $grid-size;
|
|
|
94
94
|
user-select: none;
|
|
95
95
|
@include gl-rounded-pill;
|
|
96
96
|
@include gl-transition-slow;
|
|
97
|
-
@
|
|
97
|
+
@apply gl-leading-normal;
|
|
98
98
|
|
|
99
99
|
&::selection,
|
|
100
100
|
&::before::selection,
|
|
101
101
|
&::after::selection {
|
|
102
|
-
@
|
|
102
|
+
@apply gl-bg-transparent;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
&:hover,
|
|
@@ -123,12 +123,12 @@ $toggle-height: 2.5 * $grid-size;
|
|
|
123
123
|
@include gl-rounded-full;
|
|
124
124
|
@include gl-bg-white;
|
|
125
125
|
position: absolute;
|
|
126
|
-
@
|
|
127
|
-
@
|
|
126
|
+
@apply gl-inline-flex;
|
|
127
|
+
@apply gl-items-center;
|
|
128
128
|
left: $gl-spacing-scale-1;
|
|
129
129
|
top: $gl-spacing-scale-1;
|
|
130
|
-
@
|
|
131
|
-
@
|
|
130
|
+
@apply gl-transition-all;
|
|
131
|
+
@apply gl-justify-center;
|
|
132
132
|
@apply gl-p-1;
|
|
133
133
|
|
|
134
134
|
> svg {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
@include gl-bg-gray-100;
|
|
4
4
|
@include gl-rounded-small;
|
|
5
5
|
@apply gl-pl-3;
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
6
|
+
@apply gl-inline-flex;
|
|
7
|
+
@apply gl-flex-col;
|
|
8
|
+
@apply gl-justify-center;
|
|
9
9
|
|
|
10
10
|
&.gl-token-view-only {
|
|
11
11
|
@apply gl-py-2;
|
|
@@ -15,21 +15,21 @@
|
|
|
15
15
|
|
|
16
16
|
.gl-token-search-type-variant {
|
|
17
17
|
@include gl-bg-gray-100;
|
|
18
|
-
@
|
|
19
|
-
@
|
|
18
|
+
@apply gl-rounded-tr-none;
|
|
19
|
+
@apply gl-rounded-br-none;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.gl-token-search-value-variant {
|
|
23
|
-
@
|
|
24
|
-
@
|
|
23
|
+
@apply gl-rounded-tl-none;
|
|
24
|
+
@apply gl-rounded-bl-none;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.gl-token-content {
|
|
28
|
-
@
|
|
29
|
-
@
|
|
30
|
-
@
|
|
31
|
-
@
|
|
32
|
-
@
|
|
28
|
+
@apply gl-text-sm;
|
|
29
|
+
@apply gl-leading-normal;
|
|
30
|
+
@apply gl-flex;
|
|
31
|
+
@apply gl-items-center;
|
|
32
|
+
@apply gl-text-inherit;
|
|
33
33
|
|
|
34
34
|
> .gl-avatar:first-child,
|
|
35
35
|
> .gl-spinner-container:first-child {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
.gl-token-close {
|
|
41
41
|
@apply gl-ml-2;
|
|
42
|
-
@
|
|
42
|
+
@apply gl-text-inherit;
|
|
43
43
|
@include gl-cursor-pointer;
|
|
44
44
|
|
|
45
45
|
opacity: 0.8;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.gl-tooltip {
|
|
2
|
-
@
|
|
2
|
+
@apply gl-text-sm;
|
|
3
3
|
@apply gl-p-2;
|
|
4
4
|
|
|
5
5
|
.tooltip-inner {
|
|
6
6
|
@apply gl-rounded-base;
|
|
7
|
-
@
|
|
8
|
-
@
|
|
7
|
+
@apply gl-leading-normal;
|
|
8
|
+
@apply gl-font-normal;
|
|
9
9
|
@apply gl-py-3;
|
|
10
10
|
@apply gl-px-4;
|
|
11
11
|
background: var(--gl-feedback-strong-background-color);
|
|
@@ -20,7 +20,7 @@ $legend-body-h: $gl-spacing-scale-13 - $gl-spacing-scale-4;
|
|
|
20
20
|
background-image: linear-gradient(to bottom, $transparent-rgba, var(--white, #{$white}));
|
|
21
21
|
bottom: 0;
|
|
22
22
|
content: '';
|
|
23
|
-
@
|
|
23
|
+
@apply gl-block;
|
|
24
24
|
@include gl-h-4;
|
|
25
25
|
position: absolute;
|
|
26
26
|
@include gl-w-full;
|
|
@@ -28,20 +28,20 @@ $legend-body-h: $gl-spacing-scale-13 - $gl-spacing-scale-4;
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.gl-legend-inline {
|
|
31
|
-
@
|
|
31
|
+
@apply gl-flex;
|
|
32
32
|
@include gl-flex-wrap;
|
|
33
|
-
@
|
|
33
|
+
@apply gl-shrink-0;
|
|
34
34
|
|
|
35
35
|
.gl-legend-inline-series {
|
|
36
|
-
@
|
|
37
|
-
@
|
|
38
|
-
@
|
|
39
|
-
@
|
|
36
|
+
@apply gl-flex;
|
|
37
|
+
@apply gl-shrink-0;
|
|
38
|
+
@apply gl-justify-between;
|
|
39
|
+
@apply gl-items-center;
|
|
40
40
|
@apply gl-pr-5;
|
|
41
41
|
|
|
42
42
|
&:hover {
|
|
43
43
|
@include gl-cursor-pointer;
|
|
44
|
-
@
|
|
44
|
+
@apply gl-underline;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.gl-legend-inline-series-label {
|
|
@@ -52,22 +52,22 @@ $legend-body-h: $gl-spacing-scale-13 - $gl-spacing-scale-4;
|
|
|
52
52
|
|
|
53
53
|
.gl-legend-tabular {
|
|
54
54
|
.gl-legend-tabular-header {
|
|
55
|
-
@
|
|
56
|
-
@
|
|
55
|
+
@apply gl-flex;
|
|
56
|
+
@apply gl-justify-end;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.gl-legend-tabular-header-cell,
|
|
60
60
|
.gl-legend-tabular-details-cell {
|
|
61
|
-
@
|
|
61
|
+
@apply gl-whitespace-nowrap;
|
|
62
62
|
@include gl-overflow-hidden;
|
|
63
|
-
@
|
|
63
|
+
@apply gl-text-ellipsis;
|
|
64
64
|
@include gl-text-right;
|
|
65
65
|
@include gl-w-eighth;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.gl-legend-tabular-header-cell {
|
|
69
|
-
@
|
|
70
|
-
@
|
|
69
|
+
@apply gl-font-bold;
|
|
70
|
+
@apply gl-leading-24;
|
|
71
71
|
@apply gl-px-3;
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -77,7 +77,7 @@ $legend-body-h: $gl-spacing-scale-13 - $gl-spacing-scale-4;
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.gl-legend-tabular-row {
|
|
80
|
-
@
|
|
80
|
+
@apply gl-flex;
|
|
81
81
|
|
|
82
82
|
&:nth-child(odd) {
|
|
83
83
|
background-color: var(--gray-50, #{$gray-50});
|
|
@@ -86,12 +86,12 @@ $legend-body-h: $gl-spacing-scale-13 - $gl-spacing-scale-4;
|
|
|
86
86
|
|
|
87
87
|
.gl-legend-tabular-title-cell,
|
|
88
88
|
.gl-legend-tabular-details-cell {
|
|
89
|
-
@
|
|
89
|
+
@apply gl-leading-24;
|
|
90
90
|
@apply gl-px-3;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.gl-legend-tabular-title-cell {
|
|
94
94
|
@include gl-overflow-hidden;
|
|
95
|
-
@
|
|
95
|
+
@apply gl-w-1/2;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
.gl-series-label-container {
|
|
2
|
-
@
|
|
3
|
-
@
|
|
2
|
+
@apply gl-flex;
|
|
3
|
+
@apply gl-text-base;
|
|
4
4
|
@include gl-overflow-hidden;
|
|
5
|
-
@
|
|
5
|
+
@apply gl-break-words;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.gl-series-label-color {
|
|
9
|
-
@
|
|
9
|
+
@apply gl-shrink-0;
|
|
10
10
|
@apply gl-mr-3;
|
|
11
11
|
|
|
12
12
|
svg {
|
|
13
|
-
@
|
|
13
|
+
@apply gl-block;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
// as there are quite a few possible cases where
|
|
20
20
|
// Prometheus queries return long labels with no spaces.
|
|
21
21
|
@include gl-overflow-hidden;
|
|
22
|
-
@
|
|
22
|
+
@apply gl-break-words;
|
|
23
23
|
}
|
package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.scss
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
pre {
|
|
10
|
-
@
|
|
10
|
+
@apply gl-text-inherit;
|
|
11
11
|
padding: $gl-spacing-scale-3 $gl-spacing-scale-4;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
pre code {
|
|
15
|
-
@
|
|
16
|
-
@
|
|
15
|
+
@apply gl-text-sm;
|
|
16
|
+
@apply gl-leading-1;
|
|
17
17
|
@include gl-bg-transparent;
|
|
18
18
|
white-space: inherit;
|
|
19
19
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
copy-code,
|
|
26
26
|
insert-code-snippet {
|
|
27
27
|
position: absolute;
|
|
28
|
-
@
|
|
28
|
+
@apply gl-transition-all;
|
|
29
29
|
@include gl-opacity-0;
|
|
30
30
|
right: $gl-spacing-scale-3;
|
|
31
31
|
top: $gl-spacing-scale-3;
|
|
@@ -37,16 +37,16 @@ $duo-chat-scrim-gradient: linear-gradient(to bottom, rgba($gray-10, 0), $gray-10
|
|
|
37
37
|
|
|
38
38
|
.duo-chat-drawer {
|
|
39
39
|
right: 0;
|
|
40
|
-
@
|
|
40
|
+
@apply gl-transition-all;
|
|
41
41
|
position: fixed;
|
|
42
42
|
@include gl-h-full;
|
|
43
43
|
@include gl-w-full;
|
|
44
44
|
@include gl-overflow-y-auto;
|
|
45
45
|
@include gl-shadow-lg;
|
|
46
|
-
@
|
|
47
|
-
@
|
|
48
|
-
@
|
|
49
|
-
@
|
|
46
|
+
@apply gl-text-base;
|
|
47
|
+
@apply gl-leading-normal;
|
|
48
|
+
@apply gl-flex;
|
|
49
|
+
@apply gl-flex-col;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.duo-chat-drawer-header {
|
|
@@ -60,7 +60,7 @@ $duo-chat-scrim-gradient: linear-gradient(to bottom, rgba($gray-10, 0), $gray-10
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.duo-chat-drawer-body {
|
|
63
|
-
@
|
|
63
|
+
@apply gl-grow;
|
|
64
64
|
// prevent safari bug where box shadow is visible
|
|
65
65
|
// above the drawer when hovering interactive elements
|
|
66
66
|
// see https://gitlab.com/gitlab-org/gitlab/-/issues/366558
|
|
@@ -82,7 +82,7 @@ $duo-chat-scrim-gradient: linear-gradient(to bottom, rgba($gray-10, 0), $gray-10
|
|
|
82
82
|
&::before {
|
|
83
83
|
background: $duo-chat-scrim-gradient;
|
|
84
84
|
top: -$gl-border-size-1;
|
|
85
|
-
@
|
|
85
|
+
@apply -gl-translate-y-full;
|
|
86
86
|
content: '';
|
|
87
87
|
left: 0;
|
|
88
88
|
position: absolute;
|
|
@@ -124,8 +124,8 @@ $duo-chat-scrim-gradient: linear-gradient(to bottom, rgba($gray-10, 0), $gray-10
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.duo-chat-input {
|
|
127
|
-
@
|
|
128
|
-
@
|
|
127
|
+
@apply gl-flex;
|
|
128
|
+
@apply gl-flex-col;
|
|
129
129
|
max-height: 240px;
|
|
130
130
|
overflow: hidden;
|
|
131
131
|
|
|
@@ -142,14 +142,14 @@ $duo-chat-scrim-gradient: linear-gradient(to bottom, rgba($gray-10, 0), $gray-10
|
|
|
142
142
|
|
|
143
143
|
&::after {
|
|
144
144
|
content: attr(data-value) ' ';
|
|
145
|
-
@
|
|
146
|
-
@
|
|
145
|
+
@apply gl-invisible;
|
|
146
|
+
@apply gl-whitespace-pre-wrap;
|
|
147
147
|
@apply gl-py-4;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.slash-commands {
|
|
152
|
-
@
|
|
152
|
+
@apply -gl-mt-2;
|
|
153
153
|
|
|
154
154
|
.active-command {
|
|
155
155
|
@include gl-bg-gray-50;
|
|
@@ -157,12 +157,12 @@ $duo-chat-scrim-gradient: linear-gradient(to bottom, rgba($gray-10, 0), $gray-10
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.gl-dropdown-item button.dropdown-item {
|
|
160
|
-
@
|
|
160
|
+
@apply gl-text-sm;
|
|
161
161
|
@apply gl-px-3;
|
|
162
|
-
@
|
|
162
|
+
@apply gl-bg-transparent;
|
|
163
163
|
|
|
164
164
|
&:hover {
|
|
165
|
-
@
|
|
165
|
+
@apply gl-bg-transparent;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
.gl-charts-tooltip-default-format-series {
|
|
2
|
-
@
|
|
3
|
-
@
|
|
2
|
+
@apply gl-flex;
|
|
3
|
+
@apply gl-justify-between;
|
|
4
4
|
|
|
5
5
|
&-label,
|
|
6
6
|
&-value {
|
|
7
|
-
@
|
|
7
|
+
@apply gl-text-sm;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
&-label {
|
|
11
|
-
@
|
|
11
|
+
@apply gl-leading-normal;
|
|
12
12
|
@apply gl-mr-7;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
&-value {
|
|
16
|
-
@
|
|
16
|
+
@apply gl-font-bold;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
@mixin gl-typescale-ui($selector: 'body') {
|
|
2
2
|
#{$selector} {
|
|
3
|
-
@
|
|
3
|
+
@apply gl-text-base;
|
|
4
4
|
@include gl-text-gray-900;
|
|
5
5
|
@include gl-font-regular;
|
|
6
|
-
@
|
|
7
|
-
@
|
|
6
|
+
@apply gl-font-normal;
|
|
7
|
+
@apply gl-leading-normal;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
h1,
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
.gl-h4,
|
|
21
21
|
.gl-h5,
|
|
22
22
|
.gl-h6 {
|
|
23
|
-
@
|
|
23
|
+
@apply gl-font-bold;
|
|
24
24
|
@apply gl-mt-0;
|
|
25
25
|
@apply gl-mb-0;
|
|
26
26
|
}
|
|
@@ -44,29 +44,29 @@
|
|
|
44
44
|
|
|
45
45
|
h3,
|
|
46
46
|
.gl-h3 {
|
|
47
|
-
@
|
|
48
|
-
@
|
|
47
|
+
@apply gl-text-lg;
|
|
48
|
+
@apply gl-leading-20;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
h4,
|
|
52
52
|
.gl-h4 {
|
|
53
|
-
@
|
|
54
|
-
@
|
|
53
|
+
@apply gl-text-base;
|
|
54
|
+
@apply gl-leading-20;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
h5,
|
|
58
58
|
.gl-h5,
|
|
59
59
|
h6,
|
|
60
60
|
.gl-h6 {
|
|
61
|
-
@
|
|
62
|
-
@
|
|
61
|
+
@apply gl-text-base;
|
|
62
|
+
@apply gl-leading-20;
|
|
63
63
|
@include gl-text-gray-700;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
p,
|
|
67
67
|
.gl-paragraph {
|
|
68
|
-
@
|
|
69
|
-
@
|
|
68
|
+
@apply gl-text-base;
|
|
69
|
+
@apply gl-leading-20;
|
|
70
70
|
@apply gl-mt-0;
|
|
71
71
|
@apply gl-mb-0;
|
|
72
72
|
|
|
@@ -76,16 +76,16 @@
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
&.lg {
|
|
79
|
-
@
|
|
79
|
+
@apply gl-leading-24;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.sm {
|
|
84
|
-
@
|
|
84
|
+
@apply gl-text-sm;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.lg {
|
|
88
|
-
@
|
|
88
|
+
@apply gl-text-lg;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.monospace {
|
|
@@ -426,6 +426,7 @@
|
|
|
426
426
|
--gl-text-color-disabled: var(--gl-color-neutral-400); /* Used for disabled text. */
|
|
427
427
|
--gl-text-color-success: var(--gl-color-green-600); /* Used for text indicating success, completion, approval, addition, or validity. */
|
|
428
428
|
--gl-text-color-danger: var(--gl-color-red-600); /* Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination. */
|
|
429
|
+
--gl-text-color-warning: var(--gl-color-orange-600); /* Used for text that requires caution or careful attention. */
|
|
429
430
|
--gl-text-color-link: var(--gl-color-blue-700); /* Used for default text links. */
|
|
430
431
|
--gl-text-color-heading: var(--gl-color-neutral-950); /* Used for headings level 1-6. */
|
|
431
432
|
--gl-text-color-strong: var(--gl-color-neutral-950); /* Used for text with the highest contrast. */
|
|
@@ -426,6 +426,7 @@
|
|
|
426
426
|
--gl-text-color-disabled: var(--gl-color-neutral-400); /* Used for disabled text. */
|
|
427
427
|
--gl-text-color-success: var(--gl-color-green-300); /* Used for text indicating success, completion, approval, addition, or validity. */
|
|
428
428
|
--gl-text-color-danger: var(--gl-color-red-300); /* Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination. */
|
|
429
|
+
--gl-text-color-warning: var(--gl-color-orange-300); /* Used for text that requires caution or careful attention. */
|
|
429
430
|
--gl-text-color-link: var(--gl-color-blue-300); /* Used for default text links. */
|
|
430
431
|
--gl-text-color-heading: var(--gl-color-neutral-0); /* Used for headings level 1-6. */
|
|
431
432
|
--gl-text-color-strong: var(--gl-color-neutral-0); /* Used for text with the highest contrast. */
|
|
@@ -904,6 +904,7 @@ export const GL_TEXT_COLOR_SUBTLE = '#bfbfc3'; // Used for supplemental text tha
|
|
|
904
904
|
export const GL_TEXT_COLOR_STRONG = '#fff'; // Used for text with the highest contrast.
|
|
905
905
|
export const GL_TEXT_COLOR_HEADING = '#fff'; // Used for headings level 1-6.
|
|
906
906
|
export const GL_TEXT_COLOR_LINK = '#63a6e9'; // Used for default text links.
|
|
907
|
+
export const GL_TEXT_COLOR_WARNING = '#d99530'; // Used for text that requires caution or careful attention.
|
|
907
908
|
export const GL_TEXT_COLOR_DANGER = '#f57f6c'; // Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.
|
|
908
909
|
export const GL_TEXT_COLOR_SUCCESS = '#52b87a'; // Used for text indicating success, completion, approval, addition, or validity.
|
|
909
910
|
export const GL_TEXT_COLOR_DISABLED = '#89888d'; // Used for disabled text.
|
|
@@ -904,6 +904,7 @@ export const GL_TEXT_COLOR_SUBTLE = '#626168'; // Used for supplemental text tha
|
|
|
904
904
|
export const GL_TEXT_COLOR_STRONG = '#18171d'; // Used for text with the highest contrast.
|
|
905
905
|
export const GL_TEXT_COLOR_HEADING = '#18171d'; // Used for headings level 1-6.
|
|
906
906
|
export const GL_TEXT_COLOR_LINK = '#0b5cad'; // Used for default text links.
|
|
907
|
+
export const GL_TEXT_COLOR_WARNING = '#9e5400'; // Used for text that requires caution or careful attention.
|
|
907
908
|
export const GL_TEXT_COLOR_DANGER = '#c91c00'; // Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.
|
|
908
909
|
export const GL_TEXT_COLOR_SUCCESS = '#217645'; // Used for text indicating success, completion, approval, addition, or validity.
|
|
909
910
|
export const GL_TEXT_COLOR_DISABLED = '#89888d'; // Used for disabled text.
|
|
@@ -20706,6 +20706,28 @@
|
|
|
20706
20706
|
"link"
|
|
20707
20707
|
]
|
|
20708
20708
|
},
|
|
20709
|
+
"warning": {
|
|
20710
|
+
"value": "#d99530",
|
|
20711
|
+
"$type": "color",
|
|
20712
|
+
"comment": "Used for text that requires caution or careful attention.",
|
|
20713
|
+
"filePath": "src/tokens/text.tokens.json",
|
|
20714
|
+
"isSource": true,
|
|
20715
|
+
"original": {
|
|
20716
|
+
"value": {
|
|
20717
|
+
"default": "{color.orange.600}",
|
|
20718
|
+
"dark": "{color.orange.300}"
|
|
20719
|
+
},
|
|
20720
|
+
"$type": "color",
|
|
20721
|
+
"comment": "Used for text that requires caution or careful attention."
|
|
20722
|
+
},
|
|
20723
|
+
"name": "TEXT_COLOR_WARNING",
|
|
20724
|
+
"attributes": {},
|
|
20725
|
+
"path": [
|
|
20726
|
+
"text",
|
|
20727
|
+
"color",
|
|
20728
|
+
"warning"
|
|
20729
|
+
]
|
|
20730
|
+
},
|
|
20709
20731
|
"danger": {
|
|
20710
20732
|
"value": "#f57f6c",
|
|
20711
20733
|
"$type": "color",
|
|
@@ -20706,6 +20706,28 @@
|
|
|
20706
20706
|
"link"
|
|
20707
20707
|
]
|
|
20708
20708
|
},
|
|
20709
|
+
"warning": {
|
|
20710
|
+
"value": "#9e5400",
|
|
20711
|
+
"$type": "color",
|
|
20712
|
+
"comment": "Used for text that requires caution or careful attention.",
|
|
20713
|
+
"filePath": "src/tokens/text.tokens.json",
|
|
20714
|
+
"isSource": true,
|
|
20715
|
+
"original": {
|
|
20716
|
+
"value": {
|
|
20717
|
+
"default": "{color.orange.600}",
|
|
20718
|
+
"dark": "{color.orange.300}"
|
|
20719
|
+
},
|
|
20720
|
+
"$type": "color",
|
|
20721
|
+
"comment": "Used for text that requires caution or careful attention."
|
|
20722
|
+
},
|
|
20723
|
+
"name": "TEXT_COLOR_WARNING",
|
|
20724
|
+
"attributes": {},
|
|
20725
|
+
"path": [
|
|
20726
|
+
"text",
|
|
20727
|
+
"color",
|
|
20728
|
+
"warning"
|
|
20729
|
+
]
|
|
20730
|
+
},
|
|
20709
20731
|
"danger": {
|
|
20710
20732
|
"value": "#c91c00",
|
|
20711
20733
|
"$type": "color",
|
|
@@ -424,6 +424,7 @@ $gl-action-neutral-background-color-default: rgba(137, 136, 141, 0.0); // Used f
|
|
|
424
424
|
$gl-text-color-disabled: $gl-color-neutral-400; // Used for disabled text.
|
|
425
425
|
$gl-text-color-success: $gl-color-green-300; // Used for text indicating success, completion, approval, addition, or validity.
|
|
426
426
|
$gl-text-color-danger: $gl-color-red-300; // Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.
|
|
427
|
+
$gl-text-color-warning: $gl-color-orange-300; // Used for text that requires caution or careful attention.
|
|
427
428
|
$gl-text-color-link: $gl-color-blue-300; // Used for default text links.
|
|
428
429
|
$gl-text-color-heading: $gl-color-neutral-0; // Used for headings level 1-6.
|
|
429
430
|
$gl-text-color-strong: $gl-color-neutral-0; // Used for text with the highest contrast.
|
|
@@ -424,6 +424,7 @@ $gl-action-neutral-background-color-default: rgba(164, 163, 168, 0.0); // Used f
|
|
|
424
424
|
$gl-text-color-disabled: $gl-color-neutral-400; // Used for disabled text.
|
|
425
425
|
$gl-text-color-success: $gl-color-green-600; // Used for text indicating success, completion, approval, addition, or validity.
|
|
426
426
|
$gl-text-color-danger: $gl-color-red-600; // Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.
|
|
427
|
+
$gl-text-color-warning: $gl-color-orange-600; // Used for text that requires caution or careful attention.
|
|
427
428
|
$gl-text-color-link: $gl-color-blue-700; // Used for default text links.
|
|
428
429
|
$gl-text-color-heading: $gl-color-neutral-950; // Used for headings level 1-6.
|
|
429
430
|
$gl-text-color-strong: $gl-color-neutral-950; // Used for text with the highest contrast.
|
|
@@ -904,6 +904,7 @@ $gl-text-color-subtle: var(--gl-text-color-subtle);
|
|
|
904
904
|
$gl-text-color-strong: var(--gl-text-color-strong);
|
|
905
905
|
$gl-text-color-heading: var(--gl-text-color-heading);
|
|
906
906
|
$gl-text-color-link: var(--gl-text-color-link);
|
|
907
|
+
$gl-text-color-warning: var(--gl-text-color-warning);
|
|
907
908
|
$gl-text-color-danger: var(--gl-text-color-danger);
|
|
908
909
|
$gl-text-color-success: var(--gl-text-color-success);
|
|
909
910
|
$gl-text-color-disabled: var(--gl-text-color-disabled);
|
|
@@ -209,6 +209,7 @@ const textColors = {
|
|
|
209
209
|
strong: 'var(--gl-text-color-strong, var(--gl-color-neutral-950, #18171d))',
|
|
210
210
|
heading: 'var(--gl-text-color-heading, var(--gl-color-neutral-950, #18171d))',
|
|
211
211
|
link: 'var(--gl-text-color-link, var(--gl-color-blue-700, #0b5cad))',
|
|
212
|
+
warning: 'var(--gl-text-color-warning, var(--gl-color-orange-600, #9e5400))',
|
|
212
213
|
danger: 'var(--gl-text-color-danger, var(--gl-color-red-600, #c91c00))',
|
|
213
214
|
success: 'var(--gl-text-color-success, var(--gl-color-green-600, #217645))',
|
|
214
215
|
disabled: 'var(--gl-text-color-disabled, var(--gl-color-neutral-400, #89888d))',
|
|
@@ -68,6 +68,14 @@
|
|
|
68
68
|
"$type": "color",
|
|
69
69
|
"$description": "Used for default text links."
|
|
70
70
|
},
|
|
71
|
+
"warning": {
|
|
72
|
+
"$value": {
|
|
73
|
+
"default": "{color.orange.600}",
|
|
74
|
+
"dark": "{color.orange.300}"
|
|
75
|
+
},
|
|
76
|
+
"$type": "color",
|
|
77
|
+
"$description": "Used for text that requires caution or careful attention."
|
|
78
|
+
},
|
|
71
79
|
"danger": {
|
|
72
80
|
"$value": {
|
|
73
81
|
"default": "{color.red.600}",
|