@bravura/ui 4.0.0 → 5.0.1

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 (86) hide show
  1. package/CHANGELOG.md +587 -578
  2. package/README.md +56 -56
  3. package/esm2022/alert/alert-container.component.mjs +4 -4
  4. package/esm2022/alert/alert-message.component.mjs +4 -4
  5. package/esm2022/alert/alert.module.mjs +5 -5
  6. package/esm2022/behavior/await.directive.mjs +4 -4
  7. package/esm2022/behavior/behavior.module.mjs +5 -5
  8. package/esm2022/behavior/observe-content-class.directive.mjs +4 -4
  9. package/esm2022/behavior/sizing-monitor.directive.mjs +4 -4
  10. package/esm2022/behavior/sizing.directive.mjs +4 -4
  11. package/esm2022/clip-note/clip-note.component.mjs +4 -4
  12. package/esm2022/clip-note/clip-note.directive.mjs +4 -4
  13. package/esm2022/clip-note/clip-note.module.mjs +5 -5
  14. package/esm2022/common/common.module.mjs +5 -5
  15. package/esm2022/currency-input/currency-input.directive.mjs +4 -4
  16. package/esm2022/currency-input/currency-input.module.mjs +5 -5
  17. package/esm2022/decimal-input/decimal-input.directive.mjs +4 -4
  18. package/esm2022/decimal-input/decimal-input.module.mjs +5 -5
  19. package/esm2022/discrete-input/discrete-input.component.mjs +4 -4
  20. package/esm2022/discrete-input/discrete-input.module.mjs +5 -5
  21. package/esm2022/file-upload/file-upload.component.mjs +4 -4
  22. package/esm2022/file-upload/file-upload.module.mjs +5 -5
  23. package/esm2022/file-upload/file-upload.service.mjs +4 -4
  24. package/esm2022/form-field/form-field.component.mjs +7 -7
  25. package/esm2022/form-field/form-field.module.mjs +5 -5
  26. package/esm2022/icon-font/icon-font.module.mjs +5 -5
  27. package/esm2022/icon-font/icon.directive.mjs +4 -4
  28. package/esm2022/icon-font/utilities.mjs +1 -1
  29. package/esm2022/panel/panel-section.component.mjs +4 -4
  30. package/esm2022/panel/panel.component.mjs +4 -4
  31. package/esm2022/panel/panel.module.mjs +5 -5
  32. package/esm2022/panel/tinted.directive.mjs +4 -4
  33. package/esm2022/phone-number/phone-number.directive.mjs +4 -4
  34. package/esm2022/phone-number/phone-number.module.mjs +5 -5
  35. package/esm2022/phone-number/phone-number.pipe.mjs +4 -4
  36. package/esm2022/phone-number/phone-number.validator.mjs +4 -4
  37. package/esm2022/radio-panel/radio-panel-item.component.mjs +5 -5
  38. package/esm2022/radio-panel/radio-panel.component.mjs +4 -4
  39. package/esm2022/radio-panel/radio-panel.module.mjs +5 -5
  40. package/esm2022/selection-panel/selection-panel-item.component.mjs +4 -4
  41. package/esm2022/selection-panel/selection-panel.directive.mjs +4 -4
  42. package/esm2022/selection-panel/selection-panel.module.mjs +5 -5
  43. package/esm2022/skeletons/skeleton-loader-presets.directive.mjs +4 -4
  44. package/esm2022/skeletons/skeleton-loader.component.mjs +4 -4
  45. package/esm2022/skeletons/skeletons.module.mjs +5 -5
  46. package/esm2022/stepper/stepper.component.mjs +4 -4
  47. package/esm2022/stepper/stepper.module.mjs +5 -5
  48. package/esm2022/tooltip/tooltip.component.mjs +5 -5
  49. package/esm2022/tooltip/tooltip.directive.mjs +4 -4
  50. package/esm2022/tooltip/tooltip.module.mjs +5 -5
  51. package/fesm2022/bravura-ui-alert.mjs +10 -10
  52. package/fesm2022/bravura-ui-alert.mjs.map +1 -1
  53. package/fesm2022/bravura-ui-behavior.mjs +16 -16
  54. package/fesm2022/bravura-ui-behavior.mjs.map +1 -1
  55. package/fesm2022/bravura-ui-clip-note.mjs +10 -10
  56. package/fesm2022/bravura-ui-clip-note.mjs.map +1 -1
  57. package/fesm2022/bravura-ui-common.mjs +4 -4
  58. package/fesm2022/bravura-ui-common.mjs.map +1 -1
  59. package/fesm2022/bravura-ui-currency-input.mjs +7 -7
  60. package/fesm2022/bravura-ui-currency-input.mjs.map +1 -1
  61. package/fesm2022/bravura-ui-decimal-input.mjs +7 -7
  62. package/fesm2022/bravura-ui-decimal-input.mjs.map +1 -1
  63. package/fesm2022/bravura-ui-discrete-input.mjs +7 -7
  64. package/fesm2022/bravura-ui-discrete-input.mjs.map +1 -1
  65. package/fesm2022/bravura-ui-file-upload.mjs +10 -10
  66. package/fesm2022/bravura-ui-file-upload.mjs.map +1 -1
  67. package/fesm2022/bravura-ui-form-field.mjs +10 -10
  68. package/fesm2022/bravura-ui-form-field.mjs.map +1 -1
  69. package/fesm2022/bravura-ui-icon-font.mjs +7 -7
  70. package/fesm2022/bravura-ui-icon-font.mjs.map +1 -1
  71. package/fesm2022/bravura-ui-panel.mjs +13 -13
  72. package/fesm2022/bravura-ui-panel.mjs.map +1 -1
  73. package/fesm2022/bravura-ui-phone-number.mjs +13 -13
  74. package/fesm2022/bravura-ui-phone-number.mjs.map +1 -1
  75. package/fesm2022/bravura-ui-radio-panel.mjs +11 -11
  76. package/fesm2022/bravura-ui-radio-panel.mjs.map +1 -1
  77. package/fesm2022/bravura-ui-selection-panel.mjs +10 -10
  78. package/fesm2022/bravura-ui-selection-panel.mjs.map +1 -1
  79. package/fesm2022/bravura-ui-skeletons.mjs +10 -10
  80. package/fesm2022/bravura-ui-skeletons.mjs.map +1 -1
  81. package/fesm2022/bravura-ui-stepper.mjs +7 -7
  82. package/fesm2022/bravura-ui-stepper.mjs.map +1 -1
  83. package/fesm2022/bravura-ui-tooltip.mjs +11 -11
  84. package/fesm2022/bravura-ui-tooltip.mjs.map +1 -1
  85. package/package.json +22 -19
  86. package/theme/_ui-theme.scss +112 -112
