@tiba-spark/client-shared-lib 25.3.0-740 → 25.3.0-743

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": "@tiba-spark/client-shared-lib",
3
- "version": "25.3.0-740",
3
+ "version": "25.3.0-743",
4
4
  "description": "Holds the shared content that all Spark Client applications use",
5
5
  "keywords": [
6
6
  "spark",
@@ -1,80 +1,44 @@
1
1
  @use 'variables';
2
2
 
3
- mat-slide-toggle.mat-slide-toggle {
4
- .mat-slide-toggle-bar {
5
- width: 32px;
6
- height: 15px;
7
- border-radius: 10px;
8
- background-color: variables.$hover-background;
9
- }
3
+ mat-slide-toggle.mat-mdc-slide-toggle {
4
+ --mdc-switch-track-width: 32px;
5
+ --mdc-switch-track-height: 15px;
6
+ --mdc-switch-track-shape: 10px;
10
7
 
11
- .mat-slide-toggle-thumb {
12
- box-shadow: 0 2px 1px -1px rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .14), 0 1px 3px 0 rgba(0, 0, 0, .12);
13
- background-color: #fafafa;
8
+ &:not(.mat-mdc-slide-toggle-checked) {
9
+ --mdc-switch-state-layer-size: 0;
14
10
  }
11
+ }
15
12
 
16
- &.mat-checked {
17
- .mat-slide-toggle-bar {
18
- background-color: variables.$primary-color;
19
- }
20
-
21
- .mat-slide-toggle-thumb {
22
- box-shadow: 0px 2px 3px -1px rgb(0 0 0 / 40%), 0 1px 1px 0 rgb(0 0 0 / 14%), 0 1px 3px 0 rgb(0 0 0 / 12%);
23
- background-color: #ffffff;
24
- }
13
+ .mat-mdc-slide-toggle.toggle-label {
14
+ --mat-switch-with-icon-handle-size: 22px;
15
+ --mdc-switch-track-height: 22px;
16
+ --mat-switch-label-text-color: #{variables.$secondary-text-color};
17
+ --mdc-switch-track-width: 58px;
18
+ --mdc-switch-track-height: 22px;
25
19
 
26
- .mat-ripple-element {
27
- background-color: variables.$primary-color;
28
- }
20
+ &.mat-mdc-slide-toggle-checked {
21
+ --mat-switch-label-text-color: #{variables.$white-color};
29
22
  }
30
- }
31
23
 
32
- mat-slide-toggle.mat-slide-toggle.fa2-toggle {
33
- margin: 0 15px 0 5px;
34
- }
35
-
36
- .mat-slide-toggle.toggle-label {
37
- .mat-slide-toggle-content {
24
+ .mdc-switch {
38
25
  position: absolute;
39
- width: 58px;
26
+ width: 60px;
40
27
  height: 22px;
41
28
  }
42
29
 
43
30
  .toggle-label {
44
31
  position: relative;
45
32
  left: 5px;
46
- top: -2px;
33
+ top: 0px;
47
34
  font-size: 13px;
48
35
  font-weight: 300;
49
- color: variables.$white-color;
50
- display: flex;
51
- justify-content: center;
52
36
  width: 30px;
53
37
 
54
38
  &.off {
55
- color: variables.$secondary-text-color;
56
- left: 25px;
39
+ left: 28px;
57
40
  }
58
41
  }
59
-
60
- .mat-slide-toggle-thumb-container {
61
- transform: translate3d(0, 3px, 0);
62
- }
63
-
64
- &.mat-checked .mat-slide-toggle-thumb-container {
65
- transform: translate3d(37px, 3px, 0);
66
-
67
- }
68
-
69
- .mat-slide-toggle-bar {
70
- width: 58px;
71
- height: 22px;
72
- }
73
-
74
- .mat-slide-toggle-thumb {
75
- width: 22px;
76
- height: 22px;
77
- }
78
42
  }
79
43
 
80
44
  .mat-mdc-slide-toggle.mat-accent {
@@ -96,6 +60,7 @@ mat-slide-toggle.mat-slide-toggle.fa2-toggle {
96
60
  --mdc-switch-unselected-hover-handle-color: #{variables.$white-color};
97
61
  --mdc-switch-unselected-pressed-handle-color: #{variables.$white-color};
98
62
  --mdc-switch-unselected-focus-handle-color: #{variables.$white-color};
63
+ --mdc-switch-unselected-track-color: #{variables.$hover-background};
99
64
  }
100
65
 
101
66
  .tb-table .tb-action-disabled {