@stream-io/video-styling 1.12.0 → 1.13.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/video-styling",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "license": "See license in LICENSE",
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",
@@ -132,6 +132,65 @@
132
132
  }
133
133
  }
134
134
 
135
+ .str-video__device-level-indicator {
136
+ display: flex;
137
+ align-items: center;
138
+ gap: 0.125rem;
139
+ flex-shrink: 0;
140
+ margin-left: auto;
141
+
142
+ .str-video__device-level-indicator__bar {
143
+ width: 0.1875rem;
144
+ height: 0.75rem;
145
+ border-radius: var(--str-video__border-radius-xs);
146
+ background-color: var(--str-video__base-color3);
147
+ transition: background-color 0.1s;
148
+
149
+ &--active {
150
+ background-color: var(--str-video__primary-color);
151
+ }
152
+ }
153
+ }
154
+
155
+ .str-video__device-preview {
156
+ appearance: none;
157
+ padding: 0;
158
+ border: 0;
159
+ background: transparent;
160
+ color: inherit;
161
+ font: inherit;
162
+ text-align: inherit;
163
+ display: flex;
164
+ flex-direction: column;
165
+ align-items: stretch;
166
+ max-width: 12rem;
167
+ cursor: pointer;
168
+
169
+ .str-video__device-preview__label {
170
+ padding: var(--str-video__spacing-xs) 0;
171
+ font-size: var(--str-video__font-size-xs);
172
+ text-align: center;
173
+ overflow: hidden;
174
+ text-overflow: ellipsis;
175
+ white-space: nowrap;
176
+ }
177
+
178
+ .str-video__device-video-preview__video {
179
+ display: block;
180
+ width: 100%;
181
+ aspect-ratio: 16 / 9;
182
+ object-fit: cover;
183
+ border-radius: var(--str-video__border-radius-sm);
184
+ border: 2px solid var(--str-video__base-color3);
185
+ background-color: var(--str-video__base-color5);
186
+ transform: scaleX(-1);
187
+ }
188
+
189
+ &--selected .str-video__device-video-preview__video {
190
+ border-color: var(--str-video__primary-color);
191
+ }
192
+ }
193
+
135
194
  .str-video__speaker-test {
136
195
  padding: var(--str-video__spacing-sm) 0;
137
196