@gitlab/ui 101.3.1 → 101.5.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 +14 -0
- package/dist/components/base/segmented_control/segmented_control.js +23 -59
- package/dist/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.js +3 -3
- package/dist/components/experimental/duo/chat/duo_chat.js +2 -2
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/dist/vendor/bootstrap-vue/src/components/toast/helpers/bv-toast.js +2 -9
- package/package.json +3 -3
- package/src/components/base/segmented_control/segmented_control.md +26 -1
- package/src/components/base/segmented_control/segmented_control.vue +37 -59
- package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.scss +5 -0
- package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.vue +3 -3
- package/src/components/experimental/duo/chat/duo_chat.scss +3 -2
- package/src/components/experimental/duo/chat/duo_chat.vue +7 -7
- package/src/components/experimental/duo/chat/variables.scss +1 -1
- package/src/scss/components.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/toast/helpers/bv-toast.js +2 -7
- package/src/components/base/segmented_control/segmented_control.scss +0 -189
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Segmented-control-specific utilities
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
@mixin gl-btn-gl-segmented-button-first {
|
|
6
|
-
box-shadow:
|
|
7
|
-
inset 0 #{$gl-border-size-1} 0 0 $gray-200,
|
|
8
|
-
inset 0 -#{$gl-border-size-1} 0 0 $gray-200,
|
|
9
|
-
inset #{$gl-border-size-1} 0 0 0 $gray-200;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@mixin gl-btn-gl-segmented-button-last {
|
|
13
|
-
box-shadow:
|
|
14
|
-
inset 0 #{$gl-border-size-1} 0 0 $gray-200,
|
|
15
|
-
inset 0 -#{$gl-border-size-1} 0 0 $gray-200,
|
|
16
|
-
inset -#{$gl-border-size-1} 0 0 0 $gray-200;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@mixin gl-btn-gl-segmented-button-focus($color) {
|
|
20
|
-
box-shadow:
|
|
21
|
-
$focus-ring,
|
|
22
|
-
inset 0 0 0 $gl-border-size-2 $color;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.btn-group.gl-segmented-control {
|
|
26
|
-
.btn:not(:first-child),
|
|
27
|
-
.btn:not(:last-child) {
|
|
28
|
-
&.active,
|
|
29
|
-
&.focus,
|
|
30
|
-
&:hover:not(.disabled) {
|
|
31
|
-
@apply gl-rounded-base;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@if $feature-button-border {
|
|
37
|
-
.gl-segmented-control {
|
|
38
|
-
label:not(.disabled) {
|
|
39
|
-
@apply gl-cursor-pointer;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.btn-gl-segmented-button {
|
|
43
|
-
@apply gl-text-base;
|
|
44
|
-
@apply gl-leading-normal;
|
|
45
|
-
@apply gl-text-gray-900;
|
|
46
|
-
@apply gl-fill-current;
|
|
47
|
-
@apply gl-bg-gray-10;
|
|
48
|
-
border-color: $gray-200;
|
|
49
|
-
|
|
50
|
-
&:not(:first-child) {
|
|
51
|
-
border-left-color: transparent;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&:not(:last-child) {
|
|
55
|
-
border-right-color: transparent;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&:hover {
|
|
59
|
-
border-color: $gray-400;
|
|
60
|
-
@apply gl-bg-gray-50;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&.focus {
|
|
64
|
-
@apply gl-z-1;
|
|
65
|
-
border-color: $gray-400;
|
|
66
|
-
@apply gl-focus;
|
|
67
|
-
@apply gl-bg-gray-50;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&.active {
|
|
71
|
-
@apply gl-z-2;
|
|
72
|
-
border-color: $gray-400;
|
|
73
|
-
box-shadow: inset 0 0 0 $gl-border-size-1 $gray-400;
|
|
74
|
-
@apply gl-bg-white;
|
|
75
|
-
|
|
76
|
-
&:hover {
|
|
77
|
-
box-shadow: inset 0 0 0 $gl-border-size-1 $gray-400;
|
|
78
|
-
@apply gl-bg-gray-50;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&.focus,
|
|
82
|
-
&.focus:hover {
|
|
83
|
-
border-color: $gray-400;
|
|
84
|
-
@apply gl-focus;
|
|
85
|
-
@apply gl-bg-gray-50;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&:focus-within {
|
|
90
|
-
@apply gl-focus;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&.disabled,
|
|
94
|
-
&[disabled],
|
|
95
|
-
&.disabled:hover,
|
|
96
|
-
&[disabled]:hover {
|
|
97
|
-
@apply gl-text-gray-400;
|
|
98
|
-
border-color: $gray-200;
|
|
99
|
-
@apply gl-z-0;
|
|
100
|
-
@apply gl-cursor-not-allowed;
|
|
101
|
-
|
|
102
|
-
&:first-child {
|
|
103
|
-
border-right-color: transparent;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&:last-child {
|
|
107
|
-
border-left-color: transparent;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
} @else {
|
|
113
|
-
.gl-segmented-control {
|
|
114
|
-
label:not(.disabled) {
|
|
115
|
-
@apply gl-cursor-pointer;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.btn-gl-segmented-button {
|
|
119
|
-
@apply gl-text-base;
|
|
120
|
-
@apply gl-leading-normal;
|
|
121
|
-
@apply gl-text-gray-900;
|
|
122
|
-
@apply gl-fill-current;
|
|
123
|
-
@apply gl-bg-gray-10;
|
|
124
|
-
box-shadow:
|
|
125
|
-
inset 0 #{$gl-border-size-1} 0 0 $gray-200,
|
|
126
|
-
inset 0 -#{$gl-border-size-1} 0 0 $gray-200;
|
|
127
|
-
|
|
128
|
-
&:first-child {
|
|
129
|
-
@include gl-btn-gl-segmented-button-first;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
&:last-child {
|
|
133
|
-
@include gl-btn-gl-segmented-button-last;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
&:hover {
|
|
137
|
-
box-shadow: inset 0 0 0 $gl-border-size-2 $gray-400;
|
|
138
|
-
@apply gl-bg-gray-50;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
&.focus {
|
|
142
|
-
@apply gl-z-1;
|
|
143
|
-
@include gl-btn-gl-segmented-button-focus($gray-400);
|
|
144
|
-
@apply gl-bg-gray-50;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
&.active {
|
|
148
|
-
@apply gl-z-2;
|
|
149
|
-
box-shadow: inset 0 0 0 $gl-border-size-2 $gray-300;
|
|
150
|
-
@apply gl-bg-white;
|
|
151
|
-
|
|
152
|
-
&:hover {
|
|
153
|
-
box-shadow: inset 0 0 0 $gl-border-size-2 $gray-400;
|
|
154
|
-
@apply gl-bg-gray-50;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
&.focus,
|
|
158
|
-
&.focus:hover {
|
|
159
|
-
@include gl-btn-gl-segmented-button-focus($gray-400);
|
|
160
|
-
@apply gl-bg-gray-50;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
&:focus-within {
|
|
165
|
-
@apply gl-focus;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
&.disabled,
|
|
169
|
-
&[disabled],
|
|
170
|
-
&.disabled:hover,
|
|
171
|
-
&[disabled]:hover {
|
|
172
|
-
@apply gl-text-gray-400;
|
|
173
|
-
box-shadow:
|
|
174
|
-
inset 0 #{$gl-border-size-1} 0 0 $gray-200,
|
|
175
|
-
inset 0 -#{$gl-border-size-1} 0 0 $gray-200;
|
|
176
|
-
@apply gl-z-0;
|
|
177
|
-
@apply gl-cursor-not-allowed;
|
|
178
|
-
|
|
179
|
-
&:first-child {
|
|
180
|
-
@include gl-btn-gl-segmented-button-first;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
&:last-child {
|
|
184
|
-
@include gl-btn-gl-segmented-button-last;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|