@odx/ui 6.2.1 → 7.0.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 (40) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/README.md +8 -2
  3. package/ag-grid-theme.css +1 -1
  4. package/core-theme.css +1 -1
  5. package/package.json +3 -3
  6. package/scss/3rdparty/ag-grid/theme.scss +243 -55
  7. package/scss/_breakpoints.scss +1 -0
  8. package/scss/_utils.scss +3 -3
  9. package/scss/abstract/_breakpoints.scss +1 -0
  10. package/scss/abstract/_typography.scss +1 -1
  11. package/scss/abstract/_utils.scss +3 -3
  12. package/scss/ag-grid/theme.scss +243 -55
  13. package/scss/breadcrumbs.component.scss +10 -6
  14. package/scss/button.component.scss +2 -2
  15. package/scss/calendar.component.scss +2 -2
  16. package/scss/components/breadcrumbs.component.scss +10 -6
  17. package/scss/components/button.component.scss +2 -2
  18. package/scss/components/calendar.component.scss +2 -2
  19. package/scss/components/form-field.component.scss +2 -2
  20. package/scss/components/icon.component.scss +4 -4
  21. package/scss/components/logo.component.scss +1 -1
  22. package/scss/components/main-menu.component.scss +1 -1
  23. package/scss/components/menu.component.scss +1 -1
  24. package/scss/components/paginator.component.scss +2 -2
  25. package/scss/form-field.component.scss +2 -2
  26. package/scss/icon.component.scss +4 -4
  27. package/scss/logo.component.scss +1 -1
  28. package/scss/main-menu.component.scss +1 -1
  29. package/scss/menu.component.scss +1 -1
  30. package/scss/paginator.component.scss +2 -2
  31. package/scss/theme.scss +243 -55
  32. package/scss/assets/fonts/draeger-pangea-text-medium.woff2 +0 -0
  33. package/scss/assets/fonts/draeger-pangea-text-regular.woff2 +0 -0
  34. package/scss/assets/fonts/draeger-pangea-text-semibold.woff2 +0 -0
  35. package/scss/assets/images/favicon-16x16.png +0 -0
  36. package/scss/assets/images/favicon-16x16.svg +0 -1
  37. package/scss/assets/images/favicon-32x32.png +0 -0
  38. package/scss/assets/images/favicon-32x32.svg +0 -1
  39. package/scss/assets/images/favicon.ico +0 -0
  40. package/scss/assets/images/logo.svg +0 -6
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "6.2.1",
3
+ "version": "7.0.0",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
7
7
  "@odx/icons": "*"
8
8
  },
