@bravura/ui 1.7.2 → 1.10.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 +17 -0
- package/behavior/await.directive.d.ts +60 -0
- package/behavior/behavior.module.d.ts +5 -2
- package/behavior/public-api.d.ts +1 -0
- package/behavior/sizing.directive.d.ts +12 -6
- package/bundles/bravura-ui-behavior.umd.js +161 -23
- package/bundles/bravura-ui-behavior.umd.js.map +1 -1
- package/bundles/bravura-ui-discrete-input.umd.js +2 -2
- package/bundles/bravura-ui-discrete-input.umd.js.map +1 -1
- package/bundles/bravura-ui-form-field.umd.js +2 -2
- package/bundles/bravura-ui-form-field.umd.js.map +1 -1
- package/bundles/bravura-ui-radio-panel.umd.js +2 -2
- package/bundles/bravura-ui-radio-panel.umd.js.map +1 -1
- package/bundles/bravura-ui-selection-panel.umd.js +7 -5
- package/bundles/bravura-ui-selection-panel.umd.js.map +1 -1
- package/bundles/bravura-ui-tooltip.umd.js +2 -1
- package/bundles/bravura-ui-tooltip.umd.js.map +1 -1
- package/esm2015/behavior/await.directive.js +106 -0
- package/esm2015/behavior/behavior.module.js +9 -6
- package/esm2015/behavior/public-api.js +2 -1
- package/esm2015/behavior/sizing.directive.js +42 -14
- package/esm2015/discrete-input/discrete-input.component.js +3 -3
- package/esm2015/form-field/form-field.component.js +3 -3
- package/esm2015/radio-panel/radio-panel.directive.js +3 -3
- package/esm2015/selection-panel/selection-panel-item.component.js +2 -2
- package/esm2015/selection-panel/selection-panel.directive.js +4 -3
- package/esm2015/selection-panel/selection-panel.module.js +4 -3
- package/esm2015/tooltip/tooltip.component.js +3 -2
- package/fesm2015/bravura-ui-behavior.js +151 -19
- package/fesm2015/bravura-ui-behavior.js.map +1 -1
- package/fesm2015/bravura-ui-discrete-input.js +2 -2
- package/fesm2015/bravura-ui-discrete-input.js.map +1 -1
- package/fesm2015/bravura-ui-form-field.js +2 -2
- package/fesm2015/bravura-ui-form-field.js.map +1 -1
- package/fesm2015/bravura-ui-radio-panel.js +2 -2
- package/fesm2015/bravura-ui-radio-panel.js.map +1 -1
- package/fesm2015/bravura-ui-selection-panel.js +7 -5
- package/fesm2015/bravura-ui-selection-panel.js.map +1 -1
- package/fesm2015/bravura-ui-tooltip.js +2 -1
- package/fesm2015/bravura-ui-tooltip.js.map +1 -1
- package/package.json +1 -1
- package/selection-panel/selection-panel-item.component.d.ts +1 -1
- package/selection-panel/selection-panel.module.d.ts +1 -1
- package/theme/_ui-theme.scss +39 -11
package/theme/_ui-theme.scss
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
@use '~@angular/material' as mat;
|
|
3
3
|
|
|
4
4
|
$default-border-color-transition: border-color 100ms cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
5
|
+
$mat-foreground-extract: (
|
|
6
|
+
'secondary-text': 'light',
|
|
7
|
+
'hint-text': 'muted'
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
@mixin apply-color($name, $color, $border-color-transition: $default-border-color-transition) {
|
|
11
|
+
.bui-border-#{$name} {
|
|
12
|
+
border-color: $color !important;
|
|
13
|
+
transition: $border-color-transition;
|
|
14
|
+
}
|
|
15
|
+
.bui-bg-#{$name} {
|
|
16
|
+
background-color: $color !important;
|
|
17
|
+
}
|
|
18
|
+
.bui-color-#{$name} {
|
|
19
|
+
color: $color !important;
|
|
20
|
+
}
|
|
21
|
+
.bui-outline-#{$name} {
|
|
22
|
+
outline-color: $color !important;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
5
25
|
|
|
6
26
|
@mixin apply-colors($theme, $border-color-transition: $default-border-color-transition) {
|
|
7
27
|
.bui-border-emphasis:hover {
|
|
@@ -14,18 +34,26 @@ $default-border-color-transition: border-color 100ms cubic-bezier(0.55, 0, 0.55,
|
|
|
14
34
|
@each $p in (primary, accent, warn) {
|
|
15
35
|
$primary-palette: map.get($color-config, $p);
|
|
16
36
|
$c: mat.get-color-from-palette($primary-palette, text);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
37
|
+
@include apply-color($p, $c, $border-color-transition);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@each $key, $name in $mat-foreground-extract {
|
|
41
|
+
$fg: map.get($color-config, 'foreground');
|
|
42
|
+
$c: map.get($fg, $key);
|
|
43
|
+
@include apply-color($name, $c, $border-color-transition);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.bui-host {
|
|
47
|
+
@each $p in (primary, accent, warn) {
|
|
48
|
+
$primary-palette: map.get($color-config, $p);
|
|
49
|
+
$c: mat.get-color-from-palette($primary-palette, text);
|
|
50
|
+
--bui-color-#{$p}: #{$c};
|
|
26
51
|
}
|
|
27
|
-
|
|
28
|
-
|
|
52
|
+
|
|
53
|
+
@each $key, $name in $mat-foreground-extract {
|
|
54
|
+
$fg: map.get($color-config, 'foreground');
|
|
55
|
+
$c: map.get($fg, $key);
|
|
56
|
+
--bui-color-#{$name}: #{$c};
|
|
29
57
|
}
|
|
30
58
|
}
|
|
31
59
|
}
|