@gitlab/ui 66.16.0 → 66.19.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 +21 -0
- package/dist/components/base/modal/modal.js +1 -1
- package/dist/components/experimental/duo/user_feedback/user_feedback.js +94 -0
- package/dist/components/experimental/duo/user_feedback/user_feedback_modal.js +121 -0
- package/dist/components/regions/empty_state/empty_state.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -0
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.dark.css +1 -1
- package/dist/tokens/js/tokens.dark.js +1 -1
- package/dist/tokens/js/tokens.js +1 -1
- package/dist/tokens/scss/_tokens.dark.scss +1 -1
- package/dist/tokens/scss/_tokens.scss +1 -1
- package/package.json +14 -14
- package/src/components/base/modal/modal.scss +1 -3
- package/src/components/base/modal/modal.spec.js +2 -2
- package/src/components/base/modal/modal.vue +2 -2
- package/src/components/experimental/duo/user_feedback/user_feedback.md +40 -0
- package/src/components/experimental/duo/user_feedback/user_feedback.spec.js +80 -0
- package/src/components/experimental/duo/user_feedback/user_feedback.stories.js +48 -0
- package/src/components/experimental/duo/user_feedback/user_feedback.vue +76 -0
- package/src/components/experimental/duo/user_feedback/user_feedback_modal.spec.js +61 -0
- package/src/components/experimental/duo/user_feedback/user_feedback_modal.vue +124 -0
- package/src/components/regions/empty_state/empty_state.scss +3 -0
- package/src/components/regions/empty_state/empty_state.spec.js +11 -1
- package/src/components/regions/empty_state/empty_state.vue +60 -59
- package/src/index.js +1 -0
- package/src/scss/components.scss +1 -0
|
@@ -108,7 +108,7 @@ export default {
|
|
|
108
108
|
},
|
|
109
109
|
contentClasses() {
|
|
110
110
|
return [
|
|
111
|
-
this.compact ? 'gl-flex-grow-1 gl-flex-basis-0 gl-px-4' : 'gl-
|
|
111
|
+
this.compact ? 'gl-flex-grow-1 gl-flex-basis-0 gl-px-4' : 'gl-m-auto gl-p-5',
|
|
112
112
|
this.contentClass,
|
|
113
113
|
];
|
|
114
114
|
},
|
|
@@ -127,68 +127,69 @@ export default {
|
|
|
127
127
|
<div
|
|
128
128
|
:class="{ 'gl-display-none gl-sm-display-block gl-px-4': compact, 'gl-max-w-full': !compact }"
|
|
129
129
|
>
|
|
130
|
-
<
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
</div>
|
|
130
|
+
<img
|
|
131
|
+
v-if="svgPath"
|
|
132
|
+
:src="svgPath"
|
|
133
|
+
alt=""
|
|
134
|
+
role="img"
|
|
135
|
+
:class="{ 'gl-dark-invert-keep-hue': invertInDarkMode }"
|
|
136
|
+
class="gl-max-w-full"
|
|
137
|
+
:height="height"
|
|
138
|
+
/>
|
|
140
139
|
</div>
|
|
141
|
-
<div
|
|
142
|
-
|
|
140
|
+
<div
|
|
141
|
+
class="gl-empty-state-content gl-mx-auto gl-my-0"
|
|
142
|
+
:class="contentClasses"
|
|
143
|
+
data-testid="gl-empty-state-content"
|
|
144
|
+
>
|
|
145
|
+
<!--
|
|
146
|
+
@slot Use this slot to customize the empty state's title area.
|
|
147
|
+
Overrides the `title` prop.
|
|
148
|
+
-->
|
|
149
|
+
<slot ref="title" name="title">
|
|
150
|
+
<h1
|
|
151
|
+
class="gl-font-size-h-display gl-line-height-36 gl-mt-0 gl-mb-0"
|
|
152
|
+
:class="compact ? 'h5' : 'h4'"
|
|
153
|
+
>
|
|
154
|
+
{{ title }}
|
|
155
|
+
</h1>
|
|
156
|
+
</slot>
|
|
157
|
+
<p v-if="description || $scopedSlots.description" ref="description" class="gl-mt-4 gl-mb-0">
|
|
143
158
|
<!--
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
<slot
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
159
|
+
@slot Use this slot to customize the empty state's description
|
|
160
|
+
area. Overrides the `description` prop.
|
|
161
|
+
-->
|
|
162
|
+
<slot name="description">
|
|
163
|
+
{{ description }}
|
|
164
|
+
</slot>
|
|
165
|
+
</p>
|
|
166
|
+
<div
|
|
167
|
+
class="gl-display-flex gl-flex-wrap gl-mt-5"
|
|
168
|
+
:class="{ 'gl-justify-content-center': !compact }"
|
|
169
|
+
>
|
|
170
|
+
<!--
|
|
171
|
+
@slot Use this slot to customize the empty state's actions area,
|
|
172
|
+
where the buttons are. Overrides button-related props:
|
|
173
|
+
`primaryButtonLink`, `primaryButtonText`, `secondaryButtonLink`,
|
|
174
|
+
`secondaryButtonText`.
|
|
175
|
+
-->
|
|
176
|
+
<slot name="actions">
|
|
177
|
+
<gl-button
|
|
178
|
+
v-if="shouldRenderPrimaryButton"
|
|
179
|
+
variant="confirm"
|
|
180
|
+
:class="compact ? 'gl-mr-3' : 'gl-mx-2'"
|
|
181
|
+
class="gl-mb-3"
|
|
182
|
+
:href="primaryButtonLink"
|
|
183
|
+
>{{ primaryButtonText }}</gl-button
|
|
151
184
|
>
|
|
152
|
-
|
|
153
|
-
|
|
185
|
+
<gl-button
|
|
186
|
+
v-if="shouldRenderSecondaryButton"
|
|
187
|
+
class="gl-mb-3 gl-mr-3"
|
|
188
|
+
:class="{ 'gl-mx-2!': !compact }"
|
|
189
|
+
:href="secondaryButtonLink"
|
|
190
|
+
>{{ secondaryButtonText }}
|
|
191
|
+
</gl-button>
|
|
154
192
|
</slot>
|
|
155
|
-
<p v-if="description || $scopedSlots.description" ref="description" class="gl-mt-4 gl-mb-0">
|
|
156
|
-
<!--
|
|
157
|
-
@slot Use this slot to customize the empty state's description
|
|
158
|
-
area. Overrides the `description` prop.
|
|
159
|
-
-->
|
|
160
|
-
<slot name="description">
|
|
161
|
-
{{ description }}
|
|
162
|
-
</slot>
|
|
163
|
-
</p>
|
|
164
|
-
<div
|
|
165
|
-
class="gl-display-flex gl-flex-wrap gl-mt-5"
|
|
166
|
-
:class="{ 'gl-justify-content-center': !compact }"
|
|
167
|
-
>
|
|
168
|
-
<!--
|
|
169
|
-
@slot Use this slot to customize the empty state's actions area,
|
|
170
|
-
where the buttons are. Overrides button-related props:
|
|
171
|
-
`primaryButtonLink`, `primaryButtonText`, `secondaryButtonLink`,
|
|
172
|
-
`secondaryButtonText`.
|
|
173
|
-
-->
|
|
174
|
-
<slot name="actions">
|
|
175
|
-
<gl-button
|
|
176
|
-
v-if="shouldRenderPrimaryButton"
|
|
177
|
-
variant="confirm"
|
|
178
|
-
:class="compact ? 'gl-mr-3' : 'gl-mx-2'"
|
|
179
|
-
class="gl-mb-3"
|
|
180
|
-
:href="primaryButtonLink"
|
|
181
|
-
>{{ primaryButtonText }}</gl-button
|
|
182
|
-
>
|
|
183
|
-
<gl-button
|
|
184
|
-
v-if="shouldRenderSecondaryButton"
|
|
185
|
-
class="gl-mb-3 gl-mr-3"
|
|
186
|
-
:class="{ 'gl-mx-2!': !compact }"
|
|
187
|
-
:href="secondaryButtonLink"
|
|
188
|
-
>{{ secondaryButtonText }}
|
|
189
|
-
</gl-button>
|
|
190
|
-
</slot>
|
|
191
|
-
</div>
|
|
192
193
|
</div>
|
|
193
194
|
</div>
|
|
194
195
|
</section>
|
package/src/index.js
CHANGED
|
@@ -98,6 +98,7 @@ export { default as GlCarouselSlide } from './components/base/carousel/carousel_
|
|
|
98
98
|
|
|
99
99
|
// Experimental
|
|
100
100
|
export { default as GlExperimentBadge } from './components/experimental/experiment_badge/experiment_badge.vue';
|
|
101
|
+
export { default as GlDuoUserFeedback } from './components/experimental/duo/user_feedback/user_feedback.vue';
|
|
101
102
|
|
|
102
103
|
// Utilities
|
|
103
104
|
export { default as GlAnimatedNumber } from './components/utilities/animated_number/animated_number.vue';
|
package/src/scss/components.scss
CHANGED