9
9
  "devDependencies": {
10
- "autoprefixer": "10.4.21",
11
- "cssnano": "7.0.6",
10
+ "autoprefixer": "10.4.22",
11
+ "cssnano": "7.1.2",
12
12
  "postcss-hover-media-feature": "1.0.2",
13
13
  "sass": "1.86.0",
14
14
  "vite": "6.2.4",
@@ -1,9 +1,9 @@
1
- @use '@odx/icons/core/core-utils' as icons;
2
1
  @use '../../abstract/dimensions';
3
2
  @use '../../abstract/typography';
4
3
  @use '../../abstract/motion';
5
4
  @use '../../abstract/utils';
6
5
  @use 'sass:math';
6
+ @use '@odx/icons/scss' as odxIcons;
7
7
 
8
8
  .ag-theme-odx {
9
9
  --ag-border-color: var(--odx-c-separator);
@@ -21,60 +21,6 @@
21
21
  --ag-font-family: var(--odx-typography-font-family);
22
22
  --ag-font-size: var(--odx-typography-base-size);
23
23
 
24
- --ag-icon-size: #{typography.get-font-size(1)};
25
- --ag-icon-font-family: #{icons.get-font-family()};
26
- --ag-icon-font-code-aggregation: '#{icons.get-icon-glyph(aggregation)}';
27
- --ag-icon-font-code-arrows: '#{icons.get-icon-glyph(chevrons)}';
28
- --ag-icon-font-code-asc: '#{icons.get-icon-glyph(ascending)}';
29
- --ag-icon-font-code-cancel: '#{icons.get-icon-glyph(close)}';
30
- --ag-icon-font-code-chart: '#{icons.get-icon-glyph(placeholder)}';
31
- --ag-icon-font-code-checkbox-checked: '#{icons.get-icon-glyph(check)}';
32
- --ag-icon-font-code-checkbox-indeterminate: '#{icons.get-icon-glyph(minus)}';
33
- --ag-icon-font-code-checkbox-unchecked: '';
34
- --ag-icon-font-code-color-picker: '#{icons.get-icon-glyph(colorpicker)}';
35
- --ag-icon-font-code-columns: '#{icons.get-icon-glyph(column)}';
36
- --ag-icon-font-code-contracted: '#{icons.get-icon-glyph(chevron-right)}';
37
- --ag-icon-font-code-copy: '#{icons.get-icon-glyph(copy-content)}';
38
- --ag-icon-font-code-cut: '#{icons.get-icon-glyph(cut)}';
39
- --ag-icon-font-code-cross: '#{icons.get-icon-glyph(close)}';
40
- --ag-icon-font-code-csv: '#{icons.get-icon-glyph(file)}';
41
- --ag-icon-font-code-desc: '#{icons.get-icon-glyph(descending)}';
42
- --ag-icon-font-code-excel: '#{icons.get-icon-glyph(file-excel)}';
43
- --ag-icon-font-code-expanded: '#{icons.get-icon-glyph(chevron-left)}';
44
- --ag-icon-font-code-eye-slash: '#{icons.get-icon-glyph(view-off)}';
45
- --ag-icon-font-code-eye: '#{icons.get-icon-glyph(view)}';
46
- --ag-icon-font-code-filter: '#{icons.get-icon-glyph(filter)}';
47
- --ag-icon-font-code-first: '#{icons.get-icon-glyph(chevron-left-end)}';
48
- --ag-icon-font-code-grip: '#{icons.get-icon-glyph(placeholder)}';
49
- --ag-icon-font-code-group: '#{icons.get-icon-glyph(group)}';
50
- --ag-icon-font-code-last: '#{icons.get-icon-glyph(chevron-right-end)}';
51
- --ag-icon-font-code-left: '#{icons.get-icon-glyph(arrow-left)}';
52
- --ag-icon-font-code-linked: '#{icons.get-icon-glyph(placeholder)}';
53
- --ag-icon-font-code-loading: '#{icons.get-icon-glyph(loading)}';
54
- --ag-icon-font-code-maximize: '#{icons.get-icon-glyph(maximize)}';
55
- --ag-icon-font-code-menu: '#{icons.get-icon-glyph(menu)}';
56
- --ag-icon-font-code-minimize: '#{icons.get-icon-glyph(minimize)}';
57
- --ag-icon-font-code-next: '#{icons.get-icon-glyph(chevron-right)}';
58
- --ag-icon-font-code-none: '#{icons.get-icon-glyph(sortable)}';
59
- --ag-icon-font-code-not-allowed: '#{icons.get-icon-glyph(blocked)}';
60
- --ag-icon-font-code-paste: '#{icons.get-icon-glyph(paste)}';
61
- --ag-icon-font-code-pin: '#{icons.get-icon-glyph(pin)}';
62
- --ag-icon-font-code-pivot: '#{icons.get-icon-glyph(placeholder)}';
63
- --ag-icon-font-code-previous: '#{icons.get-icon-glyph(chevron-left)}';
64
- --ag-icon-font-code-radio-button-off: '';
65
- --ag-icon-font-code-radio-button-on: '';
66
- --ag-icon-font-code-right: '#{icons.get-icon-glyph(arrow-right)}';
67
- --ag-icon-font-code-save: '#{icons.get-icon-glyph(save)}';
68
- --ag-icon-font-code-small-down: '#{icons.get-icon-glyph(chevron-down)}';
69
- --ag-icon-font-code-small-left: '#{icons.get-icon-glyph(chevron-left)}';
70
- --ag-icon-font-code-small-right: '#{icons.get-icon-glyph(chevron-right)}';
71
- --ag-icon-font-code-small-up: '#{icons.get-icon-glyph(chevron-up)}';
72
- --ag-icon-font-code-tick: '#{icons.get-icon-glyph(check)}';
73
- --ag-icon-font-code-tree-closed: '#{icons.get-icon-glyph(chevron-right)}';
74
- --ag-icon-font-code-tree-indeterminate: '#{icons.get-icon-glyph(minus)}';
75
- --ag-icon-font-code-tree-open: '#{icons.get-icon-glyph(chevron-down)}';
76
- --ag-icon-font-code-unlinked: '#{icons.get-icon-glyph(placeholder)}';
77
-
78
24
  --ag-grid-size: #{dimensions.get-size(0.25)};
79
25
  --ag-widget-vertical-spacing: #{dimensions.get-size(0.5)};
80
26
 
@@ -83,6 +29,8 @@
83
29
  --ag-table-line-height: #{dimensions.get-size(1.5)};
84
30
  --ag-list-item-height: #{dimensions.get-size(1.5)};
85
31
 
32
+ --ag-icon-size: var(--odx-size-125);
33
+
86
34
  input[class^='ag-'][type='text'] {
87
35
  background: var(--gray-100);
88
36
  border: var(--ag-borders-critical) var(--gray100);
@@ -380,4 +328,244 @@
380
328
  }
381
329
  }
382
330
  }
