@hazelcast/ui 1.3.2-next.93 → 1.3.2-next.94
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/lib/Toggle.module.scss +34 -20
- package/package.json +2 -2
package/lib/Toggle.module.scss
CHANGED
|
@@ -84,6 +84,22 @@ $knobHorizontalOffset: math.max(c.$outlineWidth - c.$borderWidth, 0px);
|
|
|
84
84
|
border: c.$borderWidth solid transparent;
|
|
85
85
|
box-sizing: border-box;
|
|
86
86
|
color: c.$colorNeutralWhite;
|
|
87
|
+
|
|
88
|
+
&::before {
|
|
89
|
+
content: '';
|
|
90
|
+
display: inline-block;
|
|
91
|
+
height: $knobRadius;
|
|
92
|
+
width: $knobRadius;
|
|
93
|
+
background: $knobBgOff;
|
|
94
|
+
border-radius: 50%;
|
|
95
|
+
position: absolute;
|
|
96
|
+
top: 50%;
|
|
97
|
+
transform: translateY(-50%);
|
|
98
|
+
/* doiuse-disable calc */
|
|
99
|
+
right: calc(#{$width} - #{c.$borderWidth * 2} - #{$knobRadius} - #{$knobHorizontalOffset});
|
|
100
|
+
/* doiuse-enable calc */
|
|
101
|
+
transition: right c.$transitionTimeMedium ease-in;
|
|
102
|
+
}
|
|
87
103
|
}
|
|
88
104
|
|
|
89
105
|
// track states
|
|
@@ -100,6 +116,11 @@ $knobHorizontalOffset: math.max(c.$outlineWidth - c.$borderWidth, 0px);
|
|
|
100
116
|
background-color: c.$colorNeutralLight;
|
|
101
117
|
border-color: c.$colorNeutralLight;
|
|
102
118
|
box-shadow: none;
|
|
119
|
+
color: c.$colorNeutral;
|
|
120
|
+
|
|
121
|
+
&::before {
|
|
122
|
+
background: c.$colorNeutral;
|
|
123
|
+
}
|
|
103
124
|
}
|
|
104
125
|
|
|
105
126
|
label.focus .toggleTrack,
|
|
@@ -110,29 +131,22 @@ $knobHorizontalOffset: math.max(c.$outlineWidth - c.$borderWidth, 0px);
|
|
|
110
131
|
// track ON state
|
|
111
132
|
input:checked + label .toggleTrack {
|
|
112
133
|
background: $trackBgOn;
|
|
113
|
-
}
|
|
114
134
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
height: $knobRadius;
|
|
120
|
-
width: $knobRadius;
|
|
121
|
-
background: $knobBgOff;
|
|
122
|
-
border-radius: 50%;
|
|
123
|
-
position: absolute;
|
|
124
|
-
top: 50%;
|
|
125
|
-
transform: translateY(-50%);
|
|
126
|
-
/* doiuse-disable calc */
|
|
127
|
-
right: calc(#{$width} - #{c.$borderWidth * 2} - #{$knobRadius} - #{$knobHorizontalOffset});
|
|
128
|
-
/* doiuse-enable calc */
|
|
129
|
-
transition: right c.$transitionTimeMedium ease-in;
|
|
135
|
+
&::before {
|
|
136
|
+
background: $knobBgOn;
|
|
137
|
+
right: $knobHorizontalOffset;
|
|
138
|
+
}
|
|
130
139
|
}
|
|
131
140
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
141
|
+
input:checked + label.disabled .toggleTrack {
|
|
142
|
+
background-color: c.$colorSuccessDark;
|
|
143
|
+
border-color: c.$colorNeutralLight;
|
|
144
|
+
box-shadow: none;
|
|
145
|
+
color: c.$colorNeutral;
|
|
146
|
+
|
|
147
|
+
&::before {
|
|
148
|
+
background-color: c.$colorNeutral;
|
|
149
|
+
}
|
|
136
150
|
}
|
|
137
151
|
|
|
138
152
|
.toggleTrackText {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hazelcast/ui",
|
|
3
|
-
"version": "1.3.2-next.
|
|
3
|
+
"version": "1.3.2-next.94+599cd1b",
|
|
4
4
|
"description": "Hazelcast design system components",
|
|
5
5
|
"author": "",
|
|
6
6
|
"homepage": "https://github.com/hazelcast/frontend-shared#readme",
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"react": "^17 || ^18",
|
|
116
116
|
"react-dom": "^17 || ^18"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "599cd1bde8a802bb2f8aaf615f0c096720e5641b"
|
|
119
119
|
}
|