@testgorilla/tgo-ui 2.24.3 → 2.24.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testgorilla/tgo-ui",
3
- "version": "2.24.3",
3
+ "version": "2.24.4",
4
4
  "license": "proprietary-license",
5
5
  "lint-staged": {
6
6
  "src/**/*.ts": [
@@ -121,5 +121,8 @@
121
121
  },
122
122
  "TAG": {
123
123
  "REMOVE": "Remove tag"
124
+ },
125
+ "TOOLTIP": {
126
+ "DETAILS": "Details"
124
127
  }
125
128
  }
@@ -24,7 +24,6 @@
24
24
  z-index: 10;
25
25
  border-top-right-radius: 4px;
26
26
  transform: rotate(-135deg);
27
- transition: all 1s;
28
27
  }
29
28
  }
30
29
 
@@ -184,6 +183,7 @@ body {
184
183
  @include rebranded-tooltip-right();
185
184
 
186
185
  &:after {
186
+ transition: none!important;
187
187
  left: -3px;
188
188
  }
189
189
  }
@@ -206,6 +206,17 @@ body {
206
206
  color: $tgo-white;
207
207
  border-radius: 6px;
208
208
  border: 1px solid $tgo-white;
209
+
210
+ @keyframes fadeIn {
211
+ from {
212
+ opacity: 0;
213
+ }
214
+ to {
215
+ opacity: 1;
216
+ }
217
+ }
218
+
219
+ animation: fadeIn 0.3s ease-in-out;
209
220
  }
210
221
 
211
222
  .top {
@@ -213,7 +224,7 @@ body {
213
224
  @include rebranded-tooltip-above();
214
225
 
215
226
  &:after {
216
- bottom: -3px;
227
+ bottom: -7px;
217
228
  }
218
229
  }
219
230
  }
@@ -223,7 +234,7 @@ body {
223
234
  @include rebranded-tooltip-below();
224
235
 
225
236
  &:after {
226
- top: -3px;
237
+ top: -7px;
227
238
  }
228
239
  }
229
240
  }
@@ -234,7 +245,7 @@ body {
234
245
  @include rebranded-tooltip-right();
235
246
 
236
247
  &:after {
237
- left: -3px;
248
+ left: -2px;
238
249
  }
239
250
  }
240
251
  }
@@ -245,7 +256,66 @@ body {
245
256
  @include rebranded-tooltip-left();
246
257
 
247
258
  &:after {
248
- right: -3px;
259
+ right: -2px;
249
260
  }
250
261
  }
251
262
  }
263
+
264
+ .definition-tooltip {
265
+ text-decoration: underline;
266
+ text-decoration-style: dashed;
267
+ text-underline-offset: 3px;
268
+ border-radius: 4px;
269
+ outline-offset: 2px;
270
+ outline-width: 2px;
271
+ width: 100% !important;
272
+ max-width: fit-content !important;
273
+ display: inline-flex;
274
+
275
+ &:focus-visible {
276
+ outline-color: $tgo-black !important;
277
+ outline-offset: 4px;
278
+ }
279
+ }
280
+
281
+ .label-definition {
282
+ &-inner {
283
+ display: flex;
284
+ font-weight: bold!important;
285
+ font-size: 12px;
286
+ line-height: 16px;
287
+ }
288
+
289
+ &-outside {
290
+ display: block;
291
+ overflow: hidden;
292
+ white-space: nowrap;
293
+ text-overflow: ellipsis;
294
+
295
+ &.tooltip-size-small {
296
+ font-size: 12px;
297
+ line-height: 14.4px;
298
+ }
299
+
300
+ &.tooltip-size-medium {
301
+ font-size: 14px;
302
+ line-height: 16.8px;
303
+ }
304
+
305
+ &.tooltip-size-large {
306
+ font-size: 16px;
307
+ line-height: 19.2px;
308
+ }
309
+ }
310
+ }
311
+
312
+ .text-definition {
313
+ font-weight: normal!important;
314
+ font-size: 12px;
315
+ line-height: 16px;
316
+ }
317
+
318
+ ui-tooltip {
319
+ width: 100%;
320
+ max-width: fit-content !important;
321
+ }
@@ -0,0 +1,8 @@
1
+ @mixin line-clamp($count) {
2
+ overflow: hidden;
3
+ -webkit-line-clamp: $count;
4
+ display: -webkit-box;
5
+ -webkit-box-orient: vertical;
6
+ text-overflow: ellipsis;
7
+ white-space: normal;
8
+ }
@@ -8,6 +8,7 @@
8
8
  @use "input.scss" as *;
9
9
  @use "button.scss" as *;
10
10
  @use "icon.scss" as *;
11
+ @use "line-clamp.scss" as *;
11
12
 
12
13
  @import url("https://fonts.googleapis.com/icon?family=Material+Icons");
13
14
 
package/public-api.d.ts CHANGED
@@ -143,3 +143,4 @@ export * from './components/side-panel/side-panel.model';
143
143
  export * from './components/side-panel/side-panel.service';
144
144
  export * from './components/checklist/checklist.component';
145
145
  export * from './components/checklist/checklist.model';
146
+ export * from './components/media-card/media-card.component';