331
+
332
+ .ag-disabled {
333
+ --ag-icon-font-color: var(--ag-disabled-foreground-color);
334
+ }
335
+
336
+ .ag-icon {
337
+ &::before,
338
+ &::after {
339
+ content: none;
340
+ }
341
+
342
+ &-aggregation {
343
+ @include odxIcons.icon('core::aggregation');
344
+ }
345
+
346
+ &-arrows {
347
+ @include odxIcons.icon('core::chevrons');
348
+ }
349
+
350
+ &-asc {
351
+ @include odxIcons.icon('core::ascending');
352
+ }
353
+
354
+ &-cancel {
355
+ @include odxIcons.icon('core::cancel');
356
+ }
357
+
358
+ &-chart {
359
+ @include odxIcons.icon('core::bar-chart');
360
+ }
361
+
362
+ &-chevron-up {
363
+ @include odxIcons.icon('core::chevron-up');
364
+ }
365
+
366
+ &-chevron-down {
367
+ @include odxIcons.icon('core::chevron-down');
368
+ }
369
+
370
+ &-chevron-left {
371
+ @include odxIcons.icon('core::chevron-left');
372
+ }
373
+
374
+ &-chevron-right {
375
+ @include odxIcons.icon('core::chevron-right');
376
+ }
377
+
378
+ &-color-picker {
379
+ @include odxIcons.icon('core::colorpicker');
380
+ }
381
+
382
+ &-columns {
383
+ @include odxIcons.icon('core::column');
384
+ }
385
+
386
+ &-contracted {
387
+ @include odxIcons.icon('core::chevron-right');
388
+ }
389
+
390
+ &-copy {
391
+ @include odxIcons.icon('core::copy-content');
392
+ }
393
+
394
+ &-cut {
395
+ @include odxIcons.icon('core::cut');
396
+ }
397
+
398
+ &-cross {
399
+ @include odxIcons.icon('core::close');
400
+ }
401
+
402
+ &-csv {
403
+ @include odxIcons.icon('core::file-csv');
404
+ }
405
+
406
+ &-desc {
407
+ @include odxIcons.icon('core::descending');
408
+ }
409
+
410
+ &-down {
411
+ @include odxIcons.icon('core::arrow-down');
412
+ }
413
+
414
+ &-edit {
415
+ @include odxIcons.icon('core::edit');
416
+ }
417
+
418
+ &-excel {
419
+ @include odxIcons.icon('core::file-excel');
420
+ }
421
+
422
+ &-expanded {
423
+ @include odxIcons.icon('core::chevron-left');
424
+ }
425
+
426
+ &-eye-slash {
427
+ @include odxIcons.icon('core::view-off');
428
+ }
429
+
430
+ &-eye {
431
+ @include odxIcons.icon('core::view');
432
+ }
433
+
434
+ &-filter {
435
+ @include odxIcons.icon('core::filter');
436
+ }
437
+
438
+ &-first {
439
+ @include odxIcons.icon('core::chevron-left-end');
440
+ }
441
+
442
+ &-grip {
443
+ @include odxIcons.icon('core::rearrange');
444
+ }
445
+
446
+ &-group {
447
+ @include odxIcons.icon('core::group');
448
+ }
449
+
450
+ &-last {
451
+ @include odxIcons.icon('core::chevron-right-end');
452
+ }
453
+
454
+ &-left {
455
+ @include odxIcons.icon('core::arrow-left');
456
+ }
457
+
458
+ &-linked {
459
+ @include odxIcons.icon('core::link');
460
+ }
461
+
462
+ &-loading {
463
+ @include odxIcons.icon('core::loading');
464
+ }
465
+
466
+ &-maximize {
467
+ @include odxIcons.icon('core::maximize');
468
+ }
469
+
470
+ &-menu {
471
+ @include odxIcons.icon('core::menu');
472
+ }
473
+
474
+ &-menu-alt {
475
+ @include odxIcons.icon('core::more');
476
+ }
477
+
478
+ &-minimize {
479
+ @include odxIcons.icon('core::minimize');
480
+ }
481
+
482
+ &-minus {
483
+ @include odxIcons.icon('core::minus');
484
+ }
485
+
486
+ &-next {
487
+ @include odxIcons.icon('core::chevron-right');
488
+ }
489
+
490
+ &-none {
491
+ @include odxIcons.icon('core::sortable');
492
+ }
493
+
494
+ &-not-allowed {
495
+ @include odxIcons.icon('core::error');
496
+ }
497
+
498
+ &-paste {
499
+ @include odxIcons.icon('core::paste');
500
+ }
501
+
502
+ &-pin {
503
+ @include odxIcons.icon('core::pin');
504
+ }
505
+
506
+ &-pivot {
507
+ @include odxIcons.icon('core::table');
508
+ }
509
+
510
+ &-plus {
511
+ @include odxIcons.icon('core::plus');
512
+ }
513
+
514
+ &-previous {
515
+ @include odxIcons.icon('core::chevron-left');
516
+ }
517
+
518
+ &-right {
519
+ @include odxIcons.icon('core::arrow-right');
520
+ }
521
+
522
+ &-save {
523
+ @include odxIcons.icon('core::save');
524
+ }
525
+
526
+ &-small-down {
527
+ @include odxIcons.icon('core::chevron-down');
528
+ }
529
+
530
+ &-small-left {
531
+ @include odxIcons.icon('core::chevron-left');
532
+ }
533
+
534
+ &-small-right {
535
+ @include odxIcons.icon('core::chevron-right');
536
+ }
537
+
538
+ &-small-up {
539
+ @include odxIcons.icon('core::chevron-up');
540
+ }
541
+
542
+ &-tick {
543
+ @include odxIcons.icon('core::check');
544
+ }
545
+
546
+ &-tree-closed {
547
+ @include odxIcons.icon('core::chevron-right');
548
+ }
549
+
550
+ &-tree-indeterminate {
551
+ @include odxIcons.icon('core::minus');
552
+ }
553
+
554
+ &-tree-open {
555
+ @include odxIcons.icon('core::chevron-down');
556
+ }
557
+
558
+ &-unlinked {
559
+ @include odxIcons.icon('core::link-off');
560
+ }
561
+
562
+ &-up {
563
+ @include odxIcons.icon('core::arrow-up');
564
+ }
565
+
566
+ background: unset;
567
+ block-size: var(--ag-icon-size);
568
+ display: flex;
569
+ inline-size: var(--ag-icon-size);
570
+ }
383
571
  }