@@ -1,112 +1,112 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
- @use './scrollbar.scss' as scrollbar;
4
- @use './bui-card' as card;
5
-
6
- $default-border-color-transition: border-color 100ms cubic-bezier(0.55, 0, 0.55, 0.2);
7
- $mat-foreground-extract: (
8
- 'secondary-text': 'light',
9
- 'hint-text': 'muted',
10
- 'divider': 'divider',
11
- 'base': 'base',
12
- 'inactive': 'inactive'
13
- );
14
-
15
- $mat-background-extract: (
16
- 'card': 'card',
17
- 'background': 'body'
18
- );
19
-
20
- @mixin apply-color($name, $color, $border-color-transition: $default-border-color-transition) {
21
- .bui-border-#{$name} {
22
- border-color: $color !important;
23
- transition: $border-color-transition;
24
- }
25
- .bui-bg-#{$name} {
26
- background-color: $color !important;
27
- }
28
- .bui-color-#{$name} {
29
- color: $color !important;
30
- }
31
- .bui-outline-#{$name} {
32
- outline-color: $color !important;
33
- }
34
- }
35
-
36
- @mixin apply-colors($theme, $border-color-transition: $default-border-color-transition) {
37
- .bui-border-emphasis:hover {
38
- border-color: currentColor !important;
39
- transition: $border-color-transition;
40
- }
41
-
42
- $color-config: mat.get-color-config($theme);
43
- @if $color-config != null {
44
- @include card.bui-card($color-config);
45
- @each $p in (primary, accent, warn) {
46
- $primary-palette: map.get($color-config, $p);
47
- $c: mat.get-color-from-palette($primary-palette, text);
48
- @include apply-color($p, $c, $border-color-transition);
49
- }
50
-
51
- $fg-original: map.get($color-config, 'foreground');
52
- $fg: map.merge(
53
- $fg-original,
54
- (
55
- inactive: rgba(map.get($fg-original, base), 0.06)
56
- )
57
- );
58
-
59
- @each $key, $name in $mat-foreground-extract {
60
- $c: map.get($fg, $key);
61
- @include apply-color($name, $c, $border-color-transition);
62
- }
63
-
64
- .bui-host {
65
- @each $p in (primary, accent, warn) {
66
- $primary-palette: map.get($color-config, $p);
67
- $c: mat.get-color-from-palette($primary-palette, text);
68
- --bui-color-#{$p}: #{$c};
69
- }
70
-
71
- @each $key, $name in $mat-foreground-extract {
72
- $c: map.get($fg, $key);
73
- --bui-color-#{$name}: #{$c};
74
- }
75
-
76
- @each $key, $name in $mat-background-extract {
77
- $bg: map.get($color-config, 'background');
78
- $c: map.get($bg, $key);
79
- --bui-bg-#{$name}: #{$c};
80
- }
81
-
82
- @if map.get($color-config, 'is-dark') == false {
83
- --bui-color-success: #519602;
84
- --bui-color-info: #0dcaf0;
85
- --bui-color-warning: #ffc107;
86
- --bui-color-error: #dc3545;
87
- }
88
- }
89
-
90
- $card-bg: map.get(map.get($color-config, 'background'), 'card');
91
- .iti__country-list {
92
- background-color: $card-bg;
93
- }
94
- }
95
- }
96
-
97
- @mixin theme($theme, $border-color-transition: $default-border-color-transition) {
98
- @include apply-colors($theme, $border-color-transition);
99
- @include scrollbar.bui-scrollbar;
100
-
101
- .mat-icon {
102
- &.fas,
103
- &.far,
104
- &.fab,
105
- &.fa {
106
- display: inline-flex;
107
- justify-content: center;
108
- align-items: center;
109
- font-size: 20px;
110
- }
111
- }
112
- }
1
+ @use 'sass:map';
2
+ @use '@angular/material' as mat;
3
+ @use './scrollbar.scss' as scrollbar;
4
+ @use './bui-card' as card;
5
+
6
+ $default-border-color-transition: border-color 100ms cubic-bezier(0.55, 0, 0.55, 0.2);
7
+ $mat-foreground-extract: (
8
+ 'secondary-text': 'light',
9
+ 'hint-text': 'muted',
10
+ 'divider': 'divider',
11
+ 'base': 'base',
12
+ 'inactive': 'inactive'
13
+ );
14
+
15
+ $mat-background-extract: (
16
+ 'card': 'card',
17
+ 'background': 'body'
18
+ );
19
+
20
+ @mixin apply-color($name, $color, $border-color-transition: $default-border-color-transition) {
21
+ .bui-border-#{$name} {
22
+ border-color: $color !important;
23
+ transition: $border-color-transition;
24
+ }
25
+ .bui-bg-#{$name} {
26
+ background-color: $color !important;
27
+ }
28
+ .bui-color-#{$name} {
29
+ color: $color !important;
30
+ }
31
+ .bui-outline-#{$name} {
32
+ outline-color: $color !important;
33
+ }
34
+ }
35
+
36
+ @mixin apply-colors($theme, $border-color-transition: $default-border-color-transition) {
37
+ .bui-border-emphasis:hover {
38
+ border-color: currentColor !important;
39
+ transition: $border-color-transition;
40
+ }
41
+
42
+ $color-config: mat.m2-get-color-config($theme);
43
+ @if $color-config != null {
44
+ @include card.bui-card($color-config);
45
+ @each $p in (primary, accent, warn) {
46
+ $primary-palette: map.get($color-config, $p);
47
+ $c: mat.m2-get-color-from-palette($primary-palette, text);
48
+ @include apply-color($p, $c, $border-color-transition);
49
+ }
50
+
51
+ $fg-original: map.get($color-config, 'foreground');
52
+ $fg: map.merge(
53
+ $fg-original,
54
+ (
55
+ inactive: rgba(map.get($fg-original, base), 0.06)
56
+ )
57
+ );
58
+
59
+ @each $key, $name in $mat-foreground-extract {
60
+ $c: map.get($fg, $key);
61
+ @include apply-color($name, $c, $border-color-transition);
62
+ }
63
+
64
+ .bui-host {
65
+ @each $p in (primary, accent, warn) {
66
+ $primary-palette: map.get($color-config, $p);
67
+ $c: mat.m2-get-color-from-palette($primary-palette, text);
68
+ --bui-color-#{$p}: #{$c};
69
+ }
70
+
71
+ @each $key, $name in $mat-foreground-extract {
72
+ $c: map.get($fg, $key);
73
+ --bui-color-#{$name}: #{$c};
74
+ }
75
+
76
+ @each $key, $name in $mat-background-extract {
77
+ $bg: map.get($color-config, 'background');
78
+ $c: map.get($bg, $key);
79
+ --bui-bg-#{$name}: #{$c};
80
+ }
81
+
82
+ @if map.get($color-config, 'is-dark') == false {
83
+ --bui-color-success: #519602;
84
+ --bui-color-info: #0dcaf0;
85
+ --bui-color-warning: #ffc107;
86
+ --bui-color-error: #dc3545;
87
+ }
88
+ }
89
+
90
+ $card-bg: map.get(map.get($color-config, 'background'), 'card');
91
+ .iti__country-list {
92
+ background-color: $card-bg;
93
+ }
94
+ }
95
+ }
96
+
97
+ @mixin theme($theme, $border-color-transition: $default-border-color-transition) {
98
+ @include apply-colors($theme, $border-color-transition);
99
+ @include scrollbar.bui-scrollbar;
100
+
101
+ .mat-icon {
102
+ &.fas,
103
+ &.far,
104
+ &.fab,
105
+ &.fa {
106
+ display: inline-flex;
107
+ justify-content: center;
108
+ align-items: center;
109
+ font-size: 20px;
110
+ }
111
+ }
112
+ }