@bravura/ui 4.0.0 → 5.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.
- package/CHANGELOG.md +239 -233
- package/README.md +56 -56
- package/esm2022/alert/alert-container.component.mjs +4 -4
- package/esm2022/alert/alert-message.component.mjs +4 -4
- package/esm2022/alert/alert.module.mjs +5 -5
- package/esm2022/behavior/await.directive.mjs +4 -4
- package/esm2022/behavior/behavior.module.mjs +5 -5
- package/esm2022/behavior/observe-content-class.directive.mjs +4 -4
- package/esm2022/behavior/sizing-monitor.directive.mjs +4 -4
- package/esm2022/behavior/sizing.directive.mjs +4 -4
- package/esm2022/clip-note/clip-note.component.mjs +4 -4
- package/esm2022/clip-note/clip-note.directive.mjs +4 -4
- package/esm2022/clip-note/clip-note.module.mjs +5 -5
- package/esm2022/common/common.module.mjs +5 -5
- package/esm2022/currency-input/currency-input.directive.mjs +4 -4
- package/esm2022/currency-input/currency-input.module.mjs +5 -5
- package/esm2022/decimal-input/decimal-input.directive.mjs +4 -4
- package/esm2022/decimal-input/decimal-input.module.mjs +5 -5
- package/esm2022/discrete-input/discrete-input.component.mjs +4 -4
- package/esm2022/discrete-input/discrete-input.module.mjs +5 -5
- package/esm2022/file-upload/file-upload.component.mjs +4 -4
- package/esm2022/file-upload/file-upload.module.mjs +5 -5
- package/esm2022/file-upload/file-upload.service.mjs +4 -4
- package/esm2022/form-field/form-field.component.mjs +7 -7
- package/esm2022/form-field/form-field.module.mjs +5 -5
- package/esm2022/icon-font/icon-font.module.mjs +5 -5
- package/esm2022/icon-font/icon.directive.mjs +4 -4
- package/esm2022/icon-font/utilities.mjs +1 -1
- package/esm2022/panel/panel-section.component.mjs +4 -4
- package/esm2022/panel/panel.component.mjs +4 -4
- package/esm2022/panel/panel.module.mjs +5 -5
- package/esm2022/panel/tinted.directive.mjs +4 -4
- package/esm2022/phone-number/phone-number.directive.mjs +4 -4
- package/esm2022/phone-number/phone-number.module.mjs +5 -5
- package/esm2022/phone-number/phone-number.pipe.mjs +4 -4
- package/esm2022/phone-number/phone-number.validator.mjs +4 -4
- package/esm2022/radio-panel/radio-panel-item.component.mjs +5 -5
- package/esm2022/radio-panel/radio-panel.component.mjs +4 -4
- package/esm2022/radio-panel/radio-panel.module.mjs +5 -5
- package/esm2022/selection-panel/selection-panel-item.component.mjs +4 -4
- package/esm2022/selection-panel/selection-panel.directive.mjs +4 -4
- package/esm2022/selection-panel/selection-panel.module.mjs +5 -5
- package/esm2022/skeletons/skeleton-loader-presets.directive.mjs +4 -4
- package/esm2022/skeletons/skeleton-loader.component.mjs +4 -4
- package/esm2022/skeletons/skeletons.module.mjs +5 -5
- package/esm2022/stepper/stepper.component.mjs +4 -4
- package/esm2022/stepper/stepper.module.mjs +5 -5
- package/esm2022/tooltip/tooltip.component.mjs +5 -5
- package/esm2022/tooltip/tooltip.directive.mjs +4 -4
- package/esm2022/tooltip/tooltip.module.mjs +5 -5
- package/fesm2022/bravura-ui-alert.mjs +10 -10
- package/fesm2022/bravura-ui-alert.mjs.map +1 -1
- package/fesm2022/bravura-ui-behavior.mjs +16 -16
- package/fesm2022/bravura-ui-behavior.mjs.map +1 -1
- package/fesm2022/bravura-ui-clip-note.mjs +10 -10
- package/fesm2022/bravura-ui-clip-note.mjs.map +1 -1
- package/fesm2022/bravura-ui-common.mjs +4 -4
- package/fesm2022/bravura-ui-common.mjs.map +1 -1
- package/fesm2022/bravura-ui-currency-input.mjs +7 -7
- package/fesm2022/bravura-ui-currency-input.mjs.map +1 -1
- package/fesm2022/bravura-ui-decimal-input.mjs +7 -7
- package/fesm2022/bravura-ui-decimal-input.mjs.map +1 -1
- package/fesm2022/bravura-ui-discrete-input.mjs +7 -7
- package/fesm2022/bravura-ui-discrete-input.mjs.map +1 -1
- package/fesm2022/bravura-ui-file-upload.mjs +10 -10
- package/fesm2022/bravura-ui-file-upload.mjs.map +1 -1
- package/fesm2022/bravura-ui-form-field.mjs +10 -10
- package/fesm2022/bravura-ui-form-field.mjs.map +1 -1
- package/fesm2022/bravura-ui-icon-font.mjs +7 -7
- package/fesm2022/bravura-ui-icon-font.mjs.map +1 -1
- package/fesm2022/bravura-ui-panel.mjs +13 -13
- package/fesm2022/bravura-ui-panel.mjs.map +1 -1
- package/fesm2022/bravura-ui-phone-number.mjs +13 -13
- package/fesm2022/bravura-ui-phone-number.mjs.map +1 -1
- package/fesm2022/bravura-ui-radio-panel.mjs +11 -11
- package/fesm2022/bravura-ui-radio-panel.mjs.map +1 -1
- package/fesm2022/bravura-ui-selection-panel.mjs +10 -10
- package/fesm2022/bravura-ui-selection-panel.mjs.map +1 -1
- package/fesm2022/bravura-ui-skeletons.mjs +10 -10
- package/fesm2022/bravura-ui-skeletons.mjs.map +1 -1
- package/fesm2022/bravura-ui-stepper.mjs +7 -7
- package/fesm2022/bravura-ui-stepper.mjs.map +1 -1
- package/fesm2022/bravura-ui-tooltip.mjs +11 -11
- package/fesm2022/bravura-ui-tooltip.mjs.map +1 -1
- package/package.json +41 -41
- package/theme/_ui-theme.scss +112 -112
package/theme/_ui-theme.scss
CHANGED
|
@@ -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
|
+
}
|