@gitlab/ui 63.1.1 → 63.1.3
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/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/package.json +1 -1
- package/src/components/base/broadcast_message/broadcast_message.scss +23 -14
- package/src/components/base/broadcast_message/broadcast_message.stories.js +12 -1
- package/src/components/base/filtered_search/filtered_search.scss +14 -8
- package/src/scss/utilities.scss +10 -0
- package/src/scss/utility-mixins/border.scss +4 -0
package/package.json
CHANGED
|
@@ -9,56 +9,65 @@
|
|
|
9
9
|
@include gl-py-5;
|
|
10
10
|
|
|
11
11
|
&.indigo {
|
|
12
|
-
|
|
12
|
+
--gl-broadcast-message-bg-color: #{$theme-indigo-700};
|
|
13
|
+
--gl-broadcast-message-border-color: #{$theme-indigo-900};
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
&.light-indigo {
|
|
16
|
-
|
|
17
|
+
--gl-broadcast-message-bg-color: #{$theme-indigo-500};
|
|
18
|
+
--gl-broadcast-message-border-color: #{$theme-indigo-700};
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
&.blue {
|
|
20
|
-
|
|
22
|
+
--gl-broadcast-message-bg-color: #{$theme-blue-700};
|
|
23
|
+
--gl-broadcast-message-border-color: #{$theme-blue-900};
|
|
21
24
|
}
|
|
22
25
|
|
|
23
26
|
&.light-blue {
|
|
24
|
-
|
|
27
|
+
--gl-broadcast-message-bg-color: #{$theme-blue-500};
|
|
28
|
+
--gl-broadcast-message-border-color: #{$theme-blue-700};
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
&.green {
|
|
28
|
-
|
|
32
|
+
--gl-broadcast-message-bg-color: #{$theme-green-700};
|
|
33
|
+
--gl-broadcast-message-border-color: #{$theme-green-900};
|
|
29
34
|
}
|
|
30
35
|
|
|
31
36
|
&.light-green {
|
|
32
|
-
|
|
37
|
+
--gl-broadcast-message-bg-color: #{$theme-green-500};
|
|
38
|
+
--gl-broadcast-message-border-color: #{$theme-green-700};
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
&.red {
|
|
36
|
-
|
|
42
|
+
--gl-broadcast-message-bg-color: #{$theme-red-700};
|
|
43
|
+
--gl-broadcast-message-border-color: #{$theme-red-900};
|
|
37
44
|
}
|
|
38
45
|
|
|
39
46
|
&.light-red {
|
|
40
|
-
|
|
47
|
+
--gl-broadcast-message-bg-color: #{$theme-red-500};
|
|
48
|
+
--gl-broadcast-message-border-color: #{$theme-red-700};
|
|
41
49
|
}
|
|
42
50
|
|
|
43
51
|
&.dark {
|
|
44
|
-
|
|
52
|
+
--gl-broadcast-message-bg-color: #{$gray-500};
|
|
53
|
+
--gl-broadcast-message-border-color: #{$gray-700};
|
|
45
54
|
}
|
|
46
55
|
|
|
47
56
|
&.light {
|
|
48
|
-
|
|
57
|
+
--gl-broadcast-message-bg-color: #{$gray-300};
|
|
58
|
+
--gl-broadcast-message-border-color: #{$gray-500};
|
|
49
59
|
}
|
|
50
60
|
|
|
51
61
|
&.banner {
|
|
52
62
|
@include gl-text-contrast-light;
|
|
53
|
-
|
|
63
|
+
background-color: var(--gl-broadcast-message-bg-color);
|
|
64
|
+
box-shadow: inset 0 -#{$gl-border-size-1} 0 0 var(--gl-broadcast-message-border-color);
|
|
54
65
|
}
|
|
55
66
|
|
|
56
67
|
&.notification {
|
|
57
68
|
@include gl-rounded-base;
|
|
58
69
|
@include gl-bg-white;
|
|
59
|
-
@include gl-border
|
|
60
|
-
@include gl-border-gray-100;
|
|
61
|
-
@include gl-border-1;
|
|
70
|
+
@include gl-border;
|
|
62
71
|
@include gl-shadow-x0-y2-b4-s0;
|
|
63
72
|
max-width: $gl-broadcast-message-notification-max-width;
|
|
64
73
|
}
|
|
@@ -15,6 +15,17 @@ const template = `
|
|
|
15
15
|
</gl-broadcast-message>
|
|
16
16
|
`;
|
|
17
17
|
|
|
18
|
+
const templateWithTheme = (theme) => `
|
|
19
|
+
<gl-broadcast-message
|
|
20
|
+
:icon-name="iconName"
|
|
21
|
+
:dismissible="dismissible"
|
|
22
|
+
:dismiss-label="dismissLabel"
|
|
23
|
+
theme="${theme}"
|
|
24
|
+
:type="type">
|
|
25
|
+
{{ text }}
|
|
26
|
+
</gl-broadcast-message>
|
|
27
|
+
`;
|
|
28
|
+
|
|
18
29
|
const defaultValue = (prop) => GlBroadcastMessage.props[prop].default;
|
|
19
30
|
|
|
20
31
|
const generateProps = ({
|
|
@@ -58,7 +69,7 @@ const StackedStory = (args, { argTypes }) => ({
|
|
|
58
69
|
GlBroadcastMessage,
|
|
59
70
|
},
|
|
60
71
|
props: Object.keys(argTypes),
|
|
61
|
-
template: `<div>${
|
|
72
|
+
template: `<div>${Object.keys(colorThemes).map(templateWithTheme).join('')}</div>`,
|
|
62
73
|
});
|
|
63
74
|
export const Stacked = StackedStory.bind({});
|
|
64
75
|
Stacked.args = generateProps();
|
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
.gl-filtered-search-scrollable-container {
|
|
2
2
|
@include gl-bg-white;
|
|
3
|
+
@include gl-inset-border-1-gray-400;
|
|
4
|
+
@include gl-rounded-left-base;
|
|
5
|
+
position: relative;
|
|
6
|
+
flex-grow: 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.gl-filtered-search-scrollable {
|
|
3
10
|
@include gl-display-flex;
|
|
4
11
|
@include gl-flex-grow-1;
|
|
5
12
|
@include gl-flex-basis-0;
|
|
6
|
-
@include gl-overflow-hidden;
|
|
7
13
|
@include gl-align-items-center;
|
|
8
14
|
@include gl-py-2;
|
|
9
15
|
@include gl-pl-4;
|
|
10
|
-
@include gl-pr-7;
|
|
11
|
-
@include gl-inset-border-1-gray-400;
|
|
12
16
|
@include gl-border-none;
|
|
13
|
-
@include gl-rounded-
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
@include gl-rounded-left-base;
|
|
18
|
+
position: absolute;
|
|
19
|
+
max-width: calc(100% - $gl-spacing-scale-7);
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
overflow-x: auto;
|
|
16
22
|
|
|
17
|
-
|
|
23
|
+
// prevent overlapping with left border
|
|
24
|
+
left: $gl-border-size-1;
|
|
18
25
|
@include gl-display-flex;
|
|
19
|
-
@include gl-overflow-y-auto;
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
.gl-filtered-search-item {
|
package/src/scss/utilities.scss
CHANGED
|
@@ -1693,6 +1693,16 @@
|
|
|
1693
1693
|
border-radius: $gl-spacing-scale-4 !important;
|
|
1694
1694
|
}
|
|
1695
1695
|
|
|
1696
|
+
.gl-rounded-left-base {
|
|
1697
|
+
border-top-left-radius: $gl-border-radius-base;
|
|
1698
|
+
border-bottom-left-radius: $gl-border-radius-base;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
.gl-rounded-left-base\! {
|
|
1702
|
+
border-top-left-radius: $gl-border-radius-base !important;
|
|
1703
|
+
border-bottom-left-radius: $gl-border-radius-base !important;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1696
1706
|
.gl-rounded-top-left-base {
|
|
1697
1707
|
border-top-left-radius: $gl-border-radius-base;
|
|
1698
1708
|
}
|
|
@@ -383,6 +383,10 @@
|
|
|
383
383
|
@mixin gl-rounded-pill {
|
|
384
384
|
border-radius: $gl-spacing-scale-4;
|
|
385
385
|
}
|
|
386
|
+
@mixin gl-rounded-left-base {
|
|
387
|
+
border-top-left-radius: $gl-border-radius-base;
|
|
388
|
+
border-bottom-left-radius: $gl-border-radius-base;
|
|
389
|
+
}
|
|
386
390
|
|
|
387
391
|
@mixin gl-rounded-top-left-base {
|
|
388
392
|
border-top-left-radius: $gl-border-radius-base;
|