@juice-js/tenants 1.2.1 → 1.3.0-alpha.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juice-js/tenants",
3
- "version": "1.2.1",
3
+ "version": "1.3.0-alpha.1",
4
4
  "description": "Juice tenants admin module",
5
5
  "author": {
6
6
  "name": "jack@creatorflow.io"
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@juice-js/core": "^1.2.0",
23
- "@juice-js/dict-builder": "1.2.1"
23
+ "@juice-js/dict-builder": "1.3.0-alpha.1"
24
24
  },
25
25
  "exports": {
26
26
  ".": {
@@ -40,5 +40,5 @@
40
40
  "typings": "types/juice-js-tenants.d.ts",
41
41
  "type": "module",
42
42
  "readme": "ERROR: No README data found!",
43
- "_id": "@juice-js/tenants@1.2.1"
43
+ "_id": "@juice-js/tenants@1.3.0-alpha.1"
44
44
  }
@@ -1,6 +1,39 @@
1
1
  @use 'sass:map';
2
2
  @use '@angular/material' as mat;
3
3
 
4
+ /// The tenants pages' classes for Material 3 apps, from the system colours and juice-layout's --juice-* tokens: include
5
+ /// it once, after `layout.theme()`. They follow the layout's palette, light and dark, so no theme is passed. Without the
6
+ /// layout's tokens (another layout on Material 3), "success" falls back to Material's green.
7
+ @mixin component-styles() {
8
+ $ok: var(--juice-ok, light-dark(#2e7d32, #81c784));
9
+ $ok-bg: var(--juice-ok-bg, light-dark(#e3efe3, #2e4a30));
10
+ .inherited { color: var(--mat-sys-on-surface-variant); }
11
+ .overridden { color: var(--mat-sys-tertiary); }
12
+
13
+ .bg-accent { background-color: var(--mat-sys-tertiary-container) !important; }
14
+ .bg-warn { background-color: var(--mat-sys-error-container) !important; }
15
+ .bg-success { background-color: $ok-bg !important; }
16
+
17
+ .color-warn {
18
+ color: var(--mat-sys-error) !important;
19
+ .mdc-list-item__primary-text,
20
+ &.mat-mdc-menu-item .mat-icon-no-color { color: var(--mat-sys-error) !important; }
21
+ }
22
+ .color-success {
23
+ color: $ok !important;
24
+ .mdc-list-item__primary-text,
25
+ &.mat-mdc-menu-item .mat-icon-no-color { color: $ok !important; }
26
+ }
27
+
28
+ .mat-success.mat-mdc-raised-button:not(:disabled) { background-color: $ok !important; }
29
+
30
+ .mat-form-field-hide-placeholder .mat-mdc-select-placeholder {
31
+ color: var(--mat-select-placeholder-text-color);
32
+ -webkit-text-fill-color: var(--mat-select-placeholder-text-color);
33
+ }
34
+ }
35
+
36
+ /// Material 2 (1.x): the same classes from an M2 theme, under each theme's selector.
4
37
  @mixin component-themes($theme){
5
38
  // Get the color config from the theme.
6
39
  $color-config: mat.m2-get-color-config($theme);