@revikornmann/muka-ui 0.39.0 → 0.41.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.
Files changed (30) hide show
  1. package/dist/cjs/components/Breadcrumb/Breadcrumb.css +28 -0
  2. package/dist/cjs/components/Breadcrumb/Breadcrumb.js +2 -1
  3. package/dist/cjs/components/Breadcrumb/Breadcrumb.js.map +1 -1
  4. package/dist/cjs/components/PlanningGantt/PlanningGantt.css +58 -0
  5. package/dist/cjs/components/PlanningGantt/PlanningGantt.js +5 -3
  6. package/dist/cjs/components/PlanningGantt/PlanningGantt.js.map +1 -1
  7. package/dist/cjs/components/ProfileBadge/ProfileBadge.js +15 -8
  8. package/dist/cjs/components/ProfileBadge/ProfileBadge.js.map +1 -1
  9. package/dist/esm/components/Breadcrumb/Breadcrumb.css +28 -0
  10. package/dist/esm/components/Breadcrumb/Breadcrumb.js +2 -1
  11. package/dist/esm/components/Breadcrumb/Breadcrumb.js.map +1 -1
  12. package/dist/esm/components/PlanningGantt/PlanningGantt.css +58 -0
  13. package/dist/esm/components/PlanningGantt/PlanningGantt.js +6 -4
  14. package/dist/esm/components/PlanningGantt/PlanningGantt.js.map +1 -1
  15. package/dist/esm/components/ProfileBadge/ProfileBadge.js +12 -7
  16. package/dist/esm/components/ProfileBadge/ProfileBadge.js.map +1 -1
  17. package/dist/styles/components/Breadcrumb.css +28 -0
  18. package/dist/styles/components/PlanningGantt.css +58 -0
  19. package/dist/styles/index.css +1766 -1680
  20. package/dist/styles/muka-dark.css +1766 -1680
  21. package/dist/styles/muka-light.css +1766 -1680
  22. package/dist/styles/wireframe-dark.css +1766 -1680
  23. package/dist/styles/wireframe-light.css +1766 -1680
  24. package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +7 -0
  25. package/dist/types/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  26. package/dist/types/components/PlanningGantt/PlanningGantt.d.ts +13 -0
  27. package/dist/types/components/PlanningGantt/PlanningGantt.d.ts.map +1 -1
  28. package/dist/types/components/ProfileBadge/ProfileBadge.d.ts +10 -5
  29. package/dist/types/components/ProfileBadge/ProfileBadge.d.ts.map +1 -1
  30. package/package.json +1 -1
@@ -294,6 +294,26 @@
294
294
  flex: none;
295
295
  }
296
296
 
297
+ /* Label and, optionally, a supporting line under it */
298
+ .muka-gantt__bar-text {
299
+ display: flex;
300
+ flex: 1 1 auto;
301
+ flex-direction: column;
302
+ min-width: 0;
303
+ }
304
+
305
+ .muka-gantt__bar-sublabel {
306
+ min-width: 0;
307
+ overflow: hidden;
308
+ text-overflow: ellipsis;
309
+ white-space: nowrap;
310
+ color: var(--color-text-subtle-default);
311
+ font-family: var(--text-body-xs-regular-fontFamily);
312
+ font-weight: var(--text-body-xs-regular-fontWeight);
313
+ font-size: var(--text-body-xs-regular-fontSize);
314
+ line-height: var(--text-body-xs-regular-lineHeight);
315
+ }
316
+
297
317
  .muka-gantt__bar-label {
298
318
  min-width: 0;
299
319
  overflow: hidden;
@@ -301,6 +321,38 @@
301
321
  white-space: nowrap;
302
322
  }
303
323
 
324
+ /* Task names in the bars: wrap to at most two lines; the bar grows with them */
325
+ .muka-gantt--labels-hidden .muka-gantt__bar-label {
326
+ display: -webkit-box;
327
+ -webkit-box-orient: vertical;
328
+ -webkit-line-clamp: 2;
329
+ line-clamp: 2;
330
+ white-space: normal;
331
+ /* Break between words, never inside one; hyphenate where the page's
332
+ language allows it, and clip a word that still doesn't fit. */
333
+ overflow-wrap: normal;
334
+ word-break: normal;
335
+ hyphens: auto;
336
+ }
337
+
338
+ /* Hidden task column: the label stays the row's accessible name, off screen */
339
+ .muka-gantt--labels-hidden .muka-gantt__row {
340
+ position: relative;
341
+ grid-template-columns: minmax(0, 1fr);
342
+ }
343
+
344
+ .muka-gantt--labels-hidden .muka-gantt__label {
345
+ position: absolute;
346
+ width: 1px;
347
+ height: 1px;
348
+ margin: -1px;
349
+ padding: 0;
350
+ overflow: hidden;
351
+ clip: rect(0, 0, 0, 0);
352
+ white-space: nowrap;
353
+ border: 0;
354
+ }
355
+
304
356
  .muka-gantt__bar-badge {
305
357
  flex: none;
306
358
  display: inline-flex;
@@ -333,4 +385,10 @@
333
385
  .muka-gantt__week-label {
334
386
  min-width: 0;
335
387
  }
388
+
389
+ /* Task names in narrow bars: the text gets the whole bar, the status icon
390
+ goes (the bar's accessible name and the legend still carry it). */
391
+ .muka-gantt--labels-hidden .muka-gantt__bar-icon {
392
+ display: none;
393
+ }
336
394
  }