@@ -1,3 +1,4 @@
1
+ /* stylelint-disable container-name-pattern */
1
2
  /* stylelint-disable block-closing-brace-newline-after */
2
3
  @use 'sass:list';
3
4
  @use 'sass:map';
package/scss/_utils.scss CHANGED
@@ -54,7 +54,7 @@
54
54
  @mixin visually-hidden() {
55
55
  appearance: none;
56
56
  border: 0;
57
- clip: rect(0 0 0 0);
57
+ clip-path: rect(0 0 0 0);
58
58
  height: 1px;
59
59
  left: 0;
60
60
  margin: -1px;
@@ -116,11 +116,11 @@
116
116
  }
117
117
 
118
118
  @mixin interactive($with-box-shadow: true, $focus-within: false) {
119
- @include focus-state($with-box-shadow, $focus-within);
120
-
121
119
  cursor: pointer;
122
120
  user-select: none;
123
121
 
122
+ @include focus-state($with-box-shadow, $focus-within);
123
+
124
124
  &:disabled,
125
125
  &.is-disabled {
126
126
  @include non-interactive();
@@ -1,3 +1,4 @@
1
+ /* stylelint-disable container-name-pattern */
1
2
  /* stylelint-disable block-closing-brace-newline-after */
2
3
  @use 'sass:list';
3
4
  @use 'sass:map';
@@ -23,7 +23,7 @@
23
23
  }
24
24
 
25
25
  @mixin line-clamp($value) {
26
- -webkit-box-orient: block-axis;
26
+ -webkit-box-orient: vertical;
27
27
  display: -webkit-box;
28
28
  -webkit-line-clamp: $value;
29
29
  overflow-y: clip;
@@ -54,7 +54,7 @@
54
54
  @mixin visually-hidden() {
55
55
  appearance: none;
56
56
  border: 0;
57
- clip: rect(0 0 0 0);
57
+ clip-path: rect(0 0 0 0);
58
58
  height: 1px;
59
59
  left: 0;
60
60
  margin: -1px;
@@ -116,11 +116,11 @@
116
116
  }
117
117
 
118
118
  @mixin interactive($with-box-shadow: true, $focus-within: false) {
119
- @include focus-state($with-box-shadow, $focus-within);
120
-
121
119
  cursor: pointer;
122
120
  user-select: none;
123
121
 
122
+ @include focus-state($with-box-shadow, $focus-within);
123
+
124
124
  &:disabled,
125
125
  &.is-disabled {
126
126
  @include non-interactive();