@educarehq/solaris-ui 0.7.0 → 0.7.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": "@educarehq/solaris-ui",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,15 +39,23 @@ $-default-config: (
39
39
  $radius: map.get($merged, radius);
40
40
  $motion: map.get($merged, motion);
41
41
 
42
- :root {
43
- @if $color-scheme == light {
42
+ @if $color-scheme == light {
43
+ :root:not([data-theme]) {
44
44
  color-scheme: light;
45
- } @else if $color-scheme == dark {
45
+ @include color.solaris-light-tokens;
46
+ }
47
+ } @else if $color-scheme == dark {
48
+ :root:not([data-theme]) {
46
49
  color-scheme: dark;
47
- } @else {
50
+ @include color.solaris-dark-tokens;
51
+ }
52
+ } @else {
53
+ :root {
48
54
  color-scheme: light dark;
49
55
  }
56
+ }
50
57
 
58
+ :root {
51
59
  @if $density == compact {
52
60
  --solaris-density-default: compact;
53
61
  } @else if $density == comfortable {
@@ -1,5 +1,4 @@
1
- :root,
2
- [data-theme='light'] {
1
+ @mixin solaris-light-tokens {
3
2
  --solaris-bg-page: #ffffff;
4
3
  --solaris-surface-base: #ffffff;
5
4
  --solaris-surface-subtle: #f7f8fb;
@@ -70,3 +69,8 @@
70
69
  --solaris-orange-text: #8a4f0b;
71
70
  --solaris-orange-on-solid: #ffffff;
72
71
  }
72
+
73
+ :root,
74
+ [data-theme='light'] {
75
+ @include solaris-light-tokens;
76
+ }
@@ -93,9 +93,12 @@ type SolarisReducedMotionPreference = 'auto' | 'reduce' | 'no-preference';
93
93
 
94
94
  declare class SolarisThemeService {
95
95
  private readonly config;
96
+ private readonly platformId;
97
+ private readonly document;
96
98
  get colorScheme(): string;
97
99
  get density(): SolarisDensity;
98
100
  get reducedMotion(): string;
101
+ private readDensityDefault;
99
102
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SolarisThemeService, never>;
100
103
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<SolarisThemeService>;
101
104
  }